autoupdate
[gnulib.git] / ChangeLog
1 2011-02-15  Jim Meyering  <meyering@redhat.com>
2
3         doc: update users.txt
4         * users.txt: Update iwhd's URL.
5
6 2011-02-13  Bruno Haible  <bruno@clisp.org>
7
8         Consistent macro naming for macros that use GCC __attribute__.
9         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10         _ATTRIBUTE_NONNULL_.
11         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14         ATTRIBUTE_DEPRECATED.
15         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16         ATTRIBUTE_NORETURN.
17         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24         ATTRIBUTE_SENTINEL.
25         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
26         ATTRIBUTE_RETURN_CHECK.
27         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
28         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
29         ATTRIBUTE_NORETURN.
30         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
31         Reported by Paul Eggert.
32
33 2011-02-13  Bruno Haible  <bruno@clisp.org>
34
35         Don't interfere with a program's definition of __attribute__.
36         * lib/argp.h (__attribute__): Remove definition.
37         (_GL_ATTRIBUTE_FORMAT): New macro.
38         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
39         * lib/argp-fmtstream.h (__attribute__): Remove definition.
40         (_GL_ATTRIBUTE_FORMAT): New macro.
41         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
43         GCC 3 or newer.
44         * lib/error.h (__attribute__): Remove definition.
45         (_GL_ATTRIBUTE_FORMAT): New macro.
46         (error, error_at_line): Use it.
47         * lib/hash.h (__attribute__): Remove definition.
48         (ATTRIBUTE_WUR): Update definition. Define always.
49         * lib/openat.h (__attribute__): Remove definition.
50         (ATTRIBUTE_NORETURN): Update definition. Define always.
51         * lib/sigpipe-die.h (__attribute__): Remove definition.
52         (ATTRIBUTE_NORETURN): Update definition. Define always.
53         * lib/vasnprintf.h (__attribute__): Remove definition.
54         (_GL_ATTRIBUTE_FORMAT): New macro.
55         (asnprintf, vasnprintf): Use it.
56         * lib/xalloc.h (__attribute__): Remove definition.
57         (ATTRIBUTE_NORETURN): Update definition. Define always.
58         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59         * lib/xmemdup0.h (__attribute__): Remove definition.
60         (ATTRIBUTE_NORETURN): Update definition. Define always.
61         * lib/xprintf.h (__attribute__): Remove definition.
62         (_GL_ATTRIBUTE_FORMAT): New macro.
63         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
64         * lib/xstrtol.h (__attribute__): Remove definition.
65         (ATTRIBUTE_NORETURN): Update definition. Define always.
66         * lib/xvasprintf.h (__attribute__): Remove definition.
67         (_GL_ATTRIBUTE_FORMAT): New macro.
68         (xasprintf, xvasprintf): Use it.
69         * tests/test-argmatch.c (__attribute__): Remove definition.
70         (ATTRIBUTE_NORETURN): Update definition. Define always.
71         * tests/test-exclude.c (__attribute__): Remove definition.
72         (ATTRIBUTE_NORETURN): Update definition. Define always.
73         Reported by Paul Eggert.
74
75 2011-02-13  Bruno Haible  <bruno@clisp.org>
76
77         mbrtowc: Add more tests for native Windows platforms.
78         * tests/test-mbrtowc-w32-1.sh: New file.
79         * tests/test-mbrtowc-w32-2.sh: New file.
80         * tests/test-mbrtowc-w32-3.sh: New file.
81         * tests/test-mbrtowc-w32-4.sh: New file.
82         * tests/test-mbrtowc-w32-5.sh: New file.
83         * tests/test-mbrtowc-w32.c: New file.
84         * modules/mbrtowc-tests (Files): Add them.
85         (Makefile.am): Arrange to run these tests.
86         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
87         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
88
89 2011-02-13  Bruno Haible  <bruno@clisp.org>
90
91         mbrtowc: Work around native Windows bug.
92         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
93         guess when no suitable locale for testing was found.
94         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
95
96 2011-02-13  Bruno Haible  <bruno@clisp.org>
97
98         mbsinit: Work around mingw bug.
99         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
100         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
101         Windows.
102         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
103
104 2011-02-13  Bruno Haible  <bruno@clisp.org>
105
106         mbsinit: Don't crash for a NULL argument.
107         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
108         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
109
110 2011-02-13  Bruno Haible  <bruno@clisp.org>
111
112         Don't interfere with a program's definition of __attribute__.
113         * lib/stdio.in.h (__attribute__): Remove definition.
114         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
115         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
116         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
117         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
118         * lib/string.in.h (__attribute__): Remove definition.
119         Reported by Paul Eggert.
120
121 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
122
123         stdlib: don't get in the way of non-GCC __attribute__
124         See thread starting at
125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
126         Revert previous stdlib change, installing the following instead:
127         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
128         to get in the way of a non-GCC compiler that supports __attribute__.
129         (_GL_ATTRIBUTE_RETURN): New macro.
130         (_Exit): Use it instead of __attribute__.
131
132 2011-02-12  Bruno Haible  <bruno@clisp.org>
133
134         quotearg test: Avoid test failure on mingw.
135         * tests/test-quotearg.sh: Convert the locale identifier from native
136         Windows syntax to Unix syntax.
137
138 2011-02-12  Bruno Haible  <bruno@clisp.org>
139
140         setlocale: Prefer gnulib's override over libintl's override.
141         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
142         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
143         GNULIB_defined_setlocale is set.
144
145 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
146
147         stdlib: support non-GCC __attribute__
148
149         Fix a serious and tricky problem encountered when attempting to
150         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
151         5.5, but it crashed due to memory corruption on Solaris 10 with
152         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
153         bits that are otherwise zero.  This tagging is optional inside
154         Emacs but is preferred and is used when __attribute__ ((__aligned
155         (8))) works, as it does with both recent-enough GCC and with Sun C
156         5.11.  However, Sun C 5.11 is not GCC and does not #define
157         __GNUC__ and __GNUC_MINOR__.
158
159         When I added the getloadavg module to Emacs, it brought in
160         stdlib.in.h, which contained this fragment:
161
162            #ifndef __attribute__
163            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
164            #  define __attribute__(Spec)   /* empty */
165            # endif
166            #endif
167
168         When files that include <stdlib.h> were compiled with Sun C 5.11,
169         the above code disabled __attribute__ ((__aligned (8))), which
170         caused variables to not be properly aligned, which eventually led
171         to the pointer corruption mentioned above.  (This was a bit hard
172         to diagnose, unfortunately.)
173
174         Several "#define __attribute__(X) /* empty */" code snippets need
175         to be eradicated from Gnulib to work with non-GCC compilers that
176         support __attribute__.  The Autoconf way to do this is to test for
177         each kind of attribute that we want support for, and selectively
178         enable that in source code.
179
180         Fix this problem just for stdlib.h, by adding a test for the
181         __noreturn__ attribute, and change stdlib.in.h to use that test
182         when needed.  This technique can be easily generalized to the
183         other *.in.h files and attributes, and a similar technique can be
184         used for *.h and *.c files.  This patch is enough to solve the
185         problem for Emacs + getloadavg, and I thought I'd publish it for
186         feedback before undertaking further, similar fixes in other
187         modules.
188
189         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
190         because it's not needed for stdlib.h.  It merely substitutes the
191         value directly into stdlib.h.  We may well need to #define it, or
192         similar symbols, for other modules, but it's nice to also have an
193         option to not #define it for applications like Emacs that do not
194         need it.
195
196         * lib/stdlib.in.h (__attribute__): Do not #define.
197         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
198         be defined only if the _Exit module is also used.
199         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
201         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
202         platforms.
203         * modules/_Exit (Files): Add m4/attribute.m4.
204         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
205         * m4/attribute.m4: New file.
206
207 2011-02-12  Bruno Haible  <bruno@clisp.org>
208
209         wcsrtombs: Work around bug on native Windows.
210         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
211         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
212         instead of len.
213         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
214
215 2011-02-12  Bruno Haible  <bruno@clisp.org>
216
217         mbsrtowcs: Work around bug on native Windows.
218         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
219         against mingw bug.
220         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
221
222 2011-02-12  Bruno Haible  <bruno@clisp.org>
223
224         Avoid setlocale bugs in tests.
225         * modules/btowc (Dependencies): Add setlocale.
226         * modules/c-strcase (Dependencies): Likewise.
227         * modules/mbmemcasecmp (Dependencies): Likewise.
228         * modules/mbmemcasecoll (Dependencies): Likewise.
229         * modules/mbrtowc (Dependencies): Likewise.
230         * modules/mbscasecmp (Dependencies): Likewise.
231         * modules/mbscasestr (Dependencies): Likewise.
232         * modules/mbschr (Dependencies): Likewise.
233         * modules/mbscspn (Dependencies): Likewise.
234         * modules/mbsinit (Dependencies): Likewise.
235         * modules/mbsncasecmp (Dependencies): Likewise.
236         * modules/mbsnrtowcs (Dependencies): Likewise.
237         * modules/mbspbrk (Dependencies): Likewise.
238         * modules/mbspcasecmp (Dependencies): Likewise.
239         * modules/mbsrchr (Dependencies): Likewise.
240         * modules/mbsrtowcs (Dependencies): Likewise.
241         * modules/mbsspn (Dependencies): Likewise.
242         * modules/mbsstr (Dependencies): Likewise.
243         * modules/nl_langinfo (Dependencies): Likewise.
244         * modules/quotearg (Dependencies): Likewise.
245         * modules/unicase/locale-language (Dependencies): Likewise.
246         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
247         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
248         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
249         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
250         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
251         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
252         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
253         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
254         * modules/vasnprintf-posix (Dependencies): Likewise.
255         * modules/wcrtomb (Dependencies): Likewise.
256         * modules/wcsnrtombs (Dependencies): Likewise.
257         * modules/wcsrtombs (Dependencies): Likewise.
258
259 2011-02-12  Bruno Haible  <bruno@clisp.org>
260
261         setlocale: Workaround native Windows bug.
262         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
263         succeeds but sets LC_CTYPE to "C", report a failure.
264         * tests/test-setlocale2.sh: New file.
265         * tests/test-setlocale2.c: New file.
266         * modules/setlocale-tests (Files): Add the new files.
267         (Makefile.am): Enable test-setlocale2.sh test.
268         * doc/posix-functions/setlocale.texi: Mention workaround.
269
270 2011-02-11  Bruno Haible  <bruno@clisp.org>
271
272         Tests for module 'setlocale'.
273         * modules/setlocale-tests: New file.
274         * tests/test-setlocale1.sh: New file.
275         * tests/test-setlocale1.c: New file.
276
277         New module 'setlocale'.
278         * lib/locale.in.h (setlocale): New declaration.
279         * lib/setlocale.c: New file, based on
280         gettext/gettext-runtime/intl/setlocale.c.
281         * m4/setlocale.m4: New file.
282         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
283         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
284         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
285         REPLACE_SETLOCALE.
286         * modules/setlocale: New file.
287         * tests/test-locale-c++.cc: Test the declaration of setlocale.
288         * doc/posix-functions/setlocale.texi: Mention the new module.
289
290 2011-02-11  Bruno Haible  <bruno@clisp.org>
291
292         Prepare for locale dependent tests on mingw.
293         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
294         because it has the wrong locale encoding.
295         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
296         French_France.1252 instead of "fr".
297         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
298         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
299         because it has the wrong locale encoding.
300         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
301         native Windows, try Turkish_Turkey.65001.
302         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
303         Chinese_China.54936.
304
305         Prepare for locale dependent tests on mingw.
306         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
307         differently.
308         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
309         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
310         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
311         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
312
313 2011-02-11  Eric Blake  <eblake@redhat.com>
314
315         strptime: avoid compiler warnings
316         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
317         compiler warnings about dead code.
318         Reported by Daniel P. Berrange.
319
320 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
321
322         doc: update users.txt
323         * users.txt: Add rcs.
324
325 2011-02-10  John W. Eaton  <jwe@gnu.org>
326
327         doc: update users.txt
328         * users.txt: Add octave.
329
330 2011-02-10  Jim Meyering  <meyering@redhat.com>
331
332         doc: update users.txt
333         * users.txt: Add iwhd.
334
335 2011-02-09  Bruno Haible  <bruno@clisp.org>
336
337         gnulib-tool: Make copyright notice adjustment more robust.
338         * gnulib-tool (func_import): In sed_transform_main_lib_file,
339         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
340         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
341         License".
342         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
343
344 2011-02-06  Bruno Haible  <bruno@clisp.org>
345
346         New module 'towctrans'.
347         * modules/towctrans: New file.
348         * lib/wctype.in.h (towctrans): New declaration.
349         * lib/towctrans.c: New file.
350         * lib/towctrans-impl.h: New file.
351         * m4/towctrans.m4: New file.
352         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
353         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
354         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
355         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
356         * doc/posix-functions/towctrans.texi: Mention the new module.
357
358 2011-02-06  Bruno Haible  <bruno@clisp.org>
359
360         New module 'wctrans'.
361         * modules/wctrans: New file.
362         * lib/wctype.in.h (wctrans): New declaration.
363         * lib/wctrans.c: New file.
364         * lib/wctrans-impl.h: New file.
365         * m4/wctrans.m4: New file.
366         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
367         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
368         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
369         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
370         * doc/posix-functions/wctrans.texi: Mention the new module.
371
372 2011-02-06  Bruno Haible  <bruno@clisp.org>
373
374         New module 'iswctype'.
375         * modules/iswctype: New file.
376         * lib/wctype.in.h (iswctype): New declaration.
377         * lib/iswctype.c: New file.
378         * lib/iswctype-impl.h: New file.
379         * m4/iswctype.m4: New file.
380         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
381         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
382         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
383         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
384         * doc/posix-functions/iswctype.texi: Mention the new module and the
385         HP-UX 11.00 problem.
386
387 2011-02-06  Bruno Haible  <bruno@clisp.org>
388
389         New module 'wctype'.
390         * modules/wctype: Change to represent the wctype() substitute.
391         * lib/wctype.in.h (wctype): New declaration.
392         * lib/wctype.c: New file.
393         * lib/wctype-impl.h: New file.
394         * m4/wctype.m4: New file.
395         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
396         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
397         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
398         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
399         * doc/posix-functions/wctype.texi: Mention the new module and the
400         HP-UX 11.00 problem.
401
402 2011-02-06  Bruno Haible  <bruno@clisp.org>
403
404         wctype-h: Ensure wctype_t and wctrans_t are defined.
405         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
406         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
407         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
408         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
409         HAVE_WCTRANS_T.
410         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
411
412 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
413
414         flock: fix license typo
415
416         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
417         omitted.
418
419 2011-02-08  Bruno Haible  <bruno@clisp.org>
420
421         Split large sed scripts, for HP-UX sed.
422         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
423         to avoid HP-UX limit of 99 commands, in the near future.
424         * modules/stdlib (Makefile.am): Likewise.
425         * modules/unistd (Makefile.am): Likewise.
426         * modules/wchar (Makefile.am): Likewise.
427         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
428         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
430
431 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
432             Bruno Haible  <bruno@clisp.org>
433
434         stdlib: improve random_r modularization
435         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
436         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
437         you also need the random_r module to get this material right.
438         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
439         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
440         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
441
442 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
443
444         stdlib: don't depend on stdint
445         * lib/stdlib.in.h: Don't include <stdint.h> merely because
446         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
447         be independent of whether stdint.h is needed.
448         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
449         here, instead of ...
450         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
451         struct random_data should be using the random_r module, not just
452         the stdlib module (which wouldn't make sense: what package needs
453         just struct random_data without also needing random_r?).
454         * modules/stdlib (Depends-on): Remove stdint.
455
456         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
457         See the thread rooted at
458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
459         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
460         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
461         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
462         __VMS)); previously it was always included (via fcntl--.h).
463         (getloadavg): Do not use c_strtod.  Instead, approximate it by
464         hand; this is good enough for load averages.  Also, do not use
465         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
466         flags directly if available and don't bother otherwise.  (Packages
467         that need the extra reliability should use the modules that define
468         these flags on older platforms that lack them.)
469         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
470         fcntl-safer.
471
472 2011-02-08  Jim Meyering  <meyering@redhat.com>
473
474         di-set.h, ino-map.h: add multiple-inclusion guard
475         Technically, the guard is required only for ino-map.h, due to its
476         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
477         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
478         * lib/ino-map.h: Likewise.
479
480 2011-02-06  Bruno Haible  <bruno@clisp.org>
481
482         iswblank: Ensure declaration on glibc systems.
483         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
484         * modules/iswblank (Dependencies): Add 'extensions'.
485         * doc/posix-functions/iswblank.texi: Document the glibc problem.
486
487 2011-02-06  Bruno Haible  <bruno@clisp.org>
488
489         New module 'iswblank'.
490         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
491         * modules/iswblank: New file.
492         * modules/wctype-h (Files): Remove lib/iswblank.c.
493         (Makefile.am): Substitute GNULIB_ISWBLANK.
494         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
495         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
496         (gl_WCTYPE_H_DEFAULTS): New macro.
497         (gl_WCTYPE_H): Require it. Remove iswblank related code.
498         * modules/iswblank-tests: New file.
499         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
500         * tests/test-wctype-h.c (main): Remove iswblank tests.
501         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
502         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
503         of 'wctype-h'.
504         * NEWS: Mention the change.
505         * modules/mbchar (Depends-on): Add iswblank.
506
507 2011-02-08  Bruno Haible  <bruno@clisp.org>
508
509         di-set tests: Refactor.
510         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
511         unnecessary includes.
512         (ASSERT): Remove macro.
513         (main): Make C90 compliant by avoiding variable declaration after
514         statement.
515         * modules/di-set-tests (Files): Add tests/macros.h.
516
517 2011-02-08  Bruno Haible  <bruno@clisp.org>
518
519         ino-map tests: Refactor.
520         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
521         unnecessary includes.
522         (ASSERT): Remove macro.
523         (main): Make C90 compliant by avoiding variable declaration after
524         statement.
525         * modules/ino-map-tests (Files): Add tests/macros.h.
526
527 2011-02-08  Jim Meyering  <meyering@redhat.com>
528
529         di-set: add "const" to a cast
530         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
531         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
532
533 2011-02-06  Bruno Haible  <bruno@clisp.org>
534
535         Rename module 'wctype' to 'wctype-h'.
536         * modules/wctype-h: Renamed from modules/wctype.
537         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
538         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
539         (Files, Depends-on, Makefile.am): Update.
540         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
541         (Files, Makefile.am): Update.
542         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
543         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
544         * doc/posix-headers/wctype.texi: Update.
545         * doc/posix-functions/iswalnum.texi: Update.
546         * doc/posix-functions/iswalpha.texi: Update.
547         * doc/posix-functions/iswblank.texi: Update.
548         * doc/posix-functions/iswcntrl.texi: Update.
549         * doc/posix-functions/iswdigit.texi: Update.
550         * doc/posix-functions/iswgraph.texi: Update.
551         * doc/posix-functions/iswlower.texi: Update.
552         * doc/posix-functions/iswprint.texi: Update.
553         * doc/posix-functions/iswpunct.texi: Update.
554         * doc/posix-functions/iswspace.texi: Update.
555         * doc/posix-functions/iswupper.texi: Update.
556         * doc/posix-functions/iswxdigit.texi: Update.
557         * doc/posix-functions/towlower.texi: Update.
558         * doc/posix-functions/towupper.texi: Update.
559         * NEWS: Mention the change.
560         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
561         * modules/mbchar (Dependencies): Likewise.
562         * modules/mbswidth (Dependencies): Likewise.
563         * modules/quotearg (Dependencies): Likewise.
564         * modules/regex (Dependencies): Likewise.
565         * modules/wcscasecmp (Dependencies): Likewise.
566         * modules/wcsncasecmp (Dependencies): Likewise.
567         * modules/wcwidth (Dependencies): Likewise.
568
569 2011-02-06  Bruno Haible  <bruno@clisp.org>
570
571         New module 'wcswidth'.
572         * modules/wcswidth: New file.
573         * lib/wchar.in.h (wcswidth): New declaration.
574         * lib/wcswidth.c: New file.
575         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
576         * m4/wcswidth.m4: New file.
577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
579         REPLACE_WCSWIDTH.
580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
581         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
582         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
583         * doc/posix-functions/wcswidth.texi: Mention the new module.
584
585 2011-02-06  Bruno Haible  <bruno@clisp.org>
586
587         New module 'wcstok'.
588         * modules/wcstok: New file.
589         * lib/wchar.in.h (wcstok): New declaration.
590         * lib/wcstok.c: New file.
591         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
592         * m4/wcstok.m4: New file.
593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
596         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
597         * doc/posix-functions/wcstok.texi: Mention the new module.
598
599 2011-02-06  Bruno Haible  <bruno@clisp.org>
600
601         New module 'wcsstr'.
602         * modules/wcsstr: New file.
603         * lib/wchar.in.h (wcsstr): New declaration.
604         * lib/wcsstr.c: New file.
605         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
606         * m4/wcsstr.m4: New file.
607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
610         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
611         * doc/posix-functions/wcsstr.texi: Mention the new module.
612
613 2011-02-06  Bruno Haible  <bruno@clisp.org>
614
615         New module 'wcspbrk'.
616         * modules/wcspbrk: New file.
617         * lib/wchar.in.h (wcspbrk): New declaration.
618         * lib/wcspbrk.c: New file.
619         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
620         * m4/wcspbrk.m4: New file.
621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
624         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
625         * doc/posix-functions/wcspbrk.texi: Mention the new module.
626
627 2011-02-06  Bruno Haible  <bruno@clisp.org>
628
629         New module 'wcsspn'.
630         * modules/wcsspn: New file.
631         * lib/wchar.in.h (wcsspn): New declaration.
632         * lib/wcsspn.c: New file.
633         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
634         * m4/wcsspn.m4: New file.
635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
638         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
639         * doc/posix-functions/wcsspn.texi: Mention the new module.
640
641 2011-02-06  Bruno Haible  <bruno@clisp.org>
642
643         New module 'wcscspn'.
644         * modules/wcscspn: New file.
645         * lib/wchar.in.h (wcscspn): New declaration.
646         * lib/wcscspn.c: New file.
647         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
648         * m4/wcscspn.m4: New file.
649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
652         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
653         * doc/posix-functions/wcscspn.texi: Mention the new module.
654
655 2011-02-06  Bruno Haible  <bruno@clisp.org>
656
657         New module 'wcsrchr'.
658         * modules/wcsrchr: New file.
659         * lib/wchar.in.h (wcsrchr): New declaration.
660         * lib/wcsrchr.c: New file.
661         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
662         * m4/wcsrchr.m4: New file.
663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
666         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
667         * doc/posix-functions/wcsrchr.texi: Mention the new module.
668
669 2011-02-06  Bruno Haible  <bruno@clisp.org>
670
671         New module 'wcschr'.
672         * modules/wcschr: New file.
673         * lib/wchar.in.h (wcschr): New declaration.
674         * lib/wcschr.c: New file.
675         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
676         * m4/wcschr.m4: New file.
677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
680         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
681         * doc/posix-functions/wcschr.texi: Mention the new module.
682
683 2011-02-06  Bruno Haible  <bruno@clisp.org>
684
685         New module 'wcsdup'.
686         * modules/wcsdup: New file.
687         * lib/wchar.in.h (wcsdup): New declaration.
688         * lib/wcsdup.c: New file.
689         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
690         * m4/wcsdup.m4: New file.
691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
694         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
695         * doc/posix-functions/wcsdup.texi: Mention the new module.
696
697 2011-02-06  Bruno Haible  <bruno@clisp.org>
698
699         New module 'wcsxfrm'.
700         * modules/wcsxfrm: New file.
701         * lib/wchar.in.h (wcsxfrm): New declaration.
702         * lib/wcsxfrm.c: New file.
703         * lib/wcsxfrm-impl.h: New file.
704         * m4/wcsxfrm.m4: New file.
705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
708         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
709         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
710
711 2011-02-06  Bruno Haible  <bruno@clisp.org>
712
713         New module 'wcscoll'.
714         * modules/wcscoll: New file.
715         * lib/wchar.in.h (wcscoll): New declaration.
716         * lib/wcscoll.c: New file.
717         * lib/wcscoll-impl.h: New file.
718         * m4/wcscoll.m4: New file.
719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
722         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
723         * doc/posix-functions/wcscoll.texi: Mention the new module.
724
725 2011-02-06  Bruno Haible  <bruno@clisp.org>
726
727         New module 'wcsncasecmp'.
728         * modules/wcsncasecmp: New file.
729         * lib/wchar.in.h (wcsncasecmp): New declaration.
730         * lib/wcsncasecmp.c: New file.
731         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
732         * m4/wcsncasecmp.m4: New file.
733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
736         HAVE_WCSNCASECMP.
737         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
738         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
739
740 2011-02-06  Bruno Haible  <bruno@clisp.org>
741
742         New module 'wcscasecmp'.
743         * modules/wcscasecmp: New file.
744         * lib/wchar.in.h (wcscasecmp): New declaration.
745         * lib/wcscasecmp.c: New file.
746         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
747         * m4/wcscasecmp.m4: New file.
748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
751         HAVE_WCSCASECMP.
752         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
753         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
754
755 2011-02-05  Bruno Haible  <bruno@clisp.org>
756
757         New module 'wcsncmp'.
758         * modules/wcsncmp: New file.
759         * lib/wchar.in.h (wcsncmp): New declaration.
760         * lib/wcsncmp.c: New file.
761         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
762         * m4/wcsncmp.m4: New file.
763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
765         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
766         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
767         * doc/posix-functions/wcsncmp.texi: Mention the new module.
768
769 2011-02-05  Bruno Haible  <bruno@clisp.org>
770
771         New module 'wcscmp'.
772         * modules/wcscmp: New file.
773         * lib/wchar.in.h (wcscmp): New declaration.
774         * lib/wcscmp.c: New file.
775         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
776         * m4/wcscmp.m4: New file.
777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
780         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
781         * doc/posix-functions/wcscmp.texi: Mention the new module.
782
783 2011-02-05  Bruno Haible  <bruno@clisp.org>
784
785         New module 'wcsncat'.
786         * modules/wcsncat: New file.
787         * lib/wchar.in.h (wcsncat): New declaration.
788         * lib/wcsncat.c: New file.
789         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
790         * m4/wcsncat.m4: New file.
791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
794         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
795         * doc/posix-functions/wcsncat.texi: Mention the new module.
796
797 2011-02-05  Bruno Haible  <bruno@clisp.org>
798
799         New module 'wcscat'.
800         * modules/wcscat: New file.
801         * lib/wchar.in.h (wcscat): New declaration.
802         * lib/wcscat.c: New file.
803         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
804         * m4/wcscat.m4: New file.
805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
808         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
809         * doc/posix-functions/wcscat.texi: Mention the new module.
810
811 2011-02-05  Bruno Haible  <bruno@clisp.org>
812
813         New module 'wcpncpy'.
814         * modules/wcpncpy: New file.
815         * lib/wchar.in.h (wcpncpy): New declaration.
816         * lib/wcpncpy.c: New file.
817         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
818         * m4/wcpncpy.m4: New file.
819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
821         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
822         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
823         * doc/posix-functions/wcpncpy.texi: Mention the new module.
824
825 2011-02-05  Bruno Haible  <bruno@clisp.org>
826
827         New module 'wcsncpy'.
828         * modules/wcsncpy: New file.
829         * lib/wchar.in.h (wcsncpy): New declaration.
830         * lib/wcsncpy.c: New file.
831         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
832         * m4/wcsncpy.m4: New file.
833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
836         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
837         * doc/posix-functions/wcsncpy.texi: Mention the new module.
838
839 2011-02-05  Bruno Haible  <bruno@clisp.org>
840
841         New module 'wcpcpy'.
842         * modules/wcpcpy: New file.
843         * lib/wchar.in.h (wcpcpy): New declaration.
844         * lib/wcpcpy.c: New file.
845         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
846         * m4/wcpcpy.m4: New file.
847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
849         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
850         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
851         * doc/posix-functions/wcpcpy.texi: Mention the new module.
852
853 2011-02-05  Bruno Haible  <bruno@clisp.org>
854
855         New module 'wcscpy'.
856         * modules/wcscpy: New file.
857         * lib/wchar.in.h (wcscpy): New declaration.
858         * lib/wcscpy.c: New file.
859         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
860         * m4/wcscpy.m4: New file.
861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
864         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
865         * doc/posix-functions/wcscpy.texi: Mention the new module.
866
867 2011-02-05  Bruno Haible  <bruno@clisp.org>
868
869         New module 'wcsnlen'.
870         * modules/wcsnlen: New file.
871         * lib/wchar.in.h (wcsnlen): New declaration.
872         * lib/wcsnlen.c: New file.
873         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
874         * m4/wcsnlen.m4: New file.
875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
878         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
879         * doc/posix-functions/wcsnlen.texi: Mention the new module.
880
881 2011-02-05  Bruno Haible  <bruno@clisp.org>
882
883         New module 'wcslen'.
884         * modules/wcslen: New file.
885         * lib/wchar.in.h (wcslen): New declaration.
886         * lib/wcslen.c: New file.
887         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
888         * m4/wcslen.m4: New file.
889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
892         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
893         * doc/posix-functions/wcslen.texi: Mention the new module.
894
895 2011-02-05  Bruno Haible  <bruno@clisp.org>
896
897         New module 'wmemset'.
898         * modules/wmemset: New file.
899         * lib/wchar.in.h (wmemset): New declaration.
900         * lib/wmemset.c: New file.
901         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
902         * m4/wmemset.m4: New file.
903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
905         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
906         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
907         * doc/posix-functions/wmemset.texi: Mention the new module.
908
909 2011-02-05  Bruno Haible  <bruno@clisp.org>
910
911         New module 'wmemmove'.
912         * modules/wmemmove: New file.
913         * lib/wchar.in.h (wmemmove): New declaration.
914         * lib/wmemmove.c: New file.
915         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
916         * m4/wmemmove.m4: New file.
917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
919         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
920         HAVE_WMEMMOVE.
921         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
922         * doc/posix-functions/wmemmove.texi: Mention the new module.
923
924 2011-02-05  Bruno Haible  <bruno@clisp.org>
925
926         New module 'wmemcpy'.
927         * modules/wmemcpy: New file.
928         * lib/wchar.in.h (wmemcpy): New declaration.
929         * lib/wmemcpy.c: New file.
930         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
931         * m4/wmemcpy.m4: New file.
932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
934         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
935         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
936         * doc/posix-functions/wmemcpy.texi: Mention the new module.
937
938 2011-02-05  Bruno Haible  <bruno@clisp.org>
939
940         New module 'wmemcmp'.
941         * modules/wmemcmp: New file.
942         * lib/wchar.in.h (wmemcmp): New declaration.
943         * lib/wmemcmp.c: New file.
944         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
945         * m4/wmemcmp.m4: New file.
946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
948         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
949         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
950         * doc/posix-functions/wmemcmp.texi: Mention the new module.
951
952 2011-02-07  Jim Meyering  <meyering@redhat.com>
953
954         di-set, ino-map: new modules, from coreutils
955         * lib/di-set.c: New file.
956         * lib/di-set.h: Likewise.
957         * lib/ino-map.c: Likewise.
958         * lib/ino-map.h: Likewise.
959         * modules/di-set: Likewise.
960         * modules/di-set-tests: Likewise.
961         * modules/ino-map: Likewise.
962         * modules/ino-map-tests: Likewise.
963         * tests/test-di-set.c: Likewise.
964         * tests/test-ino-map.c: Likewise.
965
966 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
967
968         getloadavg: merge minor changes from Emacs
969
970         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
971         (getloadavg): Use memset, not bzero.
972
973         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
974         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
975         clash (bug#86).
976
977 2010-11-14  Bruno Haible  <bruno@clisp.org>
978
979         Allow multiple gnulib generated replacements to coexist.
980         * lib/getopt.in.h (struct option): Avoid identical redefinition.
981         * lib/inttypes.in.h (imaxdiv_t): Likewise.
982         * lib/langinfo.in.h (nl_item): Likewise.
983         * lib/math.in.h (_NaN, NAN): Likewise.
984         * lib/netdb.in.h (struct addrinfo): Likewise.
985         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
986         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
987         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
988         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
989         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
990         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
991         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
992         pthread_mutexattr_init, pthread_mutexattr_settype,
993         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
994         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
995         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
996         pthread_spin_trylock, pthread_spin_unlock): Likewise.
997         * lib/sched.in.h (struct sched_param): Likewise.
998         * lib/se-selinux.in.h (security_class_t, security_context_t,
999         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
1000         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
1001         lsetfilecon, fsetfilecon, security_check_context,
1002         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
1003         Likewise.
1004         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
1005         Likewise.
1006         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
1007         _gl_function_taking_int_returning_void_t, union sigval,
1008         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
1009         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
1010         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1011         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
1012         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
1013         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
1014         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
1015         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
1016         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
1017         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
1018         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
1019         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
1020         socklen_t, rpl_fd_isset): Likewise.
1021         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
1022         * lib/sys_time.in.h (struct timeval): Likewise.
1023         * lib/sys_times.in.h (struct tms): Likewise.
1024         * lib/sys_utsname.in.h (struct utsname):
1025         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
1026         * lib/unistd.in.h (getpagesize): Likewise.
1027         * lib/wchar.in.h (mbstate_t): Likewise.
1028         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1029         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
1030         towlower, towupper): Likewise.
1031         Reported by Sam Steingold <sds@gnu.org>.
1032
1033 2011-02-05  Eric Blake  <eblake@redhat.com>
1034
1035         unsetenv: work around Haiku issues
1036         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
1037         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
1038
1039 2010-12-30  Bruce Korb  <bkorb@gnu.org>
1040
1041         libposix: avoid calling error() within libposix
1042         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
1043         is defined.
1044
1045 2011-02-05  Eric Blake  <eblake@redhat.com>
1046
1047         strerror_r-posix: port to cygwin
1048         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
1049         implementation.
1050         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
1051         * tests/test-strerror_r.c (main): Fix test.
1052         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1053         issue.
1054
1055 2011-02-05  Bruno Haible  <bruno@clisp.org>
1056
1057         New module 'wmemchr'.
1058         * modules/wmemchr: New file.
1059         * lib/wchar.in.h (wmemchr): New declaration.
1060         * lib/wmemchr.c: New file.
1061         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
1062         * m4/wmemchr.m4: New file.
1063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
1064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
1065         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
1066         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
1067         * doc/posix-functions/wmemchr.texi: Mention the new module.
1068
1069 2011-02-04  Eric Blake  <eblake@redhat.com>
1070
1071         fdopendir: detect FreeBSD bug
1072         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
1073         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
1074
1075 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1076
1077         stdbool: do not define HAVE_STDBOOL_H
1078         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
1079         AC_HEADER_STDBOOL.  All uses changed.  Do not define
1080         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
1081         imported from the latest Autoconf git.  It was motivated by Emacs,
1082         which uses gnulib but does not need HAVE_STDBOOL_H.
1083
1084 2011-02-04  Bruno Haible  <bruno@clisp.org>
1085
1086         wcsnrtombs: Prepare for new module wwcsnrtombs.
1087         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
1088         * lib/wcsnrtombs.c: Include it.
1089         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
1090
1091         wcsrtombs: Prepare for new module wwcsrtombs.
1092         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
1093         * lib/wcsrtombs.c: Include it.
1094         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
1095
1096         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
1097         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
1098         * lib/mbsnrtowcs.c: Include it.
1099         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
1100
1101         mbsrtowcs: Prepare for new module mbsrtowwcs.
1102         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
1103         * lib/mbsrtowcs.c: Include it.
1104         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
1105
1106 2011-02-04  Bruno Haible  <bruno@clisp.org>
1107
1108         vasnprintf: Reduce use of malloc for small format strings.
1109         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
1110         (arguments): Add room for the first 7 arguments.
1111         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
1112         (char_directives, u8_directives, u16_directives, u32_directives): Add
1113         room for the first 7 directives.
1114         * lib/printf-parse.c: Include <string.h>.
1115         (PRINTF_PARSE): Change memory handling code so that it uses the first
1116         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
1117         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
1118         Reported by Pádraig Brady <P@draigbrady.com>.
1119
1120 2011-01-31  Eric Blake  <eblake@redhat.com>
1121
1122         dup2: work around Haiku bug
1123         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
1124         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
1125         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1126         * tests/test-dup2.c (main): Enhance test.
1127
1128 2011-01-31  Simon Josefsson  <simon@josefsson.org>
1129
1130         doc: off_t is not available in eglibc 2.11.2 stdio.h.
1131         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
1132         declared by eglibc 2.11.2.
1133         * lib/stdio.in.h: Likewise.
1134
1135 2011-01-31  Eric Blake  <eblake@redhat.com>
1136
1137         ignore-value: add missing test dependency
1138         * tests/test-ignore-value.c: Revert previous change; stdio.h
1139         provides off_t.
1140         * modules/ignore-value-tests (Depends-on): Add missing dependency.
1141
1142 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1143
1144         mktime: clarify long_int width checking
1145         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
1146         the top level, to make it clearer that the assumption about
1147         long_int width is being checked.  See
1148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
1149
1150 2011-01-30  Simon Josefsson  <simon@josefsson.org>
1151
1152         ignore-value: Fix self-test.
1153         * tests/test-ignore-value.c: Include sys/types.h for off_t.
1154
1155 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         TYPE_MAXIMUM: avoid theoretically undefined behavior
1158         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
1159         negative number, which the C Standard says has undefined behavior.
1160         In practice this is not a problem, but might as well do it by the book.
1161         Reported by Rich Felker and Eric Blake; see
1162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
1163         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
1164         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1166         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
1167         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1168         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
1169
1170         mktime: #undef mktime before #defining it
1171         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
1172
1173         mktime: systematically normalize tm_isdst comparisons
1174         * lib/mktime.c (isdst_differ): New function.
1175         (__mktime_internal): Use it systematically for all isdst comparisons.
1176         This completes the fix for libc BZ #6723, and removes the need for
1177         normalizing tm_isdst.  See
1178         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
1179         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
1180
1181         mktime: fix some integer overflow issues and sidestep the rest
1182
1183         This was prompted by a bug report by Benjamin Lindner for MinGW
1184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
1185         His bug is due to signed integer overflow (0 - INT_MIN), and I
1186         I scanned through mktime.c looking for other integer overflow
1187         problems, fixing all the bugs I found.
1188
1189         Although the C Standard says the resulting code is still not safe
1190         in the presence of integer overflow, in practice it should be good
1191         enough for all real-world two's-complement implementations, except
1192         for debugging environments that deliberately trap on integer
1193         overflow (e.g., gcc -ftrapv).
1194
1195         * lib/mktime.c (WRAPV): New macro.
1196         (SHR): Also check that long_int and time_t shift right in the
1197         usual way, before using the fast-but-unportable method.
1198         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
1199         used.  The code already assumed two's complement, so there's
1200         no need to test for alternatives.  All uses removed.
1201         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
1202         the C standard.  Problem reported by Rich Felker in
1203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
1204         (twos_complement_arithmetic): Also check long_int and time_t.
1205         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
1206         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
1207         (__mktime_internal): Avoid integer overflow with unary subtraction
1208         in two instances where -1 - X is an adequate replacement for -X,
1209         since the calculations are approximate.
1210
1211 2011-01-29  Eric Blake  <eblake@redhat.com>
1212
1213         mktime: avoid infinite loop
1214         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
1215         type; behavior is still undefined but portable to all known targets.
1216         Reported by Rich Felker.
1217
1218 2011-01-29  Simon Josefsson  <simon@josefsson.org>
1219
1220         rename, unlink, same-inode: Relicense.
1221         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
1222         * modules/unlink (License): Likewise.
1223         * modules/same-inode (License): Likewise.
1224
1225 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1226
1227         mktime: avoid problems on NetBSD 5 / i386
1228         * lib/mktime.c (long_int): New type.  This works around a problem
1229         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
1230         but time_t is 64 bits, and where I expect the existing code is
1231         wrong in some cases.
1232         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
1233         (ydhms_diff): Bring back the compile-time check for wide-enough
1234         year and yday.
1235
1236         mktime: fix misspelling in comment
1237         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
1238         This merges all recent glibc changes of importance.
1239
1240 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1241
1242         move-if-change: cope with concurrent mv of identical file.
1243         * build-aux/move-if-change (CMPPROG): Accept environment
1244         variable as an override for `cmp'.
1245         (usage): Document CMPPROG.
1246         Adjust comparison to drop stdout.  Cope with failure of mv if
1247         the target file exists and is identical to the source, for
1248         parallel builds.
1249         Report from H.J. Lu against binutils in PR binutils/12283.
1250
1251 2011-01-28  Bruce Korb  <bkorb@gnu.org>
1252
1253         * users.txt: Mention sharutils.
1254
1255 2011-01-28  Simon Josefsson  <simon@josefsson.org>
1256
1257         * users.txt: Mention OATH Toolkit.
1258
1259 2011-01-27  Bruno Haible  <bruno@clisp.org>
1260
1261         Prepare for supporting FreeBSD 10.
1262         * build-aux/config.libpath: Remove handling of freebsd1*.
1263
1264 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
1265
1266         Prepare for supporting FreeBSD 10.
1267         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
1268         match FreeBSD 10.0.
1269
1270 2011-01-27  Bruno Haible  <bruno@clisp.org>
1271
1272         vma-iter, get-rusage-as: Add OpenBSD support.
1273         * modules/vma-iter (configure.ac): Test for mquery.
1274         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
1275         * lib/vma-iter.c: Include <sys/mman.h>.
1276         (vma_iterate): Add an implementation based on mquery().
1277         * lib/resource-ext.h (get_rusage_as): Update comments.
1278         * lib/get-rusage-as.c: Likewise.
1279         * lib/get-rusage-data.c: Likewise.
1280
1281 2011-01-26  Karl Berry  <karl@gnu.org>
1282
1283         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
1284         variables to make it easier to override the makeinfo program used.
1285
1286 2011-01-26  Eric Blake  <eblake@redhat.com>
1287
1288         fcntl: work around Haiku F_DUPFD bugs
1289         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
1290         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
1291         cloexec bit on duplication.
1292         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
1293
1294 2011-01-26  Bruno Haible  <bruno@clisp.org>
1295
1296         Enable memory leak tests on AIX.
1297         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
1298         * tests/test-fprintf-posix3.c (main): Likewise.
1299
1300 2011-01-26  Bruno Haible  <bruno@clisp.org>
1301
1302         Tests for module 'get-rusage-data'.
1303         * modules/get-rusage-data-tests: New file.
1304         * tests/test-get-rusage-data.c: New file.
1305
1306         New module 'get-rusage-data'.
1307         * lib/resource-ext.h (get_rusage_data): New declaration.
1308         * lib/get-rusage-data.c: New file.
1309         * modules/get-rusage-data: New file.
1310
1311 2011-01-25  Bruno Haible  <bruno@clisp.org>
1312
1313         get-rusage-as: Allow for easier testing.
1314         * lib/resource-ext.h (get_rusage_as): Add comment.
1315         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
1316         (main): New function for interactive testing.
1317
1318 2011-01-25  Bruno Haible  <bruno@clisp.org>
1319
1320         vma-iter: Treat Haiku like BeOS.
1321         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
1322         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
1323
1324 2011-01-25  Eric Blake  <eblake@redhat.com>
1325
1326         c-stack: fix regression on cygwin when libsigsegv is present
1327         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
1328
1329 2011-01-24  Bruno Haible  <bruno@clisp.org>
1330
1331         vma-iter: Avoid empty intervals.
1332         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
1333         on an empty interval.
1334
1335 2011-01-24  Jim Meyering  <meyering@redhat.com>
1336
1337         u64: remove unnecessary #include
1338         * lib/u64.h: Don't include <stddef.h>.  It was not used.
1339
1340 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1341
1342         Allow the user to avoid the GNULIB_TEST_* macros.
1343         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
1344
1345 2011-01-23  Bruno Haible  <bruno@clisp.org>
1346
1347         New module 'vma-iter'.
1348         * lib/vma-iter.h: New file.
1349         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
1350         * modules/vma-iter: New file.
1351         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
1352         for get_rusage_as_via_iterator.
1353         (vma_iterate_callback): New function.
1354         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
1355         * modules/get-rusage-as (Depends-on): Add vma-iter.
1356
1357 2011-01-23  Bruno Haible  <bruno@clisp.org>
1358
1359         uninorm: Tweak includes.
1360         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
1361         Reported by Jim Meyering.
1362
1363 2011-01-23  Bruno Haible  <bruno@clisp.org>
1364
1365         get-rusage-as: Improve on NetBSD.
1366         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
1367         /proc, like on FreeBSD.
1368
1369 2011-01-23  Jim Meyering  <meyering@redhat.com>
1370
1371         xreadlink.h: remove unnecessary #include
1372         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
1373
1374         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
1375         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
1376
1377 2011-01-23  Bruno Haible  <bruno@clisp.org>
1378
1379         get-rusage-as: Fix bug.
1380         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
1381         original limit when aborting the first loop.
1382
1383 2011-01-23  Bruno Haible  <bruno@clisp.org>
1384
1385         wctype: Ensure valid C syntax.
1386         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
1387         unconditionally, instead of gl_NEXT_HEADERS conditionally.
1388
1389 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1390
1391         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
1392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
1393         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
1394         as they are needed only for configure's test case.
1395         This removes two unnecessary symbols from config.h.
1396
1397         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
1398         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
1399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
1400         AC_CHECK_HEADERS_ONCE on a header that we also invoke
1401         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
1402         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
1403         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
1404         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1405         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1406         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1407         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1409         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1411         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1412         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1413         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1414         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1415
1416 2011-01-21  Eric Blake  <eblake@redhat.com>
1417
1418         maintainer-makefile: work with older git for submodule check
1419         * top/maint.mk (public-submodule-commit): Rewrite to avoid
1420         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
1421         Reported by Matthias Bolte.
1422
1423         bootstrap: minor portability fixes
1424         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
1425         (usage): Omit leading capital and trailing . on help phrases, per
1426         GNU Coding Standards.
1427         (check_versions, top level): Prefix messages with script name.
1428
1429 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
1430
1431         bootstrap: support --no-git option
1432         * build-aux/bootstrap: Add --no-git option, to be used when
1433         --gnulib-srcdir points to the exact desired checkout.
1434
1435 2011-01-21  Eric Blake  <eblake@redhat.com>
1436
1437         strerror_r-posix: work with glibc 2.13
1438         * lib/strerror_r.c (strerror_r): Fix return type.
1439
1440 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1441             Bruno Haible  <bruno@clisp.org>
1442
1443         uN_strstr: New unit tests.
1444         * modules/unistr/u8-strstr-tests: New file.
1445         * modules/unistr/u16-strstr-tests: New file.
1446         * modules/unistr/u32-strstr-tests: New file.
1447         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
1448         * tests/unistr/test-u8-strstr.c: New file.
1449         * tests/unistr/test-u16-strstr.c: New file.
1450         * tests/unistr/test-u32-strstr.c: New file.
1451
1452 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1453             Bruno Haible  <bruno@clisp.org>
1454
1455         Make uN_strstr functions O(n) worst-case.
1456         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
1457         16-bit and 32-bit unit cases, use the unibyte algorithm from
1458         lib/mbsstr.c.
1459         * lib/unistr/u8-strstr.c: Include <string.h>.
1460         (UNIT_IS_UINT8_T): New macro.
1461         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
1462         (U_STRLEN, U_STRNLEN): New macros.
1463         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
1464         (U_STRLEN, U_STRNLEN): New macros.
1465         * modules/unistr/u8-strstr (Depends-on): Add strstr.
1466         (configure.ac): Update required libunistring version.
1467         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
1468         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
1469         malloca.
1470         (configure.ac): Update required libunistring version.
1471         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
1472         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
1473         malloca.
1474         (configure.ac): Update required libunistring version.
1475
1476 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1477             Bruno Haible  <bruno@clisp.org>
1478
1479         Prepare for faster uN_strstr functions.
1480         * lib/str-kmp.h: Support definable UNITs.
1481         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
1482         needle_len argument.
1483         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
1484         * lib/mbscasestr.c (mbscasestr): Likewise.
1485
1486 2011-01-21  Pádraig Brady <P@draigBrady.com>
1487
1488         malloca-tests: make faster by unsetting MALLOC_PERTURB_
1489         * tests/test-malloca.c (main): Unset the environment variable
1490         to greatly speed up the test.
1491         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
1492         * modules/malloca-tests: Depend on unsetenv.
1493
1494 2011-01-21  Pádraig Brady <P@draigBrady.com>
1495
1496         ignore-value: remove stdint dependency
1497         * lib/ignore-value.h: Remove <stdint.h>
1498         * modules/ignore-value: Remove stdint dependency.
1499
1500 2011-01-21  Jim Meyering  <meyering@redhat.com>
1501
1502         maint.mk: adjust variable name to be consistent with other gl_ vars
1503         * top/maint.mk (gl_public_submodule_commit): Rename the variable
1504         to be lower case.
1505
1506 2011-01-20  Jim Meyering  <meyering@redhat.com>
1507
1508         maint.mk: make "check" depend on public-submodule-commit by default
1509         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
1510
1511 2011-01-20  Bruno Haible  <bruno@clisp.org>
1512
1513         mbfile, mbiter: Complete change from 2008-12-21.
1514         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
1515         * m4/mbiter.m4 (gl_MBITER): Likewise.
1516
1517 2011-01-20  Jim Meyering  <meyering@redhat.com>
1518
1519         init.sh: insert space between each function name and "()"
1520         * tests/init.sh: Make it a little easier to see that a function's
1521         name is "warn_", and not "warn" when looking at the first part of
1522         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
1523
1524 2011-01-20  Jim Meyering  <meyering@redhat.com>
1525
1526         mountlist: clean up code formatting
1527         * lib/mountlist.c (read_file_system_list): Split a long line,
1528         correct bracing style, use NULL in place of "(struct statfs *)0",
1529         don't parenthesize return value, add spaces around "=" and after
1530         ";-in-for-stmt".
1531
1532 2011-01-14  Markus Duft <mduft@gentoo.org>
1533
1534         mountlist: add support for Interix
1535         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
1536         Apply statvfs to all entries of /dev/fs.
1537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
1538         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
1539
1540 2011-01-20  Jim Meyering  <meyering@redhat.com>
1541
1542         maint.mk: improve the public-submodule-commit rule
1543         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
1544         to suppress printing of its commands... unless V=1.
1545         Add git submodule's --quiet option to suppress printing of e.g.,
1546         "Entering gnulib" output.
1547         "cd" into $(srcdir) before running git submodule.
1548
1549 2011-01-20  Bruno Haible  <bruno@clisp.org>
1550
1551         include_next: Fix bug introduced on 2011-01-18.
1552         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
1553         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
1554         ac_cv_header_... variable if the second argument is not 'check'.
1555         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
1556         gl_NEXT_HEADERS_INTERNAL.
1557
1558 2011-01-20  Bruno Haible  <bruno@clisp.org>
1559
1560         Allow the user to avoid the GNULIB_TEST_* macros.
1561         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
1562         Suggested by Paul Eggert.
1563
1564 2011-01-14  Jim Meyering  <meyering@redhat.com>
1565
1566         bootstrap: avoid failure when there is no .gitmodules file
1567         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
1568         has been assigned to, even when its value is the empty string.
1569         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
1570         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
1571         Reported by John W. Eaton <jwe@gnu.org>.
1572
1573 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
1574
1575         assume <ctype.h>, ..., <time.h> exist
1576         For years gnulib has been assuming the existence of the headers
1577         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
1578         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
1579         them, since they don't appear to be needed.
1580         * README (Portability guidelines): Document this.
1581         * lib/flock.c: Assume <fcntl.h> exists.
1582         * lib/regex_internal.h: Assume <locale.h> exists.
1583         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
1584         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
1585         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
1586         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
1587         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
1588         * m4/regex.m4 (gl_REGEX): Likewise.
1589         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
1590         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
1591         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
1592         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
1593         * tests/test-argp.c: Likewise.
1594         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
1595
1596         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
1597         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
1598         AA_APPLE_UNIVERSAL_BUILD.  See
1599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
1600         * NEWS: Document this.
1601
1602 2011-01-19  Eric Blake  <eblake@redhat.com>
1603
1604         c-stack: assume stack overflow if SA_SIGINFO unsupported
1605         * lib/c-stack.c (SIGACTION_WORKS): Rename...
1606         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
1607         sigaction will work.
1608         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
1609         behavior match Linux.
1610         * tests/test-c-stack.c (main): Prefer NULL for pointers.
1611
1612         stdbool-tests: accomodate Haiku
1613         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
1614
1615         binary-io: fix O_TEXT on Haiku
1616         * modules/binary-io (Depends-on): Add fcntl-h.
1617         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
1618         than blindly undefining O_TEXT.
1619         Reported by Scott McCreary.
1620
1621 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1622
1623         include_next: do not check for standard headers like stddef.h
1624
1625         I found this problem when modifying Emacs to use gnulib.
1626         I noticed that it added HAVE_STDDEF_H to config.h, even though
1627         gnulib always assumes <stddef.h> exists as per README and this
1628         symbol is unnecessary.
1629         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
1630         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
1631         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
1632         faster for headers like stddef.h that are known to exist.
1633         (gl_CHECK_NEXT_HEADERS): Use it.
1634         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
1635         rather than gl_CHECK_NEXT_HEADERS.
1636         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
1637         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
1638
1639 2011-01-18  Eric Blake  <eblake@redhat.com>
1640
1641         ansi-c++-opt: skip C++ dependency style if C++ is unused
1642         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
1643         tests when we know C++ compilation is not desired.
1644         Reported by Scott McCreary.
1645
1646 2011-01-18  Bruno Haible  <bruno@clisp.org>
1647
1648         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
1649         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
1650         (main): Perform test also when getrlimit and setrlimit don't exist or
1651         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
1652         limiting the address space size using setrlimit, compare the address
1653         space size before and after the the test.
1654         * tests/test-dprintf-posix2.c: Likewise.
1655         * tests/test-fprintf-posix3.sh: Update skip messages.
1656         * tests/test-dprintf-posix2.sh: Likewise.
1657         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
1658         * modules/dprintf-posix-tests (Depends-on): Likewise.
1659         Reported by Bruce Korb <bkorb@gnu.org> and
1660         Gary V. Vaughan <gary@gnu.org>.
1661
1662 2011-01-18  Bruno Haible  <bruno@clisp.org>
1663
1664         get-rusage-as: Improvement for Cygwin.
1665         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
1666         areas that are merely reserved.
1667
1668 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1669
1670         strftime: remove dependencies on multibyte modules
1671
1672         strftime depended on mbrlen, mbsinit, and wchar, but these modules
1673         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
1674         only if __osf__ is defined, and I suspect OSF doesn't need these
1675         other modules.  If my guess is wrong, we'll need to come up with a
1676         variant of strftime that doesn't need the multibyte modules.
1677
1678         I discovered this problem when attempting modify Emacs to use the
1679         strftime module.  With the previous gnulib, this caused Emacs to
1680         need 31 new files, ranging from lib/config.charset to
1681         m4/wint_t.m4.  This was overkill and I expect would be offputting
1682         to the Emacs maintainers.  After this change, only 6 new files are
1683         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
1684         stdbool.m4, and tm_gmtoff.m4.
1685
1686         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
1687         Suggested by Bruno Haible in
1688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
1689         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
1690         and do not check for wchar.h.
1691         * modules/strftime (Files): Remove m4/mbstate_t.m4.
1692         (Depends-on): Remove mbrlen, mbsinit, wchar.
1693
1694 2011-01-18  Bruno Haible  <bruno@clisp.org>
1695
1696         Tests for module 'get-rusage-as'.
1697         * modules/get-rusage-as-tests: New file.
1698         * tests/test-get-rusage-as.c: New file.
1699
1700         New module 'get-rusage-as'.
1701         * modules/get-rusage-as: New file.
1702         * lib/resource-ext.h: New file.
1703         * lib/get-rusage-as.c: New file.
1704
1705 2011-01-17  Eric Blake  <eblake@redhat.com>
1706
1707         sigaction: relax license from LGPLv3+ to LGPLv2+
1708         * modules/sigaction (License): Relax to LGPLv2+.
1709
1710 2011-01-14  Bruno Haible  <bruno@clisp.org>
1711
1712         filemode: Make function declarations usable in C++ mode.
1713         * lib/filemode.h: Enclose function declarations in extern "C" block.
1714         Reported by John W. Eaton <jwe@gnu.org>.
1715
1716 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
1717
1718         save-cwd: no longer include "xgetcwd.h"
1719         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
1720         This avoids a compilation failure in projects that use save-cwd
1721         without also using the xgetcwd module.
1722
1723 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1724
1725         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
1726         This is so that a program like Emacs, which needs only dtoastr,
1727         does not have to bother with distributing and compiling ftoastr
1728         and ldtoastr.
1729         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
1730         * modules/dtoastr, modules/ldtoastr: New files.
1731         * modules/ftoastr: Now works just for 'float'.
1732         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
1733         (Makefile.am): Remove ftoastr.h (not needed and no effect),
1734         dtoastr.c, ldtoastr.c.
1735
1736 2011-01-11  Jim Meyering  <meyering@redhat.com>
1737
1738         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
1739         There is no need to work around the lack of the fchdir function,
1740         since gnulib can now provide a replacement when required.
1741         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
1742         * modules/save-cwd (Depends-on): Add fchdir.
1743
1744 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1745
1746         openat, save-cwd: avoid xmalloc
1747
1748         This removes a direct (but undocumented) dependency of openat on
1749         xalloc, along with an indirect dependency via save-cwd.  It also
1750         removes a dependency of save-cwd on xgetcwd, and thereby
1751         indirectly on xalloc.  This change causes the openat substitute
1752         to fall back on save_cwd when memory is tight, and for save_cwd to
1753         fail instead of dying when memory is tight, but that's good enough.
1754         Problem and initial idea for fix reported by Bastien Roucaries in
1755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
1756
1757         * lib/openat-proc.c: Include stdlib.h (for malloc), not
1758         xalloc.h (for xmalloc).
1759         (openat_proc_name): Use malloc, not xmalloc.
1760         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
1761         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
1762
1763         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
1764         This avoids heap allocation for file names whose lengths are in
1765         the range 512..1023, with the upper bound increasing to at most
1766         4031 depending on the platform's PATH_MAX.  (We do not want
1767         pathmax.h here as it might supply a non-constant PATH_MAX.)
1768         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
1769         Perhaps they should be moved to malloca.h?
1770         (OPENAT_BUFFER_SIZE): Use them.
1771
1772 2011-01-10  Bruno Haible  <bruno@clisp.org>
1773
1774         doc: Update users.txt.
1775         * users.txt: Add recutils.
1776
1777 2011-01-09  Karl Berry  <karl@gnu.org>
1778
1779         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
1780
1781         * doc/configmake.texi: New file.
1782         * doc/gnulib.texi: Include it.
1783         * modules/configmake: Move documentation from here.
1784
1785 2011-01-09  Bruno Haible  <bruno@clisp.org>
1786
1787         Update to Unicode 6.0.0.
1788         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
1789         (get_lbp): Update for Unicode 6.0.0.
1790         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
1791         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
1792         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
1793         U+11001, U+11038..U+11046. Remove U+06DE.
1794         (uc_width): Fix bounds of planes.
1795         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1796         lib/uniwidth/width.c.
1797         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
1798         trailing whitespace removed.
1799         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
1800         without comments, but with the original copyright notice.
1801         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
1802         * lib/unicase/ignorable.h: Likewise.
1803         * lib/unicase/tocasefold.h: Likewise.
1804         * lib/unicase/tolower.h: Likewise.
1805         * lib/unicase/totitle.h: Likewise.
1806         * lib/unicase/toupper.h: Likewise.
1807         * lib/unictype/bidi_of.h: Likewise.
1808         * lib/unictype/blocks.h: Likewise.
1809         * lib/unictype/categ_C.h: Likewise.
1810         * lib/unictype/categ_Cn.h: Likewise.
1811         * lib/unictype/categ_L.h: Likewise.
1812         * lib/unictype/categ_Ll.h: Likewise.
1813         * lib/unictype/categ_Lm.h: Likewise.
1814         * lib/unictype/categ_Lo.h: Likewise.
1815         * lib/unictype/categ_Lu.h: Likewise.
1816         * lib/unictype/categ_M.h: Likewise.
1817         * lib/unictype/categ_Mc.h: Likewise.
1818         * lib/unictype/categ_Me.h: Likewise.
1819         * lib/unictype/categ_Mn.h: Likewise.
1820         * lib/unictype/categ_N.h: Likewise.
1821         * lib/unictype/categ_Nd.h: Likewise.
1822         * lib/unictype/categ_No.h: Likewise.
1823         * lib/unictype/categ_P.h: Likewise.
1824         * lib/unictype/categ_Po.h: Likewise.
1825         * lib/unictype/categ_S.h: Likewise.
1826         * lib/unictype/categ_Sc.h: Likewise.
1827         * lib/unictype/categ_Sk.h: Likewise.
1828         * lib/unictype/categ_Sm.h: Likewise.
1829         * lib/unictype/categ_So.h: Likewise.
1830         * lib/unictype/categ_of.h: Likewise.
1831         * lib/unictype/combining.h: Likewise.
1832         * lib/unictype/ctype_alnum.h: Likewise.
1833         * lib/unictype/ctype_alpha.h: Likewise.
1834         * lib/unictype/ctype_graph.h: Likewise.
1835         * lib/unictype/ctype_lower.h: Likewise.
1836         * lib/unictype/ctype_print.h: Likewise.
1837         * lib/unictype/ctype_punct.h: Likewise.
1838         * lib/unictype/ctype_upper.h: Likewise.
1839         * lib/unictype/decdigit.h: Likewise.
1840         * lib/unictype/digit.h: Likewise.
1841         * lib/unictype/numeric.h: Likewise.
1842         * lib/unictype/pr_alphabetic.h: Likewise.
1843         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1844         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1845         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1846         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1847         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1848         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1849         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1850         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1851         * lib/unictype/pr_case_ignorable.h: Likewise.
1852         * lib/unictype/pr_cased.h: Likewise.
1853         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
1854         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
1855         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
1856         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
1857         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
1858         * lib/unictype/pr_combining.h: Likewise.
1859         * lib/unictype/pr_composite.h: Likewise.
1860         * lib/unictype/pr_currency_symbol.h: Likewise.
1861         * lib/unictype/pr_decimal_digit.h: Likewise.
1862         * lib/unictype/pr_deprecated.h: Likewise.
1863         * lib/unictype/pr_format_control.h: Likewise.
1864         * lib/unictype/pr_grapheme_base.h: Likewise.
1865         * lib/unictype/pr_grapheme_extend.h: Likewise.
1866         * lib/unictype/pr_grapheme_link.h: Likewise.
1867         * lib/unictype/pr_id_continue.h: Likewise.
1868         * lib/unictype/pr_id_start.h: Likewise.
1869         * lib/unictype/pr_ideographic.h: Likewise.
1870         * lib/unictype/pr_lowercase.h: Likewise.
1871         * lib/unictype/pr_math.h: Likewise.
1872         * lib/unictype/pr_numeric.h: Likewise.
1873         * lib/unictype/pr_other_alphabetic.h: Likewise.
1874         * lib/unictype/pr_other_id_continue.h: Likewise.
1875         * lib/unictype/pr_other_math.h: Likewise.
1876         * lib/unictype/pr_punctuation.h: Likewise.
1877         * lib/unictype/pr_sentence_terminal.h: Likewise.
1878         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1879         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1880         * lib/unictype/pr_unified_ideograph.h: Likewise.
1881         * lib/unictype/pr_uppercase.h: Likewise.
1882         * lib/unictype/pr_xid_continue.h: Likewise.
1883         * lib/unictype/pr_xid_start.h: Likewise.
1884         * lib/unictype/scripts.h: Likewise.
1885         * lib/unictype/scripts_byname.gperf: Likewise.
1886         * lib/unictype/sy_java_ident.h: Likewise.
1887         * lib/unigbrk/gbrkprop.h: Likewise.
1888         * lib/unilbrk/lbrkprop1.h: Likewise.
1889         * lib/unilbrk/lbrkprop2.h: Likewise.
1890         * lib/uninorm/decomposition-table2.h: Likewise.
1891         * lib/uniwbrk/wbrkprop.h: Likewise.
1892         * tests/unicase/test-cased.c: Likewise.
1893         * tests/unicase/test-ignorable.c: Likewise.
1894         * tests/unicase/test-uc_tolower.c: Likewise.
1895         * tests/unicase/test-uc_totitle.c: Likewise.
1896         * tests/unicase/test-uc_toupper.c: Likewise.
1897         * tests/unictype/test-categ_C.c: Likewise.
1898         * tests/unictype/test-categ_Cn.c: Likewise.
1899         * tests/unictype/test-categ_L.c: Likewise.
1900         * tests/unictype/test-categ_Ll.c: Likewise.
1901         * tests/unictype/test-categ_Lm.c: Likewise.
1902         * tests/unictype/test-categ_Lo.c: Likewise.
1903         * tests/unictype/test-categ_Lu.c: Likewise.
1904         * tests/unictype/test-categ_M.c: Likewise.
1905         * tests/unictype/test-categ_Mc.c: Likewise.
1906         * tests/unictype/test-categ_Me.c: Likewise.
1907         * tests/unictype/test-categ_Mn.c: Likewise.
1908         * tests/unictype/test-categ_N.c: Likewise.
1909         * tests/unictype/test-categ_Nd.c: Likewise.
1910         * tests/unictype/test-categ_No.c: Likewise.
1911         * tests/unictype/test-categ_P.c: Likewise.
1912         * tests/unictype/test-categ_Po.c: Likewise.
1913         * tests/unictype/test-categ_S.c: Likewise.
1914         * tests/unictype/test-categ_Sc.c: Likewise.
1915         * tests/unictype/test-categ_Sk.c: Likewise.
1916         * tests/unictype/test-categ_Sm.c: Likewise.
1917         * tests/unictype/test-categ_So.c: Likewise.
1918         * tests/unictype/test-ctype_alnum.c: Likewise.
1919         * tests/unictype/test-ctype_alpha.c: Likewise.
1920         * tests/unictype/test-ctype_graph.c: Likewise.
1921         * tests/unictype/test-ctype_lower.c: Likewise.
1922         * tests/unictype/test-ctype_print.c: Likewise.
1923         * tests/unictype/test-ctype_punct.c: Likewise.
1924         * tests/unictype/test-ctype_upper.c: Likewise.
1925         * tests/unictype/test-decdigit.h: Likewise.
1926         * tests/unictype/test-digit.h: Likewise.
1927         * tests/unictype/test-numeric.h: Likewise.
1928         * tests/unictype/test-pr_alphabetic.c: Likewise.
1929         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1930         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1931         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1932         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1933         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1934         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1935         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1936         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1937         * tests/unictype/test-pr_case_ignorable.c: Likewise.
1938         * tests/unictype/test-pr_cased.c: Likewise.
1939         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
1940         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
1941         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
1942         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
1943         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
1944         * tests/unictype/test-pr_combining.c: Likewise.
1945         * tests/unictype/test-pr_composite.c: Likewise.
1946         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1947         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1948         * tests/unictype/test-pr_deprecated.c: Likewise.
1949         * tests/unictype/test-pr_format_control.c: Likewise.
1950         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1951         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1952         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1953         * tests/unictype/test-pr_id_continue.c: Likewise.
1954         * tests/unictype/test-pr_id_start.c: Likewise.
1955         * tests/unictype/test-pr_ideographic.c: Likewise.
1956         * tests/unictype/test-pr_lowercase.c: Likewise.
1957         * tests/unictype/test-pr_math.c: Likewise.
1958         * tests/unictype/test-pr_numeric.c: Likewise.
1959         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1960         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1961         * tests/unictype/test-pr_other_math.c: Likewise.
1962         * tests/unictype/test-pr_punctuation.c: Likewise.
1963         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1964         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1965         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1966         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1967         * tests/unictype/test-pr_uppercase.c: Likewise.
1968         * tests/unictype/test-pr_xid_continue.c: Likewise.
1969         * tests/unictype/test-pr_xid_start.c: Likewise.
1970         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1971         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1972         changes.
1973         * lib/unictype/categ_Cc.h: Likewise.
1974         * lib/unictype/categ_Cf.h: Likewise.
1975         * lib/unictype/categ_Co.h: Likewise.
1976         * lib/unictype/categ_Cs.h: Likewise.
1977         * lib/unictype/categ_Lt.h: Likewise.
1978         * lib/unictype/categ_Nl.h: Likewise.
1979         * lib/unictype/categ_Pc.h: Likewise.
1980         * lib/unictype/categ_Pd.h: Likewise.
1981         * lib/unictype/categ_Pe.h: Likewise.
1982         * lib/unictype/categ_Pf.h: Likewise.
1983         * lib/unictype/categ_Pi.h: Likewise.
1984         * lib/unictype/categ_Ps.h: Likewise.
1985         * lib/unictype/categ_Z.h: Likewise.
1986         * lib/unictype/categ_Zl.h: Likewise.
1987         * lib/unictype/categ_Zp.h: Likewise.
1988         * lib/unictype/categ_Zs.h: Likewise.
1989         * lib/unictype/ctype_blank.h: Likewise.
1990         * lib/unictype/ctype_cntrl.h: Likewise.
1991         * lib/unictype/ctype_digit.h: Likewise.
1992         * lib/unictype/ctype_space.h: Likewise.
1993         * lib/unictype/ctype_xdigit.h: Likewise.
1994         * lib/unictype/mirror.h: Likewise.
1995         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1996         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1997         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1998         * lib/unictype/pr_bidi_control.h: Likewise.
1999         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2000         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2001         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2002         * lib/unictype/pr_bidi_pdf.h: Likewise.
2003         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2004         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2005         * lib/unictype/pr_dash.h: Likewise.
2006         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2007         * lib/unictype/pr_diacritic.h: Likewise.
2008         * lib/unictype/pr_extender.h: Likewise.
2009         * lib/unictype/pr_hex_digit.h: Likewise.
2010         * lib/unictype/pr_hyphen.h: Likewise.
2011         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2012         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2013         * lib/unictype/pr_ignorable_control.h: Likewise.
2014         * lib/unictype/pr_iso_control.h: Likewise.
2015         * lib/unictype/pr_join_control.h: Likewise.
2016         * lib/unictype/pr_left_of_pair.h: Likewise.
2017         * lib/unictype/pr_line_separator.h: Likewise.
2018         * lib/unictype/pr_logical_order_exception.h: Likewise.
2019         * lib/unictype/pr_non_break.h: Likewise.
2020         * lib/unictype/pr_not_a_character.h: Likewise.
2021         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2022         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2023         * lib/unictype/pr_other_id_start.h: Likewise.
2024         * lib/unictype/pr_other_lowercase.h: Likewise.
2025         * lib/unictype/pr_other_uppercase.h: Likewise.
2026         * lib/unictype/pr_paired_punctuation.h: Likewise.
2027         * lib/unictype/pr_paragraph_separator.h: Likewise.
2028         * lib/unictype/pr_pattern_syntax.h: Likewise.
2029         * lib/unictype/pr_pattern_white_space.h: Likewise.
2030         * lib/unictype/pr_private_use.h: Likewise.
2031         * lib/unictype/pr_quotation_mark.h: Likewise.
2032         * lib/unictype/pr_radical.h: Likewise.
2033         * lib/unictype/pr_soft_dotted.h: Likewise.
2034         * lib/unictype/pr_space.h: Likewise.
2035         * lib/unictype/pr_titlecase.h: Likewise.
2036         * lib/unictype/pr_variation_selector.h: Likewise.
2037         * lib/unictype/pr_white_space.h: Likewise.
2038         * lib/unictype/pr_zero_width.h: Likewise.
2039         * lib/unictype/sy_c_ident.h: Likewise.
2040         * lib/unictype/sy_c_whitespace.h: Likewise.
2041         * lib/unictype/sy_java_whitespace.h: Likewise.
2042         * lib/uninorm/composition-table.gperf: Likewise.
2043         * lib/uninorm/decomposition-table1.h: Likewise.
2044         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
2045         LB8.
2046         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2047         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2048         * modules/unictype/*: Bump version number of expected libunistring
2049         version.
2050
2051 2011-01-09  Bruno Haible  <bruno@clisp.org>
2052
2053         Update to Unicode 5.2.0.
2054         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
2055         trailing whitespace removed.
2056
2057 2011-01-09  Bruno Haible  <bruno@clisp.org>
2058
2059         New Unicode character properties, from Unicode 5.2.0.
2060         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
2061         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
2062         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
2063         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
2064         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
2065         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
2066         uc_is_property_cased, uc_is_property_case_ignorable,
2067         uc_is_property_changes_when_lowercased,
2068         uc_is_property_changes_when_uppercased,
2069         uc_is_property_changes_when_titlecased,
2070         uc_is_property_changes_when_casefolded,
2071         uc_is_property_changes_when_casemapped): New declarations.
2072         * lib/unictype/pr_byname.gperf: Add the new properties.
2073         * modules/unictype/property-byname (Depends-on): Depend on the new
2074         properties modules.
2075         * modules/unictype/property-all (Depends-on): Likewise.
2076         * MODULES.html.sh (Unicode string functions): Add
2077         unictype/property-case-ignorable, unictype/property-cased,
2078         unictype/property-changes-when-casefolded,
2079         unictype/property-changes-when-casemapped,
2080         unictype/property-changes-when-lowercased,
2081         unictype/property-changes-when-titlecased,
2082         unictype/property-changes-when-uppercased.
2083
2084         New module 'unictype/property-changes-when-casemapped'.
2085         * modules/unictype/property-changes-when-casemapped: New file.
2086         * lib/unictype/pr_changes_when_casemapped.c: New file.
2087         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
2088         generated by gen-uni-tables.
2089         * modules/unictype/property-changes-when-casemapped-tests: New file.
2090         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
2091         automatically generated by gen-uni-tables.
2092
2093         New module 'unictype/property-changes-when-casefolded'.
2094         * modules/unictype/property-changes-when-casefolded: New file.
2095         * lib/unictype/pr_changes_when_casefolded.c: New file.
2096         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
2097         generated by gen-uni-tables.
2098         * modules/unictype/property-changes-when-casefolded-tests: New file.
2099         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
2100         automatically generated by gen-uni-tables.
2101
2102         New module 'unictype/property-changes-when-titlecased'.
2103         * modules/unictype/property-changes-when-titlecased: New file.
2104         * lib/unictype/pr_changes_when_titlecased.c: New file.
2105         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
2106         generated by gen-uni-tables.
2107         * modules/unictype/property-changes-when-titlecased-tests: New file.
2108         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
2109         automatically generated by gen-uni-tables.
2110
2111         New module 'unictype/property-changes-when-uppercased'.
2112         * modules/unictype/property-changes-when-uppercased: New file.
2113         * lib/unictype/pr_changes_when_uppercased.c: New file.
2114         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
2115         generated by gen-uni-tables.
2116         * modules/unictype/property-changes-when-uppercased-tests: New file.
2117         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
2118         automatically generated by gen-uni-tables.
2119
2120         New module 'unictype/property-changes-when-lowercased'.
2121         * modules/unictype/property-changes-when-lowercased: New file.
2122         * lib/unictype/pr_changes_when_lowercased.c: New file.
2123         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
2124         generated by gen-uni-tables.
2125         * modules/unictype/property-changes-when-lowercased-tests: New file.
2126         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
2127         automatically generated by gen-uni-tables.
2128
2129         New module 'unictype/property-case-ignorable'.
2130         * modules/unictype/property-case-ignorable: New file.
2131         * lib/unictype/pr_case_ignorable.c: New file.
2132         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
2133         by gen-uni-tables.
2134         * modules/unictype/property-case-ignorable-tests: New file.
2135         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
2136         generated by gen-uni-tables.
2137
2138         New module 'unictype/property-cased'.
2139         * modules/unictype/property-cased: New file.
2140         * lib/unictype/pr_cased.c: New file.
2141         * lib/unictype/pr_cased.h: New file, automatically generated by
2142         gen-uni-tables.
2143         * modules/unictype/property-cased-tests: New file.
2144         * tests/unictype/test-pr_cased.c: New file, automatically generated by
2145         gen-uni-tables.
2146
2147 2011-01-09  Bruno Haible  <bruno@clisp.org>
2148
2149         Update to Unicode 5.2.0.
2150         * lib/gen-uni-tables.c (output_predicate, output_category,
2151         output_combclass, output_bidi_category, output_decimal_digit_test,
2152         output_decimal_digit, output_digit_test, output_digit,
2153         output_numeric_test, output_numeric, output_mirror, output_scripts,
2154         output_scripts_byname, output_blocks, output_ident_category): Fix
2155         comment header.
2156         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
2157         get_wbp.
2158         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
2159         items.
2160         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
2161         Changes_When_Lowercased, Changes_When_Uppercased,
2162         Changes_When_Titlecased, Changes_When_Casefolded,
2163         Changes_When_Casemapped.
2164         (is_property_alphabetic, is_property_default_ignorable_code_point):
2165         Update for Unicode 5.2.0.
2166         (is_property_cased, is_property_case_ignorable,
2167         is_property_changes_when_lowercased,
2168         is_property_changes_when_uppercased,
2169         is_property_changes_when_titlecased,
2170         is_property_changes_when_casefolded,
2171         is_property_changes_when_casemapped): New functions.
2172         (output_properties): Output also the properties cased, case_ignorable,
2173         changes_when_lowercased, changes_when_uppercased,
2174         changes_when_titlecased, changes_when_casefolded,
2175         changes_when_casemapped.
2176         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
2177         Unicode TR#11 revision 17 -> 19.
2178         (LBP_CP): New enumeration value.
2179         (LBP_*): Adjust values accordingly.
2180         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2181         TR#14 revision 22 -> 24.
2182         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
2183         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
2184         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2185         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
2186         is_WBP_MIDLETTER.
2187         (output_composition_tables): Allow for 24 bits instead of 16 bits in
2188         the code1 and code2 of each composition rule.
2189         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
2190         * lib/unicase/ignorable.h: Likewise.
2191         * lib/unicase/tocasefold.h: Likewise.
2192         * lib/unicase/tolower.h: Likewise.
2193         * lib/unicase/totitle.h: Likewise.
2194         * lib/unicase/toupper.h: Likewise.
2195         * lib/unictype/bidi_of.h: Likewise.
2196         * lib/unictype/blocks.h: Likewise.
2197         * lib/unictype/categ_C.h: Likewise.
2198         * lib/unictype/categ_Cf.h: Likewise.
2199         * lib/unictype/categ_Cn.h: Likewise.
2200         * lib/unictype/categ_L.h: Likewise.
2201         * lib/unictype/categ_Ll.h: Likewise.
2202         * lib/unictype/categ_Lm.h: Likewise.
2203         * lib/unictype/categ_Lo.h: Likewise.
2204         * lib/unictype/categ_Lu.h: Likewise.
2205         * lib/unictype/categ_M.h: Likewise.
2206         * lib/unictype/categ_Mc.h: Likewise.
2207         * lib/unictype/categ_Mn.h: Likewise.
2208         * lib/unictype/categ_N.h: Likewise.
2209         * lib/unictype/categ_Nd.h: Likewise.
2210         * lib/unictype/categ_Nl.h: Likewise.
2211         * lib/unictype/categ_No.h: Likewise.
2212         * lib/unictype/categ_P.h: Likewise.
2213         * lib/unictype/categ_Pd.h: Likewise.
2214         * lib/unictype/categ_Po.h: Likewise.
2215         * lib/unictype/categ_S.h: Likewise.
2216         * lib/unictype/categ_Sc.h: Likewise.
2217         * lib/unictype/categ_So.h: Likewise.
2218         * lib/unictype/categ_of.h: Likewise.
2219         * lib/unictype/combining.h: Likewise.
2220         * lib/unictype/ctype_alnum.h: Likewise.
2221         * lib/unictype/ctype_alpha.h: Likewise.
2222         * lib/unictype/ctype_graph.h: Likewise.
2223         * lib/unictype/ctype_lower.h: Likewise.
2224         * lib/unictype/ctype_print.h: Likewise.
2225         * lib/unictype/ctype_punct.h: Likewise.
2226         * lib/unictype/ctype_upper.h: Likewise.
2227         * lib/unictype/decdigit.h: Likewise.
2228         * lib/unictype/digit.h: Likewise.
2229         * lib/unictype/numeric.h: Likewise.
2230         * lib/unictype/pr_alphabetic.h: Likewise.
2231         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2232         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2233         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2234         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2235         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2236         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2237         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2238         * lib/unictype/pr_combining.h: Likewise.
2239         * lib/unictype/pr_composite.h: Likewise.
2240         * lib/unictype/pr_currency_symbol.h: Likewise.
2241         * lib/unictype/pr_dash.h: Likewise.
2242         * lib/unictype/pr_decimal_digit.h: Likewise.
2243         * lib/unictype/pr_deprecated.h: Likewise.
2244         * lib/unictype/pr_diacritic.h: Likewise.
2245         * lib/unictype/pr_extender.h: Likewise.
2246         * lib/unictype/pr_grapheme_base.h: Likewise.
2247         * lib/unictype/pr_grapheme_extend.h: Likewise.
2248         * lib/unictype/pr_grapheme_link.h: Likewise.
2249         * lib/unictype/pr_id_continue.h: Likewise.
2250         * lib/unictype/pr_id_start.h: Likewise.
2251         * lib/unictype/pr_ideographic.h: Likewise.
2252         * lib/unictype/pr_ignorable_control.h: Likewise.
2253         * lib/unictype/pr_logical_order_exception.h: Likewise.
2254         * lib/unictype/pr_lowercase.h: Likewise.
2255         * lib/unictype/pr_numeric.h: Likewise.
2256         * lib/unictype/pr_other_alphabetic.h: Likewise.
2257         * lib/unictype/pr_punctuation.h: Likewise.
2258         * lib/unictype/pr_sentence_terminal.h: Likewise.
2259         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2260         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2261         * lib/unictype/pr_unified_ideograph.h: Likewise.
2262         * lib/unictype/pr_uppercase.h: Likewise.
2263         * lib/unictype/pr_xid_continue.h: Likewise.
2264         * lib/unictype/pr_xid_start.h: Likewise.
2265         * lib/unictype/pr_zero_width.h: Likewise.
2266         * lib/unictype/scripts.h: Likewise.
2267         * lib/unictype/scripts_byname.gperf: Likewise.
2268         * lib/unictype/sy_java_ident.h: Likewise.
2269         * lib/unigbrk/gbrkprop.h: Likewise.
2270         * lib/unilbrk/lbrkprop1.h: Likewise.
2271         * lib/unilbrk/lbrkprop2.h: Likewise.
2272         * lib/unilbrk/lbrktables.h: Likewise.
2273         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
2274         LBP_CP. Implement rule LB30.
2275         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
2276         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
2277         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
2278         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
2279         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
2280         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
2281         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
2282         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
2283         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
2284         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
2285         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
2286         bits instead of 16 bits in the code1 and code2 of each composition
2287         rule.
2288         (uc_composition): Update for Unicode 5.2.0.
2289         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
2290         * lib/uninorm/decomposition-table2.h: Likewise.
2291         * lib/uniwbrk/wbrkprop.h: Likewise.
2292         * tests/unicase/test-cased.c: Likewise.
2293         * tests/unicase/test-ignorable.c: Likewise.
2294         * tests/unicase/test-uc_tolower.c: Likewise.
2295         * tests/unicase/test-uc_totitle.c: Likewise.
2296         * tests/unicase/test-uc_toupper.c: Likewise.
2297         * tests/unictype/test-categ_C.c: Likewise.
2298         * tests/unictype/test-categ_Cf.c: Likewise.
2299         * tests/unictype/test-categ_Cn.c: Likewise.
2300         * tests/unictype/test-categ_L.c: Likewise.
2301         * tests/unictype/test-categ_Ll.c: Likewise.
2302         * tests/unictype/test-categ_Lm.c: Likewise.
2303         * tests/unictype/test-categ_Lo.c: Likewise.
2304         * tests/unictype/test-categ_Lu.c: Likewise.
2305         * tests/unictype/test-categ_M.c: Likewise.
2306         * tests/unictype/test-categ_Mc.c: Likewise.
2307         * tests/unictype/test-categ_Mn.c: Likewise.
2308         * tests/unictype/test-categ_N.c: Likewise.
2309         * tests/unictype/test-categ_Nd.c: Likewise.
2310         * tests/unictype/test-categ_Nl.c: Likewise.
2311         * tests/unictype/test-categ_No.c: Likewise.
2312         * tests/unictype/test-categ_P.c: Likewise.
2313         * tests/unictype/test-categ_Pd.c: Likewise.
2314         * tests/unictype/test-categ_Po.c: Likewise.
2315         * tests/unictype/test-categ_S.c: Likewise.
2316         * tests/unictype/test-categ_Sc.c: Likewise.
2317         * tests/unictype/test-categ_So.c: Likewise.
2318         * tests/unictype/test-ctype_alnum.c: Likewise.
2319         * tests/unictype/test-ctype_alpha.c: Likewise.
2320         * tests/unictype/test-ctype_graph.c: Likewise.
2321         * tests/unictype/test-ctype_lower.c: Likewise.
2322         * tests/unictype/test-ctype_print.c: Likewise.
2323         * tests/unictype/test-ctype_punct.c: Likewise.
2324         * tests/unictype/test-ctype_upper.c: Likewise.
2325         * tests/unictype/test-decdigit.h: Likewise.
2326         * tests/unictype/test-digit.h: Likewise.
2327         * tests/unictype/test-numeric.h: Likewise.
2328         * tests/unictype/test-pr_alphabetic.c: Likewise.
2329         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2330         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2331         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2332         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2333         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2334         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2335         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2336         * tests/unictype/test-pr_combining.c: Likewise.
2337         * tests/unictype/test-pr_composite.c: Likewise.
2338         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2339         * tests/unictype/test-pr_dash.c: Likewise.
2340         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2341         * tests/unictype/test-pr_deprecated.c: Likewise.
2342         * tests/unictype/test-pr_diacritic.c: Likewise.
2343         * tests/unictype/test-pr_extender.c: Likewise.
2344         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2345         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2346         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2347         * tests/unictype/test-pr_id_continue.c: Likewise.
2348         * tests/unictype/test-pr_id_start.c: Likewise.
2349         * tests/unictype/test-pr_ideographic.c: Likewise.
2350         * tests/unictype/test-pr_ignorable_control.c: Likewise.
2351         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2352         * tests/unictype/test-pr_lowercase.c: Likewise.
2353         * tests/unictype/test-pr_numeric.c: Likewise.
2354         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2355         * tests/unictype/test-pr_punctuation.c: Likewise.
2356         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2357         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2358         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2359         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2360         * tests/unictype/test-pr_uppercase.c: Likewise.
2361         * tests/unictype/test-pr_xid_continue.c: Likewise.
2362         * tests/unictype/test-pr_xid_start.c: Likewise.
2363         * tests/unictype/test-pr_zero_width.c: Likewise.
2364         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2365         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
2366         changed behaviour: line breaking is now disallowed between a letter
2367         or '=' and '('.
2368         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2369         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2370         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2371         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
2372         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2373         lib/uniwidth/width.c.
2374         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
2375         without comments, but with the original copyright notice.
2376         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2377         changes.
2378         * lib/unictype/categ_Cc.h: Likewise.
2379         * lib/unictype/categ_Co.h: Likewise.
2380         * lib/unictype/categ_Cs.h: Likewise.
2381         * lib/unictype/categ_Lt.h: Likewise.
2382         * lib/unictype/categ_Me.h: Likewise.
2383         * lib/unictype/categ_Pc.h: Likewise.
2384         * lib/unictype/categ_Pe.h: Likewise.
2385         * lib/unictype/categ_Pf.h: Likewise.
2386         * lib/unictype/categ_Pi.h: Likewise.
2387         * lib/unictype/categ_Ps.h: Likewise.
2388         * lib/unictype/categ_Sk.h: Likewise.
2389         * lib/unictype/categ_Sm.h: Likewise.
2390         * lib/unictype/categ_Z.h: Likewise.
2391         * lib/unictype/categ_Zl.h: Likewise.
2392         * lib/unictype/categ_Zp.h: Likewise.
2393         * lib/unictype/categ_Zs.h: Likewise.
2394         * lib/unictype/ctype_blank.h: Likewise.
2395         * lib/unictype/ctype_cntrl.h: Likewise.
2396         * lib/unictype/ctype_digit.h: Likewise.
2397         * lib/unictype/ctype_space.h: Likewise.
2398         * lib/unictype/ctype_xdigit.h: Likewise.
2399         * lib/unictype/mirror.h: Likewise.
2400         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2401         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2402         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2403         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2404         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2405         * lib/unictype/pr_bidi_control.h: Likewise.
2406         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2407         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2408         * lib/unictype/pr_bidi_pdf.h: Likewise.
2409         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2410         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2411         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2412         * lib/unictype/pr_format_control.h: Likewise.
2413         * lib/unictype/pr_hex_digit.h: Likewise.
2414         * lib/unictype/pr_hyphen.h: Likewise.
2415         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2416         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2417         * lib/unictype/pr_iso_control.h: Likewise.
2418         * lib/unictype/pr_join_control.h: Likewise.
2419         * lib/unictype/pr_left_of_pair.h: Likewise.
2420         * lib/unictype/pr_line_separator.h: Likewise.
2421         * lib/unictype/pr_math.h: Likewise.
2422         * lib/unictype/pr_non_break.h: Likewise.
2423         * lib/unictype/pr_not_a_character.h: Likewise.
2424         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2425         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2426         * lib/unictype/pr_other_id_continue.h: Likewise.
2427         * lib/unictype/pr_other_id_start.h: Likewise.
2428         * lib/unictype/pr_other_lowercase.h: Likewise.
2429         * lib/unictype/pr_other_math.h: Likewise.
2430         * lib/unictype/pr_other_uppercase.h: Likewise.
2431         * lib/unictype/pr_paired_punctuation.h: Likewise.
2432         * lib/unictype/pr_paragraph_separator.h: Likewise.
2433         * lib/unictype/pr_pattern_syntax.h: Likewise.
2434         * lib/unictype/pr_pattern_white_space.h: Likewise.
2435         * lib/unictype/pr_private_use.h: Likewise.
2436         * lib/unictype/pr_quotation_mark.h: Likewise.
2437         * lib/unictype/pr_radical.h: Likewise.
2438         * lib/unictype/pr_soft_dotted.h: Likewise.
2439         * lib/unictype/pr_space.h: Likewise.
2440         * lib/unictype/pr_titlecase.h: Likewise.
2441         * lib/unictype/pr_variation_selector.h: Likewise.
2442         * lib/unictype/pr_white_space.h: Likewise.
2443         * lib/unictype/sy_c_ident.h: Likewise.
2444         * lib/unictype/sy_c_whitespace.h: Likewise.
2445         * lib/unictype/sy_java_whitespace.h: Likewise.
2446         * modules/uni*/*: Bump version number of expected libunistring version.
2447         Reported by Simon Josefsson.
2448
2449 2011-01-09  Karl Heuer  <kwzh@gnu.org>
2450
2451         useless-if-before-free: fix typo in --help and make the internal,
2452         automatic version date update process work once again.
2453         --help output contained a NUL character instead of the
2454         backslash-zero that was intended.  Also, the "must lie within
2455         the first 8 lines" line is on line 9, and hence not getting
2456         automatically updated.
2457         * build-aux/useless-if-before-free: Fix the former by adding a
2458         backslash, and the latter by condensing the three lines of what-it-does
2459         to a single line, leaving one line of slack for the future.
2460
2461 2011-01-09  Bruno Haible  <bruno@clisp.org>
2462
2463         uniwidth/width: Fix width of U+1D173..U+1D17A.
2464         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
2465         symbolic_width, output_width_property_test): New functions.
2466         (main): Invoke output_nonspacing_property, output_width_property_test.
2467         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
2468         U+1D173..U+1D17A.
2469         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
2470         1.
2471         * modules/uniwidth/*: Bump version number of expected libunistring
2472         version.
2473         * modules/unilbrk/*: Likewise.
2474
2475 2011-01-08  Bruno Haible  <bruno@clisp.org>
2476
2477         uninorm tests: Preserve copyright of Unicode data file.
2478         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
2479         Mention modifications.
2480
2481 2011-01-08  Bruno Haible  <bruno@clisp.org>
2482
2483         gen-uni-tables: Prepare for Unicode 5.2.0.
2484         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
2485         (debug_output_lbp, output_lbp): Update.
2486
2487 2011-01-08  Bruno Haible  <bruno@clisp.org>
2488
2489         unilbrk: Clarify gen-uni-tables.c code.
2490         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
2491         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
2492         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
2493
2494 2011-01-07  Bruno Haible  <bruno@clisp.org>
2495
2496         strtod: Restore errno when successfully parsing Infinity or NaN.
2497         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
2498         restore the original errno.
2499
2500 2011-01-07  Bruno Haible  <bruno@clisp.org>
2501
2502         remove test: Avoid failure on HP-UX 11.
2503         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
2504
2505 2011-01-07  Bruno Haible  <bruno@clisp.org>
2506
2507         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
2508         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
2509         error code.
2510
2511 2011-01-07  Pádraig Brady <P@draigBrady.com>
2512
2513         ignore-value: fixup comments, and add Eric Blake
2514         as an author since he rewrote the macros.
2515         * lib/ignore-value.h (ignore_value):  State that
2516         we now support aggregates.  Also specify exactly
2517         when the GCC warn_unused_result feature was added.
2518
2519 2011-01-06  Eric Blake  <eblake@redhat.com>
2520
2521         ignore-value: support aggregate types
2522         * lib/ignore-value.h (ignore_value): Provide separate gcc
2523         definition.
2524         * modules/ignore-value-tests: New test module.
2525         * tests/test-ignore-value.c: New test.
2526
2527         maint.mk: improve sc_prohibit_strcmp regex
2528         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
2529         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
2530         definition of STRNEQ.
2531
2532         signal: work around Haiku issue with SIGBUS
2533         * lib/siglist.h: Add comment.
2534         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
2535         strsignal's favoring of SIGSEGV.
2536         * tests/test-signal.c (main): Avoid test failure.
2537         * doc/posix-headers/signal.texi (signal.h): Document the issue.
2538         Reported by Scott McCreary.
2539
2540         maint.mk: add pre-release check to ensure submodule commits are public
2541         * top/maint.mk (public-submodule-commit): New rule.
2542         (submodule-checks): New variable.
2543         (alpha beta stable): Depend on the variable.
2544
2545 2011-01-05  Pádraig Brady <P@draigBrady.com>
2546         and Jim Meyering  <meyering@redhat.com>
2547
2548         ignore-value: make ignore_value more generic; deprecate ignore_ptr
2549         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
2550         (ATTRIBUTE_DEPRECATED): Define.
2551         (_ignore_case): New function.
2552         (ignore_value): New macro, to replace the old function.
2553         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
2554         * modules/ignore-value (Depends-on): Add stdint.
2555
2556 2011-01-04  Eric Blake  <eblake@redhat.com>
2557
2558         doc: regenerate INSTALL
2559         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
2560         @firstparagraphindent support, now that autoconf dropped it.
2561         (INSTALL_PRELUDE): Reinstate old macro.
2562         * doc/install.texi: Resync from autoconf.
2563         * doc/INSTALL: Reflect recent autoconf update.
2564         * doc/INSTALL.ISO: Likewise.
2565         * doc/INSTALL.UTF-8: Likewise.
2566         Reported by Karl Berry.
2567
2568 2011-01-04  Bruce Korb  <address@hidden>
2569
2570         git-version-gen: avoid a sub-shell
2571         * build-aux/git-version-gen: Redirect stderr in `...` via
2572         "exec 2>...", rather than via an added sub-shell.
2573
2574 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
2575
2576         git-version-gen: use (...) rather than sh -c '...'
2577         * build-aux/git-version-gen: Rather than hard-coding a shell's name
2578         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
2579
2580 2011-01-03  Jim Meyering  <meyering@redhat.com>
2581
2582         git-version-gen: convert leading TABs to spaces
2583         * build-aux/git-version-gen: Expand leading TABs.
2584
2585         git-version-gen: handle failed "git rev-list"
2586         * build-aux/git-version-gen: Rather than leaking a "fatal" error
2587         from git and proceeding as if it had succeeded but printed no SHA1
2588         checksums, suppress the diagnostic and handle the failure.
2589         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
2590
2591         git-version-gen: include command name in one more diagnostic
2592         * build-aux/git-version-gen: When the required .tarball-version file
2593         was missing or unreadable, you might see the diagnostic from "cat",
2594         but no trace of the name of the invoking script.  Now, you still see
2595         the diagnostic from cat, but also get one from "git-version-gen: ".
2596         Inspired by a patch from Bruce Korb.
2597
2598         update-copyright: adjust test to match changed code
2599         * tests/test-update-copyright.sh: Change test's expected output
2600         to match new actual output.
2601
2602 2011-01-02  Bruno Haible  <bruno@clisp.org>
2603
2604         getlogin_r: Avoid test failure on HP-UX 11.
2605         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
2606         ERANGE when the second argument is zero.
2607         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
2608         portability problem.
2609
2610 2011-01-02  Bruce Korb  <bkorb@gnu.org>
2611
2612         * build-aux/update-copyright: doc Simon's changes
2613
2614 2011-01-02  Simon Josefsson  <simon@josefsson.org>
2615
2616         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
2617         environment variable.
2618
2619 2011-01-02  Bruno Haible  <bruno@clisp.org>
2620
2621         unigbrk: Avoid gcc warnings.
2622         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
2623         unused variable.
2624         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
2625         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
2626         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
2627         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
2628         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
2629         Change type of first argument to 'const char *'.
2630         (main): Remove unused variable.
2631         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
2632         type of first argument to 'const char *'.
2633         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
2634         Likewise.
2635         (main): Change type of variable 's'.
2636         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
2637         to 'int'.
2638
2639 2011-01-02  Bruno Haible  <bruno@clisp.org>
2640
2641         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
2642         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
2643         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
2644         bug.
2645         * lib/pwrite.c: Undo 2010-12-31 patch.
2646         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
2647
2648 2011-01-02  Bruno Haible  <bruno@clisp.org>
2649
2650         pread: Fix test whether it works.
2651         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
2652
2653 2011-01-02  Bruno Haible  <bruno@clisp.org>
2654
2655         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
2656         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
2657         ends in "6". Don't require a specific month name. Try also the locale
2658         names found on HP-UX 11 and Solaris 7.
2659
2660 2011-01-02  Bruno Haible  <bruno@clisp.org>
2661
2662         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
2663         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
2664         C linkage.
2665         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
2666
2667 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2668
2669         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
2670         for consistency, since the "cluster" term is not used elsewhere.
2671         * lib/unigbrk.in.h: Update name.
2672         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
2673         * lib/unigbrk/u16-grapheme-next.c: Update name.
2674         * lib/unigbrk/u16-grapheme-prev.c: Update name.
2675         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
2676         * lib/unigbrk/u32-grapheme-next.c: Update name.
2677         * lib/unigbrk/u32-grapheme-prev.c: Update name.
2678         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
2679         * lib/unigbrk/u8-grapheme-next.c: Update name.
2680         * lib/unigbrk/u8-grapheme-prev.c: Update name.
2681         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
2682         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
2683         Suggested by Bruno Haible.
2684
2685 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2686
2687         Remove module 'u8-grapheme-len' as too redundant with
2688         'u8-grapheme-next'.
2689         * modules/unigbrk/u8-grapheme-len: Delete file.
2690         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
2691         * lib/unigbrk.in.h: Remove prototype for deleted function.
2692         * lib/unigbrk/u8-grapheme-len.c: Delete file.
2693         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
2694
2695         Remove module 'u16-grapheme-len' as too redundant with
2696         'u16-grapheme-next'.
2697         * modules/unigbrk/u16-grapheme-len: Delete file.
2698         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
2699         * lib/unigbrk.in.h: Remove prototype for deleted function.
2700         * lib/unigbrk/u16-grapheme-len.c: Delete file.
2701         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
2702
2703         Remove module 'u32-grapheme-len' as too redundant with
2704         'u32-grapheme-next'.
2705         * modules/unigbrk/u32-grapheme-len: Delete file.
2706         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
2707         * lib/unigbrk.in.h: Remove prototype for deleted function.
2708         * lib/unigbrk/u32-grapheme-len.c: Delete file.
2709         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
2710
2711         Suggested by Bruno Haible.
2712
2713 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2714
2715         * unigbrk.in.h: Fix typo: "ben" => "been".
2716         Reported by Bruno Haible.
2717
2718 2011-01-01  Jim Meyering  <meyering@redhat.com>
2719
2720         maint: update almost all copyright ranges to include 2011
2721         Run the new "make update-copyright" rule.
2722
2723 2011-01-01  Jim Meyering  <meyering@redhat.com>
2724
2725         maint: update-copyright: exempt doc/INSTALL*
2726         * Makefile (update-copyright): Also exclude doc/INSTALL*,
2727         since they are generated.  Suggested by Bruno Haible.
2728
2729 2011-01-01  Jim Meyering  <meyering@redhat.com>
2730
2731         maint: refine the update-copyright rule
2732         * Makefile (update-copyright): Also exclude any file that includes
2733         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
2734         code that merely generates the comment.
2735
2736 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2737
2738         New module 'u8-grapheme-len'.
2739         * modules/unigbrk/u8-grapheme-len: New file.
2740         * modules/unigbrk/u8-grapheme-len-tests: New file.
2741         * lib/unigbrk.in.h: Add prototype for new function.
2742         * lib/unigbrk/u8-grapheme-len.c: New file.
2743         * tests/unigbrk/test-u8-grapheme-len.c: New file.
2744
2745         New module 'u16-grapheme-len'.
2746         * modules/unigbrk/u16-grapheme-len: New file.
2747         * modules/unigbrk/u16-grapheme-len-tests: New file.
2748         * lib/unigbrk.in.h: Add prototype for new function.
2749         * lib/unigbrk/u16-grapheme-len.c: New file.
2750         * tests/unigbrk/test-u16-grapheme-len.c: New file.
2751
2752         New module 'u32-grapheme-len'.
2753         * modules/unigbrk/u32-grapheme-len: New file.
2754         * modules/unigbrk/u32-grapheme-len-tests: New file.
2755         * lib/unigbrk.in.h: Add prototype for new function.
2756         * lib/unigbrk/u32-grapheme-len.c: New file.
2757         * tests/unigbrk/test-u32-grapheme-len.c: New file.
2758
2759         New module 'u8-grapheme-next'.
2760         * modules/unigbrk/u8-grapheme-next: New file.
2761         * modules/unigbrk/u8-grapheme-next-tests: New file.
2762         * lib/unigbrk.in.h: Add prototype for new function.
2763         * lib/unigbrk/u8-grapheme-next.c: New file.
2764         * tests/unigbrk/test-u8-grapheme-next.c: New file.
2765
2766         New module 'u16-grapheme-next'.
2767         * modules/unigbrk/u16-grapheme-next: New file.
2768         * modules/unigbrk/u16-grapheme-next-tests: New file.
2769         * lib/unigbrk.in.h: Add prototype for new function.
2770         * lib/unigbrk/u16-grapheme-next.c: New file.
2771         * tests/unigbrk/test-u16-grapheme-next.c: New file.
2772
2773         New module 'u32-grapheme-next'.
2774         * modules/unigbrk/u32-grapheme-next: New file.
2775         * modules/unigbrk/u32-grapheme-next-tests: New file.
2776         * lib/unigbrk.in.h: Add prototype for new function.
2777         * lib/unigbrk/u32-grapheme-next.c: New file.
2778         * tests/unigbrk/test-u32-grapheme-next.c: New file.
2779
2780         New module 'u8-grapheme-prev'.
2781         * modules/unigbrk/u8-grapheme-prev: New file.
2782         * modules/unigbrk/u8-grapheme-prev-tests: New file.
2783         * lib/unigbrk.in.h: Add prototype for new function.
2784         * lib/unigbrk/u8-grapheme-prev.c: New file.
2785         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
2786
2787         New module 'u16-grapheme-prev'.
2788         * modules/unigbrk/u16-grapheme-prev: New file.
2789         * modules/unigbrk/u16-grapheme-prev-tests: New file.
2790         * lib/unigbrk.in.h: Add prototype for new function.
2791         * lib/unigbrk/u16-grapheme-prev.c: New file.
2792         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
2793
2794         New module 'u32-grapheme-prev'.
2795         * modules/unigbrk/u32-grapheme-prev: New file.
2796         * modules/unigbrk/u32-grapheme-prev-tests: New file.
2797         * lib/unigbrk.in.h: Add prototype for new function.
2798         * lib/unigbrk/u32-grapheme-prev.c: New file.
2799         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
2800
2801         New module 'u8-grapheme-breaks'.
2802         * modules/unigbrk/u8-grapheme-breaks: New file.
2803         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
2804         * lib/unigbrk.in.h: Add prototype for new function.
2805         * lib/unigbrk/u8-grapheme-breaks.c: New file.
2806         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
2807
2808         New module 'u16-grapheme-breaks'.
2809         * modules/unigbrk/u16-grapheme-breaks: New file.
2810         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
2811         * lib/unigbrk.in.h: Add prototype for new function.
2812         * lib/unigbrk/u16-grapheme-breaks.c: New file.
2813         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
2814
2815         New module 'u32-grapheme-breaks'.
2816         * modules/unigbrk/u32-grapheme-breaks: New file.
2817         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
2818         * lib/unigbrk.in.h: Add prototype for new function.
2819         * lib/unigbrk/u32-grapheme-breaks.c: New file.
2820         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
2821
2822         New module 'ulc-grapheme-breaks'.
2823         * modules/unigbrk/ulc-grapheme-breaks: New file.
2824         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
2825         * m4/locale-ar.m4: New file.
2826         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
2827         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
2828         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
2829
2830 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2831
2832         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
2833         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
2834         modified how this file was generated before I initially submitted
2835         the module, but failed to regenerate it.  This meant that several
2836         of the level2 entries were wrong.
2837         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
2838         Remove the division-by-2 that is folded into the table now that
2839         gbrkprop.h has been regenerated properly.  Now -1 entries are
2840         handled correctly.
2841
2842         New module 'unigbrk/uc-gbrk-prop-tests'.
2843         * modules/unigbrk/uc-gbrk-prop-tests: New file.
2844         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
2845         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
2846         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
2847
2848 2011-01-01  Bruno Haible  <bruno@clisp.org>
2849
2850         Avoid use of hexadecimal escapes.
2851         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
2852         instead of hexadecimal escapes.
2853
2854 2011-01-01  Jim Meyering  <meyering@redhat.com>
2855
2856         maint: new rule to update copyright year ranges
2857         * Makefile (update-copyright): New rule.
2858
2859         maint: indent with TABs in Makefile
2860         * Makefile: Expand leading sequences of spaces to TABs
2861
2862         version-etc: update the copyright year it reports
2863         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
2864
2865 2010-12-31  Bruno Haible  <bruno@clisp.org>
2866
2867         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
2868         * lib/isfinite.c (zerof, zerod, zerol): New variables.
2869         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
2870         zero.
2871
2872 2010-12-31  Bruno Haible  <bruno@clisp.org>
2873
2874         pwrite: Work around HP-UX 11.11 bug.
2875         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
2876         works and set REPLACE_PWRITE if not.
2877         * lib/pwrite.c (pwrite): Add an implementation that uses the system
2878         function.
2879         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
2880
2881 2010-12-31  Bruno Haible  <bruno@clisp.org>
2882
2883         pread: Work around HP-UX 11 bugs.
2884         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
2885         and set REPLACE_PREAD if not.
2886         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
2887
2888 2010-12-31  Eric Blake  <eblake@redhat.com>
2889
2890         nl_langinfo: fix YESEXPR on Irix 6.5
2891         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
2892         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
2893         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
2894         it.
2895
2896 2010-12-31  Bruno Haible  <bruno@clisp.org>
2897
2898         iconv: Document HP-UX 11 bug.
2899         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
2900
2901 2010-12-31  Bruno Haible  <bruno@clisp.org>
2902
2903         ldexpl: Fix link error on HP-UX 11.
2904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
2905         LDEXPL_LIBM, using $ISNANL_LIBM.
2906
2907 2010-12-31  Eric Blake  <eblake@redhat.com>
2908
2909         ftello: avoid compilation failure with SunStudio c89
2910         * lib/ftello.c (ftello): Use lseek, not llseek.
2911
2912         tests: avoid failing coreutils tests on cygwin
2913         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
2914         (create_exe_shims_): Return 0 when skipping.
2915
2916 2010-12-31  Bruno Haible  <bruno@clisp.org>
2917
2918         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
2919         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
2920
2921 2010-12-31  Bruno Haible  <bruno@clisp.org>
2922
2923         waitpid: Fix link error in C++ mode.
2924         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
2925
2926 2010-12-31  Bruno Haible  <bruno@clisp.org>
2927
2928         isnan: Use GCC built-ins when possible.
2929         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
2930         __builtin_isnan.
2931         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
2932         (isnan): Define using GCC built-ins for GCC >= 4.0.
2933
2934 2010-12-31  Bruno Haible  <bruno@clisp.org>
2935
2936         isnand: Fix mistake.
2937         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
2938         __builtin_isnand.
2939
2940 2010-12-31  Bruno Haible  <bruno@clisp.org>
2941
2942         open: Avoid C++ error on HP-UX 11.
2943         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
2944
2945 2010-12-31  Bruno Haible  <bruno@clisp.org>
2946
2947         time_r: Add missing declarations on HP-UX 11.
2948         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
2949         instead of HAVE_LOCALTIME_R.
2950         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
2951         HAVE_LOCALTIME_R always.
2952         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
2953         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
2954         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
2955         HAVE_LOCALTIME_R.
2956         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
2957         * doc/posix-functions/localtime_r.texi: Likewise.
2958
2959 2010-12-29  Eric Blake  <eblake@redhat.com>
2960
2961         mountlist: tweak previous commit
2962         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
2963         Reported by Paul Eggert.
2964
2965         mountlist: fix local drive detection on cygwin
2966         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
2967         that works for cygwin.
2968
2969 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2970
2971         ftoastr, snprintf: ftoastr + snprintf module
2972         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
2973         since the snprintf module now should be good enough here.
2974         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
2975         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
2976         and gl_MODULE_INDICATOR([snprintf]), but the former enables
2977         GNULIB_SNPRINTF only for the test directory, and the latter
2978         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
2979         seems to suffice by itself.
2980
2981 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2982
2983         alloca: one step towards thread-safety
2984         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
2985         need for a static variable.  All callers changed.  This does not
2986         make the alloca replacement thread-safe, but it's one step.
2987
2988         tests: minor indenting change
2989         * tests/init.sh: Sync from coreutils housekeeping patch
2990         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
2991         to keep lines within 80 columns.
2992
2993 2010-12-28  Jim Meyering  <meyering@redhat.com>
2994
2995         regex: don't infloop on persistent failing calloc
2996         * lib/regexec.c (build_trtable): Return failure indication upon
2997         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2998         In glibc, this was fixed for version 2.13:
2999         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
3000
3001 2010-12-28  Bruno Haible  <bruno@clisp.org>
3002             Paul Eggert <eggert@cs.ucla.edu>
3003
3004         linkat: Make implementation robust against system behaviour variations.
3005         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
3006         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
3007         way, and to -2 if it needs a generic runtime test.
3008         * lib/linkat.c (solaris_optimized_link_immediate,
3009         solaris_optimized_link_follow): New functions.
3010         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
3011         (check_same_link): Use it.
3012
3013 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
3014
3015         New module 'unigbrk/base'.
3016         * modules/unigbrk/base: New file.
3017         * lib/unigbrk.in.h: New file.
3018
3019         New module 'unigbrk/uc-gbrk-prop'.
3020         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
3021         * modules/unigbrk/uc-gbrk-prop: New file.
3022         * lib/unigbrk/gbrkprop.h: New file.
3023         * lib/unigbrk/uc-gbrk-prop.c: New file.
3024
3025         New module 'unigbrk/uc-is-grapheme-break'.
3026         * modules/unigbrk/uc-is-grapheme-break: New file.
3027         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
3028         * lib/unigbrk/uc-is-grapheme-break.c: New file.
3029         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
3030         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
3031         * tests/unigbrk/GraphemeBreakTest.txt: New file.
3032
3033         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
3034
3035 2010-12-27  Bruno Haible  <bruno@clisp.org>
3036
3037         linkat test: Avoid failure on Solaris 11 2010-11.
3038         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
3039
3040 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3041
3042         utimens: work around glibc rounding bug on more platforms
3043         * lib/utimens.c (fdutimens): Work around rounding bug even if
3044         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
3045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
3046
3047 2010-12-27  Bruno Haible  <bruno@clisp.org>
3048
3049         select tests: Improve comments.
3050         * tests/test-select.c (do_select): Add comments.
3051
3052 2010-12-27  Bruno Haible  <bruno@clisp.org>
3053
3054         select tests: Safer way of handling timeout.
3055         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
3056         at every invocation.
3057
3058 2010-12-27  Bruno Haible  <bruno@clisp.org>
3059
3060         select tests: Use 'bool' where appropriate.
3061         * tests/test-select.c (connect_to_socket): Change argument type to
3062         'bool'.
3063
3064 2010-12-27  Bruno Haible  <bruno@clisp.org>
3065
3066         select tests: Use existing modules.
3067         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
3068         (configure.ac): Don't test for unistd.h.
3069         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
3070         declared in <unistd.h>.
3071
3072 2010-12-27  Bruno Haible  <bruno@clisp.org>
3073
3074         mbrtowc: Work around a Solaris 7 bug.
3075         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
3076         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
3077         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
3078         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
3079         MBRTOWC_NULL_ARG1_BUG.
3080         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
3081         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
3082         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
3083         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
3084
3085 2010-12-27  Jim Meyering  <meyering@redhat.com>
3086
3087         read-file.c: tweak syntax
3088         * lib/read-file.c (fread_file): Remove space after "*" in function
3089         definitions.
3090
3091 2010-12-27  Bruno Haible  <bruno@clisp.org>
3092
3093         times test: Avoid gcc warnings on OSF/1.
3094         * tests/test-times.c (main): Cast printf arguments from clock_t to
3095         'long int'.
3096
3097 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3098
3099         utimens: work around glibc rounding bug on older Linux kernels
3100         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
3101         on Linux with a glibc whose utimes might not work, then work
3102         around a longstanding glibc bug involving rounding rather than
3103         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
3104         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3105
3106 2010-12-26  Bruno Haible  <bruno@clisp.org>
3107
3108         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
3109         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
3110         _GL_CXXALIAS_SYS.
3111         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3112
3113 2010-12-26  Bruno Haible  <bruno@clisp.org>
3114
3115         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
3116         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
3117         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3118         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
3119         looking for the declaration.
3120         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3121         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
3122         problem.
3123         * doc/posix-functions/inet_pton.texi: Likewise.
3124
3125 2010-12-26  Bruno Haible  <bruno@clisp.org>
3126
3127         arpa_inet: Use the common idioms with C++ support.
3128         * lib/arpa_inet.in.h: Include c++defs.h.
3129         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
3130         support.
3131         * modules/arpa_inet (Depends-on): Add c++defs.
3132         (Makefile.am): Substitute the contents of c++defs.h.
3133         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
3134         * modules/arpa_inet-c++-tests: New file.
3135         * tests/test-arpa_inet-c++.cc: New file.
3136
3137 2010-12-25  Bruno Haible  <bruno@clisp.org>
3138
3139         Fix more C++ link errors on Solaris 8.
3140         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
3141         $(LIB_EACCESS).
3142         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
3143         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
3144         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
3145         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
3146         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
3147
3148 2010-12-25  Bruno Haible  <bruno@clisp.org>
3149
3150         printf-posix: Fix link error when a non-GCC compiler is used.
3151         * lib/stdio.in.h (printf): When not using GCC, override printf
3152         correctly.
3153         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3154
3155 2010-12-25  Bruno Haible  <bruno@clisp.org>
3156
3157         strerror_r-posix: Update doc.
3158         * doc/posix-functions/strerror_r.texi: Update doc about the return
3159         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
3160
3161 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3162
3163         utimens: simplify the logic of the previous change
3164         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
3165         This should not affect whether the test succeeds or fails.
3166
3167         utimens: configure better on hosts with NFS clock skew
3168         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
3169         uses the clock of the local host.  It might use the clock of the
3170         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
3171         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3172
3173 2010-12-25  Bruno Haible  <bruno@clisp.org>
3174
3175         ptsname test: Avoid failure on Solaris.
3176         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
3177         open a pseudo-terminal; don't use BSD-style ptys.
3178         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
3179
3180 2010-12-25  Bruno Haible  <bruno@clisp.org>
3181
3182         ptsname: Avoid ERANGE failure on some systems.
3183         * lib/ptsname.c (buffer): Increase size.
3184
3185 2010-12-25  Bruno Haible  <bruno@clisp.org>
3186
3187         rename, renameat: Avoid test failures at NFS mounted locations.
3188         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
3189         so that subsequent mkdir calls succeed.
3190
3191 2010-12-25  Bruno Haible  <bruno@clisp.org>
3192
3193         iswblank: Fix C++ link error on Solaris 8.
3194         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
3195         _GL_FUNCDECL_SYS.
3196
3197 2010-12-25  Bruno Haible  <bruno@clisp.org>
3198
3199         unistd: Fix C++ link error on Solaris 8.
3200         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
3201
3202 2010-12-25  Bruno Haible  <bruno@clisp.org>
3203
3204         readlink doc: Mention an old glibc bug.
3205         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
3206
3207 2010-12-25  Bruno Haible  <bruno@clisp.org>
3208
3209         fcntl-h: Fix for use of C++ on glibc systems.
3210         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3211         also on glibc systems in C++ mode.
3212         Reported by Gary V. Vaughan <gary@gnu.org>.
3213
3214 2010-12-25  Bruno Haible  <bruno@clisp.org>
3215
3216         roundl-ieee: Make it work on OSF/1 5.1 with cc.
3217         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
3218
3219 2010-12-25  Bruno Haible  <bruno@clisp.org>
3220
3221         truncl-ieee: Make it work on OSF/1 5.1 with cc.
3222         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
3223         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
3224         test whether truncl works according to ISO C 99 with IEC 60559.
3225         * m4/truncl-ieee.m4: New file.
3226         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
3227         m4/signbit.m4.
3228         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
3229
3230 2010-12-25  Bruno Haible  <bruno@clisp.org>
3231
3232         ceill-ieee: Make it work on OSF/1 5.1 with cc.
3233         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
3234         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
3235         test whether ceill works according to ISO C 99 with IEC 60559.
3236         * m4/ceill-ieee.m4: New file.
3237         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
3238         m4/signbit.m4.
3239         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
3240
3241 2010-12-25  Bruno Haible  <bruno@clisp.org>
3242
3243         Ensure all prerequisites of <wchar.h> are included.
3244         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
3245         before <wchar.h>.
3246         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3247         gl_MBRLEN_NUL_RETVAL): Likewise.
3248         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3249         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
3250         AC_FUNC_MBRTOWC): Likewise.
3251         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3252         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3253         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3254         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3255         Likewise.
3256         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3257         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
3258         (gl_WCHAR_H): Improve comments.
3259         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3260
3261 2010-12-25  Bruno Haible  <bruno@clisp.org>
3262
3263         strtok_r: Fix C syntax error in autoconf macro.
3264         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
3265         characters in test program.
3266
3267 2010-12-24  Bruno Haible  <bruno@clisp.org>
3268
3269         ceil, trunc, round: Fix gcc warnings.
3270         * lib/ceil.c (MIN): Undefine before redefining.
3271         * lib/trunc.c (MIN): Likewise.
3272         * lib/round.c (MIN): Likewise.
3273         Include <math.h> first.
3274
3275 2010-12-24  Bruno Haible  <bruno@clisp.org>
3276
3277         select tests: Avoid failures on OSF/1 5.1.
3278         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
3279         failure of closing the last socket; it may fail with ECONNRESET.
3280
3281 2010-12-24  Eric Blake  <eblake@redhat.com>
3282
3283         stdint: avoid HP-UX 10.20 preprocessor bug
3284         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
3285         than #if.
3286         * tests/test-floor2.c (main): Likewise.
3287         Reported by Peter O'Gorman.
3288
3289         pipe: make obsoletion transition easier
3290         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
3291         * modules/pipe (Files): Include revived file.
3292         (Include): Drop reference, to mirror getdate's behavior.
3293
3294 2010-12-24  Bruno Haible  <bruno@clisp.org>
3295
3296         sys_socket: Hide mismatch of declarations on NonStop Kernel.
3297         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
3298         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
3299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3300
3301 2010-12-24  Bruno Haible  <bruno@clisp.org>
3302
3303         gethostname: Ensure declaration on NonStop Kernel.
3304         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
3305         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3306
3307 2010-12-24  Bruno Haible  <bruno@clisp.org>
3308
3309         sys_select: Ensure all necessary types on NonStop Kernel.
3310         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
3311         include <sys/time.h>.
3312         * doc/posix-headers/sys_select.texi: Mention that it's missing on
3313         NonStop Kernel.
3314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3315
3316 2010-12-24  Bruno Haible  <bruno@clisp.org>
3317
3318         sys_select: Remove unneeded include.
3319         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
3320         have <sys/select.h>.
3321
3322 2010-12-24  Bruno Haible  <bruno@clisp.org>
3323
3324         gethostname: Provide a fallback for HOST_NAME_MAX.
3325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
3326         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
3327         instead.
3328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3329
3330 2010-12-24  Bruno Haible  <bruno@clisp.org>
3331
3332         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
3333         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
3334         (SA_RESTART): Likewise.
3335         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3336
3337 2010-12-24  Bruno Haible  <bruno@clisp.org>
3338
3339         signal: Define NSIG.
3340         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
3341         * tests/test-signal.c (nsig): New variable.
3342         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3343
3344 2010-12-24  Bruno Haible  <bruno@clisp.org>
3345
3346         rename, renameat: Avoid test failures on OSF/1 5.1.
3347         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
3348         alternative error codes.
3349         * tests/test-renameat.c (main): Likewise.
3350
3351 2010-12-24  Bruno Haible  <bruno@clisp.org>
3352
3353         *printf: Detect large precisions bug on Solaris 10/SPARC.
3354         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
3355         by Paul Eggert.
3356         * tests/test-snprintf-posix.h (test_function): Add this test code here
3357         too.
3358         * tests/test-sprintf-posix.h (test_function): Likewise.
3359         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3360         * tests/test-vasprintf-posix.c (test_function): Likewise.
3361         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
3362         around by gnulib.
3363         * doc/posix-functions/printf.texi: Likewise.
3364         * doc/posix-functions/snprintf.texi: Likewise.
3365         * doc/posix-functions/sprintf.texi: Likewise.
3366         * doc/posix-functions/vfprintf.texi: Likewise.
3367         * doc/posix-functions/vprintf.texi: Likewise.
3368         * doc/posix-functions/vsnprintf.texi: Likewise.
3369         * doc/posix-functions/vsprintf.texi: Likewise.
3370         * doc/posix-functions/dprintf.texi: Undo last commit.
3371         * doc/posix-functions/vdprintf.texi: Likewise.
3372
3373 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
3374
3375         tests: port test-fdutimensat.c to Solaris 8
3376         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
3377         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
3378         On Solaris 8, it fails with errno == ENOSYS, because there is no
3379         futimens (so it can't use the fd), and there is no lutimens (so it
3380         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
3381
3382         vsnprintf: make more consistent with snprintf; doc fixes
3383
3384         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
3385         the byte count return problem was promoted from the snprintf-posix
3386         to the snprintf module.
3387         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3388         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
3389         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
3390         * tests/test-snprintf.c (main): Check the byte count returned.
3391         * tests/test-vsnprintf.c (main): Likewise.
3392
3393 2010-12-23  Eric Blake  <eblake@redhat.com>
3394
3395         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
3396         * modules/sigpipe (License): Relax license.
3397
3398 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3399
3400         doc: document Solaris printf bug with large float precisions
3401         * doc/posix-functions/dprintf.texi (dprintf):
3402         * doc/posix-functions/fprintf.texi (fprintf):
3403         * doc/posix-functions/printf.texi (printf):
3404         * doc/posix-functions/snprintf.texi (snprintf):
3405         * doc/posix-functions/sprintf.texi (sprintf):
3406         * doc/posix-functions/vdprintf.texi (vdprintf):
3407         * doc/posix-functions/vfprintf.texi (vfprintf):
3408         * doc/posix-functions/vprintf.texi (vprintf):
3409         * doc/posix-functions/vsnprintf.texi (vsnprintf):
3410         * doc/posix-functions/vsprintf.texi (vsprintf):
3411         Mention that these functions mishandle large floating point
3412         precisions on Solaris 10.  The same bug is also present in Solaris
3413         8, and I assume earlier.  This causes "cd gnulib-tests; make
3414         check" to fail on Solaris 8 (and I assume, later) when building
3415         the latest coreutils, in test-vasprintf-posix's call to
3416         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
3417         the wide flavors (e.g., wprintf) so this patch just updates the
3418         documentation for the narrow ones.
3419
3420         test-posixtm.c: add two tests
3421         * tests/test-posixtm.c: Add two tests, to highlight the
3422         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
3423         around this bug; this is merely to document it.
3424
3425 2010-12-22  Bruno Haible  <bruno@clisp.org>
3426
3427         getlogin_r: Work around portability problem on OSF/1.
3428         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
3429         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
3430         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
3431         test for a truncated result.
3432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
3433         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
3434         * modules/getlogin_r (Depends-on): Add memchr.
3435         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
3436
3437 2010-12-22  Bruno Haible  <bruno@clisp.org>
3438
3439         ptsname: Avoid test failure on OSF/1 5.1.
3440         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
3441         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
3442         (same_slave): New function.
3443         (main): Use it to compare ptsname's result with the expected file name.
3444
3445 2010-12-22  Bruno Haible  <bruno@clisp.org>
3446
3447         Port extended stdio modules to HP NonStop Kernel.
3448         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
3449         macros.
3450         * lib/fbufmode.c: Update comments.
3451         * lib/fflush.c: Likewise.
3452         * lib/fpurge.c: Likewise.
3453         * lib/freadable.c: Likewise.
3454         * lib/freadahead.c: Likewise.
3455         * lib/freading.c: Likewise.
3456         * lib/freadptr.c: Likewise.
3457         * lib/freadseek.c: Likewise.
3458         * lib/fseeko.c: Likewise.
3459         * lib/fseterr.c: Likewise.
3460         * lib/fwritable.c: Likewise.
3461         * lib/fwriting.c: Likewise.
3462         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3463
3464 2010-12-22  Bruno Haible  <bruno@clisp.org>
3465
3466         ttyname_r: Work around bug on OSF/1 5.1.
3467         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
3468         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
3469         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
3470         present.
3471         * lib/ttyname_r.c (ttyname_r): Update comments.
3472
3473 2010-12-22  Bruno Haible  <bruno@clisp.org>
3474
3475         round: Implement result sign according to IEEE 754.
3476         * lib/round.c (MIN, MINUS_ZERO): New macros.
3477         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
3478         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
3479         * tests/test-round-ieee.c (main): Likewise.
3480         * tests/test-roundl-ieee.c (main): Likewise.
3481
3482         trunc: Implement result sign according to IEEE 754.
3483         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
3484         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
3485         * tests/test-trunc2.c: Include minus-zero.h.
3486         (MINUS_ZERO): New macro.
3487         (trunc_reference): Keep in sync with lib/trunc.c.
3488         * tests/test-truncf2.c: Include minus-zero.h.
3489         (MINUS_ZERO): New macro.
3490         (truncf_reference): Keep in sync with lib/trunc.c.
3491         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
3492         * tests/test-trunc-ieee.c (main): Likewise.
3493         * tests/test-truncl-ieee.c (main): Likewise.
3494
3495         ceil: Implement result sign according to IEEE 754.
3496         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
3497         (FUNC): Return -0.0 for -1 < x < 0.
3498         * tests/test-ceil2.c: Include minus-zero.h.
3499         (MINUS_ZERO): New macro.
3500         (ceil_reference): Keep in sync with lib/ceil.c.
3501         * tests/test-ceilf2.c: Include minus-zero.h.
3502         (MINUS_ZERO): New macro.
3503         (ceilf_reference): Keep in sync with lib/ceil.c.
3504         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
3505         * tests/test-ceil-ieee.c (main): Likewise.
3506         * tests/test-ceill-ieee.c (main): Likewise.
3507
3508         floor: Implement result sign according to IEEE 754.
3509         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
3510         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
3511         * tests/test-floorf2.c (floorf_reference): Likewise.
3512         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
3513         * tests/test-floor-ieee.c (main): Likewise.
3514         * tests/test-floorl-ieee.c (main): Likewise.
3515
3516 2010-12-22  Bruno Haible  <bruno@clisp.org>
3517
3518         getaddrinfo: Update doc.
3519         * doc/posix-functions/gai_strerror.texi: Return type is also different
3520         on AIX and HP-UX.
3521
3522 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3523
3524         getaddrinfo, inet_ntop: Update doc for Solaris.
3525         * doc/posix-functions/gai_strerror.texi: Return type is also an
3526         issue on Solaris 9 and earlier.
3527         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
3528         on Solaris 10 and earlier.
3529
3530 2010-12-21  Bruno Haible  <bruno@clisp.org>
3531
3532         New module 'roundl-ieee'.
3533         * modules/roundl-ieee: New file.
3534         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
3535         test whether roundl works according to ISO C 99 with IEC 60559.
3536         * m4/roundl-ieee.m4: New file.
3537         * modules/roundl-ieee-tests: New file.
3538         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
3539         * tests/test-roundl.c (main): Remove signbit tests.
3540         * modules/roundl-tests (Depends-on): Remove signbit.
3541         * doc/posix-functions/roundl.texi: Mention the new module.
3542
3543 2010-12-21  Bruno Haible  <bruno@clisp.org>
3544
3545         New module 'truncl-ieee'.
3546         * modules/truncl-ieee: New file.
3547         * modules/truncl-ieee-tests: New file.
3548         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
3549         * tests/test-truncl.c (main): Remove signbit tests.
3550         * modules/truncl-tests (Depends-on): Remove signbit.
3551         * doc/posix-functions/truncl.texi: Mention the new module.
3552
3553 2010-12-21  Bruno Haible  <bruno@clisp.org>
3554
3555         New module 'ceill-ieee'.
3556         * modules/ceill-ieee: New file.
3557         * modules/ceill-ieee-tests: New file.
3558         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
3559         * tests/test-ceill.c (main): Remove signbit tests.
3560         * modules/ceill-tests (Depends-on): Remove signbit.
3561         * doc/posix-functions/ceill.texi: Mention the new module.
3562
3563 2010-12-21  Bruno Haible  <bruno@clisp.org>
3564
3565         New module 'floorl-ieee'.
3566         * modules/floorl-ieee: New file.
3567         * modules/floorl-ieee-tests: New file.
3568         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
3569         * tests/test-floorl.c (main): Remove signbit tests.
3570         * modules/floorl-tests (Depends-on): Remove signbit.
3571         * doc/posix-functions/floorl.texi: Mention the new module.
3572
3573 2010-12-21  Bruno Haible  <bruno@clisp.org>
3574
3575         New module 'round-ieee'.
3576         * modules/round-ieee: New file.
3577         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
3578         whether round works according to ISO C 99 with IEC 60559.
3579         * m4/round-ieee.m4: New file.
3580         * modules/round-ieee-tests: New file.
3581         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
3582         * tests/test-round1.c (main): Remove signbit tests.
3583         * modules/round-tests (Depends-on): Remove 'signbit'.
3584         * doc/posix-functions/round.texi: Mention the new module.
3585
3586 2010-12-21  Bruno Haible  <bruno@clisp.org>
3587
3588         New module 'trunc-ieee'.
3589         * modules/trunc-ieee: New file.
3590         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
3591         whether trunc works according to ISO C 99 with IEC 60559.
3592         * m4/trunc-ieee.m4: New file.
3593         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
3594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
3595         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
3596         * modules/trunc-ieee-tests: New file.
3597         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
3598         * tests/test-trunc1.c (main): Remove signbit tests.
3599         * modules/trunc-tests (Depends-on): Remove 'signbit'.
3600         * doc/posix-functions/trunc.texi: Mention the new module.
3601
3602 2010-12-21  Bruno Haible  <bruno@clisp.org>
3603
3604         New module 'ceil-ieee'.
3605         * modules/ceil-ieee: New file.
3606         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
3607         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
3608         ISO C 99 with IEC 60559.
3609         * m4/ceil-ieee.m4: New file.
3610         * modules/ceil (Files): Add lib/ceil.c.
3611         (Depends-on): Add 'float'.
3612         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3613         * lib/math.in.h (ceil): New declaration.
3614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
3615         REPLACE_CEIL.
3616         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
3617         * modules/ceil-ieee-tests: New file.
3618         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
3619         * tests/test-math-c++.cc: Check the signature of 'ceil'.
3620         * doc/posix-functions/ceil.texi: Mention the new module.
3621
3622 2010-12-21  Bruno Haible  <bruno@clisp.org>
3623
3624         New module 'floor-ieee'.
3625         * modules/floor-ieee: New file.
3626         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
3627         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
3628         ISO C 99 with IEC 60559.
3629         * m4/floor-ieee.m4: New file.
3630         * modules/floor (Files): Add lib/floor.c.
3631         (Depends-on): Add 'float'.
3632         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3633         * lib/math.in.h (floor): New declaration.
3634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
3635         REPLACE_FLOOR.
3636         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
3637         * modules/floor-ieee-tests: New file.
3638         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
3639         * tests/test-math-c++.cc: Check the signature of 'floor'.
3640         * doc/posix-functions/floor.texi: Mention the new module.
3641
3642 2010-12-21  Bruno Haible  <bruno@clisp.org>
3643
3644         New module 'roundf-ieee'.
3645         * modules/roundf-ieee: New file.
3646         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
3647         test whether roundf works according to ISO C 99 with IEC 60559.
3648         * m4/roundf-ieee.m4: New file.
3649         * modules/roundf-ieee-tests: New file.
3650         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
3651         * tests/test-roundf1.c (main): Remove signbit tests.
3652         * modules/roundf-tests (Depends-on): Remove 'signbit'.
3653         * doc/posix-functions/roundf.texi: Mention the new module.
3654
3655 2010-12-21  Bruno Haible  <bruno@clisp.org>
3656
3657         New module 'truncf-ieee'.
3658         * modules/truncf-ieee: New file.
3659         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
3660         test whether truncf works according to ISO C 99 with IEC 60559.
3661         * m4/truncf-ieee.m4: New file.
3662         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
3663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
3664         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
3665         * modules/truncf-ieee-tests: New file.
3666         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
3667         * tests/test-truncf1.c (main): Remove signbit tests.
3668         * modules/truncf-tests (Depends-on): Remove 'signbit'.
3669         * doc/posix-functions/truncf.texi: Mention the new module.
3670
3671 2010-12-21  Bruno Haible  <bruno@clisp.org>
3672
3673         New module 'ceilf-ieee'.
3674         * modules/ceilf-ieee: New file.
3675         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
3676         test whether ceilf works according to ISO C 99 with IEC 60559.
3677         * m4/ceilf-ieee.m4: New file.
3678         * modules/ceilf-ieee-tests: New file.
3679         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
3680         * tests/test-ceilf1.c (main): Remove signbit tests.
3681         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
3682         * doc/posix-functions/ceilf.texi: Mention the new module.
3683
3684 2010-12-21  Bruno Haible  <bruno@clisp.org>
3685
3686         New module 'floorf-ieee'.
3687         * modules/floorf-ieee: New file.
3688         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
3689         test whether floorf works according to ISO C 99 with IEC 60559.
3690         * m4/floorf-ieee.m4: New file.
3691         * modules/floorf-ieee-tests: New file.
3692         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
3693         * tests/test-floorf1.c (main): Remove signbit tests.
3694         * modules/floorf-tests (Depends-on): Remove 'signbit'.
3695         * doc/posix-functions/floorf.texi: Mention the new module.
3696
3697 2010-12-21  Bruno Haible  <bruno@clisp.org>
3698
3699         Support for minus zero in autoconf macros.
3700         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
3701         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
3702         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
3703         * tests/minus-zero.h: Update comments.
3704
3705 2010-12-21  Bruno Haible  <bruno@clisp.org>
3706
3707         Tests for module 'ceil'.
3708         * modules/ceil-tests: New file.
3709         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
3710         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
3711
3712 2010-12-21  Bruno Haible  <bruno@clisp.org>
3713
3714         Tests for module 'floor'.
3715         * modules/floor-tests: New file.
3716         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
3717         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
3718
3719 2010-12-21  Bruno Haible  <bruno@clisp.org>
3720
3721         math: Fix indentation.
3722         * lib/math.in.h (floorf): Fix indentation.
3723
3724 2010-12-21  Bruno Haible  <bruno@clisp.org>
3725
3726         Fix cross-compilation guesses on Solaris.
3727         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
3728         not match "solaris2.10".
3729         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3730         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
3731         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3732
3733 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
3734
3735         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
3736         This fixes a problem observed with the latest coreutils snapshot
3737         that caused a test to fail on Solaris 8.  src/csplit.c's call
3738         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
3739         earlier, instead of returning the number of bytes that would have
3740         been generated; this causes csplit to incorrectly report memory
3741         exhaustion.
3742         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
3743         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
3744         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
3745         comments to match.
3746         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
3747         Fix typo in matching older versions of Solaris: "solaris2.10"
3748         is matched by the shell pattern "solaris2.[0-9]*".  This matters
3749         only for guessing while cross-compiling.
3750         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
3751
3752 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
3753
3754         ftoastr: fix comment again
3755         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
3757         Also, simplify example a bit by using flags = 0.
3758
3759 2010-12-20  Bruno Haible  <bruno@clisp.org>
3760
3761         round*, trunc*: Update documentation regarding glibc.
3762         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
3763         * doc/posix-functions/round.texi: Likewise.
3764         * doc/posix-functions/roundl.texi: Likewise.
3765         * doc/posix-functions/truncf.texi: Likewise.
3766         * doc/posix-functions/trunc.texi: Likewise.
3767         * doc/posix-functions/truncl.texi: Likewise.
3768
3769 2010-12-20  Bruno Haible  <bruno@clisp.org>
3770
3771         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
3772         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
3773         * doc/posix-functions/round.texi: Likewise.
3774         * doc/posix-functions/roundl.texi: Likewise.
3775
3776 2010-12-20  Bruno Haible  <bruno@clisp.org>
3777
3778         ttyname_r: Add missing declaration on HP-UX 11.
3779         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
3780         HAVE_TTYNAME_R.
3781         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
3782         declared. Set HAVE_TTYNAME_R always.
3783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3784         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
3785         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
3786         HAVE_TTYNAME_R.
3787         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
3788
3789 2010-12-20  Bruno Haible  <bruno@clisp.org>
3790
3791         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
3792         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
3793         * doc/posix-functions/getlogin_r.texi: Likewise.
3794         * tests/test-getlogin.c: Include <errno.h>.
3795         (main): Avoid test failure on HP-UX 11.11.
3796         * tests/test-getlogin_r.c (main): Likewise.
3797
3798 2010-12-20  Bruno Haible  <bruno@clisp.org>
3799
3800         getlogin_r: Add missing declaration on HP-UX 11.
3801         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
3802         declared also when it exists as a function.
3803         * doc/posix-functions/getlogin_r.texi: Document this workaround.
3804
3805 2010-12-20  Bruno Haible  <bruno@clisp.org>
3806
3807         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
3808         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
3809         through wcrtomb.
3810
3811 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3812
3813         ftoastr: fix comment
3814         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3815         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
3816
3817 2010-12-19  Bruno Haible  <bruno@clisp.org>
3818
3819         isnan: Ensure it is a macro.
3820         * lib/math.in.h (isnan): Define as a macro if not already a macro.
3821         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
3822         Solaris.
3823
3824 2010-12-19  Bruno Haible  <bruno@clisp.org>
3825
3826         ldexpl test: Fix link error on OSF/1 5.1.
3827         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
3828
3829 2010-12-19  Bruno Haible  <bruno@clisp.org>
3830
3831         wctype: Make it work in C++ mode on OSF/1 5.1.
3832         * lib/wctype.in.h (iswblank): Declare but not define here.
3833         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
3834         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
3835         * modules/wctype (Files): Add lib/iswblank.c.
3836
3837 2010-12-19  Bruno Haible  <bruno@clisp.org>
3838
3839         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
3840         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
3841         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
3842
3843 2010-12-19  Bruno Haible  <bruno@clisp.org>
3844
3845         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
3846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
3847         _POSIX_PII_SOCKET.
3848         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
3849         * doc/posix-functions/recvfrom.texi: Likewise.
3850         * doc/posix-functions/send.texi: Likewise.
3851         * doc/posix-functions/sendto.texi: Likewise.
3852
3853 2010-12-19  Bruno Haible  <bruno@clisp.org>
3854
3855         tcgetsid: Add missing declaration on OSF/1 5.1.
3856         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
3857         HAVE_TCGETSID.
3858         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
3859         Don't set HAVE_TCGETSID.
3860         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
3861         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
3862         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
3863         HAVE_TCGETSID.
3864         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
3865
3866 2010-12-19  Bruno Haible  <bruno@clisp.org>
3867
3868         stdio: Fix problem with popen() declaration on OSF/1 5.1.
3869         * lib/stdio.in.h: During the include_next statement, let recursive
3870         includes of this file include only the system header file.
3871
3872 2010-12-19  Bruno Haible  <bruno@clisp.org>
3873
3874         iconv_open: Fix regression from 2010-12-04.
3875         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
3876         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
3877
3878 2010-12-19  Bruno Haible  <bruno@clisp.org>
3879
3880         stdbool test: Avoid a gcc warning.
3881         * tests/test-stdbool.c (main): Fail if e1 is false.
3882         Reported by Jim Meyering.
3883
3884 2010-12-19  Jim Meyering  <meyering@redhat.com>
3885
3886         setenv: restore to working order
3887         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
3888         mistakenly removed.
3889         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
3890         HAVE_SETENV.
3891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
3892         HAVE_SETENV.
3893
3894 2010-12-19  Bruno Haible  <bruno@clisp.org>
3895
3896         Document some different function declarations on OSF/1 5.1.
3897         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
3898         * doc/posix-functions/inet_ntop.texi: Likewise.
3899         * doc/posix-functions/gethostname.texi: Likewise.
3900         * lib/unistd.in.h (gethostname): Update comment.
3901
3902 2010-12-19  Bruno Haible  <bruno@clisp.org>
3903
3904         doc: Mention vasprintf-posix module.
3905         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
3906         the 'vasprintf-posix' module.
3907         * doc/glibc-functions/vasprintf.texi: Likewise.
3908
3909 2010-12-19  Bruno Haible  <bruno@clisp.org>
3910
3911         unsetenv: Add missing declaration on OSF/1 5.1.
3912         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
3913         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
3914         Don't set HAVE_UNSETENV. In the test program, set _BSD.
3915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
3916         not HAVE_UNSETENV.
3917         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
3918         HAVE_UNSETENV.
3919         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
3920
3921 2010-12-19  Bruno Haible  <bruno@clisp.org>
3922
3923         setenv: Add missing declaration on OSF/1 5.1.
3924         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
3925         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
3926         declared. Don't set HAVE_SETENV.
3927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
3928         not HAVE_SETENV.
3929         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
3930         HAVE_SETENV.
3931         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
3932
3933 2010-12-19  Bruno Haible  <bruno@clisp.org>
3934
3935         nl_langinfo tests: Avoid gcc warning.
3936         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
3937
3938 2010-12-19  Bruno Haible  <bruno@clisp.org>
3939
3940         mknod: Avoid error in C++ mode on OSF/1 with GCC.
3941         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
3942         _GL_CXXALIAS_SYS.
3943
3944 2010-12-19  Bruno Haible  <bruno@clisp.org>
3945
3946         stdbool: Relax test.
3947         * tests/test-stdbool.c (e): Don't require that casts from a variable's
3948         address to 'bool' work in static initializer, for compilers other than
3949         GCC.
3950
3951 2010-12-19  Bruno Haible  <bruno@clisp.org>
3952
3953         ftello: Add missing declaration on OSF/1 5.1.
3954         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
3955         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
3956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
3957         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
3958         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
3959
3960 2010-12-19  Bruno Haible  <bruno@clisp.org>
3961
3962         fseeko: Add missing declaration on OSF/1 5.1.
3963         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
3964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
3965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
3966         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
3967         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
3968
3969 2010-12-19  Bruno Haible  <bruno@clisp.org>
3970
3971         fchdir: Add missing declaration on OSF/1 5.1.
3972         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
3973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
3974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
3975         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
3976         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
3977
3978 2010-12-19  Bruno Haible  <bruno@clisp.org>
3979
3980         relocatable-prog-wrapper: Separate from relocatable-prog.
3981         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
3982         uninstall-relocwrapper rule here.
3983         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
3984         Reported by Ian Beckwith <ianb@erislabs.net>.
3985
3986 2010-12-19  Bruno Haible  <bruno@clisp.org>
3987
3988         unistr/u8-mbsnlen: Add missing dependency.
3989         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
3990         Reported by Ian Beckwith <ianb@erislabs.net>.
3991
3992 2010-12-19  Bruno Haible  <bruno@clisp.org>
3993
3994         iconv: Make it possible again to use this module without 'iconv-h'.
3995         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
3996         if it is not defined.
3997         Reported by Ian Beckwith <ianb@erislabs.net>.
3998
3999 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4000
4001         acl: port to Solaris 8 when copying from tmpfs to ufs
4002         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
4003         error number.  Problem observed on Solaris 8 with latest
4004         coreutils, with "mv A B", where A is on a tmpfs file system and B
4005         is on a ufs file system.  This caused coreutils' mv/part-symlink
4006         test to fail.
4007
4008         tests: set fail=0 at start
4009         * tests/init.sh (setup_): Move fail=0 initialization here ...
4010         (mktempd_): ... from here, so that tests can rely on fail being
4011         set to 0 initially.  This fixes a problem in coreutils; see:
4012         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
4013
4014 2010-12-18  Bruno Haible  <bruno@clisp.org>
4015
4016         memmem-simple: Stylistic changes.
4017         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
4018         Fix preprocessor directive indentation.
4019
4020 2010-12-15  Pádraig Brady <P@draigBrady.com>
4021
4022         memmem, memmem-simple: reorganize and expand empty needle check
4023         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
4024         functional checks to memmem-simple so that one has a fully functional
4025         memmem by using just this module.
4026         Restrict the performance only check to the memmem module.
4027         Also expand the empty needle check to ensure the correct
4028         pointer is returned, not just a non NULL pointer.
4029         * doc/glibc-functions/memmem.texi: Rearrange the portability
4030         documentation to correlate with the rearranged checks.
4031         Clarify exactly how the memmem and memmem-simple modules
4032         relate to each other.
4033
4034 2010-12-15  Pádraig Brady <P@draigBrady.com>
4035             Bruno Haible  <bruno@clisp.org>
4036
4037         Improve cross-compilation guesses for uClibc.
4038         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
4039         that uClibc does not have the glibc bug.
4040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4041         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
4042
4043 2010-12-14  Eric Blake  <eblake@redhat.com>
4044
4045         configmake: provide fallbacks for oldest supported autotools
4046         * m4/configmake.m4: New file.
4047         * modules/configmake (Files): Ship it.
4048         (configure.ac): Use it to guarantee fallbacks.
4049
4050 2010-12-13  Pádraig Brady <P@draigBrady.com>
4051
4052         read-file: Improve handling of large files
4053         * lib/read-file.c (fread_file): Minimize realloc()s
4054         for regular files, and better manage sizes around SIZE_MAX.
4055
4056 2010-12-13  Eric Blake  <eblake@redhat.com>
4057
4058         cloexec, fcntl: relax license
4059         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
4060         consent from all contributors.
4061         * modules/fcntl (License): Likewise.
4062
4063 2010-12-10  Bruno Haible  <bruno@clisp.org>
4064
4065         Tests for module 'pipe-posix'.
4066         * modules/pipe-posix-tests: New file.
4067         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
4068
4069 2010-12-10  Bruno Haible  <bruno@clisp.org>
4070
4071         pipe-posix: Make it work in C++ mode.
4072         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
4073         (pipe): Use common idiom, not a macro definition.
4074         * lib/pipe.c: New file.
4075         * m4/pipe.m4: New file.
4076         * modules/pipe-posix (Description): Enhance.
4077         (Files): Add lib/pipe.c, m4/pipe.m4.
4078         (configure.ac): Invoke gl_FUNC_PIPE.
4079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
4080         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
4081         * tests/test-unistd-c++.cc: Check the signature of pipe.
4082
4083 2010-12-10  Bruno Haible  <bruno@clisp.org>
4084
4085         Rename module 'pipe' to 'spawn-pipe'.
4086         * modules/spawn-pipe: New file, renamed from modules/pipe.
4087         (Files, configure.ac, Makefile.am): Update.
4088         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
4089         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
4090         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
4091         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
4092         "spawn-pipe.h" instead of "pipe.h".
4093         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
4094         to gl_SPAWN_PIPE.
4095         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
4096         (Files, Makefile.am): Update.
4097         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
4098         Update.
4099         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
4100         Include "spawn-pipe.h" instead of "pipe.h".
4101         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
4102         * lib/javacomp.c: Likewise.
4103         * lib/javaversion.c: Likewise.
4104         * lib/pipe-filter-gi.c: Likewise.
4105         * lib/pipe-filter-ii.c: Likewise.
4106         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
4107         * modules/javacomp (Depends-on): Likewise.
4108         * modules/javaversion (Depends-on): Likewise.
4109         * modules/pipe-filter-gi (Depends-on): Likewise.
4110         * modules/pipe-filter-ii (Depends-on): Likewise.
4111         * MODULES.html.sh (Executing programs): Update.
4112         * NEWS: Mention the change.
4113
4114 2010-12-10  Eric Blake  <eblake@redhat.com>
4115
4116         pipe-posix: new module
4117         * modules/pipe-posix: New file.
4118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
4119         (gl_UNISTD_H): Check for declaration.
4120         * modules/unistd (Makefile.am): Substitute it.
4121         * lib/unistd.in.h (pipe): Provide it for mingw.
4122         * doc/posix-functions/pipe.texi (pipe): Update documentation.
4123         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
4124
4125 2010-12-07  Bruno Haible  <bruno@clisp.org>
4126
4127         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
4128         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
4129         u8_strcmp_gnu.
4130         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
4131
4132 2010-12-06  Bruno Haible  <bruno@clisp.org>
4133
4134         Update internal documentation.
4135         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
4136
4137 2010-12-04  Bruno Haible  <bruno@clisp.org>
4138
4139         Put more information about failed tests into the test return codes.
4140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
4141         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
4142         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4144         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4145         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4146         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4147         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4148         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
4149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4151         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4152         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4153         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
4155         returns a bit mask.
4156         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4157         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4158         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4159         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4160         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4161         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4162         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4164         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4165         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4166         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4167         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4168         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4170         * m4/link.m4 (gl_FUNC_LINK): Likewise.
4171         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4172         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
4173         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
4174         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4175         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
4176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4177         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4178         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4179         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4180         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4181         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4182         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4183         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4184         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4185         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
4186         gl_PRINTF_PRECISION): Likewise.
4187         * m4/regex.m4 (gl_REGEX): Likewise.
4188         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4189         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4190         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
4191         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4192         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4194         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4195         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
4196         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4197         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4198         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
4199         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4200         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4201         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4202         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4203         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4204         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4205         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4207         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
4208         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
4209         enumerated value.
4210         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
4211
4212 2010-12-04  Bruno Haible  <bruno@clisp.org>
4213
4214         Update for Solaris 11 2010-11.
4215         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
4216         Express, released in November 2010.
4217
4218 2010-12-04  Bruno Haible  <bruno@clisp.org>
4219
4220         nproc: Relax license.
4221         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
4222         and Paul Eggert.
4223         Requested by Ludovic Courtès <ludo@gnu.org>.
4224
4225 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4226
4227         utimecmp: fine-grained src to nearby coarse-grained dest
4228
4229         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
4230         and the source is on a file system with higher-resolution time
4231         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
4232         not work, and the time stamps are close together, the algorithm to
4233         determine the exact resolution from the read-back mtime was buggy:
4234         it had a "!=" where it should have had an "==".  This bug has been
4235         in the code ever since it was introduced to gnulib.
4236         Problem reported by Dan Jacobson in
4237         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
4238
4239 2010-11-30  Bruno Haible  <bruno@clisp.org>
4240
4241         strerror_r-posix: Fix autoconf test.
4242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
4243
4244 2010-11-28  Bruno Haible  <bruno@clisp.org>
4245             Paul Eggert  <eggert@cs.ucla.edu>
4246
4247         Tests for module 'getdomainname'.
4248         * modules/getdomainname-tests: New file.
4249         * tests/test-getdomainname.c: New file, based on
4250         tests/test-gethostname.c.
4251
4252 2010-11-28  Bruno Haible  <bruno@clisp.org>
4253             Paul Eggert  <eggert@cs.ucla.edu>
4254
4255         getdomainname: Use the system function when possible.
4256         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
4257         (getdomainname): Replace if needed. Provide the declaration if it is
4258         missing. Don't use _GL_CXXALIAS_SYS_CAST.
4259         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
4260         (getdomainname): When the system has getdomainname, call the system
4261         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
4262         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
4263         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
4264         found in libnsl. Look for the declaration also in <netdb.h>. Replace
4265         the function if its second argument is of type 'int' or if it is found
4266         in libnsl.
4267         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
4268         <sys/systeminfo.h> and sysinfo().
4269         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
4270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4271         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
4272         HAVE_GETDOMAINNAME.
4273         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
4274         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
4275         * doc/glibc-functions/getdomainname.texi: Document the problems with
4276         the getdomainname declaration.
4277
4278 2010-11-28  Bruno Haible  <bruno@clisp.org>
4279
4280         sys_socket: Ensure ss_family field on AIX.
4281         * lib/sys_socket.in.h (ss_family): New macro definition.
4282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
4283         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
4284         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4285         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4286         * modules/sys_socket (Makefile.am): Substitute
4287         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4288         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
4289
4290 2010-11-27  Bruno Haible  <bruno@clisp.org>
4291
4292         readline: Improve configure output.
4293         * m4/readline.m4 (gl_FUNC_READLINE): Make the
4294         "checking for readline..." result understandable.
4295
4296 2010-11-27  Bruno Haible  <bruno@clisp.org>
4297
4298         *printf-posix: Detect a bug on Solaris 10/x86.
4299         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
4300         for floating-point output.
4301         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
4302         directive.
4303         * tests/test-snprintf-posix.h (test_function): Likewise.
4304         * tests/test-sprintf-posix.h (test_function): Likewise.
4305         * tests/test-vasprintf-posix.c (test_function): Likewise.
4306         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
4307         * doc/posix-functions/printf.texi: Likewise.
4308         * doc/posix-functions/snprintf.texi: Likewise.
4309         * doc/posix-functions/sprintf.texi: Likewise.
4310         * doc/posix-functions/vfprintf.texi: Likewise.
4311         * doc/posix-functions/vprintf.texi: Likewise.
4312         * doc/posix-functions/vsnprintf.texi: Likewise.
4313         * doc/posix-functions/vsprintf.texi: Likewise.
4314         * doc/glibc-functions/obstack_printf.texi: Likewise.
4315         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4316
4317 2010-11-27  Bruno Haible  <bruno@clisp.org>
4318
4319         Fix link error when module libunistring-optional is in use.
4320         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
4321         * modules/striconveha-tests (Makefile.am): Likewise.
4322
4323 2010-11-27  Bruno Haible  <bruno@clisp.org>
4324
4325         regex: Mention link dependencies.
4326         * modules/regex (Link): New section.
4327         * modules/rpmatch (Link): Likewise.
4328         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
4329
4330 2010-11-27  Bruno Haible  <bruno@clisp.org>
4331
4332         ftoastr: Fix compilation error on Solaris.
4333         * lib/ftoastr.c: Include <config.h>.
4334
4335 2010-11-27  Bruno Haible  <bruno@clisp.org>
4336
4337         getloadavg: Update documentation.
4338         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
4339
4340 2010-11-27  Bruno Haible  <bruno@clisp.org>
4341
4342         sys_socket: Fix test whether the functions are declared.
4343         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
4344         not <sys/select.h>.
4345
4346 2010-11-27  Bruno Haible  <bruno@clisp.org>
4347
4348         getpass: Make sure to get system declaration on some platforms.
4349         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
4350         gl_USE_SYSTEM_EXTENSIONS.
4351         * modules/getpass (Depends-on): Add extensions.
4352
4353 2010-11-26  Bruno Haible  <bruno@clisp.org>
4354
4355         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
4356         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
4357         'iconv' module is present.
4358         (ICONV_CONST): New macro.
4359         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
4360         ICONV_CONST.
4361         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
4362         set ICONV_CONST.
4363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
4364         here.
4365         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
4366         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
4367         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
4368         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
4369         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
4370         present.
4371
4372 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4373
4374         ftoastr: comment fix
4375         * lib/ftoastr.c: "little" -> "little or no" in comment
4376
4377 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4378
4379         stdint: port to GCC 4.3 + OSX + Octave
4380         On this platform, stdint.h is buggy and defines int64_t to long
4381         long int.  The replacement defined it to long int, causing
4382         problems with C++ style name mangling.  Instead, trust the system
4383         definition if INT64_MAX is defined, and likewise for the unsigned
4384         variant.   Problem reported by Jarno Rajahalme in
4385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
4386         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
4387         and don't mess with int64_t and INT64_MAX in this case.
4388         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
4389
4390 2010-11-24  Bruno Haible  <bruno@clisp.org>
4391
4392         doc: Corrections regarding MacOS X 10.4 and 10.5.
4393         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
4394         MacOS X.
4395         Reported by Simon Josefsson.
4396
4397 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
4398
4399         Uninstall ".bin" files installed by relocwrapper.
4400         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
4401         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
4402         unless it is already there.
4403
4404 2010-11-21  Bruno Haible  <bruno@clisp.org>
4405
4406         Update for NetBSD 5.0.
4407         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4408         NetBSD; the test fails on NetBSD 5.0.
4409         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4410         about NetBSD.
4411
4412 2010-11-21  Bruno Haible  <bruno@clisp.org>
4413
4414         Update for HP-UX 11.23 and HP-UX 11.31.
4415         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
4416         HP-UX.
4417
4418 2010-11-21  Bruno Haible  <bruno@clisp.org>
4419
4420         Update for MacOS X 10.5.
4421         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4422         MacOS X; the test fails on MacOS X 10.5.8.
4423         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4424         about MacOS X.
4425
4426 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
4427
4428         bootstrap: add bootstrap_sync option.
4429         See discussion at
4430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
4431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
4432         * build-aux/bootstrap: Accept --bootstrap-sync to update
4433         bootstrap if it is not identical to the local gnulib's
4434         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
4435         enable this by default.  Accept --no-bootstrap-sync to disable
4436         it.
4437
4438 2010-11-20  Bruno Haible  <bruno@clisp.org>
4439
4440         Ensure that <features.h> is included before __GLIBC__ is tested.
4441         * lib/printf-parse.h: Include <features.h>.
4442         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
4443         Reported by Mike Frysinger <vapier@gentoo.org>.
4444
4445         Ensure that <features.h> is included before __GLIBC__ is tested.
4446         * lib/wchar.in.h: Include <features.h>.
4447         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
4448         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
4449         Reported by Mike Frysinger <vapier@gentoo.org>.
4450
4451         Ensure that <features.h> is included before __GLIBC__ is tested.
4452         * lib/arpa_inet.in.h: Include <features.h>.
4453         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
4454         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
4455         Reported by Mike Frysinger <vapier@gentoo.org>.
4456
4457         Ensure that <features.h> is included before __GLIBC__ is tested.
4458         * build-aux/link-warning.h: Include <features.h>.
4459         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
4460         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
4461         Reported by Mike Frysinger <vapier@gentoo.org>.
4462
4463         Ensure that <features.h> is included before __GLIBC__ is tested.
4464         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
4465         Reported by Mike Frysinger <vapier@gentoo.org>.
4466
4467 2010-11-20  Bruno Haible  <bruno@clisp.org>
4468
4469         memmem: Fix autoconf test.
4470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
4471
4472 2010-11-20  Bruno Haible  <bruno@clisp.org>
4473
4474         Port to uClibc.
4475         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
4476         * lib/fcntl.in.h: Likewise.
4477         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
4478         * lib/mbrtowc.c (mbrtowc): Likewise.
4479         * lib/relocatable.c (find_shared_library_fullname): Likewise.
4480         * lib/strerror_r.c: Likewise.
4481         * lib/unistr/u8-strnlen.c: Likewise.
4482         * lib/vasnprintf.c (decimal_point_char): Likewise.
4483         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4484         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4485         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4486         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
4487         * tests/test-sigaction.c (handler, main): Likewise.
4488         * lib/freading.h: Treat uClibc like a non-glibc platform.
4489         * lib/freading.c: Likewise.
4490         * lib/gettext.h: Likewise.
4491         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
4492         Likewise.
4493         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
4494         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4495         * lib/propername.c (proper_name_utf8): Likewise.
4496         * lib/spawn.in.h: Likewise.
4497         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
4498         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
4499         mem_cd_iconveh_internal): Likewise.
4500         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
4501         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4502         strstr, strcasestr): Likewise.
4503         * lib/unicodeio.c (unicode_to_mb): Likewise.
4504         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
4505         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
4506         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
4507         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
4508         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
4509         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
4510         * lib/unistr/u8-stpncpy.c: Likewise.
4511         * lib/vasnprintf.c (VASNPRINTF): Likewise.
4512         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
4513         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4514         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4515         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
4516         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
4517         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
4518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
4519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4520         Likewise.
4521         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4522         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4523         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4526         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4527         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4528         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4529         * tests/test-getopt.h (OPTIND_MIN): Likewise.
4530         * tests/test-striconveha.c (main): Likewise.
4531         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4532         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
4533         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
4534         * doc/posix-functions/getline.texi: Likewise.
4535         Reported by Mike Frysinger <vapier@gentoo.org>.
4536
4537 2010-11-20  Bruno Haible  <bruno@clisp.org>
4538
4539         nproc: Fix condition.
4540         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
4541         HAVE_PTHREAD_AFFINITY_NP.
4542
4543 2010-11-20  Bruno Haible  <bruno@clisp.org>
4544
4545         Fix a comment.
4546         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
4547
4548 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
4549
4550         ftoastr: don't assume snprintf
4551         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
4552         Implement a subset of snprintf here, by using sprintf safely.
4553         * modules/ftoastr (Depends-on): Remove snprintf.
4554
4555 2010-11-19  Jim Meyering  <meyering@redhat.com>
4556
4557         test-rename.h: fix compilation failure
4558         * tests/test-rename.h (test_rename): Add omitted "}".
4559
4560 2010-11-17  Jim Meyering  <meyering@redhat.com>
4561
4562         maint.mk: add a URL discussing the no-@acronym policy
4563         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
4564
4565 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4566
4567         ftoastr: depend on snprintf, improve comments
4568         * lib/ftoastr.c: Also mention Loitsch's draft.
4569         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
4570         needed in the current implementation, but it might simplify
4571         speeding up the code later.
4572         * modules/ftoastr: Depend on snprintf; this improves portability.
4573         Suggested by Bruno Haible in the same email.
4574
4575         ftoastr: port to hosts lacking strtof and strtold
4576         Problem reported by Bruno Haible in
4577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
4578         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
4579         environment and strtold (and presumably strtof) are not available.
4580         * modules/ftoastr (Files): Add m4/c-strtod.m4.
4581         (configure.ac): Require gl_C99_STRTOLD.
4582
4583 2010-11-18  Bruno Haible  <bruno@clisp.org>
4584
4585         c-strtold: Avoid link error on AIX 7.
4586         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
4587         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
4588         (gl_C_STRTOLD): Test whether strtold_l exists.
4589         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4590
4591 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4592
4593         intprops: new macro INT_BITS_STRLEN_BOUND
4594         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
4595         ftoastr.h.  This exposes an internal of intprops.h that was formerly
4596         not exposed.  Also, it uses a slightly tighter bound than before;
4597         though this makes no practical difference, we might as well be as
4598         tight as we easily can.
4599
4600         ftoastr: new module, for lossless conversion of floats to short strings
4601         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
4602         * modules/ftoastr: New files.
4603
4604 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4605
4606         bootstrap: port to Solaris sed
4607         * build-aux/bootstrap (get_version): Port to Solaris sed.
4608         See Ralf Wildenhues's note in
4609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
4610
4611 2010-11-14  Jim Meyering  <meyering@redhat.com>
4612
4613         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
4614         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
4615         and move definition closer to sole use.
4616
4617 2010-11-13  Jim Meyering  <meyering@redhat.com>
4618
4619         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
4620         Now we require at least autoconf-2.59, which means the work-around
4621         is no longer needed.
4622         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
4623         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4624         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4625         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4626         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4627
4628 2010-11-13  Bruno Haible  <bruno@clisp.org>
4629
4630         rename, renameat: Avoid test failures at NFS mounted locations.
4631         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
4632         functions.
4633         (test_rename): Use assert_nonexistent.
4634         * tests/test-rename.c: Include <dirent.h>.
4635         * tests/test-renameat.c: Likewise.
4636         Reported by Gary V. Vaughan <gary@gnu.org>.
4637
4638         rename, renameat: Document Linux bug with NFS
4639         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
4640         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
4641         * doc/posix-functions/renameat.texi: Likewise.
4642         Suggested by Eric Blake.
4643
4644 2010-11-13  Bruno Haible  <bruno@clisp.org>
4645
4646         rename test: Add comments.
4647         * tests/test-rename.h (test_rename): Add structure and comments.
4648
4649 2010-11-13  Eric Blake  <eblake@redhat.com>
4650
4651         maintainer-makefile: cover a few more files
4652         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
4653         scripts generated within C files, for libvirt.
4654
4655 2010-11-13  Bruno Haible  <bruno@clisp.org>
4656
4657         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
4658         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
4659         character, return the number of bytes that belong together, not always
4660         1.
4661         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4662         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4663         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4664         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
4665         number of bytes of an invalid character.
4666         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
4667         (main): Invoke it.
4668         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
4669         results.
4670         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
4671         malformed byte sequences.
4672         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
4673         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
4674         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
4675         Reported by Ben Pfaff and Paolo Bonzini.
4676
4677 2010-11-13  Bruno Haible  <bruno@clisp.org>
4678
4679         openat: Work around glibc bug with fchownat() and empty file names.
4680         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
4681         (gl_FUNC_FCHOWNAT): Invoke it.
4682         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
4683         * doc/posix-functions/fchownat.texi: Document the glibc bug.
4684         Reported by Gary V. Vaughan <gary@gnu.org>.
4685
4686 2010-11-13  Bruno Haible  <bruno@clisp.org>
4687
4688         openat: Ensure autoconf macro ordering.
4689         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
4690         gl_USE_SYSTEM_EXTENSIONS.
4691         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
4692
4693 2010-11-13  Bruno Haible  <bruno@clisp.org>
4694
4695         Update comments.
4696         * lib/unistr/u8-check.c: Update file name in comments.
4697         * lib/unistr/u8-mblen.c: Likewise.
4698         * lib/unistr/u8-prev.c: Likewise.
4699         * lib/unistr/u8-strmblen.c: Likewise.
4700         * lib/unistr/u8-strmbtouc.c: Likewise.
4701
4702 2010-11-13  Jim Meyering  <meyering@redhat.com>
4703
4704         tests: avoid test failure on Solaris 10 due to lack of PATH export
4705         * tests/test-update-copyright.sh: Don't forget to export PATH.
4706
4707         init.sh: ensure that IFS is defined, just in case...
4708         * tests/init.sh (setup_): Ensure that IFS is defined,
4709         so that saving and restoring it works as expected.  This
4710         appears to be useful at least for an old version of dash
4711         from a long time ago (RH 6).  See here for details:
4712         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
4713
4714         maint.mk: tighten "test a == b" check
4715         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
4716         test to files that contain something like #!/bin/sh.
4717         Without this, coreutils would get two false positives in
4718         the comments of C source files.
4719
4720 2010-11-12  Eric Blake  <eblake@redhat.com>
4721
4722         bootstrap: fix typo in previous attempt
4723         * build-aux/bootstrap (buildreq): Correct the grouping.
4724         Reported by Paul Eggert.
4725
4726         maintainer-makefile: prohibit test x == x
4727         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
4728         Based on a report by Matthias Bolte.
4729
4730         bootstrap: allow FreeBSD gzip
4731         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
4732         which has no '.' and goes to stderr.
4733         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
4734         Reported by Matthias Bolte.
4735
4736         maintainer-makefile: check for i18n setup
4737         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
4738         will likely work.
4739
4740 2010-11-12  Bruno Haible  <bruno@clisp.org>
4741
4742         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
4743         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
4744         * lib/nanosleep.c (nanosleep): Likewise.
4745
4746 2010-11-11  Bruno Haible  <bruno@clisp.org>
4747
4748         fcntl-h: Fix for use of C++ on glibc systems.
4749         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4750         also on glibc systems in C++ mode.
4751         Reported by Gary V. Vaughan <gary@gnu.org>.
4752
4753 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4754
4755         mknod: avoid false failure with dash
4756         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
4757
4758 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4759
4760         unlink: Fix "is it should" typo in diagnostic.
4761         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
4762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
4763
4764 2010-11-11  Bruno Haible  <bruno@clisp.org>
4765
4766         Tests for module 'strerror_r-posix'.
4767         * modules/strerror_r-posix-tests: New file.
4768         * tests/test-strerror_r.c: New file.
4769         * tests/test-string-c++.cc: Check the signature of strerror_r.
4770
4771         New module 'strerror_r-posix'.
4772         * lib/string.in.h (strerror_r): New declaration.
4773         * lib/strerror_r.c: New file.
4774         * m4/strerror_r.m4: New file.
4775         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
4776         of strerror_r.
4777         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
4778         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4779         * modules/strerror_r-posix: New file.
4780         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
4781         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4782         * doc/posix-functions/strerror_r.texi: Mention the new module and the
4783         portability problems.
4784
4785 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
4786
4787         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
4788         line is also considered for output. Quoted function name in shell
4789         command, so temporary files for functions like MyClass::operator()
4790         are removed correctly without errors.
4791
4792 2010-11-09  Bruno Haible  <bruno@clisp.org>
4793
4794         * doc/posix-functions/strerror.texi: List more failing platforms.
4795
4796         * doc/posix-functions/strerror.texi: Add a comment.
4797
4798 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4799
4800         fdopendir: fix bug on MacOS X when low on file descriptors
4801
4802         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
4803         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
4804         All callers changed.
4805         (fdopendir): Invoke save_cwd at the top level, not after using
4806         multiple dup() calls to use up file descriptors.  Then retry
4807         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
4808         less than the maximum number of open file descriptors, because
4809         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
4810         on Mac OS X 10.6.4 for tar 1.24
4811         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
4812         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
4813         and for tar 1.25
4814         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
4815
4816 2010-11-07  Bruno Haible  <bruno@clisp.org>
4817
4818         vasnprintf: Support I flag on glibc systems.
4819         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
4820         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
4821         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
4822         snprintf function.
4823         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
4824         glibc systems.
4825         * tests/test-vasnprintf-posix3.c: New file.
4826         * modules/vasnprintf-posix-tests (Files): Add it.
4827         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
4828
4829 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4830
4831         [html] Fix copy/paste bug: Use unique name for compiler warnings.
4832         * MODULES.html.sh: For compiler warnings, use name
4833         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
4834
4835 2010-11-05  Eric Blake  <eblake@redhat.com>
4836
4837         ceil, floor: avoid spurious failure with icc
4838         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
4839         [denormals-as-zero] when optimizing without -mieee-fp option.
4840         * tests/test-floorf2.c (floorf_reference): Likewise.
4841         * tests/test-ceilf1.c (dummy): New function.
4842         (main): Use it to outsmart icc's optimization.
4843         * tests/test-floorf1.c (dummy, main): Likewise.
4844
4845         tests: require working signbit
4846         * modules/ceilf-tests (Depends-on): Add signbit.
4847         * modules/ceill-tests (Depends-on): Likewise.
4848         * modules/floorf-tests (Depends-on): Likewise.
4849         * modules/floorl-tests (Depends-on): Likewise.
4850         * modules/round-tests (Depends-on): Likewise.
4851         * modules/roundf-tests (Depends-on): Likewise.
4852         * modules/roundl-tests (Depends-on): Likewise.
4853         * modules/trunc-tests (Depends-on): Likewise.
4854         * modules/truncf-tests (Depends-on): Likewise.
4855         * modules/truncl-tests (Depends-on): Likewise.
4856
4857         strtod: work around icc bug
4858         * lib/strtod.c (minus_zero): Define to working value.
4859         (strtod): Use it to avoid icc bug.
4860
4861         copysign: enhance tests
4862         * modules/copysign-tests (Files): Add minus-zero.h.
4863         * tests/test-copysign.c (main): Also test zeros.
4864
4865 2010-11-04  Eric Blake  <eblake@redhat.com>
4866
4867         ceil, floor, round, trunc: enhance tests of -0
4868         * tests/test-ceilf1.c (main): Ensure correct sign of result.
4869         * tests/test-ceill.c (main): Likewise.
4870         * tests/test-floorf1.c (main): Likewise.
4871         * tests/test-floorl.c (main): Likewise.
4872         * tests/test-round1.c (main): Likewise.
4873         * tests/test-roundf1.c (main): Likewise.
4874         * tests/test-roundl.c (main): Likewise.
4875         * tests/test-trunc1.c (main): Likewise.
4876         * tests/test-truncf1.c (main): Likewise.
4877         * tests/test-truncl.c (main): Likewise.
4878
4879 2010-11-04  Eric Blake  <eblake@redhat.com>
4880
4881         frexp, tests: work around ICC bug with -zero
4882         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
4883         works with more compilers.
4884         * tests/minus-zero.h: New file.
4885         * modules/ceilf-tests (Files): Include it.
4886         * modules/ceill-tests (Files): Likewise.
4887         * modules/floorf-tests (Files): Likewise.
4888         * modules/floorl-tests (Files): Likewise.
4889         * modules/frexp-nolibm-tests (Files): Likewise.
4890         * modules/frexp-tests (Files): Likewise.
4891         * modules/frexpl-nolibm-tests (Files): Likewise.
4892         * modules/frexpl-tests (Files): Likewise.
4893         * modules/isnan-tests (Files): Likewise.
4894         * modules/isnand-nolibm-tests (Files): Likewise.
4895         * modules/isnand-tests (Files): Likewise.
4896         * modules/isnanf-nolibm-tests (Files): Likewise.
4897         * modules/isnanf-tests (Files): Likewise.
4898         * modules/isnanl-nolibm-tests (Files): Likewise.
4899         * modules/isnanl-tests (Files): Likewise.
4900         * modules/round-tests (Files): Likewise.
4901         * modules/roundf-tests (Files): Likewise.
4902         * modules/roundl-tests (Files): Likewise.
4903         * modules/ldexpl-tests (Files): Likewise.
4904         * modules/signbit-tests (Files): Likewise.
4905         * modules/snprintf-posix-tests (Files): Likewise.
4906         * modules/sprintf-posix-tests (Files): Likewise.
4907         * modules/strtod-tests (Files): Likewise.
4908         * modules/trunc-tests (Files): Likewise.
4909         * modules/truncf-tests (Files): Likewise.
4910         * modules/truncl-tests (Files): Likewise.
4911         * modules/vsnprintf-posix-tests (Files): Likewise.
4912         * modules/vsprintf-posix-tests (Files): Likewise.
4913         * modules/vasnprintf-posix-tests (Files): Likewise.
4914         * modules/vasprintf-posix-tests (Files): Likewise.
4915         * tests/test-ceilf1.c (main): Use it.
4916         * tests/test-ceill.c (main): Likewise.
4917         * tests/test-floorf1.c (main): Likewise.
4918         * tests/test-floorl.c (main): Likewise.
4919         * tests/test-frexp.c (main): Likewise.
4920         * tests/test-frexpl.c (main): Likewise.
4921         * tests/test-isnan.c (main): Likewise.
4922         * tests/test-isnand.h (main): Likewise.
4923         * tests/test-isnanf.h (main): Likewise.
4924         * tests/test-isnanl.h (main): Likewise.
4925         * tests/test-ldexpl.c (main): Likewise.
4926         * tests/test-round.c (main): Likewise.
4927         * tests/test-roundf.c (main): Likewise.
4928         * tests/test-roundl.c (main): Likewise.
4929         * tests/test-signbit.c (test_signbitf, test_signbitd)
4930         (test_signbitl): Likewise.
4931         * tests/test-snprintf-posix.h (test_function): Likewise.
4932         * tests/test-sprintf-posix.h (test_function): Likewise.
4933         * tests/test-strtod.c (main): Likewise.
4934         * tests/test-trunc1.c (main): Likewise.
4935         * tests/test-truncf1.c (main): Likewise.
4936         * tests/test-truncl.c (main): Likewise.
4937
4938         isnanl: work around icc bug
4939         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
4940
4941 2010-11-03  Eric Blake  <eblake@redhat.com>
4942
4943         tests: fix compiler warnings
4944         * tests/test-getopt.h (test_getopt): Fix condition.
4945         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4946         * tests/test-pipe2.c (main): Likewise.
4947         * tests/test-quotearg-simple.c (main): Avoid icc warning.
4948
4949         utimens: fix broken m4 test
4950         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
4951
4952 2010-10-28  Bruno Haible  <bruno@clisp.org>
4953
4954         posix_spawn*, getdtablesize: Relax license.
4955         * modules/posix_spawn (License): Change to LGPLv2+.
4956         * modules/posix_spawnp (License): Likewise.
4957         * modules/posix_spawn-internal (License): Likewise.
4958         * modules/posix_spawnattr_init (License): Likewise.
4959         * modules/posix_spawnattr_getflags (License): Likewise.
4960         * modules/posix_spawnattr_setflags (License): Likewise.
4961         * modules/posix_spawnattr_getpgroup (License): Likewise.
4962         * modules/posix_spawnattr_setpgroup (License): Likewise.
4963         * modules/posix_spawnattr_getschedparam (License): Likewise.
4964         * modules/posix_spawnattr_setschedparam (License): Likewise.
4965         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
4966         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
4967         * modules/posix_spawnattr_getsigdefault (License): Likewise.
4968         * modules/posix_spawnattr_setsigdefault (License): Likewise.
4969         * modules/posix_spawnattr_getsigmask (License): Likewise.
4970         * modules/posix_spawnattr_setsigmask (License): Likewise.
4971         * modules/posix_spawnattr_destroy (License): Likewise.
4972         * modules/posix_spawn_file_actions_init (License): Likewise.
4973         * modules/posix_spawn_file_actions_addclose (License): Likewise.
4974         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
4975         * modules/posix_spawn_file_actions_addopen (License): Likewise.
4976         * modules/posix_spawn_file_actions_destroy (License): Likewise.
4977         * modules/getdtablesize (License): Likewise.
4978         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
4979
4980 2010-10-26  Bruno Haible  <bruno@clisp.org>
4981
4982         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
4983         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
4984         Cygwin and mingw.
4985         Suggested by Eric Blake.
4986
4987 2010-10-26  Bruno Haible  <bruno@clisp.org>
4988
4989         stdio: Work around compilation error due to renameat() on Solaris 10.
4990         * lib/stdio.in.h: Include <unistd.h> on Solaris.
4991         * lib/renameat.c: Don't include <unistd.h> here.
4992         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
4993         Reported by Paul Eggert and Eric Blake.
4994
4995 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         renameat: port to Solaris 10, which declares renameat in unistd.h
4998
4999         * lib/renameat.c: Include unistd.h before stdio.h, because
5000         Solaris 10 declares renameat in unistd.h.  Problem encountered
5001         when building GNU tar 1.24 on Solaris 10.
5002
5003 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5004
5005         fdopendir: fix C89 compilation
5006         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
5007         compilers.
5008
5009 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5010
5011         inttostr: simplify by removing unnecessary redundancy
5012         * lib/anytostr.c: Don't include verify.h.
5013         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
5014         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
5015         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
5016         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
5017         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
5018         Likewise.
5019         * modules/inttostr (Depends-on): Remove 'verify'.
5020
5021 2010-10-23  Bruno Haible  <bruno@clisp.org>
5022
5023         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
5024         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
5025         Reported by Eric Blake.
5026
5027 2010-10-23  Bruno Haible  <bruno@clisp.org>
5028
5029         Tests: Fix LOCALE_JA on MirBSD 10.
5030         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
5031         to an UTF-8 locale.
5032         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
5033         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5034         Reported by Eric Blake.
5035
5036 2010-10-21  Bruno Haible  <bruno@clisp.org>
5037
5038         nl_langinfo test: Avoid test failure on NetBSD 5.
5039         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
5040         Reported by Eric Blake.
5041
5042 2010-10-21  Eric Blake  <eblake@redhat.com>
5043
5044         c-stack: work around libsigsegv 2.8 bug
5045         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
5046         overflow on at least PowerPC64.
5047
5048 2010-10-17  Bruno Haible  <bruno@clisp.org>
5049
5050         userspec: Drop redundant file.
5051         * modules/userspec (Files): Remove lib/inttostr.h.
5052
5053 2010-10-17  Bruno Haible  <bruno@clisp.org>
5054
5055         nl_langinfo tests: Silence some warnings.
5056         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
5057         Reported by Jim Meyering.
5058
5059 2010-10-17  Bruno Haible  <bruno@clisp.org>
5060
5061         Make use of GCC's attribute __alloc_size__.
5062         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
5063         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
5064         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
5065         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
5066         __alloc_size__.
5067         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5068         Suggested by Jim Meyering.
5069
5070 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
5071
5072         bootstrap: anchor .gitignore entries.
5073         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
5074         with...
5075         (insert_vc_ignore): ... this new function, which prepends `/' to
5076         all .gitignore entries before passing them to
5077         insert_sorted_if_absent.
5078
5079 2010-10-16  Bruno Haible  <bruno@clisp.org>
5080
5081         nextafter: Fix configure check.
5082         * modules/nextafter (configure.ac): Correct expected prototype.
5083
5084 2010-10-16  Bruno Haible  <bruno@clisp.org>
5085
5086         termios: Update documentation.
5087         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
5088
5089 2010-10-16  Bruno Haible  <bruno@clisp.org>
5090
5091         tests: Make them compile with TinyCC.
5092         * tests/test-strstr.c (main): Remove parentheses around array
5093         initializer.
5094
5095 2010-10-15  Eric Blake  <eblake@redhat.com>
5096
5097         ignore-value: make header idempotent
5098         * lib/ignore-value.h: Add double-inclusion guards.
5099         Reported by Stefan Berger.
5100
5101 2010-10-15  Jim Meyering  <meyering@redhat.com>
5102
5103         GNUmakefile: handle "stable" target, not "major"
5104         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
5105         lists in maint.mk and announce-gen.  Without this, "make stable"
5106         would fail to ensure that $(VERSION) is up to date.
5107
5108 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
5109
5110         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
5111         & co.
5112
5113 2010-10-14  Bruno Haible  <bruno@clisp.org>
5114
5115         vasnprintf: Don't set errno to 0.
5116         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
5117         block that sets it to 0.
5118         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5119
5120 2010-10-14  Bruno Haible  <bruno@clisp.org>
5121
5122         socketlib: Fix.
5123         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
5124         gl_PREREQ_SYS_H_WINSOCK2.
5125         Reported by Ian Beckwith <ianb@erislabs.net>.
5126
5127 2010-10-13  Jim Meyering  <meyering@redhat.com>
5128
5129         test-select-stdin.c: avoid warn_unused_result warnings
5130         * tests/test-select-stdin.c: Include "macros.h".
5131         ASSERT that read and fflush succeed.
5132
5133 2010-10-13  Jim Meyering  <meyering@redhat.com>
5134
5135         git-version-gen: do require git-VC'd files in cwd
5136         * build-aux/git-version-gen: Reject a git version string
5137         if there are no commits associated with the current directory.
5138         This avoids an unlikely false-positive (unrelated dir whose parent
5139         repository also contains a tag matching v*), as pointed out
5140         by Giuseppe Scrivano in
5141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
5142
5143 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5144
5145         argv-iter: omit nonconforming declaration
5146         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
5147         enum arg_iter_err declaration, which doesn't conform to C99.
5148         Solaris 10 cc warns about this.
5149
5150 2010-10-13  Eric Blake  <eblake@redhat.com>
5151
5152         termios: fix compilation on mingw
5153         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
5154         (gl_TERMIOS_H): Adjust it on mingw.
5155         * modules/termios (Makefile.am): Substitute new key.
5156         * lib/termios.in.h (includes): Make include_next conditional.
5157         * doc/posix-headers/termios.texi (termios.h): Update
5158         documentation.
5159         Reported by Daniel P. Berrange.
5160
5161 2010-10-13  Jim Meyering  <meyering@redhat.com>
5162
5163         git-version-gen: don't require that .git/ be in the current dir
5164         * build-aux/git-version-gen: Adjust this script so that it works
5165         when run from any working directory beneath the top-level .git/-
5166         containing directory.  Inspired by a patch from Giuseppe Scrivano,
5167         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
5168
5169         test-select: avoid warn_unused_result warnings
5170         * tests/test-select.c: Include "macros.h".
5171         ASSERT that each call to read, write, and pipe succeeds.
5172         While not technically required, also check each "close".
5173         * modules/select-tests (Files): Add tests/macros.h.
5174
5175         test-symlinkat: remove declaration of unused local
5176         * tests/test-symlinkat.c (main): Remove unused local, "buf".
5177
5178         test-inttostr: avoid shadowing warnings
5179         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
5180         and use malloc rather than the stack for the same reason as
5181         mentioned in the comment justifying the other allocation.
5182
5183 2010-10-11  Bruno Haible  <bruno@clisp.org>
5184
5185         stdlib: Allow multiple gnulib generated replacements to coexist.
5186         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
5187         Reported by Sam Steingold <sds@gnu.org>.
5188
5189 2010-10-11  Jim Meyering  <meyering@redhat.com>
5190
5191         fix a documentation typo
5192         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
5193
5194 2010-10-11  Eric Blake  <eblake@redhat.com>
5195
5196         futimens: work around Solaris 11 bug
5197         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
5198         * tests/test-futimens.h (test_futimens): Enhance, rather than
5199         weaken test.
5200         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5201
5202 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5203
5204         Indentation.
5205         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
5206         higher-level operators more to the left.
5207
5208 2010-10-11  Jim Meyering  <meyering@redhat.com>
5209
5210         test-futimens: avoid unwarranted test failure on Solaris 5.11
5211         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
5212         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
5213         because it tries to dereference the NULL name argument.
5214
5215 2010-10-11  Bruno Haible  <bruno@clisp.org>
5216
5217         Indentation.
5218         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
5219         indentation.
5220
5221 2010-10-11  Jim Meyering  <meyering@redhat.com>
5222
5223         spawn.in.h: make indentation consistent with parentheses
5224         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
5225         Make indentation consistent with parentheses.
5226
5227 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
5228
5229         Fix mismatched parens in previous commit
5230         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
5231         parens.
5232
5233 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
5234
5235         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
5236
5237         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
5238         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
5239         * lib/malloca.c: Include "verify.h".
5240         (verify1): Remove, replacing with a verify call.
5241         * lib/relocwrapper.c (verify1): Likewise.
5242         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
5243         Likewise.
5244         * modules/malloca (Depends-on): Add 'verify'.
5245         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
5246         * modules/vasnprintf (Depends-on): Add 'verify'.
5247         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5248         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5249         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5250         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5251         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5252         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5253         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5254
5255         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
5256
5257         Formerly the style was sometimes 2*X - 1, because the C standard
5258         was wrongly thought to disallow ?: in integral constant expressions.
5259         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
5260         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
5261         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5262         * lib/stdint.in.h (_verify_intmax_size): Likewise.
5263         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
5264         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
5265         verify that time_t cannot be floating.
5266
5267 2010-10-08  Eric Blake  <eblake@redhat.com>
5268
5269         time: enforce recent POSIX ruling that time_t is integral
5270         * lib/time.in.h (__time_t_must_be_integral): Detect any
5271         problematic systems, allowing the rest of gnulib to assume POSIX.
5272
5273 2010-10-08  Jim Meyering  <meyering@redhat.com>
5274
5275         fdopendir: fix a bug on systems lacking openat and /proc support
5276         OpenBSD 4.7 is one such system.  The most noticeable effect was
5277         failure of any application making nontrivial use of fts: rm, du,
5278         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
5279           ./rm: traversal failed: `a': Bad file descriptor
5280         Debugging that, you see that even though FD 6 was closed just
5281         prior to the opendir call in fd_clone_opendir, its resulting
5282         dir->dd_fd was 8, rather than the expected value of 6:
5283
5284         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
5285         93                close (fd);
5286         (gdb) n
5287         94                dir = fd_clone_opendir (dupfd);
5288         (gdb) n
5289         95                saved_errno = errno;
5290         (gdb) p dir->dd_fd
5291         $11 = 8
5292
5293         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
5294         The problem is that on OpenBSD, fd_clone_opendir has to resort
5295         to using the old-style save/restore CWD mechanism, due to its
5296         lack of openat/proc support, and *that* would steal the FD (6)
5297         that opendir was supposed to use.
5298
5299         The fix is to squirrel away the desired FD so that save_cwd uses a
5300         different one, and then free the dest FD right before calling opendir.
5301         That guarantees opendir will use the required file descriptor.
5302
5303         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
5304
5305 2010-10-08  Bruno Haible  <bruno@clisp.org>
5306
5307         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
5308         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
5309
5310 2010-10-08  Bruno Haible  <bruno@clisp.org>
5311
5312         nanosleep: Make replacement POSIX compliant.
5313         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
5314         is out of range.
5315         Reported by Jim Meyering.
5316
5317 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5318
5319         bootstrap: add hook for altering gnulib.mk, for Bison
5320         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
5321         the Bison bootstrapping process can rewrite file names and variables
5322         in this file before later parts of 'bootstrap' use the file.
5323         Bison wants to include lib/gnulib.mk from the top-level makefile,
5324         so it needs the file names in this file to be relative to the top
5325         level, not relative to lib; plus it needs variable names to be
5326         rewritten.
5327         (slurp): Use the new function.
5328
5329         bootstrap: reformat for readability
5330         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
5331
5332 2010-10-08  Eric Blake  <eblake@redhat.com>
5333
5334         docs: update cygwin progress
5335         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
5336         1.7.7.
5337         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
5338         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
5339         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
5340         * doc/posix-functions/carg.texi (carg): Likewise.
5341         * doc/posix-functions/cargf.texi (cargf): Likewise.
5342         * doc/posix-functions/casin.texi (casin): Likewise.
5343         * doc/posix-functions/casinf.texi (casinf): Likewise.
5344         * doc/posix-functions/casinh.texi (casinh): Likewise.
5345         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
5346         * doc/posix-functions/catan.texi (catan): Likewise.
5347         * doc/posix-functions/catanf.texi (catanf): Likewise.
5348         * doc/posix-functions/catanh.texi (catanh): Likewise.
5349         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
5350         * doc/posix-functions/ccos.texi (ccos): Likewise.
5351         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
5352         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
5353         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
5354         * doc/posix-functions/cexp.texi (cexp): Likewise.
5355         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
5356         * doc/posix-functions/cimag.texi (cimag): Likewise.
5357         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
5358         * doc/posix-functions/clog.texi (clog): Likewise.
5359         * doc/posix-functions/clogf.texi (clogf): Likewise.
5360         * doc/posix-functions/conj.texi (conj): Likewise.
5361         * doc/posix-functions/conjf.texi (conjf): Likewise.
5362         * doc/posix-functions/cpow.texi (cpow): Likewise.
5363         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
5364         * doc/posix-functions/cproj.texi (cproj): Likewise.
5365         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
5366         * doc/posix-functions/creal.texi (creal): Likewise.
5367         * doc/posix-functions/crealf.texi (crealf): Likewise.
5368         * doc/posix-functions/csin.texi (csin): Likewise.
5369         * doc/posix-functions/csinf.texi (csinf): Likewise.
5370         * doc/posix-functions/csinh.texi (csinh): Likewise.
5371         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
5372         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
5373         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
5374         * doc/posix-functions/ctan.texi (ctan): Likewise.
5375         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
5376         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
5377         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
5378         * doc/posix-headers/complex.texi (complex.h): Likewise.
5379
5380 2010-10-07  Jim Meyering  <meyering@redhat.com>
5381
5382         parse-datetime: avoid compilation failure on OpenBSD 4.7
5383         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
5384         This works around a compilation failure on OpenBSD 4.7:
5385         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
5386
5387 2010-10-07  Eric Blake  <eblake@redhat.com>
5388
5389         docs: update cygwin progress
5390         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
5391         1.7.6.
5392         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5393         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
5394         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
5395         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
5396         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
5397         Likewise.
5398         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
5399         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
5400         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
5401         Likewise.
5402         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
5403         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
5404         Likewise.
5405         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
5406         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
5407         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
5408         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
5409         Likewise.
5410         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
5411         Likewise.
5412         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
5413
5414         docs: update parse-datetime history
5415         * doc/parse-datetime.texi (Authors of parse_datetime): Better
5416         documentation of this function's history and alternatives.
5417
5418         cygwin: use more robust version check
5419         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
5420         exclude an eventual cygwin 1.9.1.
5421         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5423         (gl_FUNC_STRCASESTR): Likewise.
5424         Reported by Bruno Haible.
5425
5426 2010-10-06  Bruno Haible  <bruno@clisp.org>
5427
5428         string, sys_select: Avoid #including large headers unless necessary.
5429         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
5430         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
5431         OSF/1, BeOS, Haiku.
5432         Reported by Jim Meyering.
5433
5434 2010-10-05  Eric Blake  <eblake@redhat.com>
5435
5436         memmem, strstr, strcasestr: fix bug with long periodic needle
5437         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
5438         periodic needle having false positive.
5439         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
5440         and cygwin 1.7.7.
5441         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
5442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5443         (gl_FUNC_STRCASESTR): Likewise.
5444         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5445         * tests/test-memmem.c (main): Expose the bug.
5446         * tests/test-strcasestr.c (main): Likewise.
5447         * tests/test-strstr.c (main): Likewise.
5448         * tests/test-c-strcasestr.c (main): Likewise.
5449         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
5450         * doc/posix-functions/strstr.texi (strstr): Likewise.
5451         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5452         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
5453
5454 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5455
5456         parse-datetime: do some more renaming
5457         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
5458         parse_datetime, not get_date.  Mention the renaming.
5459         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
5460         in comments.
5461         * m4/bison.m4: Likewise.
5462
5463 2010-10-05  Eric Blake  <eblake@redhat.com>
5464
5465         parse-datetime: better name than get_date
5466         * NEWS: Reword the deprecation notice.
5467         * modules/get_date: Rename to modules/parse-datetime.
5468         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
5469         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
5470         * lib/get_date.y: Rename to lib/parse-datetime.y.
5471         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
5472         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
5473         * doc/getdate.texi: Provide fallback wrapper.
5474         * lib/getdate.h: Move guts, and wrap...
5475         * lib/parse-datetime.h: ...new file.
5476         * lib/parse-datetime.y (get_date): Rename...
5477         (parse_datetime): ...to this.
5478         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
5479         (gl_PARSE_DATETIME): ...to this.
5480         * doc/posix-functions/getdate.texi (get_date): Provide fallback
5481         documentation.
5482         * modules/getdate (Files): Provide fallback docs and header.
5483         (Notice, Depends-on): Update references.
5484         * tests/test-parse-datetime.c: Likewise.
5485         * DEPENDENCIES: Likewise.
5486         * MODULES.html.sh (Date and time <time.h>): Likewise.
5487         * doc/parse-datetime.texi (Date input formats)
5488         (Authors of parse_datetime): Likewise.
5489         * modules/parse-datetime (Files, configure.ac, Makefile.am)
5490         (Include): Likewise.
5491         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
5492         * gnulib-tool: Likewise.
5493         * m4/bison.m4 (gl_BISON): Likewise.
5494         Suggested by Bruno Haible.
5495
5496 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5497
5498         more ports to Solaris tr, which needs [] around ranges
5499         * gnulib-tool: Solaris tr needs [] around ranges.
5500         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5501         * tests/test-pipe-filter-gi1.c (main): Likewise.
5502         * tests/test-pipe-filter-ii1.c (main): Likewise.
5503
5504 2010-10-05  Eric Blake  <eblake@redhat.com>
5505
5506         bootstrap: fix Solaris regression
5507         * build-aux/bootstrap (check_versions): Solaris tr still needs []
5508         around ranges.
5509         Reported by Pádraig Brady.
5510
5511         bootstrap: work with pkg-config
5512         * build-aux/bootstrap (check_versions): Also transliterate - in
5513         prerequisite name.
5514         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
5515         prerequisites that were already found, to avoid confusion.
5516         Reported by Justin Clift.
5517
5518         faccessat: remove unused wrappers
5519         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
5520         presence of these wrappers dragged in -lgen on Solaris.
5521         Reported by Clemens Brogi; fix suggested by Paul Eggert.
5522
5523 2010-10-05  Jim Meyering  <meyering@redhat.com>
5524
5525         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
5526         * Makefile (sc_pragma_columns): New syntax-check rule.
5527
5528 2010-10-04  Bruno Haible  <bruno@clisp.org>
5529
5530         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
5531         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
5532         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
5533         Reported by Bruce Korb and Eric Blake.
5534
5535 2010-10-04  Bruno Haible  <bruno@clisp.org>
5536
5537         threadlib: Make option --with-libpth-prefix work.
5538         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
5539         use $LIBPTH, not just -lpth.
5540
5541 2010-10-04  Bruno Haible  <bruno@clisp.org>
5542
5543         Avoid line length limitation from HP NonStop system header files.
5544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
5545         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
5546         * lib/ctype.in.h: Likewise.
5547         * lib/dirent.in.h: Likewise.
5548         * lib/errno.in.h: Likewise.
5549         * lib/fcntl.in.h: Likewise.
5550         * lib/float.in.h: Likewise.
5551         * lib/getopt.in.h: Likewise.
5552         * lib/iconv.in.h: Likewise.
5553         * lib/inttypes.in.h: Likewise.
5554         * lib/langinfo.in.h: Likewise.
5555         * lib/locale.in.h: Likewise.
5556         * lib/math.in.h: Likewise.
5557         * lib/netdb.in.h: Likewise.
5558         * lib/netinet_in.in.h: Likewise.
5559         * lib/poll.in.h: Likewise.
5560         * lib/pthread.in.h: Likewise.
5561         * lib/pty.in.h: Likewise.
5562         * lib/sched.in.h: Likewise.
5563         * lib/se-selinux.in.h: Likewise.
5564         * lib/search.in.h: Likewise.
5565         * lib/signal.in.h: Likewise.
5566         * lib/spawn.in.h: Likewise.
5567         * lib/stdarg.in.h: Likewise.
5568         * lib/stddef.in.h: Likewise.
5569         * lib/stdint.in.h: Likewise.
5570         * lib/stdio.in.h: Likewise.
5571         * lib/stdlib.in.h: Likewise.
5572         * lib/string.in.h: Likewise.
5573         * lib/strings.in.h: Likewise.
5574         * lib/sys_file.in.h: Likewise.
5575         * lib/sys_ioctl.in.h: Likewise.
5576         * lib/sys_select.in.h: Likewise.
5577         * lib/sys_socket.in.h: Likewise.
5578         * lib/sys_stat.in.h: Likewise.
5579         * lib/sys_time.in.h: Likewise.
5580         * lib/sys_times.in.h: Likewise.
5581         * lib/sys_utsname.in.h: Likewise.
5582         * lib/sys_wait.in.h: Likewise.
5583         * lib/sysexits.in.h: Likewise.
5584         * lib/termios.in.h: Likewise.
5585         * lib/time.in.h: Likewise.
5586         * lib/unistd.in.h: Likewise.
5587         * lib/wchar.in.h: Likewise.
5588         * lib/wctype.in.h: Likewise.
5589         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
5590         * modules/ctype (Makefile.am): Likewise.
5591         * modules/dirent (Makefile.am): Likewise.
5592         * modules/errno (Makefile.am): Likewise.
5593         * modules/fcntl-h (Makefile.am): Likewise.
5594         * modules/float (Makefile.am): Likewise.
5595         * modules/getopt-posix (Makefile.am): Likewise.
5596         * modules/iconv-h (Makefile.am): Likewise.
5597         * modules/inttypes (Makefile.am): Likewise.
5598         * modules/langinfo (Makefile.am): Likewise.
5599         * modules/locale (Makefile.am): Likewise.
5600         * modules/math (Makefile.am): Likewise.
5601         * modules/netdb (Makefile.am): Likewise.
5602         * modules/netinet_in (Makefile.am): Likewise.
5603         * modules/poll-h (Makefile.am): Likewise.
5604         * modules/pthread (Makefile.am): Likewise.
5605         * modules/pty (Makefile.am): Likewise.
5606         * modules/sched (Makefile.am): Likewise.
5607         * modules/search (Makefile.am): Likewise.
5608         * modules/selinux-h (Makefile.am): Likewise.
5609         * modules/signal (Makefile.am): Likewise.
5610         * modules/spawn (Makefile.am): Likewise.
5611         * modules/stdarg (Makefile.am): Likewise.
5612         * modules/stddef (Makefile.am): Likewise.
5613         * modules/stdint (Makefile.am): Likewise.
5614         * modules/stdio (Makefile.am): Likewise.
5615         * modules/stdlib (Makefile.am): Likewise.
5616         * modules/string (Makefile.am): Likewise.
5617         * modules/strings (Makefile.am): Likewise.
5618         * modules/sys_file (Makefile.am): Likewise.
5619         * modules/sys_ioctl (Makefile.am): Likewise.
5620         * modules/sys_select (Makefile.am): Likewise.
5621         * modules/sys_socket (Makefile.am): Likewise.
5622         * modules/sys_stat (Makefile.am): Likewise.
5623         * modules/sys_time (Makefile.am): Likewise.
5624         * modules/sys_times (Makefile.am): Likewise.
5625         * modules/sys_utsname (Makefile.am): Likewise.
5626         * modules/sys_wait (Makefile.am): Likewise.
5627         * modules/sysexits (Makefile.am): Likewise.
5628         * modules/termios (Makefile.am): Likewise.
5629         * modules/time (Makefile.am): Likewise.
5630         * modules/unistd (Makefile.am): Likewise.
5631         * modules/wchar (Makefile.am): Likewise.
5632         * modules/wctype (Makefile.am): Likewise.
5633
5634 2010-10-04  Bruno Haible  <bruno@clisp.org>
5635
5636         read-file tests: Avoid a test failure on NonStop Kernel.
5637         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
5638         a regular file.
5639         Reported by Joachim Schmitz <schmitz@hp.com>.
5640
5641 2010-10-03  Bruno Haible  <bruno@clisp.org>
5642
5643         gnulib-tool: Fixes for --create-testdir with --libtool.
5644         * gnulib-tool (func_get_automake_snippet): Don't augment
5645         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
5646         an executable.
5647         (func_create_testdir): Handle module 'alloca' like func_import.
5648         Reported by Bruce Korb <bruce.korb@gmail.com>.
5649
5650 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5651
5652         Avoid some lines longer than 80 characters.
5653         * lib/stdint.in.h: Break long comment lines.
5654         * lib/math.in.h: Likewise.
5655         (_GL_NUM_UINT_WORDS): New macro, for readability.
5656         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
5657         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
5658         * lib/stdlib.in.h: Likewise.
5659         * lib/spawn.in.h: Likewise.
5660         * lib/sys_socket.in.h: Update an URL.
5661         * lib/sys_stat.in.h: Break long line.
5662
5663 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
5664
5665         Improve pmccabe2html.
5666         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
5667         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
5668         when the sources change. Remove the line in the HTML about "Used
5669         ranges" (which implied that there might be other unused ranges),
5670         rename "Resume" to "Summary" (easier to understand for more users).
5671         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
5672         styles, and some unnecessary blank lines.
5673
5674 2010-10-03  Bruno Haible  <bruno@clisp.org>
5675             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5676
5677         acl: Add support for ACLs on NonStop Kernel.
5678         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
5679         Check whether the function aclsort() exists.
5680         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
5681         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
5682         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5683         (acl_nontrivial [HAVE_ACLSORT]: New function.
5684         (file_has_acl): Implement for NonStop Kernel.
5685         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5686         (qset_acl): Implement for NonStop Kernel.
5687         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
5688         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5689         (main): Implement for NonStop Kernel.
5690         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
5691         Kernel. Handle this flavor.
5692         * tests/test-set-mode-acl.sh: Likewise.
5693         * tests/test-copy-acl.sh: Likewise.
5694         * tests/test-copy-file.sh: Likewise.
5695
5696 2010-10-03  Bruno Haible  <bruno@clisp.org>
5697
5698         Info about ACLs on NonStop Kernel.
5699         * doc/acl-resources.txt: Add info about NonStop Kernel.
5700         References by Joachim Schmitz <schmitz@hp.com>.
5701
5702 2010-10-02  Bruno Haible  <bruno@clisp.org>
5703
5704         Define missing EDQUOT on NonStop Kernel.
5705         * lib/errno.in.h (EDQUOT): Assign a value if missing.
5706         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
5707         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
5708         missing.
5709         * doc/posix-headers/errno.texi: Mention the NSK bug.
5710         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
5711         Reported by Joachim Schmitz <schmitz@hp.com>.
5712
5713 2010-10-02  Bruno Haible  <bruno@clisp.org>
5714
5715         Update doc for POSIX:2008.
5716         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
5717         Update URL of POSIX specification.
5718
5719 2010-10-02  Bruno Haible  <bruno@clisp.org>
5720
5721         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
5722         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
5723         from gnulib, not from Automake.
5724
5725 2010-10-02  Bruno Haible  <bruno@clisp.org>
5726
5727         New module 'system-posix'.
5728         * modules/system-posix: New file.
5729         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
5730         module is present.
5731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5732         GNULIB_SYSTEM_POSIX.
5733         * modules/stdlib (Depends-on): Remove sys_wait.
5734         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
5735         * doc/posix-functions/system.texi: Mention the new module.
5736         * doc/posix-headers/stdlib.texi: Likewise.
5737         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
5738         define test_sys_wait_macros to a no-op.
5739         Reported by Sam Steingold <sds@gnu.org>.
5740
5741 2010-09-30  Bruno Haible  <bruno@clisp.org>
5742
5743         More renaming from 'getdate' to 'get_date'.
5744         * doc/get_date.texi: Renamed from doc/getdate.texi.
5745         * modules/get_date (Files): Update.
5746         * MODULES.html.sh (Date and time <time.h>): Update.
5747         * DEPENDENCIES: Update.
5748         * gnulib-tool: Update comment.
5749         * m4/bison.m4 (gl_BISON): Likewise.
5750         * m4/get_date.m4 (gl_GET_DATE): Likewise.
5751
5752 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
5753
5754         bootstrap: support ACLOCAL_FLAGS during aclocal
5755         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
5756         can add additional -I dir for third-party .m4 files.
5757
5758 2010-09-30  Eric Blake  <eblake@redhat.com>
5759
5760         bootstrap: use glibtoolize on MacOS
5761         * build-aux/bootstrap (check_versions): Convert libtool into
5762         libtoolize.
5763         (tool search): Move libtool check earlier, and look for
5764         glibtoolize for MacOS.
5765         (gnulib_tool_options): Auto-add --libtool when appropriate.
5766         Reported by Justin Clift.
5767
5768         poll: fix typo that broke test on MacOS
5769         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
5770         Reported by Justin Clift.
5771
5772         getdate: rename to get_date
5773         Note: getdate.h is not renamed, to minimize client impact.
5774         * modules/getdate: Mark obsolete.  Move old contents...
5775         * modules/get_date: ...to new module name.
5776         * modules/getdate-tests: Move...
5777         * modules/get_date-tests: ...here.
5778         * m4/getdate.m4: Move...
5779         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
5780         * lib/getdate.y: Move...
5781         * lib/get_date.y: ...here.
5782         * tests/test-getdate.c: Move...
5783         * tests/test-get_date.c: ...here.
5784         * doc/posix-functions/getdate.texi (getdate): Update name.
5785         * NEWS: Mention the change.
5786
5787 2010-09-29  Bruno Haible  <bruno@clisp.org>
5788
5789         Separate the module 'waitpid' from the module 'sys_wait'.
5790         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
5791         present.
5792         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
5793         gl_MODULE_INDICATOR_FOR_TESTS.
5794         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
5795         * modules/sys_wait (Depends-on): Remove waitpid.
5796         (Makefile.am): Substitute GNULIB_WAITPID.
5797         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
5798         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
5799         signature only if the 'waitpid' module is present.
5800         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
5801         * NEWS: Mention the change.
5802         * modules/grantpt (Depends-on): Add waitpid.
5803         * modules/wait-process (Depends-on): Likewise.
5804
5805 2010-09-29  Bruno Haible  <bruno@clisp.org>
5806
5807         More tests for module 'sys_wait'.
5808         * modules/sys_wait-c++-tests: New file.
5809         * tests/test-sys_wait-c++.cc: New file.
5810         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
5811         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5812
5813 2010-09-29  Bruno Haible  <bruno@clisp.org>
5814
5815         New module 'waitpid'.
5816         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
5817         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
5818         Don't include <process.h>.
5819         (waitpid): Declare only, using modern idiom.
5820         * m4/waitpid.m4: New file.
5821         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
5822         * modules/waitpid: New file.
5823         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
5824         (Makefile.am): Update.
5825         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5826
5827 2010-09-28  Bruno Haible  <bruno@clisp.org>
5828
5829         poll: Assume ANSI C.
5830         * lib/poll.c (poll): Use an ANSI C declaration.
5831
5832 2010-09-28  Bruno Haible  <bruno@clisp.org>
5833
5834         poll-h: Create poll.h on all platforms.
5835         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
5836         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
5837         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
5838         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
5839         (gl_REPLACE_POLL_H): Don't set POLL_H.
5840         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
5841         * modules/poll-h (Depends-on): Add include_next.
5842         (Makefile.am): Create poll.h unconditionally. Substitute also
5843         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
5844
5845 2010-09-28  Bruno Haible  <bruno@clisp.org>
5846
5847         Tests for module 'poll-h'.
5848         * modules/poll-h-c++-tests: New file.
5849         * tests/test-poll-h-c++.cc: New file.
5850
5851         Tests for module 'poll-h'.
5852         * modules/poll-h-tests: New file.
5853         * tests/test-poll-h.c: New file.
5854
5855 2010-09-28  Bruno Haible  <bruno@clisp.org>
5856
5857         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
5858         * modules/poll-h (Depends-on): Add 'extensions'.
5859
5860 2010-09-28  Bruno Haible  <bruno@clisp.org>
5861
5862         New module 'poll-h'.
5863         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
5864         (poll): Use modern idiom.
5865         * modules/poll-h: New file.
5866         * modules/poll (Files): Remove lib/poll.in.h.
5867         (Depends-on): Add poll-h.
5868         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
5869         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
5870         * m4/poll_h.m4: New file.
5871         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
5872         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
5873         and invoke gl_REPLACE_POLL_H.
5874         * lib/poll.c: Use common idiom.
5875         * tests/test-poll.c: Likewise.
5876         * doc/posix-headers/poll.texi: Mention the poll-h module.
5877         Suggested by Eric Blake.
5878
5879 2010-09-26  Bruno Haible  <bruno@clisp.org>
5880
5881         sys_wait: Implement WSTOPSIG.
5882         * lib/sys_wait.in.h (WSTOPSIG): New macro.
5883         Reported by Simon Josefsson.
5884
5885 2010-09-26  Simon Josefsson  <simon@josefsson.org>
5886
5887         stdlib, sys_wait: Avoid compilation error on mingw.
5888         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
5889
5890 2010-09-26  Bruno Haible  <bruno@clisp.org>
5891
5892         stdlib tests: Avoid code duplication.
5893         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
5894         * modules/sys_wait-tests (Files): Likewise.
5895         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
5896         * tests/test-stdlib.c: Include test-sys_wait.h.
5897         (main): Invoke test_sys_wait_macros.
5898         * tests/test-sys_wait.c: Include test-sys_wait.h.
5899         (main): Invoke test_sys_wait_macros.
5900
5901 2010-09-25  Simon Josefsson  <simon@josefsson.org>
5902
5903         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
5904         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
5905         sure Windows sockets are working before calling getaddrinfo.
5906         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
5907         * doc/gnulib.texi (Windows sockets): Fix typo.
5908
5909 2010-09-25  Bruno Haible  <bruno@clisp.org>
5910
5911         Tests for module 'regex-quote'.
5912         * modules/regex-quote-tests: New file.
5913         * tests/test-regex-quote.c: New file.
5914
5915         New module 'regex-quote'.
5916         * lib/regex-quote.h: New file.
5917         * lib/regex-quote.c: New file.
5918         * modules/regex-quote: New file.
5919         Suggested by Reuben Thomas <rrt@sc3d.org>.
5920
5921 2010-09-24  Bruno Haible  <bruno@clisp.org>
5922
5923         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
5924         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5925
5926 2010-09-23  Bruno Haible  <bruno@clisp.org>
5927
5928         setenv: Relax license.
5929         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
5930         Blake.
5931         Requested by Eric Blake.
5932
5933 2010-09-22  Bruno Haible  <bruno@clisp.org>
5934
5935         termios: Relax license.
5936         * modules/termios (License): Change to LGPLv2+.
5937         Requested by Eric Blake.
5938
5939 2010-09-22  Bruno Haible  <bruno@clisp.org>
5940
5941         threadlib: Allow the package to change the default to 'no'.
5942         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
5943         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
5944         Reported by Paul Eggert.
5945
5946 2010-09-22  Pádraig Brady  <P@draigbrady.com>
5947             Bruno Haible  <bruno@clisp.org>
5948
5949         Fix endless loop in mbmemcasecoll.
5950         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
5951         byte.
5952         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
5953
5954 2010-09-22  Bruno Haible  <bruno@clisp.org>
5955
5956         Tests for module 'memcoll'.
5957         * modules/memcoll-tests: New file.
5958         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
5959
5960         memcoll, xmemcoll: Clarify size vs. length.
5961         * modules/memcoll.c (memcoll0): Clarify specification.
5962         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
5963         passed to collate_error.
5964
5965 2010-09-22  Bruno Haible  <bruno@clisp.org>
5966
5967         Tests for module 'memcasecmp'.
5968         * modules/memcasecmp-tests: New file.
5969         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
5970
5971 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5972
5973         * lib/pthread.in.h: Add split double-inclusion guard, and include
5974         system <pthread.h> if there is one.  Use @@-style as in other
5975         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
5976         pthread.h doesn't.
5977         (pthread_mutexattr_destroy, pthread_mutexattr_init):
5978         (pthread_mutexattr_settype, pthread_mutex_trylock):
5979         New static inline functions, if there's no system <pthread.h>.
5980         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
5981         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
5982         Approximate with mutexes if the system lacks spinlocks, as in
5983         MacOS.
5984         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
5985         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
5986         @@-style.  Check for spinlocks separately.
5987         (gl_PTHREAD_DEFAULTS): New macro.
5988         * modules/pthread: Redo to use a more typical style for in.h files.
5989
5990 2010-09-21  Eric Blake  <eblake@redhat.com>
5991
5992         net_if: enhance tests
5993         * tests/test-net_if.c (main): Move signature checks earlier.
5994         Print failures to stderr.
5995         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
5996         Document the bug that we do not yet fix.
5997
5998 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5999
6000         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
6001         about gnulib, not GSS.
6002
6003 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
6004
6005         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
6006         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
6007         for Emacs.
6008         * build-aux/pmccabe2html: Make Makefile.am example code more
6009         cut-and-paste friendly.
6010
6011 2010-09-21  Simon Josefsson  <simon@josefsson.org>
6012
6013         * tests/test-net_if.c: New file.
6014         * modules/net_if-tests: New file.
6015
6016 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
6017
6018         pthread: add pthread_spin_destroy
6019         * lib/pthread.in.h (pthread_spin_destroy): New function.
6020
6021 2010-09-19  Bruno Haible  <bruno@clisp.org>
6022
6023         gnulib-tool: Fix --help output.
6024         * gnulib-tool (func_usage): Fix help message.
6025         Reported by Reuben Thomas <rrt@sc3d.org>.
6026
6027 2010-09-18  Jim Meyering  <meyering@redhat.com>
6028
6029         maint.mk: avoid unexpanded \n in two diagnostics
6030         * top/maint.mk (sc_prohibit_always_true_header_tests):
6031         Don't use a literal \n in a halt=... assignment.  It would not be
6032         expanded, and the two \n bytes would appear in the diagnostic output
6033         rather than the desired newline.  Use halt=$$(printf ... instead.
6034         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6035
6036 2010-09-18  Bruno Haible  <bruno@clisp.org>
6037
6038         netinet_in: Doc tweak.
6039         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
6040         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6041
6042 2010-09-18  Jim Meyering  <meyering@redhat.com>
6043
6044         init.sh: correct an outdated comment
6045         * tests/init.sh (create_exe_shims_):  s/function/alias/
6046
6047         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
6048         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
6049         a file named "*.exe" is removed between the glob expansion and the
6050         processing of that oddly named file.
6051
6052 2010-09-17  Eric Blake  <eblake@redhat.com>
6053
6054         mirbsd: add some more support
6055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
6056         in BSD family.
6057         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
6058         devices as OpenBSD.
6059         * m4/host-os.m4 (mirbsd): Add MirBSD.
6060
6061         tests: fix unportable assumption on sys/wait.h
6062         * tests/test-sys_wait.c (main): Relax test.
6063         * tests/test-stdlib.c (main): Likewise.
6064
6065         init.sh: accomodate directory with no .exes
6066         * tests/init.sh: Accomodate directory containing only scripts.
6067
6068         tests: avoid compiler warning
6069         * tests/test-stdlib.c (main): Use the variable.
6070
6071         fdutimens, fdutimensat: update signature, again
6072         * lib/utimens.h (gl_futimens): Delete, and move signature...
6073         (fdutimens): ...here.
6074         (fdutimensat): Rearrange signature.
6075         (lutimensat): Rename variable for clarity.
6076         * lib/fdutimensat.c (fdutimensat): Update signature.
6077         * lib/utimens.c (fdutimens): Likewise.
6078         (gl_futimens): Delete.
6079         (utimens, lutimens): Update callers.
6080         * lib/futimens.c (futimens): Likewise.
6081         * tests/test-fdutimensat.c: Likewise.
6082         * tests/test-utimens.c: Likewise.
6083         * tests/test-futimens.h: Update comment.
6084         * NEWS: Mention this.
6085         Suggested by Paul Eggert.
6086
6087 2010-09-17  Bruno Haible  <bruno@clisp.org>
6088
6089         Take over the maintenance of some older macros from Autoconf.
6090         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
6091         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
6092         GNU Autoconf.
6093         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
6094         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
6095
6096 2010-09-17  Eric Blake  <eblake@redhat.com>
6097
6098         fdutimensat: drop atflag validation
6099         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
6100         with valid fd, to close a race scenario where futimens is
6101         unsupported and FILE was replaced by a symlink.
6102         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
6103         accordingly.
6104         Suggested by Paul Eggert.
6105
6106 2010-09-16  Bruno Haible  <bruno@clisp.org>
6107
6108         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
6109         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
6110
6111 2010-09-16  Bruno Haible  <bruno@clisp.org>
6112
6113         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
6114         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
6115         login_tty exists.
6116         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6117
6118 2010-09-16  Bruno Haible  <bruno@clisp.org>
6119
6120         login_tty: Make the replacement code work on BSD systems.
6121         * lib/login_tty.c: Include <sys/ioctl.h>.
6122         (login_tty): Use ioctl TIOCSCTTY when available.
6123         * modules/login_tty (Depends-on): Add sys_ioctl.
6124         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6125
6126 2010-09-16  Bruno Haible  <bruno@clisp.org>
6127
6128         login_tty: Stricter unit test.
6129         * modules/login_tty-tests (Depends-on): Add tcgetsid.
6130         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
6131         and tcgetsid() after login_tty.
6132         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6133
6134 2010-09-16  Bruno Haible  <bruno@clisp.org>
6135
6136         New module 'tcgetsid'.
6137         * lib/tcgetsid.c: New file.
6138         * m4/tcgetsid.m4: New file.
6139         * modules/tcgetsid: New file.
6140         * modules/termios (Depends-on): Add c++defs, warn-on-use.
6141         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
6142         GNULIB_TCGETSID, HAVE_TCGETSID.
6143         * lib/termios.in.h: Include <sys/types.h>.
6144         (tcgetsid): New declaration.
6145         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
6146         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
6147         * doc/posix-functions/tcgetsid.texi: Mention the new module.
6148         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
6149
6150 2010-09-16  Bruno Haible  <bruno@clisp.org>
6151
6152         Tests for module 'termios'.
6153         * modules/termios-c++-tests: New file.
6154         * modules/termios-tests: New file.
6155         * tests/test-termios-c++.cc: New file.
6156         * tests/test-termios.c: New file.
6157
6158         New module 'termios'.
6159         * modules/termios: New file.
6160         * lib/termios.in.h: New file.
6161         * m4/termios_h.m4: New file.
6162         * doc/posix-headers/termios.texi: Mention the new module.
6163
6164 2010-09-16  Eric Blake  <eblake@redhat.com>
6165
6166         fdutimensat: add an atflag parameter
6167         * lib/fdutimensat.c (fdutimensat): Add new parameter.
6168         * lib/utimens.h (fdutimensat): Update prototype.
6169         * tests/test-fdutimensat.c: Adjust test to match.
6170         * NEWS: Document the change.
6171         Suggested by Paul Eggert.
6172
6173 2010-09-16  Bruno Haible  <bruno@clisp.org>
6174
6175         Fix typos in comments.
6176         * lib/striconveh.h: Fix typo in comment.
6177         * lib/login_tty.c (login_tty): Likewise.
6178
6179 2010-09-15  Bruno Haible  <bruno@clisp.org>
6180
6181         stdlib: clarify MirBSD WEXITSTATUS bug
6182         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
6183         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6184
6185 2010-09-15  Eric Blake  <eblake@redhat.com>
6186
6187         stdlib: work around MirBSD WEXITSTATUS bug
6188         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
6189         * modules/stdlib (Depends-on): Add sys_wait.
6190         * tests/test-sys_wait.c (main): Enhance test.
6191         * tests/test-stdlib.c (main): Likewise.
6192         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
6193
6194         docs: mention MacOS issue with WEXITSTATUS(constant)
6195         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
6196         issue.
6197         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6198
6199         strnlen: add tests
6200         * modules/strnlen-tests: New file.
6201         * tests/test-strnlen.c: Likewise.
6202
6203 2010-09-14  Bruno Haible  <bruno@clisp.org>
6204
6205         unistr/base: Avoid link errors when module 'libunistring' is also used.
6206         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
6207         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
6208         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
6209         Declare also when HAVE_LIBUNISTRING is set.
6210         Reported by Pádraig Brady <P@draigbrady.com>.
6211
6212 2010-09-14  Eric Blake  <eblake@redhat.com>
6213
6214         test-rawmemchr: make more robust
6215         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
6216         (Depends-on, configure.ac): Add needed prerequisites to use it.
6217         * modules/memchr-tests (Files, Depends-on, configure.ac):
6218         Likewise, to avoid implicit reliance on memchr module prereqs.
6219         * tests/test-memchr.c (main): Ensure proper masking.
6220         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
6221         reads.
6222
6223         memchr: detect glibc Alpha bug
6224         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
6225         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
6226         Alpha.
6227         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
6228         * tests/test-memchr.c (main): Enhance test.
6229         Reported by Nelson H. F. Beebe.
6230
6231 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6232
6233         fts, getcwd, glob: audit for dirfd returning -1
6234         * lib/fts.c (opendir): Remove #define; no longer used.
6235         (opendirat): New arg PDIR_FD.  All callers changed.
6236         (fts_build, _opendir2): Use new opendirat to avoid the need for
6237         dirfd, or for checking whether dirfd returns a negative value.
6238         Don't use opendir; always use openat followed by fdopendir.
6239         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
6240         it.
6241         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
6242         returns -1 here.
6243         * modules/fts (Depends-on): Remove dirfd.
6244         * modules/getcwd (Depends-on): Likewise.
6245
6246 2010-09-13  Eric Blake  <eblake@redhat.com>
6247
6248         float: fix broken MirBSD header
6249         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
6250         * doc/posix-headers/float.texi (float.h): Document it.
6251
6252 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6253
6254         fts: use O_NOFOLLOW to avoid race condition when opening a directory
6255         * lib/fts.c (opendirat): New arg extra_flags.
6256         (__opendir2): Use it to avoid following symlinks when opening
6257         a directory, if symlinks are not supposed to be followed.  See
6258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
6259
6260         fdopendir: preserve argument fd before returning
6261         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
6262         (fdopendir_with_dup, fd_clone_opendir): New static functions.
6263         (fdopendir): Use them, arranging for FD to be open to the same
6264         directory that it was when it started.  (It might be temporarily
6265         closed while fdopendir is running, so this not thread- or
6266         signal-safe.)  Be careful to do the right thing even when file
6267         descriptors are scarce and dup fails with errno == EMFILE.  See
6268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
6269
6270 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
6271
6272         regex: Pass the system regex if its only problem is 32-bit regoff_t.
6273         * NEWS: Document change.
6274         * m4/regex.m4: Disable test for regoff_t size.
6275
6276 2010-09-13  Jim Meyering  <meyering@redhat.com>
6277
6278         fts: don't operate on an invalid file descriptor after failed dup
6279         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
6280         negative file descriptor.
6281
6282 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
6283
6284         savedir: add streamsavedir, deprecate fdsavedir
6285         * NEWS: Mention deprecation of fdsavedir.
6286         * lib/savedir.c (streamsavedir): New extern function, whose name
6287         ends in "savedir" to be consistent with the others.  This differs
6288         from savedirstream in that it doesn't close its argument.  The
6289         next version of GNU tar will use this instead of fdsavedir, to
6290         avoid some race conditions and conserve file descriptors.
6291         (savedirstream): Reimplement as a wrapper around streamsavedir.
6292         (fdsavedir): Add a comment deprecating this function.  As far as
6293         I know, only GNU tar used it, and GNU tar doesn't need it any more.
6294         * lib/savedir.h (streamsavedir): New decl.
6295         (fdsavedir): Add a comment deprecating this.
6296
6297 2010-09-10  Bruno Haible  <bruno@clisp.org>
6298
6299         langinfo: Fix last commit.
6300         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
6301         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
6302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6303
6304 2010-09-10  Bruno Haible  <bruno@clisp.org>
6305
6306         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
6307         * lib/progreloc.c (O_EXEC): Define fallback.
6308
6309 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
6310
6311         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
6312         * NEWS: Document recent changes to fcntl-h.
6313         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
6314         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
6315         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
6316         Similarly for O_SEARCH; this last was already true, but not documented.
6317         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
6318         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
6319         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
6320         Likewise.
6321         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
6322         is zero, not whether it is defined.
6323         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
6324         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
6325         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
6326
6327 2010-09-10  Bruno Haible  <bruno@clisp.org>
6328
6329         langinfo, nl_langinfo: Fix for IRIX 5.3.
6330         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
6331         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
6332         HAVE_LANGINFO_YESEXPR.
6333         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
6334         HAVE_LANGINFO_YESEXPR.
6335         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
6336         HAVE_LANGINFO_T_FMT_AMPM is 0.
6337         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
6338         HAVE_LANGINFO_YESEXPR is 0.
6339         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
6340         NOEXPR.
6341         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
6342         * doc/posix-functions/nl_langinfo.texi: Likewise.
6343         Reported by Eric Blake.
6344
6345 2010-09-10  Bruno Haible  <bruno@clisp.org>
6346
6347         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
6348         * doc/glibc-functions/login_tty.texi: Mention the include file problem
6349         on FreeBSD 8.0 and OpenBSD 4.6.
6350         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
6351         * m4/pty_h.m4 (gl_PTY_H): Likewise.
6352         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
6353         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
6354         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
6355         ac_includes_default.
6356         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6357
6358 2010-09-09  Eric Blake  <eblake@redhat.com>
6359
6360         strsignal: work around NetBSD bug
6361         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
6362         * lib/string.in.h (includes): Likewise.
6363         * doc/posix-functions/strsignal.texi (strsignal): Document the
6364         bug.
6365         Reported by Nelson H. F. Beebe.
6366
6367         gnulib-tool: work with NetBSD /bin/sh
6368         * gnulib-tool (func_cache_var, func_cache_lookup_module)
6369         (func_get_description, func_get_comment, func_get_status)
6370         (func_get_notice, func_get_applicability, func_get_filelist)
6371         (func_get_dependencies, func_get_autoconf_early_snippet)
6372         (func_get_autoconf_snippet, func_get_automake_snippet)
6373         (func_get_include_directive, func_get_link_directive)
6374         (func_get_license, func_get_maintainer, func_import): Avoid
6375         shell syntax errors from parsing syntax extensions.
6376
6377 2010-09-09  Bruno Haible  <bruno@clisp.org>
6378
6379         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6380         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
6381         a reliable way to determine whether the 'alias' command works.
6382
6383 2010-09-08  Jim Meyering  <meyering@redhat.com>
6384
6385         init.sh: penalize a set-x-impaired shell; don't disqualify it
6386         * tests/init.sh: Too many shells corrupt application stderr when
6387         you set -x, so we can't afford to disqualify them, since at least
6388         on Irix-6.5, that would disqualify all bourne shells.
6389         Instead, use a two-pass approach.
6390         On the first pass, try to find a shell that meets the stricter
6391         condition that set -x does not corrupt stderr.
6392         If no shell meets the stricter condition, retest each candidate
6393         shell, but without that extra condition.  Finally, when
6394         VERBOSE=yes is requested and set -x might cause trouble, simply
6395         issue a warning and refrain from enabling debug output.
6396
6397 2010-09-08  Eric Blake  <eblake@redhat.com>
6398
6399         unsetenv: fix OpenBSD bug
6400         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
6401         * doc/posix-functions/unsetenv.texi (unsetenv): Update
6402         documentation.
6403         Reported by Jim Meyering.
6404
6405         strtod: work around IRIX 6.5 bug
6406         * lib/strtod.c (strtod): Reparse number on shorter string if
6407         exponent parse was invalid.
6408         * tests/test-strtod.c (main): Add check for "0x1p 2".
6409         Reported by Tom G. Christensen.
6410
6411         getopt: optimize previous patch
6412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
6413         empty variable.  Speed up awk script.
6414         Reported by Paolo Bonzini.
6415
6416 2010-09-08  Jim Meyering  <meyering@redhat.com>
6417
6418         test.sh: disqualify shells for which set -x corrupts stderr
6419         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
6420         and OpenBSD 4.7.  They make it so with "set -x", environment settings
6421         appear in stderr output.  For example, this command:
6422             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
6423         prints "P=1" on those two systems:
6424
6425 2010-09-08  Bruno Haible  <bruno@clisp.org>
6426
6427         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6428         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
6429         commands, because some shells ignore redirections when there is an
6430         error in the command lookup.
6431         Reported by Eric Blake.
6432
6433 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
6434
6435         * lib/regex.h: Fix a mention of `regex_compile' (should be
6436         `re_compile_pattern').
6437         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
6438         (re_set_registers): Correct name of parameter in comment.
6439
6440         * doc/regex.texi: Add documentation for missing syntax flags.
6441         Remove commented-out documentation of defunct syntax option
6442         RE_NO_EMPTY_ALTS.
6443         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
6444         Add documentation of re_set_registers.
6445         Document trick to re-use a pattern buffer by setting fastmap manually.
6446         Update documentation of struct re_pattern_buffer per public members.
6447         Uncomment documentation of equivalence class operators and
6448         collating symbol operators, since they are now implemented,
6449         Explain leftmost-longest matching in relation to alternatives.
6450         Tidy documentation of substring matching.
6451         Remove POSIX documentation, which is done better in
6452         glibc, and refer the reader there. Keep BSD API documentation, as
6453         that is not readily available elsewhere.
6454
6455 2010-09-07  Eric Blake  <eblake@redhat.com>
6456
6457         getopt: handle POSIXLY_CORRECT set but not exported
6458         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
6459         export state of POSIXLY_CORRECT, due to bash set -o posix.
6460         Reported by Dustin J. Mitchell.
6461
6462 2010-09-05  Bruno Haible  <bruno@clisp.org>
6463
6464         gnulib-tool: Highlight the changed options.
6465         * gnulib-tool (func_usage): Display the --import, --add-import,
6466         --remove-import explanations in bold font.
6467
6468 2010-09-06  Karl Berry  <karl@gnu.org>
6469
6470         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
6471
6472 2010-09-05  Bruno Haible  <bruno@clisp.org>
6473
6474         uniwidth/width: Update comment.
6475         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
6476         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
6477
6478 2010-09-05  Bruno Haible  <bruno@clisp.org>
6479
6480         isinf, isnan: Relax license.
6481         * modules/isinf (License): Change from GPL to LGPL, with consent from
6482         Ben Pfaff.
6483         * modules/isnan (License): Likewise.
6484         Requested by Ludovic Courtès.
6485
6486 2010-09-04  Bruno Haible  <bruno@clisp.org>
6487
6488         gnulib-tool: Help migration from --import to --add-import or --update.
6489         * gnulib-tool: Emit a verbose error message when --import is used
6490         without any module name.
6491
6492 2010-09-04  Bruno Haible  <bruno@clisp.org>
6493
6494         Update doc about gnulib-tool.
6495         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
6496         'gnulib-tool --update' in more detail.
6497         Reported by Eric Blake.
6498
6499 2010-09-04  Bruno Haible  <bruno@clisp.org>
6500
6501         gnulib-tool: Change --import. New options --add/remove-import.
6502         * gnulib-tool: New options --add-import, --remove-import.
6503         (func_usage): Document them.
6504         (have_associative): Define always.
6505         (func_import): In import mode, don't merge the specified settings with
6506         the cached settings. Implement remove-import mode.
6507         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
6508         Explain when to use them versus --import.
6509         (Simple update): Use --add-import instead of --import.
6510         * NEWS: Mention the change.
6511
6512 2010-09-04  Bruno Haible  <bruno@clisp.org>
6513
6514         * doc/gnulib-tool.texi (Initial import): Update paragraph about
6515         separate gnulib.mk.
6516
6517 2010-09-04  Bruno Haible  <bruno@clisp.org>
6518
6519         gnulib-tool: Don't talk about CVS any more.
6520         * gnulib-tool (func_usage, func_import): Write "version control"
6521         instead of CVS.
6522
6523 2010-09-04  Jim Meyering  <meyering@redhat.com>
6524
6525         maint.mk: avoid obscure sc_copyright_check failure in coreutils
6526         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
6527         false positives (whose names may be ill-chosen) when searching
6528         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
6529         would cause a false-positive.
6530
6531         avoid coreutils "make distcheck" failure
6532         Coreutils tests with an absolute build directory name that contains
6533         a space.  Not quoting this directory name caused a failure.
6534         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
6535         * tests/test-vc-list-files-cvs.sh: Likewise.
6536
6537 2010-09-04  Bruno Haible  <bruno@clisp.org>
6538
6539         gnulib-tool: Avoid error when run in a package without Makefile.am.
6540         * gnulib-tool: When collecting the m4dirs in a package that does not
6541         have a Makefile.am, eliminate those directories that contain no
6542         gnulib-cache.m4. Fix expression that counts these directories.
6543
6544 2010-09-04  Bruno Haible  <bruno@clisp.org>
6545
6546         update-copyright test: Improve output when perl is missing or too old.
6547         * tests/test-update-copyright.sh: Move test of Perl version down after
6548         the test whether Perl exists. Provide an explanation relating Perl's
6549         error message to Automake's SKIP: message.
6550
6551 2010-09-04  Bruno Haible  <bruno@clisp.org>
6552
6553         Don't augment PATH in TESTS_ENVIRONMENT.
6554         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
6555         set abs_aux_dir instead of augmenting PATH.
6556         * modules/vc-list-files-tests (Makefile.am): Likewise.
6557         * tests/test-update-copyright.sh: Augment PATH here.
6558         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
6559         path_prepend_.
6560         * tests/test-vc-list-files-git.sh: Likewise.
6561
6562 2010-09-04  Jim Meyering  <meyering@redhat.com>
6563
6564         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
6565         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
6566
6567 2010-09-04  Bruno Haible  <bruno@clisp.org>
6568
6569         strdup: Fix compilation error in C++ mode.
6570         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
6571         the macro.
6572
6573 2010-09-04  Bruno Haible  <bruno@clisp.org>
6574
6575         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
6576         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
6577         macro into a function.
6578         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6579
6580 2010-09-04  Bruno Haible  <bruno@clisp.org>
6581
6582         Set PATH_SEPARATOR the same way autoconf does.
6583         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
6584         the value of PATH_SEPARATOR the same way autoconf-generated configure
6585         scripts do.
6586         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
6587         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6588
6589 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6590
6591         Set PATH_SEPARATOR the same way autoconf does.
6592         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
6593         the same way autoconf-generated configure scripts do.
6594         * posix-modules: Likewise.
6595
6596 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6597
6598         hash: fix safe_hasher const typo
6599         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
6600         const; otherwise, there is a type error later.
6601
6602 2010-09-02  Jim Meyering  <meyering@redhat.com>
6603
6604         test-update-copyright.sh: require perl 5.8.0
6605         * tests/test-update-copyright.sh: Require 5.8.0,
6606         which Tom G. Christensen has confirmed is adequate,
6607         while 5.6.1 is not.
6608
6609 2010-09-02  Eric Blake  <eblake@redhat.com>
6610
6611         tests: init.sh improvements for re-exec'ing with zsh
6612         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
6613         -vx through shell re-exec.
6614         Reported by Tom G. Christensen.
6615
6616         wctype: fix typo in previous commit
6617         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
6618         Reported by Ludovic Courtès.
6619
6620 2010-09-02  Jim Meyering  <meyering@redhat.com>
6621
6622         test-update-copyright.sh: skip test if Perl is too old
6623         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
6624         Reported by Tom G. Christensen.
6625
6626 2010-09-02  Bruno Haible  <bruno@clisp.org>
6627
6628         wctype: Avoid compilation error on IRIX 6.5.30.
6629         * lib/wctype.in.h (iswblank): Declare with a replacement if
6630         REPLACE_ISWBLANK is set.
6631         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
6632         declared. Set REPLACE_ISWBLANK.
6633         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
6634         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
6635         * doc/posix-headers/wctype.texi: Likewise.
6636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6637
6638 2010-09-01  Bruno Haible  <bruno@clisp.org>
6639
6640         New module 'socketlib'.
6641         * modules/socketlib: New file.
6642         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
6643         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
6644         * modules/sockets (Depends-on): Add socketlib.
6645         Suggested by Sam Steingold <sds@gnu.org>.
6646
6647 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6648
6649         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
6650
6651         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
6652         when one needs search access to a directory but not read access.
6653         On systems where it is available, it works in some cases where
6654         O_RDONLY does not, namely on directories that are searchable but
6655         not readable, and which need only to be searchable.  If O_SEARCH
6656         is not available, fall back to the traditional method of using
6657         O_RDONLY.
6658
6659         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
6660         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
6661         when opening a directory that needs only to be searchable.
6662         * lib/chdir-safer.c (chdir_no_follow): Likewise.
6663         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
6664         * lib/openat-proc.c (openat_proc_name): Likewise.
6665         * lib/openat.c (openat_needs_fchdir): Likewise.
6666         * lib/save-cwd.c (save_cwd): Likewise.
6667         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
6668
6669 2010-08-28  Bruno Haible  <bruno@clisp.org>
6670
6671         New module 'host-cpu-c-abi'.
6672         * modules/host-cpu-c-abi: New file.
6673         * m4/host-cpu-c-abi.m4: New file, based on part of
6674         clisp/src/m4/general.m4.
6675         Requested by Sam Steingold <sds@gnu.org>.
6676
6677 2010-08-31  Eric Blake  <eblake@redhat.com>
6678         and Jim Meyering  <meyering@redhat.com>
6679
6680         hash: factor, and guard against misbehaving hasher function
6681         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
6682         of table->hasher's return value.  Also protect against a hash value
6683         so large that adding it to table->bucket results in a NULL pointer.
6684         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
6685         Use it in place of open-coded check-and-abort.
6686
6687 2010-08-30  Bruno Haible  <bruno@clisp.org>
6688
6689         hash: silence spurious clang warning
6690         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
6691         Reported by Eric Blake.
6692
6693 2010-08-30  Eric Blake  <eblake@redhat.com>
6694
6695         strstr, memmem, strcasestr: avoid leaked shell message
6696         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
6697         FreeBSD.
6698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6700
6701         tests: silence clang warning
6702         * tests/test-malloca.c (do_allocation): Avoid dead store.
6703
6704 2010-08-29  Bruno Haible  <bruno@clisp.org>
6705
6706         gettext: Fix recent mistake.
6707         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
6708
6709 2010-08-29  Bruno Haible  <bruno@clisp.org>
6710
6711         selinux-h: Offer a --without-selinux option.
6712         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
6713         --without-selinux was specified, skip all tests and define
6714         HAVE_SELINUX_SELINUX_H to 0.
6715         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
6716         set LIB_SELINUX to empty.
6717         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
6718         gl_LIBSELINUX. If --without-selinux was specified, replace
6719         selinux/context.h.
6720         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
6721
6722 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6723             Bruno Haible  <bruno@clisp.org>
6724
6725         Make the module 'realloc-gnu' work again on AIX and OSF/1.
6726         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
6727         of HAVE_REALLOC.
6728         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
6729         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
6730         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
6731         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6732
6733 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6734             Bruno Haible  <bruno@clisp.org>
6735
6736         Make the module 'calloc-gnu' work again on AIX and OSF/1.
6737         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
6738         HAVE_CALLOC.
6739         * lib/xmalloc.c: Update accordingly.
6740         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
6741         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
6742         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
6743
6744 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6745             Bruno Haible  <bruno@clisp.org>
6746
6747         Make the module 'malloc-gnu' work again on AIX and OSF/1.
6748         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
6749         HAVE_MALLOC.
6750         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
6751         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
6752         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6753
6754 2010-08-29  Bruno Haible  <bruno@clisp.org>
6755
6756         Update modules list.
6757         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6758         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
6759         (String handling <string.h>): Add astrxfrm.
6760         (File system functions): Add readlinkat.
6761
6762 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6763
6764         Tests for module 'realloc-gnu'.
6765         * modules/realloc-gnu-tests: New file.
6766         * tests/test-realloc-gnu.c: New file.
6767
6768         Tests for module 'calloc-gnu'.
6769         * modules/calloc-gnu-tests: New file.
6770         * tests/test-calloc-gnu.c: New file.
6771
6772         Tests for module 'malloc-gnu'.
6773         * modules/malloc-gnu-tests: New file.
6774         * tests/test-malloc-gnu.c: New file.
6775
6776 2010-08-28  Bruno Haible  <bruno@clisp.org>
6777
6778         Rename module 'realloc' -> 'realloc-gnu'.
6779         * modules/realloc-gnu: New file, copied from modules/realloc.
6780         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
6781         obsolete.
6782         * modules/mgetgroups (Depends-on): Update.
6783         * doc/posix-functions/realloc.texi: Update.
6784         * NEWS: Mention the change.
6785
6786         Rename module 'calloc' -> 'calloc-gnu'.
6787         * modules/calloc-gnu: New file, copied from modules/calloc.
6788         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
6789         obsolete.
6790         * doc/posix-functions/calloc.texi: Update.
6791         * NEWS: Mention the change.
6792
6793         Rename module 'malloc' -> 'malloc-gnu'.
6794         * modules/malloc-gnu: New file, copied from modules/malloc.
6795         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
6796         obsolete.
6797         * modules/argp (Depends-on): Update.
6798         * modules/regex (Depends-on): Update.
6799         * doc/posix-functions/malloc.texi: Update.
6800         * NEWS: Mention the change.
6801
6802 2010-08-28  Eric Blake  <eblake@redhat.com>
6803
6804         pread, pwrite: add missing dependency
6805         * modules/pread (Depends-on): Add extensions.
6806         * modules/pwrite (Depends-on): Likewise.
6807
6808 2010-08-28  Bruno Haible  <bruno@clisp.org>
6809
6810         unistr/u*-strchr: Fix tests dependencies.
6811         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
6812         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
6813         Reported by Ian Beckwith <ianb@erislabs.net>.
6814
6815 2010-08-28  Bruno Haible  <bruno@clisp.org>
6816
6817         read-file: Don't occupy too much unused memory.
6818         * lib/read-file.c (fread_file): Shrink the buffer at the end.
6819
6820 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
6821             Eric Blake  <eblake@redhat.com>
6822             Bruno Haible  <bruno@clisp.org>
6823
6824         read-file: Avoid memory reallocations with regular files.
6825         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
6826         (fread_file): With regular files, use the remaining length as the
6827         initial buffer size.  Check against overflow.
6828         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
6829         sys_stat.
6830
6831 2010-08-28  Bruno Haible  <bruno@clisp.org>
6832
6833         ftello: Relax license.
6834         * modules/ftello (License): Relax to LGPLv2+.
6835         Reported by Eric Blake.
6836
6837 2010-08-28  Bruno Haible  <bruno@clisp.org>
6838
6839         Avoid relocwrapper link errors due to gnulib replacement functions.
6840         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
6841         function.
6842         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6843
6844 2010-08-28  Bruno Haible  <bruno@clisp.org>
6845
6846         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
6847         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
6848         defined.
6849         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
6850         Suggested by Eric Blake.
6851
6852 2010-08-28  Bruno Haible  <bruno@clisp.org>
6853
6854         sys_socket, netdb: Ensure socklen_t gets defined.
6855         * modules/sys_socket (Depends-on): Add socklen.
6856         * modules/netdb (Depends-on): Likewise.
6857         * modules/getaddrinfo (Depends-on): Remove socklen.
6858         * modules/getsockopt (Depends-on): Likewise.
6859         * modules/setsockopt (Depends-on): Likewise.
6860         * tests/test-sys_socket.c: Check that socklen_t is defined.
6861         * tests/test-netdb.c: Likewise.
6862         * m4/socklen.m4: Update comments.
6863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6864
6865 2010-08-27  Eric Blake  <eblake@redhat.com>
6866
6867         login_tty: add missing dependency
6868         * modules/login_tty (Depends-on): Add pty.
6869
6870 2010-08-26  Eric Blake  <eblake@redhat.com>
6871
6872         lib-symbol-versions: fix m4 quoting
6873         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
6874         format for AC_LINK_IFELSE.
6875
6876         glob: fix compile test
6877         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
6878
6879         btowc: fix missing file
6880         * modules/btowc (Files): Also ship locale-fr.m4.
6881
6882         lseek: fix link test
6883         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
6884         AC_LINK_IFELSE.
6885
6886         include_next: silence autoconf 2.68 warning
6887         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
6888         AC_COMPILE_IFELSE as special.
6889         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
6890         autoconf < 2.68.
6891
6892         acl: fix compilation test
6893         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
6894         AC_COMPILE_IFELSE.
6895
6896 2010-08-26  Bruno Haible  <bruno@clisp.org>
6897
6898         Modernize AC_TRY_RUN invocations.
6899         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
6900         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6901         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
6902         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
6903         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6904         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6907         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6908         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6910         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6911         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6912         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6914         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6915         gl_MBRLEN_NUL_RETVAL): Likewise.
6916         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6917         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6918         Likewise.
6919         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6920         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6921         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6922         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6923         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6924         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6925         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
6926         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6927         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
6928         Likewise.
6929         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6930         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6932         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6933         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6934         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6935         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6936         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
6937         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6939
6940 2010-08-26  Bruno Haible  <bruno@clisp.org>
6941
6942         Modernize AC_TRY_LINK invocations.
6943         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
6944         AC_TRY_LINK.
6945         * m4/argp.m4 (gl_ARGP): Likewise.
6946         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6947         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6948         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6949         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6950         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6951         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
6952         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6953         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6954         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6955         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6956         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6957         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
6958         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
6959         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6960         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6961         * m4/hostent.m4 (gl_HOSTENT): Likewise.
6962         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6963         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
6964         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6965         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
6966         Likewise.
6967         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
6968         Likewise.
6969         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
6970         Likewise.
6971         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
6973         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
6974         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6975         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6976         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6977         * m4/servent.m4 (gl_SERVENT): Likewise.
6978         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6979         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6981         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6982         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6983         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6984         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6986         * modules/tsearch-tests (configure.ac): Likewise.
6987
6988 2010-08-26  Bruno Haible  <bruno@clisp.org>
6989
6990         Modernize AC_TRY_COMPILE invocations.
6991         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
6992         AC_TRY_COMPILE.
6993         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
6994         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
6995         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6996         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6997         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6998         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6999         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7000         * m4/lock.m4 (gl_LOCK): Likewise.
7001         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
7002         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7003         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
7004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7005         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
7006         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
7007         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
7008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
7009         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
7010         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
7011         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
7012         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7013         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
7014         extraneous semicolon.
7015
7016 2010-08-26  Jim Meyering  <meyering@redhat.com>
7017
7018         stat-time: relax license LGPL
7019         * modules/stat-time (License): Change from GPL to LGPL,
7020         with consent from all contributors, for use in libguile.
7021         Requested by Ludovic Courtès.
7022
7023 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
7024
7025         poll: return immediately on POLLHUP.
7026         * lib/poll.c (poll): Always set timeout before wait_timeout is
7027         computed.
7028
7029 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7030
7031         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
7032         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
7033         rmdir ("dir/.//"), unlinkat.
7034
7035 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7036
7037         stdbool: avoid spurious failure with modern xlc
7038         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7039
7040 2010-08-24  Bruno Haible  <bruno@clisp.org>
7041
7042         getloadavg: simplify code
7043         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
7044         gl_have_func. Update comments.
7045
7046 2010-08-24  Eric Blake  <eblake@redhat.com>
7047
7048         getloadavg: don't define SVR4 on cygwin
7049         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
7050         only define SVR4 when -lkvm is required.
7051         Reported by Yaakov Selkowitz.
7052
7053 2010-08-24  Bruno Haible  <bruno@clisp.org>
7054
7055         priv-set: fix comment
7056         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
7057
7058 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
7059
7060         priv-set: fix comments
7061         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
7062         to match code, as suggested by David Bartley in:
7063         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
7064
7065 2010-08-23  Eric Blake  <eblake@redhat.com>
7066
7067         stdbool: avoid rejecting clang
7068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7069         * tests/test-stdbool.c: Enable more tests if using the system
7070         <stdbool.h> instead of the gnulib replacement.
7071         (main): Move xlc bug test to a runtime test for all compilers.
7072         Reported by Anders Kaseorg.
7073
7074         argz: fix shell quoting issue
7075         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
7076         Reported by Charles Wilson.
7077
7078 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
7079             Erik Faye-Lund <kusmabite@gmail.com>
7080
7081         poll, select: handle ERROR_BROKEN_PIPE.
7082         * lib/poll.c (win32_compute_revents): Return POLLHUP when
7083         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7084         * lib/select.c (win32_compute_revents): Do not mark a pipe
7085         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7086
7087 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
7088
7089         fts: allow compilation with C++
7090         * lib/fts_.h: Specify extern "C" linkage with C++.
7091
7092 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7093
7094         Fix gnulib-tool sed script de-commentation for AIX sed.
7095         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
7096         sed.
7097
7098 2010-08-17  Eric Blake  <eblake@redhat.com>
7099
7100         test-stddef: test for (some) offsetof bugs
7101         * tests/test-stddef.c: Enhance test to ensure correct type of
7102         offsetof.
7103         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
7104         that we are not fixing at this time.
7105
7106 2010-08-15  Bruno Haible  <bruno@clisp.org>
7107
7108         stpncpy: Allow stpncpy to be defined as a macro.
7109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
7110         if it's already correctly declared.
7111         * lib/string.in.h (stpncpy): Undefine before redefining.
7112         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
7113
7114 2010-08-14  Bruno Haible  <bruno@clisp.org>
7115
7116         Rename module 'memxfrm' to 'amemxfrm'.
7117         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
7118         (amemxfrm): Renamed from memxfrm.
7119         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
7120         (amemxfrm): Renamed from memxfrm.
7121         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
7122         * NEWS: Mention the change.
7123         * MODULES.html.sh (String handling <string.h>): Update.
7124         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
7125         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
7126         * lib/unicase/u16-casexfrm.c: Likewise.
7127         * lib/unicase/u32-casexfrm.c: Likewise.
7128         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
7129         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
7130         * lib/uninorm/u16-normxfrm.c: Likewise.
7131         * lib/uninorm/u32-normxfrm.c: Likewise.
7132         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
7133         memxfrm.
7134         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
7135         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
7136         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
7137         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
7138         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
7139         Suggested by Paul Eggert.
7140
7141 2010-08-14  Bruno Haible  <bruno@clisp.org>
7142
7143         Tests for module 'astrxfrm'.
7144         * modules/astrxfrm-tests: New file.
7145         * tests/test-astrxfrm.c: New file.
7146
7147         New module 'astrxfrm'.
7148         * lib/astrxfrm.h: New file.
7149         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
7150         * modules/astrxfrm: New file.
7151
7152 2010-08-14  Reuben Thomas <rrt@sc3d.org>
7153
7154         regex: Tweak doc.
7155         * doc/regex.texi (Overview): Don't mention regex.c.
7156         (GNU Regular Expression Compiling): Likewise.
7157         (Match-end-of-line Operator): Mention 'not_eol'.
7158
7159 2010-08-14  Brian Gough  <bjg@gnu.org>
7160             Bruno Haible  <bruno@clisp.org>
7161
7162         git-merge-changelog: add doc relating to use with bzr and hg.
7163         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
7164
7165 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
7166
7167         pthread: fix pthread.h creation for srcdir != builddir
7168         * modules/pthread (Makefile.am): Fix the rule to work also in a
7169         non-srcdir build.
7170
7171 2010-08-13  Karl Berry  <karl@gnu.org>
7172
7173         * doc/regex.texi (Predefined Syntaxes): @smallexample.
7174         * doc/posix-*/*: force line break before @url of POSIX
7175         specifications.
7176         Suggested by Werner Lemberg.
7177
7178 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7179
7180         strtod: fix const diagnostic
7181         * lib/strtod.c (strtod): Don't assign const char * to char *,
7182         as this elicits a warning from GCC when warnings are enabled.
7183
7184 2010-08-10  Pádraig Brady <P@draigbrady.com>
7185         and Eric Blake  <eblake@redhat.com>
7186
7187         copy-acl: ignore ENOTSUP on HP-UX
7188         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
7189         so that it is available for HP-UX.
7190         * lib/copy-acl.c (qcopy_acl): Use it.
7191         Reported by Patrick M. Callahan.
7192
7193 2010-08-10  Eric Blake  <eblake@redhat.com>
7194
7195         open, chown: relax license
7196         * modules/open (License): Change to LGPLv2+, with consent by all
7197         authors, for use in augeas.
7198         * modules/chown (License): Likewise.
7199         * modules/lchown (Likewise): Likewise.
7200         Requested by Adam Stokes.
7201
7202 2010-08-09  Karl Berry  <karl@gnu.org>
7203
7204         * build-aux/ar-lib: new file, import from Automake.
7205         * config/srclist.txt: autocheck for updates.
7206
7207 2010-08-09  Eric Blake  <eblake@redhat.com>
7208
7209         readlinkat: adjust client modules
7210         * modules/areadlinkat (Depends-on): Use readlinkat, not
7211         symlinkat.
7212         * modules/areadlinkat-with-size (Depends-on): Likewise.
7213
7214         mknod: be more vocal about danger of running tests as root
7215         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
7216         root, since that is just asking for problems.
7217         Suggested by Bruno Haible, based on a report by Rainer Tammer.
7218
7219         readlinkat: split into its own module
7220         * modules/symlinkat: Split readlinkat...
7221         * modules/readlinkat: ...into separate module.
7222         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
7223         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
7224         * lib/symlinkat.c (readlinkat): Move...
7225         * lib/readlinkat.c: ...into new file.
7226         * modules/symlinkat-tests: Split readlinkat test...
7227         * modules/readlinkat-tests: ...into separate module.
7228         * tests/test-symlinkat.c: Split...
7229         * tests/test-readlinkat.c: ...into new file.
7230         * NEWS: Document the split.
7231         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7232         * lib/unistd.in.h (readlinkat): Likewise.
7233         Suggested by Bruno Haible.
7234
7235 2010-08-08  Bruno Haible  <bruno@clisp.org>
7236
7237         memxfrm: Speed up.
7238         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
7239         that usually only one call to strxfrm is necessary for each string
7240         part.
7241         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7242
7243 2010-08-07  Karl Berry  <karl@gnu.org>
7244
7245         * doc/posix-headers/limits.texi,
7246         * doc/posix-functions/malloc.texi,
7247         * doc/posix-functions/strsignal.texi: missing @item.
7248         * doc/ld-version-script.texi: spurious leading i.
7249         * doc/regex.texi (Interval Operators): no commas inside @var.
7250
7251 2010-08-01  Bruno Haible  <bruno@clisp.org>
7252
7253         Integrate the regex documentation.
7254         * doc/gnulib.texi: Define 'cn' index.
7255         (Regular expressions): New a chapter that includes regex.texi and
7256         regexprops-generic.texi.
7257         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
7258         syntax.
7259
7260         Whitespace cleanup.
7261         * doc/regex.texi: Remove trailing spaces.
7262
7263         Add regex documentation.
7264         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
7265         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
7266         Written by Kathy A. Hargreaves and Karl Berry.
7267
7268 2010-08-01  Bruno Haible  <bruno@clisp.org>
7269
7270         link: Update documentation.
7271         * doc/posix-functions/link.texi: Update regarding Solaris.
7272
7273 2010-07-31  Bruno Haible  <bruno@clisp.org>
7274
7275         Update modules list.
7276         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
7277         (String handling <string.h>): Add memcmp2, memxfrm.
7278         (Container data structures): Add xlist, xsublist, xoset.
7279         (Core language properties): Add alignof, unused-parameter.
7280         (Process control, Numeric conversion functions <stdlib.h>): Renamed
7281         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
7282         (Unibyte characters <ctype.h>): New section.
7283         (String handling <string.h>): New section.
7284         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
7285         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
7286         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
7287         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
7288         tan, tanh, tanl, y0, y1, yn.
7289         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
7290         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
7291         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
7292         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
7293         unlockpt, vdprintf, vdprintf-posix.
7294         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
7295         (File system functions): Add concat-filename, sys_file, sys_ioctl,
7296         xconcat-filename.
7297         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
7298         getdtablesize, pipe2, pipe2-safer.
7299         (Security): New section.
7300         (Networking functions): Add accept4.
7301         (Signal handling): Add sigpipe.
7302         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
7303         mbmemcasecoll.
7304         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
7305         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
7306         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
7307         pipe-filter-ii.
7308         (Misc): Add argp-version-etc, login_tty, parse-duration.
7309
7310 2010-07-31  Bruno Haible  <bruno@clisp.org>
7311
7312         Improve doc in MODULES.html.
7313         * modules/linkat (Description): Add the word "function".
7314         * modules/mkfifo (Description): Likewise.
7315         * modules/mknod (Description): Likewise.
7316         * modules/remove (Description): Likewise.
7317         * modules/renameat (Description): Likewise.
7318         * modules/stat (Description): Likewise.
7319         * modules/symlink (Description): Likewise.
7320         * modules/unlink (Description): Likewise.
7321
7322 2010-07-31  Bruno Haible  <bruno@clisp.org>
7323
7324         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
7325         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
7326         option --enable/disable-c++ instead of --enable/disable-cxx.
7327         * NEWS: Mention the change.
7328
7329 2010-07-31  Bruno Haible  <bruno@clisp.org>
7330
7331         readlink, areadlink: Relax test a bit.
7332         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
7333         alternative to ENOTDIR.
7334         * tests/test-areadlink.h (test_areadlink): Likewise.
7335         Reported by Rainer Tammer.
7336
7337 2010-07-31  Bruno Haible  <bruno@clisp.org>
7338
7339         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
7340         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
7341         character, perform the search using U_STRCHR.
7342         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
7343         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
7344         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
7345         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
7346         Suggested by Paolo Bonzini.
7347
7348 2010-07-31  Bruno Haible  <bruno@clisp.org>
7349
7350         unistr/u*-strstr: Fix dependencies.
7351         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
7352         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
7353         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
7354
7355 2010-07-31  Bruno Haible  <bruno@clisp.org>
7356
7357         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
7358         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
7359         the beginning of the loop.
7360         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
7361         cases in 'switch' statement.
7362
7363         unistr/u8-strchr: Fix several bugs.
7364         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
7365         the string. When not found, return NULL, not a pointer near the end.
7366
7367         More tests for unistr/u8-strchr.
7368         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
7369         that the function does not read past the first occurrence of the byte
7370         being searched.
7371         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
7372         * tests/unistr/test-u16-strchr.c (main): New function.
7373         * tests/unistr/test-u32-strchr.c (main): New function.
7374
7375 2010-07-31  Bruno Haible  <bruno@clisp.org>
7376
7377         posix-modules: Ignore backup files of documentation files.
7378         * posix-modules: grep only through files named *.texi.
7379
7380 2010-07-31  Bruno Haible  <bruno@clisp.org>
7381
7382         symlinkat: Fix documentation.
7383         * doc/posix-functions/readlinkat.texi: Fix module name.
7384
7385 2010-07-31  Bruno Haible  <bruno@clisp.org>
7386
7387         fchownat: Replace also when chown has the trailing slash bug.
7388         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
7389         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
7390         introduced on 2010-04-10.
7391         Reported by Rainer Tammer.
7392
7393 2010-07-31  Bruno Haible  <bruno@clisp.org>
7394
7395         linkat: Work around AIX 7.1 bug.
7396         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
7397         whether linkat handles trailing slash correctly. If not, replace linkat
7398         and define LINKAT_TRAILING_SLASH_BUG.
7399         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
7400         check whether (fd1,file1) points to a directory if file1 or file2 ends
7401         in a slash. Code taken from lib/link.c.
7402         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
7403         Reported by Rainer Tammer.
7404
7405 2010-07-31  Bruno Haible  <bruno@clisp.org>
7406
7407         Correctly determine whether pow is available in libc on AIX 7 with xlc.
7408         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
7409         This disables an xlc optimization that was causing wrong test results.
7410         Reported by Rainer Tammer.
7411
7412 2010-07-31  Bruno Haible  <bruno@clisp.org>
7413
7414         iconv: Work around AIX 6.1..7.1 bug.
7415         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
7416         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
7417         cross-compiling, guess no on all versions of AIX.
7418         Reported by Rainer Tammer.
7419
7420 2010-07-31  Bruno Haible  <bruno@clisp.org>
7421
7422         readlink: Relax test a bit.
7423         * tests/test-readlink.h (test_readlink): Allow different errno value
7424         when readlink is called with a file name that ends in / and refers to
7425         a file.
7426         Suggested by Eric Blake.
7427         Reported by Rainer Tammer.
7428
7429 2010-07-31  Bruno Haible  <bruno@clisp.org>
7430
7431         copysign: Does not require -lm on glibc systems.
7432         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
7433         gl_COMMON_DOUBLE_MATHFUNC.
7434         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
7435
7436 2010-07-31  Bruno Haible  <bruno@clisp.org>
7437
7438         duplocale: Work around AIX 7.1 bug.
7439         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
7440         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
7441         * lib/duplocale.c (rpl_duplocale): Update comment.
7442         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
7443         Reported by Rainer Tammer.
7444
7445 2010-07-30  Bruno Haible  <bruno@clisp.org>
7446
7447         dirfd: Avoid link error on AIX 7.1.
7448         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
7449         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
7450         exist, set REPLACE_DIRFD.
7451         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
7452         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
7453         * doc/posix-functions/dirfd.texi: Update.
7454         Reported by Rainer Tammer.
7455
7456 2010-07-30  Eric Blake  <eblake@redhat.com>
7457
7458         strtod: next round of AIX fixes
7459         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
7460         exponent.
7461         * tests/test-strtod.c (main): Enhance tests.
7462         * doc/posix-functions/strtod.texi (strtod): Document next bug.
7463         Reported by Rainer Tammer.
7464
7465         futimens: fix configure check
7466         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
7467         Reported by Bruno Haible.
7468
7469 2010-07-30  Bruno Haible  <bruno@clisp.org>
7470
7471         getline: Update regarding AIX.
7472         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
7473         Reported by Rainer Tammer.
7474
7475 2010-07-30  Bruno Haible  <bruno@clisp.org>
7476
7477         wcwidth: Drop replacement on AIX 7.
7478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
7479         AIX 7.
7480         Reported by Rainer Tammer.
7481
7482 2010-07-30  Bruno Haible  <bruno@clisp.org>
7483
7484         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
7485         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
7486         a 'char *'.
7487         Reported by Rainer Tammer.
7488
7489 2010-07-30  Bruno Haible  <bruno@clisp.org>
7490
7491         unlink: Update regarding AIX.
7492         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
7493         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
7494         Reported by Rainer Tammer.
7495
7496 2010-07-30  Bruno Haible  <bruno@clisp.org>
7497
7498         symlink: Update regarding AIX.
7499         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
7500         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
7501         Reported by Rainer Tammer.
7502
7503 2010-07-30  Bruno Haible  <bruno@clisp.org>
7504
7505         strndup: Update regarding AIX.
7506         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
7507         AIX 7.
7508         Reported by Rainer Tammer.
7509
7510 2010-07-30  Bruno Haible  <bruno@clisp.org>
7511
7512         stat: Update regarding AIX.
7513         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
7514         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
7515         Reported by Rainer Tammer.
7516
7517 2010-07-30  Bruno Haible  <bruno@clisp.org>
7518
7519         truncl: Fix autoconf test.
7520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
7521         whether truncl works.
7522         Reported by Rainer Tammer.
7523
7524 2010-07-30  Bruno Haible  <bruno@clisp.org>
7525
7526         round: Update regarding AIX.
7527         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
7528         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
7529         Reported by Rainer Tammer.
7530
7531 2010-07-30  Bruno Haible  <bruno@clisp.org>
7532
7533         rename: Update regarding AIX.
7534         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
7535         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
7536         Reported by Rainer Tammer.
7537
7538 2010-07-30  Bruno Haible  <bruno@clisp.org>
7539
7540         printf.m4: Update regarding AIX.
7541         * m4/printf.m4: Update comments regarding AIX.
7542         Reported by Rainer Tammer.
7543
7544 2010-07-30  Bruno Haible  <bruno@clisp.org>
7545
7546         iconv: Update regarding AIX.
7547         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
7548         AIX 7.
7549         Reported by Rainer Tammer.
7550
7551 2010-07-30  Bruno Haible  <bruno@clisp.org>
7552
7553         getopt: Update regarding AIX.
7554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
7555         no on AIX.
7556         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
7557         Reported by Rainer Tammer.
7558
7559 2010-07-30  Bruno Haible  <bruno@clisp.org>
7560
7561         ldexpl; Update regarding AIX.
7562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
7563         on AIX 7.
7564         Reported by Rainer Tammer.
7565
7566 2010-07-30  Bruno Haible  <bruno@clisp.org>
7567
7568         frexpl: Update regarding AIX.
7569         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
7570         on AIX 7.
7571         Reported by Rainer Tammer.
7572
7573 2010-07-30  Bruno Haible  <bruno@clisp.org>
7574
7575         open, fopen: Update regarding AIX.
7576         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
7577         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7578         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
7579         * doc/posix-functions/fopen.texi: Likewise.
7580         Reported by Rainer Tammer.
7581
7582 2010-07-30  Bruno Haible  <bruno@clisp.org>
7583
7584         chown: Update doc regarding AIX.
7585         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
7586         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
7587         Reported by Rainer Tammer.
7588
7589 2010-07-30  Eric Blake  <eblake@redhat.com>
7590
7591         strtod: fix bug in replacement function on AIX
7592         * lib/strtod.c (strtod): Special case broken "0x" parse in
7593         underlying strtod.
7594         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
7595         * doc/posix-functions/strtod.texi (strtod): Likewise.
7596         Reported by Rainer Tammer.
7597
7598 2010-07-30  Bruno Haible  <bruno@clisp.org>
7599
7600         mbrlen: Fix cross-compilation guess for AIX.
7601         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
7602         guess. Leftover from 2008-12-22.
7603
7604 2010-07-30  Bruno Haible  <bruno@clisp.org>
7605
7606         mbrtowc: Fix cross-compilation guess for AIX.
7607         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
7608         guess. Leftover from 2008-12-21.
7609
7610 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
7611
7612         init.sh: work around trap limitation of some shells
7613         * tests/init.sh (setup_): Move exit trap outside of shell function.
7614
7615 2010-07-29  Eric Blake  <eblake@redhat.com>
7616
7617         strtod: aid debugging
7618         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
7619         understanding why strtod is rejected.
7620
7621 2010-07-28  Bruno Haible  <bruno@clisp.org>
7622
7623         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
7624         * lib/unistr/u8-chr.c: Include <string.h>.
7625         * tests/unistr/test-u8-chr.c: Likewise.
7626         * tests/unistr/test-u16-chr.c: Likewise.
7627         * tests/unistr/test-u32-chr.c: Likewise.
7628         * tests/unistr/test-u8-strchr.c: Likewise.
7629         * tests/unistr/test-u16-strchr.c: Likewise.
7630         * tests/unistr/test-u32-strchr.c: Likewise.
7631         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
7632         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
7633         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
7634         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
7635
7636 2010-07-28  Bruno Haible  <bruno@clisp.org>
7637
7638         Use spaces for indentation, not tabs.
7639         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7640
7641 2010-07-27  Bruno Haible  <bruno@clisp.org>
7642
7643         mbspcasecmp: Fix function specification.
7644         * lib/string.in.h (mbspcasecmp): Fix specification comment.
7645         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
7646         Reported by Eric Blake <eblake@redhat.com>.
7647
7648 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
7649
7650         timespec: use cast and not conditional, as truncation isn't possible
7651         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
7652         instead of a conditional.  Comment about the situation in more detail.
7653         This undoes most of the 2009-10-29 patch.
7654
7655 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
7656
7657         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
7658         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
7659         * lib/unistr/u8-strchr.c: Likewise.
7660         * modules/unistr/u8-chr: Depend on memchr.
7661
7662         unistr/u*-strchr: add tests
7663         * modules/unistr/u8-strchr-tests: New file.
7664         * modules/unistr/u16-strchr-tests: New file.
7665         * modules/unistr/u32-strchr-tests: New file.
7666         * tests/unistr/test-strchr.h: New file.
7667         * tests/unistr/test-u8-strchr.c: New file.
7668         * tests/unistr/test-u16-strchr.c: New file.
7669         * tests/unistr/test-u32-strchr.c: New file.
7670
7671         unistr/u*-chr: test multibyte sequences more
7672         * tests/unistr/test-chr.h: Do complete testing of the characters in the
7673         test vector.
7674         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
7675         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
7676         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
7677
7678         unistr/u*-chr: test multibyte sequences
7679         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
7680
7681         unistr/u*-chr: prepare for multibyte tests
7682         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
7683         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
7684         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
7685         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
7686         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
7687         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
7688
7689 2010-07-18  Bruno Haible  <bruno@clisp.org>
7690
7691         unistr/u8-strchr: Optimize non-ASCII argument case.
7692         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
7693         because the first byte often matches anyway.
7694         Reported by Pádraig Brady <P@draigbrady.com>.
7695
7696 2010-07-15  Karl Berry  <karl@gnu.org>
7697
7698         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
7699
7700 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
7701
7702         getcwd: on Solaris, work better if ancestors are inaccessible
7703         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
7704         buffer and size, try again with a large buffer.  This works better
7705         on Solaris, since its getcwd succeeds even if the path to the root
7706         is inaccessible, and this is helpful in common cases such as .zfs
7707         hidden directories.  Problem reported by J Chapman Flack in
7708         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
7709         Use system getcwd if it's declared, not merely if it's partly
7710         working; use the partly-working test only to avoid needless effort
7711         if the system getcwd fails.
7712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
7713         comment that was already obsolete and is now even more obsolete.
7714         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
7715         now might call strdup.
7716
7717 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
7718
7719         pthread: Add enough so that coreutils/src/sort.c compiles.
7720         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
7721         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
7722         gnulib. Include <sched.h> and <time.h>, as per POSIX.
7723         Include <sys/types.h>, in case it defines pthread_t.
7724         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
7725         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
7726         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
7727         (pthread_rwlockattr_t, pthread_spinlock_t):
7728         New typedefs, if HAVE_PTHREAD_T is not defined.
7729         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
7730         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
7731         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
7732         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
7733         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
7734         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
7735         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
7736         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
7737         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
7738         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
7739         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
7740         New macros.
7741         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
7742         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
7743         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
7744         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
7745         (pthread_spin_unlock): New dummy functions.
7746         (pthread_create): Return EAGAIN; don't set errno.
7747         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
7748         require AC_C_INLINE.
7749         * modules/pthread (Depends-on): Add sched, time.
7750         (pthread.h): Use AM_V_GEN.
7751
7752 2010-07-13  Bruno Haible  <bruno@clisp.org>
7753
7754         striconveh: Don't malloc memory if the result buffer is sufficient.
7755         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
7756         buffer if its size is sufficient.
7757         Reported by Ludovic Courtès <ludo@gnu.org>.
7758
7759 2010-07-13  Bruno Haible  <bruno@clisp.org>
7760
7761         strtod: Add safety check.
7762         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
7763
7764 2010-07-12  Bruno Haible  <bruno@clisp.org>
7765
7766         Unify tests that set gl_cv_func_ldexpl_no_libm.
7767         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
7768         gl_FUNC_LDEXPL.
7769         (gl_FUNC_LDEXPL): Invoke it.
7770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7771
7772 2010-07-12  Bruno Haible  <bruno@clisp.org>
7773
7774         Unify tests that set gl_cv_func_ldexp_no_libm.
7775         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
7776         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
7777         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
7778         (configure.ac): Simply invoke gl_FUNC_LDEXP.
7779         * modules/strtod (Files): Add m4/ldexp.m4.
7780
7781 2010-07-12  Bruno Haible  <bruno@clisp.org>
7782
7783         Unify tests that set gl_cv_func_frexpl_no_libm.
7784         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
7785         gl_FUNC_FREXPL_NO_LIBM.
7786         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
7787         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7788
7789 2010-07-12  Bruno Haible  <bruno@clisp.org>
7790
7791         Unify tests that set gl_cv_func_frexp_no_libm.
7792         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
7793         gl_FUNC_FREXP_NO_LIBM.
7794         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
7795         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7796
7797 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7798
7799         memcoll: clarify sizes versus lengths, document better, and tweak perf
7800         * lib/memcoll.c (strcoll_loop, memcoll0):
7801         Improve quality of descriptive comments.  Name variables
7802         consistently as to whether they are lengths (which do not include
7803         terminating null) versus sizes (which do).
7804         * lib/xmemcoll.c (xmemcoll0): Likewise.
7805         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
7806         returned when s1size == 0; this is easier to compile and saves
7807         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
7808
7809 2010-07-12  Bruno Haible  <bruno@clisp.org>
7810
7811         Tests for module '_Exit'.
7812         * modules/_Exit-tests: New file.
7813         * tests/test-_Exit.sh: New file.
7814         * tests/test-_Exit.c: New file.
7815
7816         New module '_Exit'.
7817         * lib/stdlib.in.h (__attribute__): New macro.
7818         (_Exit): New declaration.
7819         * lib/_Exit.c: New file.
7820         * m4/_Exit.m4: New file.
7821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
7822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
7823         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
7824         * modules/_Exit: New file.
7825         * tests/test-stdlib-c++.cc (_Exit): Check signature.
7826         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
7827
7828 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7829
7830         strtod: make it more-accurate typically, and don't require libm
7831         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
7832         Include limits.h.  Don't include string.h.
7833         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
7834         (locale_isspace): New function, so that no casts are needed to
7835         check whether *s is a space.
7836         (ldexp): Provide an unused dummy if not available.
7837         (scale_radix_exp, parse_number, underlying_strtod): New functions.
7838         (strtod): Use them.  This implementation prefers to use the
7839         underlying strtod if available, falling back on our own code
7840         only to fix known bugs.  This is more likely to produce an
7841         accurate result.  Also, it avoids the use of libm functions.
7842         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
7843         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
7844         was absent, but it caused a test failure with coreutils.
7845         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
7846         with libm.
7847         * modules/strtod (Makefile.am, Link): libm is no longer needed.
7848         * modules/strtod-tests (Makefile.am): Likewise.
7849
7850 2010-07-11  Pádraig Brady  <P@draigBrady.com>
7851             Bruno Haible  <bruno@clisp.org>
7852
7853         unistr/u8-strchr: Optimize ASCII argument case.
7854         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
7855
7856 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7857
7858         (x)memcoll: minor tweaks
7859         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
7860         is after the type that it qualifies.
7861         (memcoll0): Likewise.
7862         * lib/memcoll.h (memcoll0): Likewise.
7863         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
7864         * lib/xmemcoll.h (xmemcoll0): Likewise.
7865         * lib/memcoll.c (memcoll0): Correct the comment.  This function
7866         differs from memcoll in that the NUL byte is part of the argument.
7867         Omit the abort-checks, as performance is a real issue here.  Plus,
7868         the checks were wrong anyway (an off-by-one error).  Omit local
7869         variable 'diff', as it's a bit clearer that way.
7870         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
7871         no longer needed.
7872
7873 2010-07-08  Chen Guo <chenguo4@yahoo.com>
7874
7875         (x)memcoll: speedup when input is known to be NUL delimited
7876         * lib/memcoll.c: Include stdlib.
7877         (memcoll0) New function.
7878         (strcoll_loop) New function, refactored for use in both memcoll
7879         and memcoll0.
7880         * lib/memcoll.h: Add prototype for memcoll0.
7881         * lib/xmemcoll.c: (xmemcoll0) New function.
7882         (collate_error) New function, refactored for use in both xmemcoll
7883         and xmemcoll0.
7884         * lib/xmemcoll.h: Add prototype for xmemcoll0.
7885         * m4/memcoll.m4: add inline invocation.
7886
7887 2010-07-06  Pádraig Brady  <P@draigBrady.com>
7888
7889         * build-aux/bootstrap: Remove any local translations
7890         from the translation project synchronization directory,
7891         so that local only translations are not distributed.
7892
7893 2010-07-04  Bruno Haible  <bruno@clisp.org>
7894
7895         fsusage: Clarify which code applies to which platforms.
7896         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
7897         platform.
7898         * lib/fsusage.c (get_fs_usage): Likewise.
7899
7900 2010-07-04  Bruno Haible  <bruno@clisp.org>
7901
7902         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
7903         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
7904         Reported by Martin Lambers <marlam@marlam.de>.
7905
7906 2010-07-04  Jim Meyering  <meyering@redhat.com>
7907
7908         hash: once again explicitly disallow insertion of NULL
7909         * lib/hash.c (hash_insert0): Reinstate just-removed test:
7910         inserting a NULL pointer cannot work with these functions.
7911         Add a comment with details.
7912         This reverts part of the 2010-07-01 commit, 5bef1a35
7913         "hash: extend module to deal with non-pointer keys".
7914
7915 2010-07-01  Bruno Haible  <bruno@clisp.org>
7916
7917         stdbool: Update doc.
7918         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
7919         Info from Christian Weisgerber <naddy@mips.inka.de>.
7920
7921 2010-07-01  Jim Meyering  <meyering@redhat.com>
7922
7923         hash: extend module to deal with non-pointer keys
7924         * lib/hash.c (hash_insert0): New interface, much like hash_insert
7925         but that allows insertion of non-pointer entries.
7926         Do not disallow an ENTRY value of NULL.
7927         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
7928         * lib/hash.h (hash_insert0): Declare.
7929
7930 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7931
7932         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
7933         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
7934         not present (i.e. with autoconf 2.59 and when using gettextize, not
7935         gnulib), require AC_GNU_SOURCE instead.
7936
7937 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
7938
7939         idpriv-drop: Fix tests.
7940         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
7941         not to the test-idpriv-droptemp program.
7942
7943 2010-06-29  Bruno Haible  <bruno@clisp.org>
7944
7945         string: Fix syntax error with g++ 2.96.
7946         * lib/string.in.h (__pure__): Remove definition.
7947         (_GL_ATTRIBUTE_PURE): New macro.
7948         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
7949         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
7950         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7951
7952 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
7953
7954         unitypes: Fix bug introduced on 2010-05-18.
7955         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
7956
7957 2010-06-22  Eric Blake  <eblake@redhat.com>
7958
7959         memmem: slight optimization
7960         * lib/str-two-way.h (critical_factorization): Update comments.
7961         Reduce work during factorization phase.
7962         Reported by Carlos Bueno <carlos@bueno.org>.
7963
7964 2010-06-21  Bruno Haible  <bruno@clisp.org>
7965
7966         Fix HAVE_CALLOC_POSIX misnomer.
7967         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
7968         !HAVE_CALLOC_POSIX.
7969         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
7970         HAVE_CALLOC_POSIX.
7971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
7972         instead of HAVE_CALLOC_POSIX.
7973         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
7974         HAVE_CALLOC_POSIX.
7975
7976         Use modern idiom for calloc() replacement.
7977         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
7978         AC_FUNC_CALLOC.
7979         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
7980         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
7981         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7982         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
7983         (gl_REPLACE_CALLOC): New macro.
7984
7985 2010-06-21  Bruno Haible  <bruno@clisp.org>
7986
7987         Fix HAVE_REALLOC_POSIX misnomer.
7988         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
7989         !HAVE_REALLOC_POSIX.
7990         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
7991         HAVE_REALLOC_POSIX.
7992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
7993         instead of HAVE_REALLOC_POSIX.
7994         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
7995         HAVE_REALLOC_POSIX.
7996
7997         Use modern idiom for realloc() replacement.
7998         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
7999         AC_FUNC_REALLOC.
8000         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
8001         Autoconf's AC_FUNC_REALLOC.
8002         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8003         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
8004         (gl_REPLACE_REALLOC): New macro.
8005         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8006
8007 2010-06-21  Bruno Haible  <bruno@clisp.org>
8008
8009         Fix HAVE_MALLOC_POSIX misnomer.
8010         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
8011         !HAVE_MALLOC_POSIX.
8012         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
8013         HAVE_MALLOC_POSIX.
8014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
8015         instead of HAVE_MALLOC_POSIX.
8016         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
8017         HAVE_MALLOC_POSIX.
8018
8019         Use modern idiom for malloc() replacement.
8020         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
8021         AC_FUNC_MALLOC.
8022         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
8023         Autoconf's AC_FUNC_MALLOC.
8024         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8025         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
8026         (gl_REPLACE_MALLOC): New macro.
8027         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8028
8029 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
8030
8031         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
8032         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
8033         This macro takes 3 arguments, not 4.
8034
8035 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
8036
8037         ipv6: fix detection under mingw
8038         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
8039         in6_addr.
8040
8041 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
8042
8043         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
8044         that strtod() works when cross-compiling to a glibc version known
8045         to work.
8046
8047 2010-06-15  Bruno Haible  <bruno@clisp.org>
8048
8049         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
8050
8051 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
8052
8053         select: Correct timeout.
8054         * lib/select.c (rpl_select): Compute wait_timeout correctly.
8055
8056 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8057
8058         git-version-gen: init shell var to avoid env var influence
8059         * build-aux/git-version-gen (v): Init shell var to empty.
8060
8061 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
8062
8063         priv-set: Don't assume that priv.h exists merely because getppriv does.
8064         See Jan Andersen's bug report about AIX 5L in
8065         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
8066         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
8067         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
8068         * lib/priv-set.h: Likewise.
8069         * tests/test-priv-set.c: Likewise.
8070
8071 2010-06-13  Bruno Haible  <bruno@clisp.org>
8072
8073         relocatable: Make it easier to test whether to install wrappers.
8074         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
8075         RELOCATABLE_VIA_WRAPPER.
8076
8077 2010-06-13  Bruno Haible  <bruno@clisp.org>
8078
8079         gnulib-tool: Display specified modules and dependencies differently.
8080         * gnulib-tool (func_show_module_list): New function.
8081         (func_import, func_create_testdir): Invoke it.
8082         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8083
8084 2010-06-13  Bruno Haible  <bruno@clisp.org>
8085
8086         gnulib-tool: Align code of func_import and func_create_testdir.
8087         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
8088         specified_modules.
8089
8090 2010-06-12  Jim Meyering  <meyering@redhat.com>
8091
8092         test-inttostr: avoid spurious failure on Solaris 9
8093         * tests/test-inttostr.c (main): Skip the test when snprintf fails
8094         to accept "%ju".  Reported by Bruno Haible.
8095
8096 2010-06-11  Jim Meyering  <meyering@redhat.com>
8097
8098         test-sys_socket: mark variables as used more readably
8099         * tests/test-sys_socket.c (main): Mark otherwise unused variables
8100         as "used" explicitly via (void) statement casts.  This is more
8101         readable than using them in an artificial return expression.
8102         Suggestion from Bruno Haible.
8103
8104 2010-06-11  Bruno Haible  <bruno@clisp.org>
8105
8106         Avoid some more warnings from "gcc -Wwrite-strings".
8107         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
8108         to 'const char *'.
8109         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
8110         * tests/test-c-strcasestr.c (main): Likewise.
8111         * tests/test-mbscasestr1.c (main): Likewise.
8112         * tests/test-mbscasestr2.c (main): Likewise.
8113         * tests/test-memmem.c (main): Likewise.
8114         * tests/test-strstr.c (main): Likewise.
8115         * tests/test-strcasestr.c (main): Likewise.
8116
8117 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8118
8119         init.sh: change framework_failure_ to fail with status 99, not 1
8120         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
8121         automake's parallel-tests rule that this is an unexpected failure,
8122         even if the test is listed in XFAIL_TESTS.
8123
8124 2010-06-11  Jim Meyering  <meyering@redhat.com>
8125
8126         test-inttostr: avoid warnings about 4-6KB literal strings
8127         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
8128         Include "macros.h", for its definition of ASSERT.
8129         (CK): s/assert/ASSERT/
8130         * modules/inttostr-tests (Files): Add macros.h.
8131
8132         init.sh: don't use $ME_ or skip_ before they are defined
8133         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
8134         their first uses.  Also hoist their companions: warn_, fail_,
8135         framework_failure_, $stderr_fileno.  Prompted by a patch from
8136         Stefano Lattarini.
8137
8138         test-sys_socket: avoid set-but-not-used warnings from gcc
8139         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
8140         avoid warning about set-but-not-used variables.
8141
8142         test-xvasprintf: avoid 'const' discard warnings
8143         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
8144         "const" when assigning from literal strings.
8145         (test_xasprintf): Add "void" in function argument list to placate
8146         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
8147
8148         tests: avoid compilation warnings in argmatch and exclude tests...
8149         in packages that define ARGMATCH_DIE_DECL, like coreutils.
8150         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
8151         Since it always exits, declare with the "noreturn" attribute.
8152         * tests/test-argmatch.c: Likewise.
8153
8154         tests: avoid 'const' discard warnings in mbsstr tests
8155         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
8156         * tests/test-mbsstr2.c (main): Likewise.
8157
8158         test-verify: avoid warning from gcc's -Wmissing-declarations
8159         * tests/test-verify.c (function): Declare to be static.
8160
8161         test-inttostr.c: include <string.h> for use of strcmp
8162         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
8163
8164         test-linkat: avoid failed assertion on "other" architectures
8165         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
8166         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
8167         sparc: https://bugs.launchpad.net/bugs/591968
8168
8169 2010-06-11  Jim Meyering  <meyering@redhat.com>
8170
8171         printf.m4: avoid autoconf's "Expanded Before Required" warning
8172         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
8173         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
8174         autoconf warning.
8175
8176 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
8177
8178         Replacement header templates are now named with ".in", not "_".
8179         * doc/gnulib-intro.texi: Correct.
8180
8181 2010-06-10  Jim Meyering  <meyering@redhat.com>
8182
8183         inttostr-tests: depend on snprintf, not snprintf-posix
8184         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
8185         snprintf-posix, to avoid this aclocal failure:
8186           missing file gnulib-tests/vasnprintf.c
8187           configure.ac:45: error: expected source file, required through \
8188           AC_LIBSOURCES, not found
8189
8190 2010-06-10  Jim Meyering  <meyering@redhat.com>
8191
8192         inttostr: add a new function, inttostr, and tests
8193         The namesake function was not available.  The existence of the
8194         template file, inttostr.c makes its addition nontrivial.
8195         * lib/anytostr.c: Rename from inttostr.c.
8196         (anytostr): Rename from inttostr.
8197         * lib/inttostr.c: New file.
8198         * modules/inttostr (Files): Add anytostr.c.
8199         (Makefile.am): Set lib_SOURCES instead of ...
8200         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
8201         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
8202         * lib/offtostr.c: Likewise.
8203         * lib/uinttostr.c: Likewise.
8204         * lib/umaxtostr.c: Likewise.
8205         * modules/inttostr-tests: New file.
8206         * tests/test-inttostr.c: New file.  Test these functions.
8207
8208 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
8209             Bruno Haible  <bruno@clisp.org>
8210
8211         Add "Extending Gnulib" chapter to manual.
8212         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
8213         chapter.
8214         (Extending Gnulib): New chapter.
8215         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
8216         chapter.
8217
8218 2010-06-09  Bruno Haible  <bruno@clisp.org>
8219
8220         Avoid relocwrapper link errors due to gnulib replacement functions.
8221         * lib/areadlink.c: Use the system's malloc, realloc functions.
8222         (areadlink): Set errno to ENOMEM explicitly.
8223         * modules/areadlink (Depends-on): Remove malloc-posix.
8224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8225
8226 2010-06-09  Bruno Haible  <bruno@clisp.org>
8227
8228         Avoid relocwrapper link errors due to gnulib replacement functions.
8229         * lib/canonicalize-lgpl.c: Use the system's malloc function.
8230         * lib/malloca.c: Likewise.
8231         * lib/relocatable.c: Likewise.
8232         * lib/progreloc.c: Use the system's malloc, sprintf functions.
8233         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
8234         * lib/setenv.c: Use the system's malloc, realloc functions.
8235         * lib/strerror.c: Use the system's sprintf function.
8236         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8237
8238 2010-06-04  Bruno Haible  <bruno@clisp.org>
8239
8240         Prefer documented low-level autoconf macro names.
8241         * m4/lib-link.m4: Use m4_translit instead of translit.
8242         * m4/environ.m4: Likewise.
8243         * m4/mathfunc.m4: Likewise.
8244         * m4/onceonly.m4: Likewise.
8245         * m4/stdint.m4: Likewise.
8246         Suggested by Eric Blake.
8247
8248 2010-06-04  Martin Lambers  <marlam@marlam.de>
8249             Bruno Haible  <bruno@clisp.org>
8250
8251         havelib: Allow library names with '+' characters.
8252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8253         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
8254
8255 2010-06-09  Bruno Haible  <bruno@clisp.org>
8256
8257         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
8258         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
8259         realloc failed.
8260
8261 2010-06-08  Peter Simons  <simons@cryp.to>
8262
8263         maint.mk: make the news-check rule more configurable
8264         * top/maint.mk (news-check-lines-spec) New variable.
8265         (news-check): Use "sed -n 1,10p" in place of "head".
8266
8267 2010-06-07  Jim Meyering  <meyering@redhat.com>
8268
8269         do-release-commit-and-tag: fix typo in --help
8270         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
8271
8272         regex: avoid new dead-code warning with gcc-4.6.0
8273         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
8274         if-block containing a while-loop.  It's been unused for at least
8275         5 years.
8276
8277 2010-06-05  Bruno Haible  <bruno@clisp.org>
8278
8279         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
8280         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
8281
8282 2010-06-04  Bruno Haible  <bruno@clisp.org>
8283
8284         Update to GNU gettext 0.18.1.
8285         * modules/gettext (configure.ac): Require gettext infrastructure from
8286         version 0.18.1.
8287
8288 2010-06-03  Bruno Haible  <bruno@clisp.org>
8289
8290         Don't use AC_LIBOBJ with file names in subdirectories.
8291         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
8292         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
8293         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
8294         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
8295         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
8296         gl_LIBUNISTRING_LIBSOURCE.
8297         (Makefile.am): Augment lib_SOURCES here, conditionally.
8298         * NEWS: Drop requirement for Automake option 'subdir-objects'.
8299
8300 2010-06-03  Bruno Haible  <bruno@clisp.org>
8301
8302         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
8303         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
8304         expansion does not end with a newline.
8305         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
8306         unnecessary newline.
8307
8308 2010-06-03  Bruno Haible  <bruno@clisp.org>
8309
8310         Reduce dependencies.
8311         * tests/test-quotearg.h: New file, extracted from
8312         tests/test-quotearg.c.
8313         * tests/test-quotearg-simple.c: New file, extracted from
8314         tests/test-quotearg.c.
8315         * tests/test-quotearg.c: Don't include <ctype.h>.
8316         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
8317         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
8318         use_quote_double_quotes, use_quotearg_colon): Moved to
8319         tests/test-quotearg.h.
8320         (results_g, flag_results, custom_quotes, custom_results): Moved
8321         to tests/test-quotearg-simple.c.
8322         (main): Moved the part that does not depend on gettext to
8323         tests/test-quotearg-simple.c. Return 77 if the test cannot be
8324         performed.
8325         * modules/quotearg-simple: New file.
8326         * modules/quotearg-simple-tests: New file.
8327         * modules/quotearg (Depends-on): Add quotearg-simple.
8328         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
8329         (Files): Add tests/test-quotearg.h.
8330         Reported by Paolo Bonzini.
8331
8332 2010-06-03  Bruno Haible  <bruno@clisp.org>
8333
8334         Reduce dependencies.
8335         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
8336
8337 2010-06-03  Bruno Haible  <bruno@clisp.org>
8338
8339         time: Undefine more broken macros.
8340         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
8341         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
8342         Reported by Eric Blake.
8343
8344 2010-06-03  Bruno Haible  <bruno@clisp.org>
8345
8346         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
8347         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
8348         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
8349         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
8350         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
8351         Reported by Ludovic Courtès <ludo@gnu.org>.
8352
8353 2010-06-02  Eric Blake  <eblake@redhat.com>
8354
8355         time: work with mingw + pthreads-win32 library
8356         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
8357         if timespec is defined only in pthread.h.
8358         * modules/time (Makefile.am): Substitute it.
8359         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
8360         <pthread.h>, when needed.
8361         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
8362         from the library.
8363
8364 2010-05-31  Bruno Haible  <bruno@clisp.org>
8365
8366         Avoid expanding two macros in the wrong order.
8367         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
8368         gl_LIBUNISTRING if it is defined.
8369         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
8370         autoconf >= 2.64.
8371         Reported by Ludovic Courtès <ludo@gnu.org>.
8372
8373 2010-05-27  Jim Meyering  <meyering@redhat.com>
8374
8375         maint.mk: also prohibit "#undef" of always-defined symbols
8376         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
8377         Allow more than one space before the symbol name.
8378         (sc_prohibit_always-defined_macros): Use grep's -E, now that
8379         the regexp uses alternation.
8380
8381 2010-05-26  Eric Blake  <eblake@redhat.com>
8382
8383         maint.mk: avoid echo -e
8384         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
8385         Convert all uses of echo -* to printf.
8386         Reported by Matthias Bolte.
8387
8388 2010-05-25  Bruno Haible  <bruno@clisp.org>
8389
8390         Update to GNU gettext 0.18, part 2.
8391         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
8392         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
8393
8394 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8395
8396         Add missing include in test-pwrite.c.
8397         * tests/test-pwrite.c: Include string.h, for strcmp.
8398
8399 2010-05-24  Bruno Haible  <bruno@clisp.org>
8400
8401         * NEWS: Mention requirement for Automake option 'subdir-objects'.
8402
8403 2010-05-24  Bruno Haible  <bruno@clisp.org>
8404
8405         Don't use conversion with transliteration in u{8,16,32}_strcoll.
8406         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
8407         iconveh_error argument.
8408         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
8409         U_STRCONV_TO_LOCALE.
8410         * lib/unistr/u16-strcoll.c: Likewise.
8411         * lib/unistr/u32-strcoll.c: Likewise.
8412         * modules/unistr/u8-strcoll (Depends-on): Add
8413         uniconv/u8-strconv-to-enc, localcharset. Remove
8414         uniconv/u8-strconv-to-locale.
8415         (configure.ac): Bump version number.
8416         * modules/unistr/u16-strcoll (Depends-on): Add
8417         uniconv/u16-strconv-to-enc, localcharset. Remove
8418         uniconv/u16-strconv-to-locale.
8419         (configure.ac): Bump version number.
8420         * modules/unistr/u32-strcoll (Depends-on): Add
8421         uniconv/u32-strconv-to-enc, localcharset. Remove
8422         uniconv/u32-strconv-to-locale.
8423         (configure.ac): Bump version number.
8424
8425 2010-05-24  Bruno Haible  <bruno@clisp.org>
8426
8427         Avoid a test failure on NetBSD 5.0.
8428         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
8429         an iconv() bug.
8430
8431 2010-05-24  Bruno Haible  <bruno@clisp.org>
8432
8433         Adjust #include directive style.
8434         * modules/regex (Includes): Recommend to write <regex.h>.
8435
8436 2010-05-24  Bruno Haible  <bruno@clisp.org>
8437
8438         regex: Don't require alloca.
8439         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
8440         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
8441         only inside if (0).
8442
8443 2010-05-23  Jim Meyering  <meyering@redhat.com>
8444
8445         test-renameat.c: include <sys/stat.h>
8446         * tests/test-renameat.c: Include <sys/stat.h>; required for
8447         definition of S_IS* macros.
8448
8449 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
8450
8451         Update maintainer documentation for 'relocatable-prog' module.
8452         * doc/relocatable-maint.texi: Update.
8453         Comments by Bruno Haible.
8454
8455 2010-05-23  Bruno Haible  <bruno@clisp.org>
8456
8457         git-merge-changelog: Enable --split-merged-entry by default.
8458         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
8459         (usage): Don't mention this option any more.
8460         Reported by Ralf Wildenhues.
8461
8462 2010-05-23  Jim Meyering  <meyering@redhat.com>
8463
8464         test-pwrite: do not leave behind a test file named "out"
8465         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
8466         The trivial-looking use of init.sh is really necessary.
8467         It ensures that the temporary file, "out", is created in
8468         a temporary directory, and removed upon termination.
8469         * tests/test-pwrite.sh: Re-add file.
8470         * modules/pwrite-tests: Reference it.
8471
8472 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8473
8474         Fix output redirection buglet in init.sh.
8475         * tests/init.sh: Fix redirection of stderr.
8476
8477 2010-05-20  Simon Josefsson  <simon@josefsson.org>
8478
8479         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
8480
8481 2010-05-17  Simon Josefsson  <simon@josefsson.org>
8482
8483         * modules/valgrind-tests: New file.
8484         * m4/valgrind-tests.m4: New file.
8485         * doc/valgrind-tests.texi: New file.
8486         * doc/gnulib.texi (Running self-tests under valgrind): New
8487         section.
8488
8489 2010-05-19  Bruno Haible  <bruno@clisp.org>
8490
8491         Clean up dead code in recent commit.
8492         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
8493         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
8494         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
8495         Suggested by Paolo Bonzini.
8496
8497 2010-05-19  Bruno Haible  <bruno@clisp.org>
8498
8499         Avoid valgrind error reports from libunistring.
8500         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
8501         * modules/libunistring (Files): Add it.
8502         * modules/libunistring-optional (Files): Likewise.
8503
8504 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
8505             Bruno Haible  <bruno@clisp.org>
8506
8507         New module 'libunistring-optional'.
8508         * modules/libunistring-optional: New file.
8509         * m4/libunistring-base.m4: New file.
8510         * m4/libunistring-optional.m4: New file.
8511         * lib/unicase.in.h: Renamed from lib/unicase.h.
8512         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
8513         * lib/unictype.in.h: Renamed from lib/unictype.h.
8514         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
8515         * lib/uniname.in.h: Renamed from lib/uniname.h.
8516         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
8517         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
8518         * lib/unistr.in.h: Renamed from lib/unistr.h.
8519         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
8520         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
8521         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
8522         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
8523         gl_LIBUNISTRING. If the library was found, determine the installed
8524         version and set LIBUNISTRING_VERSION.
8525         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
8526         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
8527         handle a configuration option --with-included-libunistring.
8528         * modules/libunistring (Files): Add m4/absolute-header.m4.
8529         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
8530         Add m4/libunistring-base.m4.
8531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8532         (Makefile.am): Build unicase.h from unicase.in.h.
8533         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
8534         Add m4/libunistring-base.m4.
8535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8536         (Makefile.am): Build uniconv.h from uniconv.in.h.
8537         * modules/unictype/base (Files): Use unictype.in.h instead of
8538         unictype.h. Add m4/libunistring-base.m4.
8539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8540         (Makefile.am): Build unictype.h from unictype.in.h.
8541         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
8542         Add m4/libunistring-base.m4.
8543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8544         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
8545         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
8546         Add m4/libunistring-base.m4.
8547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8548         (Makefile.am): Build uniname.h from uniname.in.h.
8549         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
8550         Add m4/libunistring-base.m4.
8551         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8552         (Makefile.am): Build uninorm.h from uninorm.in.h.
8553         * modules/unistdio/base (Files): Use unistdio.in.h instead of
8554         unistdio.h. Add m4/libunistring-base.m4.
8555         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8556         (Makefile.am): Build unistdio.h from unistdio.in.h.
8557         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
8558         Add m4/libunistring-base.m4.
8559         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8560         (Makefile.am): Build unistr.h from unistr.in.h.
8561         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
8562         Add m4/libunistring-base.m4.
8563         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8564         (Makefile.am): Build unitypes.h from unitypes.in.h.
8565         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
8566         Add m4/libunistring-base.m4.
8567         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8568         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
8569         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
8570         uniwidth.h. Add m4/libunistring-base.m4.
8571         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8572         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
8573         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
8574         instead of augmenting lib_SOURCES.
8575         * modules/unicase/empty-suffix-context: Likewise.
8576         * modules/unicase/locale-language: Likewise.
8577         * modules/unicase/tolower: Likewise.
8578         * modules/unicase/totitle: Likewise.
8579         * modules/unicase/toupper: Likewise.
8580         * modules/unicase/u8-casecmp: Likewise.
8581         * modules/unicase/u8-casecoll: Likewise.
8582         * modules/unicase/u8-casefold: Likewise.
8583         * modules/unicase/u8-casexfrm: Likewise.
8584         * modules/unicase/u8-ct-casefold: Likewise.
8585         * modules/unicase/u8-ct-tolower: Likewise.
8586         * modules/unicase/u8-ct-totitle: Likewise.
8587         * modules/unicase/u8-ct-toupper: Likewise.
8588         * modules/unicase/u8-is-cased: Likewise.
8589         * modules/unicase/u8-is-casefolded: Likewise.
8590         * modules/unicase/u8-is-lowercase: Likewise.
8591         * modules/unicase/u8-is-titlecase: Likewise.
8592         * modules/unicase/u8-is-uppercase: Likewise.
8593         * modules/unicase/u8-prefix-context: Likewise.
8594         * modules/unicase/u8-suffix-context: Likewise.
8595         * modules/unicase/u8-tolower: Likewise.
8596         * modules/unicase/u8-totitle: Likewise.
8597         * modules/unicase/u8-toupper: Likewise.
8598         * modules/unicase/u16-casecmp: Likewise.
8599         * modules/unicase/u16-casecoll: Likewise.
8600         * modules/unicase/u16-casefold: Likewise.
8601         * modules/unicase/u16-casexfrm: Likewise.
8602         * modules/unicase/u16-ct-casefold: Likewise.
8603         * modules/unicase/u16-ct-tolower: Likewise.
8604         * modules/unicase/u16-ct-totitle: Likewise.
8605         * modules/unicase/u16-ct-toupper: Likewise.
8606         * modules/unicase/u16-is-cased: Likewise.
8607         * modules/unicase/u16-is-casefolded: Likewise.
8608         * modules/unicase/u16-is-lowercase: Likewise.
8609         * modules/unicase/u16-is-titlecase: Likewise.
8610         * modules/unicase/u16-is-uppercase: Likewise.
8611         * modules/unicase/u16-prefix-context: Likewise.
8612         * modules/unicase/u16-suffix-context: Likewise.
8613         * modules/unicase/u16-tolower: Likewise.
8614         * modules/unicase/u16-totitle: Likewise.
8615         * modules/unicase/u16-toupper: Likewise.
8616         * modules/unicase/u32-casecmp: Likewise.
8617         * modules/unicase/u32-casecoll: Likewise.
8618         * modules/unicase/u32-casefold: Likewise.
8619         * modules/unicase/u32-casexfrm: Likewise.
8620         * modules/unicase/u32-ct-casefold: Likewise.
8621         * modules/unicase/u32-ct-tolower: Likewise.
8622         * modules/unicase/u32-ct-totitle: Likewise.
8623         * modules/unicase/u32-ct-toupper: Likewise.
8624         * modules/unicase/u32-is-cased: Likewise.
8625         * modules/unicase/u32-is-casefolded: Likewise.
8626         * modules/unicase/u32-is-lowercase: Likewise.
8627         * modules/unicase/u32-is-titlecase: Likewise.
8628         * modules/unicase/u32-is-uppercase: Likewise.
8629         * modules/unicase/u32-prefix-context: Likewise.
8630         * modules/unicase/u32-suffix-context: Likewise.
8631         * modules/unicase/u32-tolower: Likewise.
8632         * modules/unicase/u32-totitle: Likewise.
8633         * modules/unicase/u32-toupper: Likewise.
8634         * modules/unicase/ulc-casecmp: Likewise.
8635         * modules/unicase/ulc-casecoll: Likewise.
8636         * modules/unicase/ulc-casexfrm: Likewise.
8637         * modules/uniconv/u8-conv-from-enc: Likewise.
8638         * modules/uniconv/u8-conv-to-enc: Likewise.
8639         * modules/uniconv/u8-strconv-from-enc: Likewise.
8640         * modules/uniconv/u8-strconv-from-locale: Likewise.
8641         * modules/uniconv/u8-strconv-to-enc: Likewise.
8642         * modules/uniconv/u8-strconv-to-locale: Likewise.
8643         * modules/uniconv/u16-conv-from-enc: Likewise.
8644         * modules/uniconv/u16-conv-to-enc: Likewise.
8645         * modules/uniconv/u16-strconv-from-enc: Likewise.
8646         * modules/uniconv/u16-strconv-from-locale: Likewise.
8647         * modules/uniconv/u16-strconv-to-enc: Likewise.
8648         * modules/uniconv/u16-strconv-to-locale: Likewise.
8649         * modules/uniconv/u32-conv-from-enc: Likewise.
8650         * modules/uniconv/u32-conv-to-enc: Likewise.
8651         * modules/uniconv/u32-strconv-from-enc: Likewise.
8652         * modules/uniconv/u32-strconv-from-locale: Likewise.
8653         * modules/uniconv/u32-strconv-to-enc: Likewise.
8654         * modules/uniconv/u32-strconv-to-locale: Likewise.
8655         * modules/unictype/bidicategory-byname: Likewise.
8656         * modules/unictype/bidicategory-name: Likewise.
8657         * modules/unictype/bidicategory-of: Likewise.
8658         * modules/unictype/bidicategory-test: Likewise.
8659         * modules/unictype/block-list: Likewise.
8660         * modules/unictype/block-test: Likewise.
8661         * modules/unictype/category-C: Likewise.
8662         * modules/unictype/category-Cc: Likewise.
8663         * modules/unictype/category-Cf: Likewise.
8664         * modules/unictype/category-Cn: Likewise.
8665         * modules/unictype/category-Co: Likewise.
8666         * modules/unictype/category-Cs: Likewise.
8667         * modules/unictype/category-L: Likewise.
8668         * modules/unictype/category-Ll: Likewise.
8669         * modules/unictype/category-Lm: Likewise.
8670         * modules/unictype/category-Lo: Likewise.
8671         * modules/unictype/category-Lt: Likewise.
8672         * modules/unictype/category-Lu: Likewise.
8673         * modules/unictype/category-M: Likewise.
8674         * modules/unictype/category-Mc: Likewise.
8675         * modules/unictype/category-Me: Likewise.
8676         * modules/unictype/category-Mn: Likewise.
8677         * modules/unictype/category-N: Likewise.
8678         * modules/unictype/category-Nd: Likewise.
8679         * modules/unictype/category-Nl: Likewise.
8680         * modules/unictype/category-No: Likewise.
8681         * modules/unictype/category-P: Likewise.
8682         * modules/unictype/category-Pc: Likewise.
8683         * modules/unictype/category-Pd: Likewise.
8684         * modules/unictype/category-Pe: Likewise.
8685         * modules/unictype/category-Pf: Likewise.
8686         * modules/unictype/category-Pi: Likewise.
8687         * modules/unictype/category-Po: Likewise.
8688         * modules/unictype/category-Ps: Likewise.
8689         * modules/unictype/category-S: Likewise.
8690         * modules/unictype/category-Sc: Likewise.
8691         * modules/unictype/category-Sk: Likewise.
8692         * modules/unictype/category-Sm: Likewise.
8693         * modules/unictype/category-So: Likewise.
8694         * modules/unictype/category-Z: Likewise.
8695         * modules/unictype/category-Zl: Likewise.
8696         * modules/unictype/category-Zp: Likewise.
8697         * modules/unictype/category-Zs: Likewise.
8698         * modules/unictype/category-and: Likewise.
8699         * modules/unictype/category-and-not: Likewise.
8700         * modules/unictype/category-byname: Likewise.
8701         * modules/unictype/category-name: Likewise.
8702         * modules/unictype/category-none: Likewise.
8703         * modules/unictype/category-of: Likewise.
8704         * modules/unictype/category-or: Likewise.
8705         * modules/unictype/category-test: Likewise.
8706         * modules/unictype/combining-class: Likewise.
8707         * modules/unictype/ctype-alnum: Likewise.
8708         * modules/unictype/ctype-alpha: Likewise.
8709         * modules/unictype/ctype-blank: Likewise.
8710         * modules/unictype/ctype-cntrl: Likewise.
8711         * modules/unictype/ctype-digit: Likewise.
8712         * modules/unictype/ctype-graph: Likewise.
8713         * modules/unictype/ctype-lower: Likewise.
8714         * modules/unictype/ctype-print: Likewise.
8715         * modules/unictype/ctype-punct: Likewise.
8716         * modules/unictype/ctype-space: Likewise.
8717         * modules/unictype/ctype-upper: Likewise.
8718         * modules/unictype/ctype-xdigit: Likewise.
8719         * modules/unictype/decimal-digit: Likewise.
8720         * modules/unictype/digit: Likewise.
8721         * modules/unictype/mirror: Likewise.
8722         * modules/unictype/numeric: Likewise.
8723         * modules/unictype/property-alphabetic: Likewise.
8724         * modules/unictype/property-ascii-hex-digit: Likewise.
8725         * modules/unictype/property-bidi-arabic-digit: Likewise.
8726         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
8727         * modules/unictype/property-bidi-block-separator: Likewise.
8728         * modules/unictype/property-bidi-boundary-neutral: Likewise.
8729         * modules/unictype/property-bidi-common-separator: Likewise.
8730         * modules/unictype/property-bidi-control: Likewise.
8731         * modules/unictype/property-bidi-embedding-or-override: Likewise.
8732         * modules/unictype/property-bidi-eur-num-separator: Likewise.
8733         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
8734         * modules/unictype/property-bidi-european-digit: Likewise.
8735         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
8736         * modules/unictype/property-bidi-left-to-right: Likewise.
8737         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
8738         * modules/unictype/property-bidi-other-neutral: Likewise.
8739         * modules/unictype/property-bidi-pdf: Likewise.
8740         * modules/unictype/property-bidi-segment-separator: Likewise.
8741         * modules/unictype/property-bidi-whitespace: Likewise.
8742         * modules/unictype/property-byname: Likewise.
8743         * modules/unictype/property-combining: Likewise.
8744         * modules/unictype/property-composite: Likewise.
8745         * modules/unictype/property-currency-symbol: Likewise.
8746         * modules/unictype/property-dash: Likewise.
8747         * modules/unictype/property-decimal-digit: Likewise.
8748         * modules/unictype/property-default-ignorable-code-point: Likewise.
8749         * modules/unictype/property-deprecated: Likewise.
8750         * modules/unictype/property-diacritic: Likewise.
8751         * modules/unictype/property-extender: Likewise.
8752         * modules/unictype/property-format-control: Likewise.
8753         * modules/unictype/property-grapheme-base: Likewise.
8754         * modules/unictype/property-grapheme-extend: Likewise.
8755         * modules/unictype/property-grapheme-link: Likewise.
8756         * modules/unictype/property-hex-digit: Likewise.
8757         * modules/unictype/property-hyphen: Likewise.
8758         * modules/unictype/property-id-continue: Likewise.
8759         * modules/unictype/property-id-start: Likewise.
8760         * modules/unictype/property-ideographic: Likewise.
8761         * modules/unictype/property-ids-binary-operator: Likewise.
8762         * modules/unictype/property-ids-trinary-operator: Likewise.
8763         * modules/unictype/property-ignorable-control: Likewise.
8764         * modules/unictype/property-iso-control: Likewise.
8765         * modules/unictype/property-join-control: Likewise.
8766         * modules/unictype/property-left-of-pair: Likewise.
8767         * modules/unictype/property-line-separator: Likewise.
8768         * modules/unictype/property-logical-order-exception: Likewise.
8769         * modules/unictype/property-lowercase: Likewise.
8770         * modules/unictype/property-math: Likewise.
8771         * modules/unictype/property-non-break: Likewise.
8772         * modules/unictype/property-not-a-character: Likewise.
8773         * modules/unictype/property-numeric: Likewise.
8774         * modules/unictype/property-other-alphabetic: Likewise.
8775         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
8776         * modules/unictype/property-other-grapheme-extend: Likewise.
8777         * modules/unictype/property-other-id-continue: Likewise.
8778         * modules/unictype/property-other-id-start: Likewise.
8779         * modules/unictype/property-other-lowercase: Likewise.
8780         * modules/unictype/property-other-math: Likewise.
8781         * modules/unictype/property-other-uppercase: Likewise.
8782         * modules/unictype/property-paired-punctuation: Likewise.
8783         * modules/unictype/property-paragraph-separator: Likewise.
8784         * modules/unictype/property-pattern-syntax: Likewise.
8785         * modules/unictype/property-pattern-white-space: Likewise.
8786         * modules/unictype/property-private-use: Likewise.
8787         * modules/unictype/property-punctuation: Likewise.
8788         * modules/unictype/property-quotation-mark: Likewise.
8789         * modules/unictype/property-radical: Likewise.
8790         * modules/unictype/property-sentence-terminal: Likewise.
8791         * modules/unictype/property-soft-dotted: Likewise.
8792         * modules/unictype/property-space: Likewise.
8793         * modules/unictype/property-terminal-punctuation: Likewise.
8794         * modules/unictype/property-test: Likewise.
8795         * modules/unictype/property-titlecase: Likewise.
8796         * modules/unictype/property-unassigned-code-value: Likewise.
8797         * modules/unictype/property-unified-ideograph: Likewise.
8798         * modules/unictype/property-uppercase: Likewise.
8799         * modules/unictype/property-variation-selector: Likewise.
8800         * modules/unictype/property-white-space: Likewise.
8801         * modules/unictype/property-xid-continue: Likewise.
8802         * modules/unictype/property-xid-start: Likewise.
8803         * modules/unictype/property-zero-width: Likewise.
8804         * modules/unictype/scripts: Likewise.
8805         * modules/unictype/syntax-c-ident: Likewise.
8806         * modules/unictype/syntax-c-whitespace: Likewise.
8807         * modules/unictype/syntax-java-ident: Likewise.
8808         * modules/unictype/syntax-java-whitespace: Likewise.
8809         * modules/unilbrk/u8-possible-linebreaks: Likewise.
8810         * modules/unilbrk/u8-width-linebreaks: Likewise.
8811         * modules/unilbrk/u16-possible-linebreaks: Likewise.
8812         * modules/unilbrk/u16-width-linebreaks: Likewise.
8813         * modules/unilbrk/u32-possible-linebreaks: Likewise.
8814         * modules/unilbrk/u32-width-linebreaks: Likewise.
8815         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
8816         * modules/unilbrk/ulc-width-linebreaks: Likewise.
8817         * modules/uniname/uniname: Likewise.
8818         * modules/uninorm/canonical-decomposition: Likewise.
8819         * modules/uninorm/composition: Likewise.
8820         * modules/uninorm/decomposing-form: Likewise.
8821         * modules/uninorm/decomposition: Likewise.
8822         * modules/uninorm/filter: Likewise.
8823         * modules/uninorm/nfc: Likewise.
8824         * modules/uninorm/nfd: Likewise.
8825         * modules/uninorm/nfkc: Likewise.
8826         * modules/uninorm/nfkd: Likewise.
8827         * modules/uninorm/u8-normalize: Likewise.
8828         * modules/uninorm/u8-normcmp: Likewise.
8829         * modules/uninorm/u8-normcoll: Likewise.
8830         * modules/uninorm/u8-normxfrm: Likewise.
8831         * modules/uninorm/u16-normalize: Likewise.
8832         * modules/uninorm/u16-normcmp: Likewise.
8833         * modules/uninorm/u16-normcoll: Likewise.
8834         * modules/uninorm/u16-normxfrm: Likewise.
8835         * modules/uninorm/u32-normalize: Likewise.
8836         * modules/uninorm/u32-normcmp: Likewise.
8837         * modules/uninorm/u32-normcoll: Likewise.
8838         * modules/uninorm/u32-normxfrm: Likewise.
8839         * modules/unistdio/u8-asnprintf: Likewise.
8840         * modules/unistdio/u8-asprintf: Likewise.
8841         * modules/unistdio/u8-snprintf: Likewise.
8842         * modules/unistdio/u8-sprintf: Likewise.
8843         * modules/unistdio/u8-u8-asnprintf: Likewise.
8844         * modules/unistdio/u8-u8-asprintf: Likewise.
8845         * modules/unistdio/u8-u8-snprintf: Likewise.
8846         * modules/unistdio/u8-u8-sprintf: Likewise.
8847         * modules/unistdio/u8-u8-vasnprintf: Likewise.
8848         * modules/unistdio/u8-u8-vasprintf: Likewise.
8849         * modules/unistdio/u8-u8-vsnprintf: Likewise.
8850         * modules/unistdio/u8-u8-vsprintf: Likewise.
8851         * modules/unistdio/u8-vasnprintf: Likewise.
8852         * modules/unistdio/u8-vasprintf: Likewise.
8853         * modules/unistdio/u8-vsnprintf: Likewise.
8854         * modules/unistdio/u8-vsprintf: Likewise.
8855         * modules/unistdio/u16-asnprintf: Likewise.
8856         * modules/unistdio/u16-asprintf: Likewise.
8857         * modules/unistdio/u16-snprintf: Likewise.
8858         * modules/unistdio/u16-sprintf: Likewise.
8859         * modules/unistdio/u16-u16-asnprintf: Likewise.
8860         * modules/unistdio/u16-u16-asprintf: Likewise.
8861         * modules/unistdio/u16-u16-snprintf: Likewise.
8862         * modules/unistdio/u16-u16-sprintf: Likewise.
8863         * modules/unistdio/u16-u16-vasnprintf: Likewise.
8864         * modules/unistdio/u16-u16-vasprintf: Likewise.
8865         * modules/unistdio/u16-u16-vsnprintf: Likewise.
8866         * modules/unistdio/u16-u16-vsprintf: Likewise.
8867         * modules/unistdio/u16-vasnprintf: Likewise.
8868         * modules/unistdio/u16-vasprintf: Likewise.
8869         * modules/unistdio/u16-vsnprintf: Likewise.
8870         * modules/unistdio/u16-vsprintf: Likewise.
8871         * modules/unistdio/u32-asnprintf: Likewise.
8872         * modules/unistdio/u32-asprintf: Likewise.
8873         * modules/unistdio/u32-snprintf: Likewise.
8874         * modules/unistdio/u32-sprintf: Likewise.
8875         * modules/unistdio/u32-u32-asnprintf: Likewise.
8876         * modules/unistdio/u32-u32-asprintf: Likewise.
8877         * modules/unistdio/u32-u32-snprintf: Likewise.
8878         * modules/unistdio/u32-u32-sprintf: Likewise.
8879         * modules/unistdio/u32-u32-vasnprintf: Likewise.
8880         * modules/unistdio/u32-u32-vasprintf: Likewise.
8881         * modules/unistdio/u32-u32-vsnprintf: Likewise.
8882         * modules/unistdio/u32-u32-vsprintf: Likewise.
8883         * modules/unistdio/u32-vasnprintf: Likewise.
8884         * modules/unistdio/u32-vasprintf: Likewise.
8885         * modules/unistdio/u32-vsnprintf: Likewise.
8886         * modules/unistdio/u32-vsprintf: Likewise.
8887         * modules/unistdio/ulc-asnprintf: Likewise.
8888         * modules/unistdio/ulc-asprintf: Likewise.
8889         * modules/unistdio/ulc-fprintf: Likewise.
8890         * modules/unistdio/ulc-snprintf: Likewise.
8891         * modules/unistdio/ulc-sprintf: Likewise.
8892         * modules/unistdio/ulc-vasnprintf: Likewise.
8893         * modules/unistdio/ulc-vasprintf: Likewise.
8894         * modules/unistdio/ulc-vfprintf: Likewise.
8895         * modules/unistdio/ulc-vsnprintf: Likewise.
8896         * modules/unistdio/ulc-vsprintf: Likewise.
8897         * modules/unistr/u8-check: Likewise.
8898         * modules/unistr/u8-chr: Likewise.
8899         * modules/unistr/u8-cmp: Likewise.
8900         * modules/unistr/u8-cmp2: Likewise.
8901         * modules/unistr/u8-cpy: Likewise.
8902         * modules/unistr/u8-cpy-alloc: Likewise.
8903         * modules/unistr/u8-endswith: Likewise.
8904         * modules/unistr/u8-mblen: Likewise.
8905         * modules/unistr/u8-mbsnlen: Likewise.
8906         * modules/unistr/u8-mbtouc: Likewise.
8907         * modules/unistr/u8-mbtouc-unsafe: Likewise.
8908         * modules/unistr/u8-mbtoucr: Likewise.
8909         * modules/unistr/u8-move: Likewise.
8910         * modules/unistr/u8-next: Likewise.
8911         * modules/unistr/u8-prev: Likewise.
8912         * modules/unistr/u8-set: Likewise.
8913         * modules/unistr/u8-startswith: Likewise.
8914         * modules/unistr/u8-stpcpy: Likewise.
8915         * modules/unistr/u8-stpncpy: Likewise.
8916         * modules/unistr/u8-strcat: Likewise.
8917         * modules/unistr/u8-strchr: Likewise.
8918         * modules/unistr/u8-strcmp: Likewise.
8919         * modules/unistr/u8-strcoll: Likewise.
8920         * modules/unistr/u8-strcpy: Likewise.
8921         * modules/unistr/u8-strcspn: Likewise.
8922         * modules/unistr/u8-strdup: Likewise.
8923         * modules/unistr/u8-strlen: Likewise.
8924         * modules/unistr/u8-strmblen: Likewise.
8925         * modules/unistr/u8-strmbtouc: Likewise.
8926         * modules/unistr/u8-strncat: Likewise.
8927         * modules/unistr/u8-strncmp: Likewise.
8928         * modules/unistr/u8-strncpy: Likewise.
8929         * modules/unistr/u8-strnlen: Likewise.
8930         * modules/unistr/u8-strpbrk: Likewise.
8931         * modules/unistr/u8-strrchr: Likewise.
8932         * modules/unistr/u8-strspn: Likewise.
8933         * modules/unistr/u8-strstr: Likewise.
8934         * modules/unistr/u8-strtok: Likewise.
8935         * modules/unistr/u8-to-u16: Likewise.
8936         * modules/unistr/u8-to-u32: Likewise.
8937         * modules/unistr/u8-uctomb: Likewise.
8938         * modules/unistr/u16-check: Likewise.
8939         * modules/unistr/u16-chr: Likewise.
8940         * modules/unistr/u16-cmp: Likewise.
8941         * modules/unistr/u16-cmp2: Likewise.
8942         * modules/unistr/u16-cpy: Likewise.
8943         * modules/unistr/u16-cpy-alloc: Likewise.
8944         * modules/unistr/u16-endswith: Likewise.
8945         * modules/unistr/u16-mblen: Likewise.
8946         * modules/unistr/u16-mbsnlen: Likewise.
8947         * modules/unistr/u16-mbtouc: Likewise.
8948         * modules/unistr/u16-mbtouc-unsafe: Likewise.
8949         * modules/unistr/u16-mbtoucr: Likewise.
8950         * modules/unistr/u16-move: Likewise.
8951         * modules/unistr/u16-next: Likewise.
8952         * modules/unistr/u16-prev: Likewise.
8953         * modules/unistr/u16-set: Likewise.
8954         * modules/unistr/u16-startswith: Likewise.
8955         * modules/unistr/u16-stpcpy: Likewise.
8956         * modules/unistr/u16-stpncpy: Likewise.
8957         * modules/unistr/u16-strcat: Likewise.
8958         * modules/unistr/u16-strchr: Likewise.
8959         * modules/unistr/u16-strcmp: Likewise.
8960         * modules/unistr/u16-strcoll: Likewise.
8961         * modules/unistr/u16-strcpy: Likewise.
8962         * modules/unistr/u16-strcspn: Likewise.
8963         * modules/unistr/u16-strdup: Likewise.
8964         * modules/unistr/u16-strlen: Likewise.
8965         * modules/unistr/u16-strmblen: Likewise.
8966         * modules/unistr/u16-strmbtouc: Likewise.
8967         * modules/unistr/u16-strncat: Likewise.
8968         * modules/unistr/u16-strncmp: Likewise.
8969         * modules/unistr/u16-strncpy: Likewise.
8970         * modules/unistr/u16-strnlen: Likewise.
8971         * modules/unistr/u16-strpbrk: Likewise.
8972         * modules/unistr/u16-strrchr: Likewise.
8973         * modules/unistr/u16-strspn: Likewise.
8974         * modules/unistr/u16-strstr: Likewise.
8975         * modules/unistr/u16-strtok: Likewise.
8976         * modules/unistr/u16-to-u32: Likewise.
8977         * modules/unistr/u16-to-u8: Likewise.
8978         * modules/unistr/u16-uctomb: Likewise.
8979         * modules/unistr/u32-check: Likewise.
8980         * modules/unistr/u32-chr: Likewise.
8981         * modules/unistr/u32-cmp: Likewise.
8982         * modules/unistr/u32-cmp2: Likewise.
8983         * modules/unistr/u32-cpy: Likewise.
8984         * modules/unistr/u32-cpy-alloc: Likewise.
8985         * modules/unistr/u32-endswith: Likewise.
8986         * modules/unistr/u32-mblen: Likewise.
8987         * modules/unistr/u32-mbsnlen: Likewise.
8988         * modules/unistr/u32-mbtouc: Likewise.
8989         * modules/unistr/u32-mbtouc-unsafe: Likewise.
8990         * modules/unistr/u32-mbtoucr: Likewise.
8991         * modules/unistr/u32-move: Likewise.
8992         * modules/unistr/u32-next: Likewise.
8993         * modules/unistr/u32-prev: Likewise.
8994         * modules/unistr/u32-set: Likewise.
8995         * modules/unistr/u32-startswith: Likewise.
8996         * modules/unistr/u32-stpcpy: Likewise.
8997         * modules/unistr/u32-stpncpy: Likewise.
8998         * modules/unistr/u32-strcat: Likewise.
8999         * modules/unistr/u32-strchr: Likewise.
9000         * modules/unistr/u32-strcmp: Likewise.
9001         * modules/unistr/u32-strcoll: Likewise.
9002         * modules/unistr/u32-strcpy: Likewise.
9003         * modules/unistr/u32-strcspn: Likewise.
9004         * modules/unistr/u32-strdup: Likewise.
9005         * modules/unistr/u32-strlen: Likewise.
9006         * modules/unistr/u32-strmblen: Likewise.
9007         * modules/unistr/u32-strmbtouc: Likewise.
9008         * modules/unistr/u32-strncat: Likewise.
9009         * modules/unistr/u32-strncmp: Likewise.
9010         * modules/unistr/u32-strncpy: Likewise.
9011         * modules/unistr/u32-strnlen: Likewise.
9012         * modules/unistr/u32-strpbrk: Likewise.
9013         * modules/unistr/u32-strrchr: Likewise.
9014         * modules/unistr/u32-strspn: Likewise.
9015         * modules/unistr/u32-strstr: Likewise.
9016         * modules/unistr/u32-strtok: Likewise.
9017         * modules/unistr/u32-to-u16: Likewise.
9018         * modules/unistr/u32-to-u8: Likewise.
9019         * modules/unistr/u32-uctomb: Likewise.
9020         * modules/uniwbrk/u8-wordbreaks: Likewise.
9021         * modules/uniwbrk/u16-wordbreaks: Likewise.
9022         * modules/uniwbrk/u32-wordbreaks: Likewise.
9023         * modules/uniwbrk/ulc-wordbreaks: Likewise.
9024         * modules/uniwbrk/wordbreak-property: Likewise.
9025         * modules/uniwidth/u8-strwidth: Likewise.
9026         * modules/uniwidth/u8-width: Likewise.
9027         * modules/uniwidth/u16-strwidth: Likewise.
9028         * modules/uniwidth/u16-width: Likewise.
9029         * modules/uniwidth/u32-strwidth: Likewise.
9030         * modules/uniwidth/u32-width: Likewise.
9031         * modules/uniwidth/width: Likewise.
9032         * modules/unicase/cased-tests (Makefile.am): Link all test programs
9033         with $(LIBUNISTRING).
9034         * modules/unicase/ignorable-tests: Likewise.
9035         * modules/unicase/locale-language-tests: Likewise.
9036         * modules/unicase/tolower-tests: Likewise.
9037         * modules/unicase/totitle-tests: Likewise.
9038         * modules/unicase/toupper-tests: Likewise.
9039         * modules/unicase/u8-casecmp-tests: Likewise.
9040         * modules/unicase/u8-casecoll-tests: Likewise.
9041         * modules/unicase/u8-casefold-tests: Likewise.
9042         * modules/unicase/u8-is-cased-tests: Likewise.
9043         * modules/unicase/u8-is-casefolded-tests: Likewise.
9044         * modules/unicase/u8-is-lowercase-tests: Likewise.
9045         * modules/unicase/u8-is-titlecase-tests: Likewise.
9046         * modules/unicase/u8-is-uppercase-tests: Likewise.
9047         * modules/unicase/u8-tolower-tests: Likewise.
9048         * modules/unicase/u8-totitle-tests: Likewise.
9049         * modules/unicase/u8-toupper-tests: Likewise.
9050         * modules/unicase/u16-casecmp-tests: Likewise.
9051         * modules/unicase/u16-casecoll-tests: Likewise.
9052         * modules/unicase/u16-casefold-tests: Likewise.
9053         * modules/unicase/u16-is-cased-tests: Likewise.
9054         * modules/unicase/u16-is-casefolded-tests: Likewise.
9055         * modules/unicase/u16-is-lowercase-tests: Likewise.
9056         * modules/unicase/u16-is-titlecase-tests: Likewise.
9057         * modules/unicase/u16-is-uppercase-tests: Likewise.
9058         * modules/unicase/u16-tolower-tests: Likewise.
9059         * modules/unicase/u16-totitle-tests: Likewise.
9060         * modules/unicase/u16-toupper-tests: Likewise.
9061         * modules/unicase/u32-casecmp-tests: Likewise.
9062         * modules/unicase/u32-casecoll-tests: Likewise.
9063         * modules/unicase/u32-casefold-tests: Likewise.
9064         * modules/unicase/u32-is-cased-tests: Likewise.
9065         * modules/unicase/u32-is-casefolded-tests: Likewise.
9066         * modules/unicase/u32-is-lowercase-tests: Likewise.
9067         * modules/unicase/u32-is-titlecase-tests: Likewise.
9068         * modules/unicase/u32-is-uppercase-tests: Likewise.
9069         * modules/unicase/u32-tolower-tests: Likewise.
9070         * modules/unicase/u32-totitle-tests: Likewise.
9071         * modules/unicase/u32-toupper-tests: Likewise.
9072         * modules/unicase/ulc-casecmp-tests: Likewise.
9073         * modules/unicase/ulc-casecoll-tests: Likewise.
9074         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
9075         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
9076         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
9077         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
9078         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
9079         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
9080         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
9081         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
9082         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
9083         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
9084         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
9085         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
9086         * modules/unictype/bidicategory-byname-tests: Likewise.
9087         * modules/unictype/bidicategory-name-tests: Likewise.
9088         * modules/unictype/bidicategory-of-tests: Likewise.
9089         * modules/unictype/bidicategory-test-tests: Likewise.
9090         * modules/unictype/block-list-tests: Likewise.
9091         * modules/unictype/block-of-tests: Likewise.
9092         * modules/unictype/block-test-tests: Likewise.
9093         * modules/unictype/category-C-tests: Likewise.
9094         * modules/unictype/category-Cc-tests: Likewise.
9095         * modules/unictype/category-Cf-tests: Likewise.
9096         * modules/unictype/category-Cn-tests: Likewise.
9097         * modules/unictype/category-Co-tests: Likewise.
9098         * modules/unictype/category-Cs-tests: Likewise.
9099         * modules/unictype/category-L-tests: Likewise.
9100         * modules/unictype/category-Ll-tests: Likewise.
9101         * modules/unictype/category-Lm-tests: Likewise.
9102         * modules/unictype/category-Lo-tests: Likewise.
9103         * modules/unictype/category-Lt-tests: Likewise.
9104         * modules/unictype/category-Lu-tests: Likewise.
9105         * modules/unictype/category-M-tests: Likewise.
9106         * modules/unictype/category-Mc-tests: Likewise.
9107         * modules/unictype/category-Me-tests: Likewise.
9108         * modules/unictype/category-Mn-tests: Likewise.
9109         * modules/unictype/category-N-tests: Likewise.
9110         * modules/unictype/category-Nd-tests: Likewise.
9111         * modules/unictype/category-Nl-tests: Likewise.
9112         * modules/unictype/category-No-tests: Likewise.
9113         * modules/unictype/category-P-tests: Likewise.
9114         * modules/unictype/category-Pc-tests: Likewise.
9115         * modules/unictype/category-Pd-tests: Likewise.
9116         * modules/unictype/category-Pe-tests: Likewise.
9117         * modules/unictype/category-Pf-tests: Likewise.
9118         * modules/unictype/category-Pi-tests: Likewise.
9119         * modules/unictype/category-Po-tests: Likewise.
9120         * modules/unictype/category-Ps-tests: Likewise.
9121         * modules/unictype/category-S-tests: Likewise.
9122         * modules/unictype/category-Sc-tests: Likewise.
9123         * modules/unictype/category-Sk-tests: Likewise.
9124         * modules/unictype/category-Sm-tests: Likewise.
9125         * modules/unictype/category-So-tests: Likewise.
9126         * modules/unictype/category-Z-tests: Likewise.
9127         * modules/unictype/category-Zl-tests: Likewise.
9128         * modules/unictype/category-Zp-tests: Likewise.
9129         * modules/unictype/category-Zs-tests: Likewise.
9130         * modules/unictype/category-and-not-tests: Likewise.
9131         * modules/unictype/category-and-tests: Likewise.
9132         * modules/unictype/category-byname-tests: Likewise.
9133         * modules/unictype/category-name-tests: Likewise.
9134         * modules/unictype/category-none-tests: Likewise.
9135         * modules/unictype/category-of-tests: Likewise.
9136         * modules/unictype/category-or-tests: Likewise.
9137         * modules/unictype/category-test-withtable-tests: Likewise.
9138         * modules/unictype/combining-class-tests: Likewise.
9139         * modules/unictype/ctype-alnum-tests: Likewise.
9140         * modules/unictype/ctype-alpha-tests: Likewise.
9141         * modules/unictype/ctype-blank-tests: Likewise.
9142         * modules/unictype/ctype-cntrl-tests: Likewise.
9143         * modules/unictype/ctype-digit-tests: Likewise.
9144         * modules/unictype/ctype-graph-tests: Likewise.
9145         * modules/unictype/ctype-lower-tests: Likewise.
9146         * modules/unictype/ctype-print-tests: Likewise.
9147         * modules/unictype/ctype-punct-tests: Likewise.
9148         * modules/unictype/ctype-space-tests: Likewise.
9149         * modules/unictype/ctype-upper-tests: Likewise.
9150         * modules/unictype/ctype-xdigit-tests: Likewise.
9151         * modules/unictype/decimal-digit-tests: Likewise.
9152         * modules/unictype/digit-tests: Likewise.
9153         * modules/unictype/mirror-tests: Likewise.
9154         * modules/unictype/numeric-tests: Likewise.
9155         * modules/unictype/property-alphabetic-tests: Likewise.
9156         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
9157         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
9158         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
9159         * modules/unictype/property-bidi-block-separator-tests: Likewise.
9160         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
9161         * modules/unictype/property-bidi-common-separator-tests: Likewise.
9162         * modules/unictype/property-bidi-control-tests: Likewise.
9163         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
9164         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
9165         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
9166         * modules/unictype/property-bidi-european-digit-tests: Likewise.
9167         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
9168         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
9169         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
9170         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
9171         * modules/unictype/property-bidi-pdf-tests: Likewise.
9172         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
9173         * modules/unictype/property-bidi-whitespace-tests: Likewise.
9174         * modules/unictype/property-byname-tests: Likewise.
9175         * modules/unictype/property-combining-tests: Likewise.
9176         * modules/unictype/property-composite-tests: Likewise.
9177         * modules/unictype/property-currency-symbol-tests: Likewise.
9178         * modules/unictype/property-dash-tests: Likewise.
9179         * modules/unictype/property-decimal-digit-tests: Likewise.
9180         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
9181         * modules/unictype/property-deprecated-tests: Likewise.
9182         * modules/unictype/property-diacritic-tests: Likewise.
9183         * modules/unictype/property-extender-tests: Likewise.
9184         * modules/unictype/property-format-control-tests: Likewise.
9185         * modules/unictype/property-grapheme-base-tests: Likewise.
9186         * modules/unictype/property-grapheme-extend-tests: Likewise.
9187         * modules/unictype/property-grapheme-link-tests: Likewise.
9188         * modules/unictype/property-hex-digit-tests: Likewise.
9189         * modules/unictype/property-hyphen-tests: Likewise.
9190         * modules/unictype/property-id-continue-tests: Likewise.
9191         * modules/unictype/property-id-start-tests: Likewise.
9192         * modules/unictype/property-ideographic-tests: Likewise.
9193         * modules/unictype/property-ids-binary-operator-tests: Likewise.
9194         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
9195         * modules/unictype/property-ignorable-control-tests: Likewise.
9196         * modules/unictype/property-iso-control-tests: Likewise.
9197         * modules/unictype/property-join-control-tests: Likewise.
9198         * modules/unictype/property-left-of-pair-tests: Likewise.
9199         * modules/unictype/property-line-separator-tests: Likewise.
9200         * modules/unictype/property-logical-order-exception-tests: Likewise.
9201         * modules/unictype/property-lowercase-tests: Likewise.
9202         * modules/unictype/property-math-tests: Likewise.
9203         * modules/unictype/property-non-break-tests: Likewise.
9204         * modules/unictype/property-not-a-character-tests: Likewise.
9205         * modules/unictype/property-numeric-tests: Likewise.
9206         * modules/unictype/property-other-alphabetic-tests: Likewise.
9207         * modules/unictype/property-other-default-ignorable-code-point-tests:
9208         Likewise.
9209         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
9210         * modules/unictype/property-other-id-continue-tests: Likewise.
9211         * modules/unictype/property-other-id-start-tests: Likewise.
9212         * modules/unictype/property-other-lowercase-tests: Likewise.
9213         * modules/unictype/property-other-math-tests: Likewise.
9214         * modules/unictype/property-other-uppercase-tests: Likewise.
9215         * modules/unictype/property-paired-punctuation-tests: Likewise.
9216         * modules/unictype/property-paragraph-separator-tests: Likewise.
9217         * modules/unictype/property-pattern-syntax-tests: Likewise.
9218         * modules/unictype/property-pattern-white-space-tests: Likewise.
9219         * modules/unictype/property-private-use-tests: Likewise.
9220         * modules/unictype/property-punctuation-tests: Likewise.
9221         * modules/unictype/property-quotation-mark-tests: Likewise.
9222         * modules/unictype/property-radical-tests: Likewise.
9223         * modules/unictype/property-sentence-terminal-tests: Likewise.
9224         * modules/unictype/property-soft-dotted-tests: Likewise.
9225         * modules/unictype/property-space-tests: Likewise.
9226         * modules/unictype/property-terminal-punctuation-tests: Likewise.
9227         * modules/unictype/property-test-tests: Likewise.
9228         * modules/unictype/property-titlecase-tests: Likewise.
9229         * modules/unictype/property-unassigned-code-value-tests: Likewise.
9230         * modules/unictype/property-unified-ideograph-tests: Likewise.
9231         * modules/unictype/property-uppercase-tests: Likewise.
9232         * modules/unictype/property-variation-selector-tests: Likewise.
9233         * modules/unictype/property-white-space-tests: Likewise.
9234         * modules/unictype/property-xid-continue-tests: Likewise.
9235         * modules/unictype/property-xid-start-tests: Likewise.
9236         * modules/unictype/property-zero-width-tests: Likewise.
9237         * modules/unictype/scripts-tests: Likewise.
9238         * modules/unictype/syntax-c-ident-tests: Likewise.
9239         * modules/unictype/syntax-c-whitespace-tests: Likewise.
9240         * modules/unictype/syntax-java-ident-tests: Likewise.
9241         * modules/unictype/syntax-java-whitespace-tests: Likewise.
9242         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
9243         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
9244         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
9245         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
9246         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
9247         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
9248         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
9249         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
9250         * modules/uniname/uniname-tests: Likewise.
9251         * modules/uninorm/canonical-decomposition-tests: Likewise.
9252         * modules/uninorm/compat-decomposition-tests: Likewise.
9253         * modules/uninorm/composition-tests: Likewise.
9254         * modules/uninorm/decomposing-form-tests: Likewise.
9255         * modules/uninorm/decomposition-tests: Likewise.
9256         * modules/uninorm/filter-tests: Likewise.
9257         * modules/uninorm/nfc-tests: Likewise.
9258         * modules/uninorm/nfd-tests: Likewise.
9259         * modules/uninorm/nfkc-tests: Likewise.
9260         * modules/uninorm/nfkd-tests: Likewise.
9261         * modules/uninorm/u8-normcmp-tests: Likewise.
9262         * modules/uninorm/u8-normcoll-tests: Likewise.
9263         * modules/uninorm/u16-normcmp-tests: Likewise.
9264         * modules/uninorm/u16-normcoll-tests: Likewise.
9265         * modules/uninorm/u32-normcmp-tests: Likewise.
9266         * modules/uninorm/u32-normcoll-tests: Likewise.
9267         * modules/unistdio/u8-asnprintf-tests: Likewise.
9268         * modules/unistdio/u8-vasnprintf-tests: Likewise.
9269         * modules/unistdio/u8-vasprintf-tests: Likewise.
9270         * modules/unistdio/u8-vsnprintf-tests: Likewise.
9271         * modules/unistdio/u8-vsprintf-tests: Likewise.
9272         * modules/unistdio/u16-asnprintf-tests: Likewise.
9273         * modules/unistdio/u16-vasnprintf-tests: Likewise.
9274         * modules/unistdio/u16-vasprintf-tests: Likewise.
9275         * modules/unistdio/u16-vsnprintf-tests: Likewise.
9276         * modules/unistdio/u16-vsprintf-tests: Likewise.
9277         * modules/unistdio/u32-asnprintf-tests: Likewise.
9278         * modules/unistdio/u32-vasnprintf-tests: Likewise.
9279         * modules/unistdio/u32-vasprintf-tests: Likewise.
9280         * modules/unistdio/u32-vsnprintf-tests: Likewise.
9281         * modules/unistdio/u32-vsprintf-tests: Likewise.
9282         * modules/unistdio/ulc-asnprintf-tests: Likewise.
9283         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
9284         * modules/unistdio/ulc-vasprintf-tests: Likewise.
9285         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
9286         * modules/unistdio/ulc-vsprintf-tests: Likewise.
9287         * modules/unistr/u8-check-tests: Likewise.
9288         * modules/unistr/u8-chr-tests: Likewise.
9289         * modules/unistr/u8-cmp-tests: Likewise.
9290         * modules/unistr/u8-cmp2-tests: Likewise.
9291         * modules/unistr/u8-cpy-alloc-tests: Likewise.
9292         * modules/unistr/u8-cpy-tests: Likewise.
9293         * modules/unistr/u8-mblen-tests: Likewise.
9294         * modules/unistr/u8-mbsnlen-tests: Likewise.
9295         * modules/unistr/u8-mbtouc-tests: Likewise.
9296         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
9297         * modules/unistr/u8-mbtoucr-tests: Likewise.
9298         * modules/unistr/u8-move-tests: Likewise.
9299         * modules/unistr/u8-next-tests: Likewise.
9300         * modules/unistr/u8-prev-tests: Likewise.
9301         * modules/unistr/u8-set-tests: Likewise.
9302         * modules/unistr/u8-stpcpy-tests: Likewise.
9303         * modules/unistr/u8-stpncpy-tests: Likewise.
9304         * modules/unistr/u8-strcat-tests: Likewise.
9305         * modules/unistr/u8-strcmp-tests: Likewise.
9306         * modules/unistr/u8-strcoll-tests: Likewise.
9307         * modules/unistr/u8-strcpy-tests: Likewise.
9308         * modules/unistr/u8-strdup-tests: Likewise.
9309         * modules/unistr/u8-strlen-tests: Likewise.
9310         * modules/unistr/u8-strmblen-tests: Likewise.
9311         * modules/unistr/u8-strmbtouc-tests: Likewise.
9312         * modules/unistr/u8-strncat-tests: Likewise.
9313         * modules/unistr/u8-strncmp-tests: Likewise.
9314         * modules/unistr/u8-strncpy-tests: Likewise.
9315         * modules/unistr/u8-strnlen-tests: Likewise.
9316         * modules/unistr/u8-to-u16-tests: Likewise.
9317         * modules/unistr/u8-to-u32-tests: Likewise.
9318         * modules/unistr/u8-uctomb-tests: Likewise.
9319         * modules/unistr/u16-check-tests: Likewise.
9320         * modules/unistr/u16-chr-tests: Likewise.
9321         * modules/unistr/u16-cmp-tests: Likewise.
9322         * modules/unistr/u16-cmp2-tests: Likewise.
9323         * modules/unistr/u16-cpy-alloc-tests: Likewise.
9324         * modules/unistr/u16-cpy-tests: Likewise.
9325         * modules/unistr/u16-mblen-tests: Likewise.
9326         * modules/unistr/u16-mbsnlen-tests: Likewise.
9327         * modules/unistr/u16-mbtouc-tests: Likewise.
9328         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
9329         * modules/unistr/u16-mbtoucr-tests: Likewise.
9330         * modules/unistr/u16-move-tests: Likewise.
9331         * modules/unistr/u16-next-tests: Likewise.
9332         * modules/unistr/u16-prev-tests: Likewise.
9333         * modules/unistr/u16-set-tests: Likewise.
9334         * modules/unistr/u16-stpcpy-tests: Likewise.
9335         * modules/unistr/u16-stpncpy-tests: Likewise.
9336         * modules/unistr/u16-strcat-tests: Likewise.
9337         * modules/unistr/u16-strcmp-tests: Likewise.
9338         * modules/unistr/u16-strcoll-tests: Likewise.
9339         * modules/unistr/u16-strcpy-tests: Likewise.
9340         * modules/unistr/u16-strdup-tests: Likewise.
9341         * modules/unistr/u16-strlen-tests: Likewise.
9342         * modules/unistr/u16-strmblen-tests: Likewise.
9343         * modules/unistr/u16-strmbtouc-tests: Likewise.
9344         * modules/unistr/u16-strncat-tests: Likewise.
9345         * modules/unistr/u16-strncmp-tests: Likewise.
9346         * modules/unistr/u16-strncpy-tests: Likewise.
9347         * modules/unistr/u16-strnlen-tests: Likewise.
9348         * modules/unistr/u16-to-u32-tests: Likewise.
9349         * modules/unistr/u16-to-u8-tests: Likewise.
9350         * modules/unistr/u16-uctomb-tests: Likewise.
9351         * modules/unistr/u32-check-tests: Likewise.
9352         * modules/unistr/u32-chr-tests: Likewise.
9353         * modules/unistr/u32-cmp-tests: Likewise.
9354         * modules/unistr/u32-cmp2-tests: Likewise.
9355         * modules/unistr/u32-cpy-alloc-tests: Likewise.
9356         * modules/unistr/u32-cpy-tests: Likewise.
9357         * modules/unistr/u32-mblen-tests: Likewise.
9358         * modules/unistr/u32-mbsnlen-tests: Likewise.
9359         * modules/unistr/u32-mbtouc-tests: Likewise.
9360         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
9361         * modules/unistr/u32-mbtoucr-tests: Likewise.
9362         * modules/unistr/u32-move-tests: Likewise.
9363         * modules/unistr/u32-next-tests: Likewise.
9364         * modules/unistr/u32-prev-tests: Likewise.
9365         * modules/unistr/u32-set-tests: Likewise.
9366         * modules/unistr/u32-stpcpy-tests: Likewise.
9367         * modules/unistr/u32-stpncpy-tests: Likewise.
9368         * modules/unistr/u32-strcat-tests: Likewise.
9369         * modules/unistr/u32-strcmp-tests: Likewise.
9370         * modules/unistr/u32-strcoll-tests: Likewise.
9371         * modules/unistr/u32-strcpy-tests: Likewise.
9372         * modules/unistr/u32-strdup-tests: Likewise.
9373         * modules/unistr/u32-strlen-tests: Likewise.
9374         * modules/unistr/u32-strmblen-tests: Likewise.
9375         * modules/unistr/u32-strmbtouc-tests: Likewise.
9376         * modules/unistr/u32-strncat-tests: Likewise.
9377         * modules/unistr/u32-strncmp-tests: Likewise.
9378         * modules/unistr/u32-strncpy-tests: Likewise.
9379         * modules/unistr/u32-strnlen-tests: Likewise.
9380         * modules/unistr/u32-to-u16-tests: Likewise.
9381         * modules/unistr/u32-to-u8-tests: Likewise.
9382         * modules/unistr/u32-uctomb-tests: Likewise.
9383         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
9384         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
9385         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
9386         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
9387         * modules/uniwidth/u8-strwidth-tests: Likewise.
9388         * modules/uniwidth/u8-width-tests: Likewise.
9389         * modules/uniwidth/u16-strwidth-tests: Likewise.
9390         * modules/uniwidth/u16-width-tests: Likewise.
9391         * modules/uniwidth/u32-strwidth-tests: Likewise.
9392         * modules/uniwidth/u32-width-tests: Likewise.
9393         * modules/uniwidth/width-tests: Likewise.
9394
9395 2010-05-18  Richard Jones  <rjones@redhat.com>
9396
9397         doc: users.txt: list hivex
9398         * users.txt: Add hivex.
9399
9400 2010-05-18  Richard Jones  <rjones@redhat.com>
9401
9402         doc: users.txt: list febootstrap
9403         * users.txt: Add febootstrap.
9404
9405 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
9406
9407         bootstrap: fix an error when gnulib is not used as a git submodule
9408         * build-aux/bootstrap (gnulib_path): If its length is zero then
9409         assign "gnulib" to it.
9410         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
9411
9412 2010-05-16  Bruno Haible  <bruno@clisp.org>
9413
9414         Avoid autoconf warnings about AM_ICONV.
9415         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
9416         2.64.
9417
9418 2010-05-16  Bruno Haible  <bruno@clisp.org>
9419
9420         absolute-header: Make the macro usable in more situations.
9421         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
9422         from gl_ABSOLUTE_HEADER.
9423         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
9424
9425 2010-05-16  James Youngman  <jay@gnu.org>
9426
9427         doc: update users.txt
9428         * users.txt: Add CSSC.
9429
9430 2010-05-16  Jim Meyering  <meyering@redhat.com>
9431
9432         init.sh: fix an error in the previous change; add more comments
9433         * tests/init.sh: Compare exit code in loop against 9, not 2.
9434         Patch by Bruno Haible.
9435         Make the two tests more similar by adding an empty "then" clause.
9436         Add comments.
9437
9438         init.sh: avoid unnecessary shell re-exec
9439         * tests/init.sh: Improve the re-exec-required check to first test the
9440         current shell.  If it passes the test, do not search for a shell that
9441         does pass, and do not re-exec.  This test is particularly contorted to
9442         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
9443         of $(...) evokes a syntax error and causes immediate shell exit with
9444         status 2.  Bruno Haible reported that the re-exec made it impossible
9445         to single-step through any init.sh-using script.
9446
9447 2010-05-16  Bruno Haible  <bruno@clisp.org>
9448
9449         Fix collision between gnulib's and libintl's printf replacements.
9450         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
9451         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
9452         (printf): When using GNU C, map the __printf__ function to rpl_printf
9453         via __asm__. When not using GNU C, define rpl_printf instead of
9454         __printf__.
9455         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
9456         commit.
9457         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
9458         commit.
9459         * m4/asm-underscore.m4: New file.
9460         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
9461         * modules/stdio (Files): Add m4/asm-underscore.m4.
9462         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
9463         Reported by Ben Pfaff.
9464
9465 2010-05-16  Bruno Haible  <bruno@clisp.org>
9466
9467         verify: Avoid skipping the test on openSUSE 11.0.
9468         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
9469
9470 2010-05-13  Bruno Haible  <bruno@clisp.org>
9471
9472         Avoid useless warnings from G++.
9473         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
9474         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
9475         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9476
9477 2010-05-11  Jim Meyering  <meyering@redhat.com>
9478
9479         maint.mk: tweak preceding change
9480         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
9481         regexps tighter by anchoring at EOL, and make the new group "shy"
9482         for slightly decreased overhead.
9483
9484 2010-05-11  Eric Blake  <eblake@redhat.com>
9485
9486         maint.mk: gnulib doesn't guarantee NSIG
9487         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
9488
9489 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9490
9491         test-pwrite.c: Remove unused variable declaration.
9492         * tests/test-pwrite.c (main): Remove read_buf declaration.
9493
9494         Remove useless test-pwrite.sh file.
9495         * tests/test-pwrite.sh: Delete file.
9496         * modules/pwrite-tests: Remove references.
9497         Reported by Bruno Haible.
9498
9499 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9500
9501         init.sh: fix a typo
9502         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
9503
9504 2010-05-10  Jim Meyering  <meyering@redhat.com>
9505
9506         maint.mk: avoid using a temporary file in the always-defined-macros check
9507         * top/maint.mk (.re-defmac): Remove rule.
9508         (gl_trap_): Remove definition.
9509         (sc_prohibit_always-defined_macros): Rewrite not to create and
9510         depend on a temporary file.  Instead, depend on GNU grep's ability
9511         to read a list of regular expressions from stdin when given "-f -".
9512
9513 2010-05-09  Bruno Haible  <bruno@clisp.org>
9514
9515         Update to GNU gettext 0.18, part 1.
9516         * m4/gettext.m4: Update to GNU gettext 0.18.
9517         * m4/intl.m4: Likewise.
9518         * m4/po.m4: Likewise.
9519         * modules/gettext (Files): Add m4/fcntl-o.m4.
9520         (configure.ac): Require gettext infrastructure from version 0.18.
9521
9522 2010-05-09  Jim Meyering  <meyering@redhat.com>
9523
9524         init.sh: enable MALLOC_PERTURB_
9525         * tests/init.sh: Enable glibc's malloc-perturbing option.
9526
9527         maint.mk: improve sc_cross_check_PATH_usage_in_tests
9528         With my recent change in init.sh from the two-line form:
9529             -#   : ${srcdir=.}
9530             -#   . "$srcdir/init.sh"; path_prepend_ .
9531             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
9532         I noticed that using the one-line form would cause this test
9533         to fail with a false-positive, or to stop working altogether,
9534         depending on whether help-version changed or all the tests did.
9535         * top/maint.mk (_hv_regex): Remove this definition.
9536         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
9537         (_hv_regex_strong): Use a stronger regex to check for conformance.
9538         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
9539         Give a separate diagnostic for lack of conforming use.
9540
9541         maint.mk: prohibit definition of symbols defined by gnulib
9542         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
9543         definition of symbols defined by gnulib.
9544
9545 2010-05-09  Bruno Haible  <bruno@clisp.org>
9546
9547         acl: Avoid test failure on Cygwin-hosted mingw.
9548         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
9549
9550 2010-05-09  Bruno Haible  <bruno@clisp.org>
9551
9552         error: Use system's fcntl function.
9553         * lib/error.c (fcntl): Undefine.
9554
9555 2010-05-09  Jim Meyering  <meyering@redhat.com>
9556
9557         verify: adjust formatting to be more consistent
9558         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
9559         argument-list '('s, and after one comma.
9560
9561 2010-05-09  Bruno Haible  <bruno@clisp.org>
9562
9563         error: More reliable output on mingw.
9564         * lib/error.c: Include <windows.h>.
9565         (is_open): New function.
9566         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
9567         defined.
9568
9569 2010-05-09  Bruno Haible  <bruno@clisp.org>
9570
9571         vasnprintf: Fix syntax errors in libintl build on mingw.
9572         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
9573         pad_ourselves and prec_ourselves after use.
9574
9575 2010-05-08  Bruno Haible  <bruno@clisp.org>
9576
9577         * lib/config.charset: Update comments for Cygwin 1.7.
9578         * lib/localcharset.c: Likewise.
9579
9580 2010-05-07  Jim Meyering  <meyering@redhat.com>
9581
9582         init.sh: improve comments
9583         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
9584         . "${srcdir=.}/init.sh"; path_prepend_ .
9585         Add a note about path_prepend_ and the alternative of using
9586         TESTS_ENVIRONMENT.
9587
9588 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9589
9590         exclude: Unescape hashed patterns in wildcard mode.
9591         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
9592         to the hash list.
9593         * tests/test-exclude8.sh: New test case.
9594         * modules/exclude-tests: Add new test.
9595
9596 2010-05-05  Eric Blake  <eblake@redhat.com>
9597
9598         verify: automate tests
9599         * modules/verify-tests: New module.
9600         * tests/test-verify.sh: New file.
9601         * tests/test-verify.c: Guard each negative test with a unique id.
9602         Also avoid warning about unused left hand of comma expressions.
9603
9604 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9605
9606         Further improvements to verify.h, suggested by Eric Blake.
9607         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
9608         the GL_* versions, to avoid collision with OpenGL.
9609         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
9610         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
9611         than testing merely whether it's defined.
9612
9613         Modify verify.h to pacify gcc -Wredundant_decls.
9614         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
9615         These use the prefix "GL_" since they're likely to be useful elsewhere.
9616         We may need to break them out into a different .h file.
9617         (__COUNTER__): Define to 0 if the compiler doesn't support it.
9618         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
9619         of verify_function__.
9620
9621 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9622
9623         Tests for module pwrite.
9624         * modules/pwrite-tests: New file.
9625         * tests/test-pwrite.sh: New file.
9626         * tests/test-pwrite.c: New file.
9627
9628         New module pwrite.
9629         * lib/unistd.in.h (pwrite): New declaration.
9630         * lib/pwrite.c: New file, from glibc with modifications.
9631         * m4/pwrite.m4: New file.
9632         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
9633         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
9634         REPLACE_PWRITE.
9635         * modules/pwrite: New file.
9636         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
9637         REPLACE_PWRITE.
9638         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
9639         * doc/posix-functions/pwrite.texi: Mention the new module.
9640
9641 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9642
9643         pread: Update documentation.
9644         * doc/posix-functions/pread.texi: Mention the 'pread' module.
9645
9646 2010-05-04  Eric Blake  <eblake@redhat.com>
9647
9648         docs: update cygwin progress
9649         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
9650         this bug.
9651         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
9652         Added in cygwin 1.7.2.
9653         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
9654         Likewise.
9655         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
9656         Likewise.
9657         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9658         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9659         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9660         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
9661         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
9662         Mention nproc module.
9663         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
9664         bug in cygwin 1.7.5 addition.
9665         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
9666         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
9667         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
9668         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
9669         1.7.5.
9670         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
9671         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
9672         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
9673         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
9674         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
9675         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
9676         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
9677         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
9678         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
9679         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
9680         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
9681         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
9682         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
9683         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
9684         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
9685         Likewise.
9686         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
9687         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
9688         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
9689         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
9690         Likewise.
9691         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
9692         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
9693         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
9694         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
9695         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
9696         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
9697         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
9698         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
9699         Likewise.
9700         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
9701         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
9702         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
9703         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
9704         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
9705         Likewise.
9706         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
9707         Likewise.
9708         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
9709         Likewise.
9710         * doc/glibc-functions/xdrrec_endofrecord.texi
9711         (xdrrec_endofrecord): Likewise.
9712         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
9713         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
9714         Likewise.
9715         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
9716         Likewise.
9717
9718 2010-05-04  Jim Meyering  <meyering@redhat.com>
9719
9720         gendocs.sh: make its "-s FILE" option more useful
9721         * build-aux/gendocs.sh: When honoring the -s FILE option, update
9722         $PACKAGE to reflect the probably-different basename of "FILE".
9723
9724 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
9725
9726         bootstrap: don't ignore download_po_files failure
9727         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
9728         failure.
9729
9730 2010-05-03  Jim Meyering  <meyering@redhat.com>
9731
9732         maint.mk: allow to pass options to gendocs.sh
9733         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
9734         (gendocs_options_): New overridable variable.
9735
9736         gnu-web-doc-update: don't ignore configure or build failure
9737         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
9738
9739         announce-gen: backslash-escape '@'s in --help output
9740         * build-aux/announce-gen: Fix syntax errors.
9741
9742         maint.mk, announce-gen: allow project-specific announcement mail headers
9743         * top/maint.mk (translation_project_): Define default.
9744         (announcement_Cc_, announcement_mail_headers_): Likewise.
9745         (announcement): Invoke announce-gen with new --mail-headers option.
9746         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
9747
9748         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
9749         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
9750         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
9751         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
9752         line in the "err2" output file when running "make check" in verbose
9753         mode (i.e., with set -x enabled).
9754
9755 2010-05-03  Bruno Haible  <bruno@clisp.org>
9756
9757         wctob: Fix for weird platforms.
9758         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
9759         argument value.
9760
9761 2010-05-03  Jim Meyering  <meyering@redhat.com>
9762
9763         maint.mk: prohibit unwarranted use of <strings.h>
9764         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
9765         strings.h in a file that does not also use strcasecmp, strncasecmp,
9766         ffs or ffsll.
9767
9768         maint.mk: remove obsolete comments
9769         * top/maint.mk: Remove stale, commented-out rules.
9770
9771 2010-05-02  Bruno Haible  <bruno@clisp.org>
9772
9773         wcwidth: Declare also when it's aliased.
9774         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
9775         macro.
9776
9777 2010-05-02  Bruno Haible  <bruno@clisp.org>
9778
9779         Fix regression from 2010-04-25.
9780         * gnulib-tool (func_modules_transitive_closure): Check the status of
9781         all modules, not only of the tests that are of the form foo-tests where
9782         foo is a module.
9783
9784 2010-05-02  Bruno Haible  <bruno@clisp.org>
9785
9786         wctob: Work around nasty Cygwin 1.7.2 bug.
9787         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
9788         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
9789
9790 2010-05-01  Bruno Haible  <bruno@clisp.org>
9791
9792         fpurge: Sharper test.
9793         * tests/test-fpurge.c (main): Add one more ftell check.
9794         * modules/fpurge-tests (Depends-on): Add ftell.
9795         Suggested by Eric Blake.
9796
9797 2010-05-01  Bruno Haible  <bruno@clisp.org>
9798
9799         ftello: Another test.
9800         * tests/test-ftello3.c: New file.
9801         * modules/ftello-tests (Files): Add it.
9802         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9803         MOSTLYCLEANFILES.
9804
9805         ftell: Another test.
9806         * tests/test-ftell3.c: New file.
9807         * modules/ftell-tests (Files): Add it.
9808         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9809         MOSTLYCLEANFILES.
9810
9811 2010-05-01  Bruno Haible  <bruno@clisp.org>
9812
9813         ftell, ftello: Work around Solaris bug.
9814         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
9815         * lib/ftello.c: Include stdio-impl.h.
9816         (ftello): On Solaris, when _IOWRT is set, compute the result without
9817         looking at _IOREAD.
9818         * modules/ftello (Files): Add lib/stdio-impl.h.
9819         * doc/posix-functions/ftell.texi: Mention Solaris bug.
9820         * doc/posix-functions/ftello.texi: Likewise.
9821         Reported by Eric Blake.
9822
9823 2010-05-01  Bruno Haible  <bruno@clisp.org>
9824
9825         freading: Adapt to special meaning of _IOREAD flag on Solaris.
9826         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
9827         the _IOWRT flag is also set.
9828
9829 2010-05-01  Bruno Haible  <bruno@clisp.org>
9830
9831         Fix doc about a HP-UX stdio bug.
9832         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
9833         * doc/posix-functions/ftello.texi: Likewise.
9834
9835 2010-05-01  Bruno Haible  <bruno@clisp.org>
9836
9837         lseek test: Fix failure on Solaris.
9838         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
9839         output.
9840
9841 2010-04-30  Jim Meyering  <meyering@redhat.com>
9842
9843         bootstrap: don't ignore failure to generate po*/Makevars
9844         * build-aux/bootstrap (with_gettext): Don't ignore failure
9845         to create po/Makevars or runtime-po/Makevars.
9846
9847 2010-04-29  Eric Blake  <eblake@redhat.com>
9848
9849         headers: relax license to LGPLv2+
9850         * modules/fcntl-h (License): Relax license.
9851         * modules/getopt-posix (License): Likewise.
9852         * modules/locale (License): Likewise.
9853         * modules/math (License): Likewise.
9854         * modules/pty (License): Likewise.
9855         * modules/sched (License): Likewise.
9856         * modules/search (License): Likewise.
9857         * modules/spawn (License): Likewise.
9858         * modules/stdarg (License): Likewise.
9859         * modules/sysexits (License): Likewise.
9860
9861 2010-04-29  Jim Meyering  <meyering@redhat.com>
9862
9863         inttypes: relax license to LGPLv2+
9864         * modules/inttypes (License): Relax license.
9865
9866 2010-04-29  Simon Josefsson  <simon@josefsson.org>
9867
9868         * top/maint.mk (indent): Run twice to produce idempotent results.
9869
9870 2010-04-28  Bruno Haible  <bruno@clisp.org>
9871
9872         getdate: Generate getdate.c in the source directory.
9873         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
9874         MOSTLYCLEANFILES.
9875         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
9876
9877 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
9878
9879         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
9880         is not declared as a const *; avoid warnings in that case.
9881
9882 2010-04-28  Eric Blake  <eblake@redhat.com>
9883
9884         canonicalize-lgpl: avoid compiler warning
9885         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
9886         declaration' / 'extraneous semicolon' warning with some compilers.
9887         Reported by Andreas Gruenbacher.
9888
9889 2010-04-28  Jim Meyering  <meyering@redhat.com>
9890
9891         init.sh: ensure a more reliable exit status when exiting via trap
9892         * tests/init.sh (setup_): Don't rely on $? in signal handler.
9893         Inspired by patches from Dmitry V. Levin.
9894         Also trap on signal 3 (SIGQUIT).
9895
9896 2010-04-27  Bruno Haible  <bruno@clisp.org>
9897
9898         Update doc about utimes().
9899         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
9900         'utimens' module.
9901         Reported by Andreas Gruenbacher <agruen@suse.de>.
9902
9903 2010-04-27  Eric Blake  <eblake@redhat.com>
9904
9905         full-read, full-write: relax license
9906         * modules/full-read (License): Drop to LGPLv2+.
9907         * modules/full-write (License): Likewise.
9908         * modules/safe-read (License): Likewise.
9909         * modules/safe-write (License): Likewise.
9910
9911         pthread: mention library for linking
9912         * modules/pthread (Link): Mention $(LIB_PTHREAD).
9913
9914 2010-04-27  Jim Meyering  <meyering@redhat.com>
9915
9916         maint.mk: fix a bug introduced in last change
9917         * top/maint.mk (gl_assured_headers_): Now that all names are on
9918         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
9919         is not anchored to end of word, it should be adequate.
9920
9921         maint.mk: avoid side-effect in latest syntax-check
9922         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
9923         to run commands via $(shell...), and hence to incur cost only when
9924         the new rule is actually run.
9925
9926         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
9927         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
9928         and use that to create a regexp used to detect all #if HAVE_..._H uses.
9929         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
9930         (gl_assured_headers_, az_, AZ_): Define.
9931         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
9932
9933 2010-04-26  Jim Meyering  <jim@meyering.net>
9934             Bruno Haible  <bruno@clisp.org>
9935
9936         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
9937         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
9938         Prompted by an exchange with Gilles Espinasse.
9939
9940 2010-04-26  Jim Meyering  <meyering@redhat.com>
9941
9942         git-version-gen: aesthetic tweak
9943         * build-aux/git-version-gen: Use "$nl" rather than a literal,
9944         so that the command remains on a single line.
9945
9946 2010-04-26  Eric Blake  <eblake@redhat.com>
9947
9948         git-version-gen: allow use on EBCDIC hosts
9949         * build-aux/git-version-gen (dirty): Use literal rather than tying
9950         ourselves to ascii.
9951         Reported by Steve Goetze.
9952
9953 2010-04-25  Bruno Haible  <bruno@clisp.org>
9954
9955         netdb: Add support for GNULIB_POSIXCHECK.
9956         * lib/netdb.in.h: Include warn-on-use.h.
9957         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
9958         functions are used when GNULIB_POSIXCHECK is defined and the
9959         getaddrinfo module is not in use.
9960         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
9961         freeaddrinfo, gai_strerror, getnameinfo are declared.
9962         * modules/netdb (Depends-on): Add warn-on-use.
9963         (Makefile.am): Include warn-on-use.h in netdb.h.
9964
9965 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
9966
9967         build: avoid "make check" failure without .git/ directory
9968         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
9969         there is no .git/ directory.
9970
9971 2010-04-25  Bruno Haible  <bruno@clisp.org>
9972
9973         ptsname: Fix misuse of ttyname_r.
9974         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
9975         of errno.
9976
9977 2010-04-25  Bruno Haible  <bruno@clisp.org>
9978
9979         ttyname_r: Make it work on Solaris 10.
9980         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
9981         if the system function has the POSIX declaration. Test whether the
9982         function fails if the buffer is less than 128 bytes large.
9983         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
9984         system's ttyname_r function. Provide a reasonably large buffer.
9985         * modules/ttyname_r (Depends-on): Add extensions.
9986         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
9987
9988 2010-04-25  Bruno Haible  <bruno@clisp.org>
9989
9990         Use the 'extensions' module for some more functions on Solaris.
9991         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
9992         module.
9993         * doc/posix-functions/ctime_r.texi: Likewise.
9994         * doc/posix-functions/getgrgid_r.texi: Likewise.
9995         * doc/posix-functions/getgrnam_r.texi: Likewise.
9996         * doc/posix-functions/getpwnam_r.texi: Likewise.
9997         * doc/posix-functions/getpwuid_r.texi: Likewise.
9998         * doc/posix-functions/readdir_r.texi: Likewise.
9999         * doc/posix-functions/sigwait.texi: Likewise.
10000         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
10001         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
10002
10003 2010-04-25  Bruno Haible  <bruno@clisp.org>
10004
10005         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
10006         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
10007         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
10008         * lib/ttyname_r.c: Include <limits.h>.
10009         (ttyname_r): Define using the system's ttyname_r function, if it exists
10010         and not on Solaris.
10011         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
10012         set.
10013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
10014         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
10015         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
10016         Reported by Simon Josefsson.
10017
10018 2010-04-25  Bruno Haible  <bruno@clisp.org>
10019
10020         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
10021         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
10022         * doc/posix-functions/ctime_r.texi: Likewise.
10023         * doc/posix-functions/getgrgid_r.texi: Likewise.
10024         * doc/posix-functions/getgrnam_r.texi: Likewise.
10025         * doc/posix-functions/getlogin_r.texi: Likewise.
10026         * doc/posix-functions/getpwnam_r.texi: Likewise.
10027         * doc/posix-functions/getpwuid_r.texi: Likewise.
10028         * doc/posix-functions/readdir_r.texi: Likewise.
10029         * doc/posix-functions/sigwait.texi: Likewise.
10030         * doc/posix-functions/ttyname_r.texi: Likewise.
10031         Reported by Simon Josefsson.
10032
10033 2010-04-25  Bruno Haible  <bruno@clisp.org>
10034
10035         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
10036         * gnulib-tool (func_usage): Document that --with-*-tests options apply
10037         also to --create-testdir.
10038         (func_acceptable): Don't consider the status of *-tests modules here.
10039         (func_modules_transitive_closure): Consider it here, before including a
10040         test module.
10041         (func_import, func_create_testdir): Set inc_all_direct_tests,
10042         inc_all_indirect_tests.
10043         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
10044         --create-testdir and --create-megatestdir.
10045
10046 2010-04-25  Bruno Haible  <bruno@clisp.org>
10047
10048         gnulib-tool: Add --without-*-tests options.
10049         * gnulib-tool (func_usage): Document the --without-*-tests options.
10050         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
10051         excl_unportable_tests): New variables.
10052         Fail if they are specified with --import or --update.
10053         (func_acceptable): Respect the excl_*_tests variables.
10054         (func_import): Set the excl_*_tests variables to empty.
10055
10056 2010-04-25  Simon Josefsson  <simon@josefsson.org>
10057             Bruno Haible  <bruno@clisp.org>
10058
10059         Work around a MacOS X 10.4 bug with openpty.
10060         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
10061         * tests/test-openpty.c (main): Close the master side explicitly.
10062
10063 2010-04-25  Bruno Haible  <bruno@clisp.org>
10064
10065         strnlen: Fix a C++ test error on MacOS X and Solaris.
10066         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
10067         the function is not declared.
10068         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
10069         Simon Josefsson.
10070
10071 2010-04-24  Bruno Haible  <bruno@clisp.org>
10072
10073         Avoid a gcc warning.
10074         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
10075         of correct type for %08lx directive.
10076         Reported by Eric Blake.
10077
10078 2010-04-24  Bruno Haible  <bruno@clisp.org>
10079
10080         vasnprintf: Correct errno value in case of out-of-memory.
10081         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
10082         or sprintf. Use the errno value from SNPRINTF or sprintf.
10083         Reported by Ian Beckwith <ianb@erislabs.net>.
10084
10085 2010-04-24  Bruno Haible  <bruno@clisp.org>
10086
10087         ansi-c++-opt: Find correct compiler when cross-compiling.
10088         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
10089         AC_CHECK_PROGS.
10090         Reported by Simon Josefsson.
10091
10092 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
10093
10094         vc-list-files: Add support for subversion
10095         * build-aux/vc-list-files: Use "svn list" to generate the list of
10096         files controlled by subversion.
10097
10098 2010-04-23  Jim Meyering  <meyering@redhat.com>
10099
10100         vc-list-files tests: convert to use init.sh
10101         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
10102         path_prepend_.
10103         Use Exit, not exit.
10104         Use skip_ rather than open coding it.
10105         Remove trap set-up and compare definitions.
10106         * tests/test-vc-list-files-git.sh: Likewise.
10107         * modules/vc-list-files-tests (Files): Add tests/init.sh.
10108
10109 2010-04-22  Simon Josefsson  <simon@josefsson.org>
10110
10111         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
10112         backup files.
10113
10114 2010-04-21  Simon Josefsson  <simon@josefsson.org>
10115
10116         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
10117
10118 2010-04-20  Eric Blake  <eblake@redhat.com>
10119
10120         tests: be robust to ignored SIGPIPE
10121         * tests/test-select-in.sh: Consume all output.
10122         * tests/test-lseek.sh: Check correct exit status, while avoiding
10123         EPIPE.
10124
10125 2010-04-20  Simon Josefsson  <simon@josefsson.org>
10126             Bruno Haible  <bruno@clisp.org>
10127
10128         visibility: Don't use -fvisibility if it leads to a warning.
10129         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
10130         yes, don't pretend that visibility works if it leads to a warning.
10131         Reported by Mike Gran <spk121@yahoo.com>.
10132
10133 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
10134
10135         * build-aux/bootstrap: Use "git -h" for testing for supported options
10136         instead of "git --help".  The short-form option only shows a summary,
10137         and doesn't layout the full man page.  Grep for the full option name
10138         in the summary, too.
10139
10140 2010-04-19  Bruno Haible  <bruno@clisp.org>
10141
10142         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
10143         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
10144         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
10145         mention of RELOCATABLE_STRIP.
10146         Reported by Sylvain Beucler <beuc@beuc.net>.
10147
10148 2010-04-19  Bruno Haible  <bruno@clisp.org>
10149
10150         * lib/diffseq.h: Fix typo in comment.
10151         Reported by Eric Blake.
10152
10153 2010-04-19  Bruno Haible  <bruno@clisp.org>
10154
10155         ioctl: Move autoconf macro to a .m4 file.
10156         * m4/ioctl.m4: New file, extracted from modules/ioctl.
10157         * modules/ioctl (Files): Add it.
10158         (configure.ac): Simply invoke gl_FUNC_IOCTL.
10159         Reported by Ian Beckwith <ianb@erislabs.net>.
10160
10161 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
10162             Bruno Haible  <bruno@clisp.org>
10163
10164         diffseq: Accommodate use-case with abstract arrays.
10165         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
10166         is not defined.
10167         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
10168         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
10169
10170 2010-04-18  Bruno Haible  <bruno@clisp.org>
10171
10172         * doc/posix-headers/stdbool.texi: More precise wording.
10173
10174 2010-04-17  Jim Meyering  <meyering@redhat.com>
10175
10176         maint.mk: use gnu-style indentation in an embedded perl script
10177         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
10178         Rename variable: s/two/last_two_bytes/
10179
10180 2010-04-16  Eric Blake  <eblake@redhat.com>
10181
10182         test-stdbool: skip test that fails with Solaris CC
10183         * tests/test-stdbool.c (f): Skip test that causes compilation
10184         error under buggy C++ compiler.
10185         * lib/stdbool.in.h: Document the limitation.
10186         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
10187
10188         setenv: allow compilation with C++
10189         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
10190         register keyword.
10191
10192         stdint: allow test to pass with C++
10193         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
10194
10195         getopt: allow compilation with C++
10196         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
10197         struct.
10198         * lib/getopt.c (_getopt_internal_r): Use correct type.
10199         Reported by Dagobert Michelson, via Joel E. Denny.
10200
10201 2010-04-16  Bruno Haible  <bruno@clisp.org>
10202
10203         Override netdb.h always.
10204         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
10205         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
10206         Reported by Ludovic Courtès <ludo@gnu.org>.
10207
10208 2010-04-15  Bruno Haible  <bruno@clisp.org>
10209
10210         openpty: Fix mistake from 2010-03-21.
10211         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
10212         Reported by Simon Josefsson.
10213
10214 2010-04-15  Eric Blake  <eblake@redhat.com>
10215
10216         test-forkpty: fix expected signature
10217         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
10218         Reported by Simon Josefsson.
10219
10220 2010-04-15  Jim Meyering  <meyering@redhat.com>
10221
10222         maint.mk: texinfo_suffix_re_: correct the default regexp
10223         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
10224
10225         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
10226         make it configurable via texinfo_suffix_re_.
10227
10228 2010-04-14  Eric Blake  <eblake@redhat.com>
10229
10230         strtok_r: relax license to LGPLv2+
10231         * modules/strtok_r (License): Relax license.
10232         Reported by Matthias Bolte.
10233
10234 2010-04-14  Simon Josefsson  <simon@josefsson.org>
10235
10236         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
10237         version 1.4.4 by default instead of requiring the libgcrypt
10238         version used during build.  This makes it possible to use the
10239         application with older but still binary compatible libgcrypt
10240         versions.
10241
10242 2010-04-13  Eric Blake  <eblake@redhat.com>
10243
10244         getopt-gnu: match recent glibc fixes and posix ruling
10245         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
10246         '+' handling, when requesting extensions.
10247         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
10248         'W;' handling.
10249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
10250         * doc/posix-functions/getopt.texi (getopt): Document this.
10251         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10252         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10253         Likewise.
10254
10255         getopt: merge bug fixes from glibc
10256         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
10257         diagnostics.  Honor '+:' correctly.  Reject ';'.
10258
10259         getopt-posix: detect MacOS bug
10260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
10261         optind when missing a required argument.
10262         * doc/posix-functions/getopt.texi (getopt): Document the bug.
10263         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10264         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10265         Likewise.
10266
10267         getopt-posix: avoid spurious failure on Solaris
10268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
10269         an indicator that setting optind=1 is sufficient for reset.
10270
10271         getopt-posix: avoid spurious failure on FreeBSD
10272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
10273         in POSIX mode, since the m4 test uses it.
10274
10275         gnulib-tool: silence warning on BSD sh
10276         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
10277
10278 2010-04-13  Jim Meyering  <meyering@redhat.com>
10279
10280         doc: users.txt: GNU patch now uses gnulib
10281         * users.txt: Add patch.
10282
10283 2010-04-12  Jim Meyering  <meyering@redhat.com>
10284
10285         maint.mk: generate more concise timing data for syntax-check rules
10286         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
10287         " done" from each line that reports a syntax-check test duration.
10288
10289 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
10290
10291         git-version-gen: use "git update-index..." rather than "git status"
10292         * build-aux/git-version-gen: Use git update-index --refresh, not
10293         "git status".  With some versions of git, "git status" would fail
10294         to update the index and result in an unwarranted "-dirty" suffix.
10295
10296 2010-04-11  Jim Meyering  <meyering@redhat.com>
10297
10298         openat: correct formatting (no semantic change)
10299         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
10300         Suggested by Bruno Haible.
10301
10302 2010-04-11  Bruno Haible  <bruno@clisp.org>
10303
10304         Stricter declaration checking in testdirs.
10305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10306         If for_tests is true, augment AM_CPPFLAGS to define
10307         GNULIB_STRICT_CHECKING.
10308         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
10309         GNULIB_STRICT_CHECKING is defined, verify that the function is
10310         declared.
10311
10312 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
10313             Bruno Haible  <bruno@clisp.org>
10314
10315         libunistring: Improve configure output.
10316         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
10317         Don't say "consider installing GNU libunistring" when checking again
10318         with libiconv.
10319
10320 2010-04-11  Bruno Haible  <bruno@clisp.org>
10321
10322         libunistring: Correct value of $LTLIBUNISTRING.
10323         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
10324         correct the value of $LTLIBUNISTRING.
10325
10326 2010-04-11  Bruno Haible  <bruno@clisp.org>
10327
10328         havelib: Add static libraries to LIBS in the right order.
10329         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
10330         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
10331
10332 2010-04-11  Bruno Haible  <bruno@clisp.org>
10333
10334         libunistring: Detect libunistring also when it depends on libiconv.
10335         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
10336         the second AC_LIB_HAVE_LINKFLAGS invocation.
10337
10338 2010-04-11  James Youngman  <jay@gnu.org>
10339
10340         close-stream: declare local scalars to be "const"
10341         * lib/close-stream.c (close_stream): Make boolean variables const
10342         to document the fact that we set but do not change them.
10343
10344 2010-04-11  Bruno Haible  <bruno@clisp.org>
10345
10346         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
10347
10348 2010-04-11  Jim Meyering  <meyering@redhat.com>
10349
10350         maint.mk: don't include dist-check.mk
10351         * top/maint.mk: Remove bogus include directive.
10352
10353         maint.mk: improve empty-line-at-EOF check
10354         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
10355         solution, rather than tail+Perl-based one.  The latter would read
10356         a few kilobytes from the end of each file, and did not handle empty
10357         files properly.
10358
10359         maint.mk: print the elapsed time for each syntax-check rule
10360         * top/maint.mk (sc_m_rules_): Save start time in a file.
10361         (sc_z_rules_): New rules: remove temp file and print elapsed time.
10362         (local-check): Interpose the .z rules
10363
10364 2010-04-11  Jim Meyering  <meyering@redhat.com>
10365
10366         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
10367         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
10368         empty file with one that ends in an empty line.
10369
10370 2010-04-10  Bruno Haible  <bruno@clisp.org>
10371
10372         mkdir: Make it work on mingw64.
10373         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
10374         * lib/mkdir.c: Update comment.
10375         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
10376
10377 2010-04-10  Bruno Haible  <bruno@clisp.org>
10378
10379         Don't override improved macro from newer autoconf.
10380         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
10381         autoconf >= 2.62.
10382         Reported by Joel E. Denny <jdenny@clemson.edu>.
10383
10384 2010-04-10  Jim Meyering  <meyering@redhat.com>
10385
10386         maint.mk: new syntax-check rule: prohibit empty lines at end of file
10387         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
10388
10389         maint.mk: correct a diagnostic
10390         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
10391         in diagnostic; now use $prohibit.
10392
10393 2010-04-10  Bruno Haible  <address@hidden>
10394
10395         fchownat: Fix a C++ test error on Solaris 8.
10396         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
10397         the function does not exist.
10398
10399 2010-04-10  Bruno Haible  <bruno@clisp.org>
10400
10401         vasnprintf: Add more tests.
10402         * tests/test-vasnprintf-posix.c: Include <errno.h>.
10403         (test_function): Test converting an invalid wide string.
10404
10405         vasnprintf: Correct handling of unconvertible wide string arguments.
10406         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
10407         VASNPRINTF.
10408         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
10409         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
10410         smaller than the expected maximum need for the directive. Set errno to
10411         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
10412         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
10413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
10414         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
10415         * modules/vasnprintf (Files): Add m4/printf.m4.
10416         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10417
10418 2010-04-10  Bruno Haible  <bruno@clisp.org>
10419
10420         vasnprintf: Fix crash in %ls directive.
10421         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
10422         string is passed as argument to %ls, with no precision and no width.
10423         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10424
10425 2010-04-10  Bruno Haible  <bruno@clisp.org>
10426
10427         vasnprintf: Fix multiple test failures on mingw.
10428         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
10429         _snprintf, or snwprintf, not _snwprintf.
10430
10431 2010-04-10  Bruno Haible  <bruno@clisp.org>
10432
10433         write: Fix a C++ test error on mingw.
10434         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
10435
10436 2010-04-10  Bruno Haible  <bruno@clisp.org>
10437
10438         vasnprintf test: Reduce code duplication.
10439         * tests/test-vasnprintf.c (test_function): New function, extracted from
10440         test_vasnprintf.
10441         (test_vasnprintf, test_asnprintf): Invoke it.
10442
10443 2010-04-10  Bruno Haible  <bruno@clisp.org>
10444
10445         strnlen: Fix warning in C++ mode on MacOS X.
10446         * lib/string.in.h (strnlen): Use the modern idiom.
10447         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
10448         defining strnlen as a macro already in <config.h>.
10449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10450         REPLACE_STRNLEN.
10451         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
10452         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10453
10454 2010-04-08  James Youngman  <jay@gnu.org>
10455
10456         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
10457         the example.
10458
10459 2010-04-09  Jim Meyering  <meyering@redhat.com>
10460
10461         maint.mk: print better diagnostic when there is no $(_hv_file)
10462         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
10463         announce that when $(_hv_file) (aka help-version) does not exist.
10464
10465         init.sh: run tr in the "C" locale to avoid multibyte interpretation
10466         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
10467         not try to interpret its random input bytes.  Jarno Rajahalme reported
10468         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
10469         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
10470         (mktempd_): Likewise, just in case.
10471
10472         ftruncate: add two years to projected module removal date: 2012
10473         * m4/ftruncate.m4: Adjust comments.
10474
10475         ftruncate: mark module as obsolete; even MinGW provides it, now
10476         * modules/ftruncate (Status): Obsolete.
10477         (Notice): Say that.
10478         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
10479         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
10480
10481 2010-04-08  Bruno Haible  <bruno@clisp.org>
10482
10483         Fix side effects from tests-related modules.
10484         * modules/dprintf-posix (Comment): New section.
10485         * modules/fprintf-posix (Comment): Likewise.
10486         * modules/obstack-printf-posix (Comment): Likewise.
10487         * modules/printf-posix (Comment): Likewise.
10488         * modules/snprintf-posix (Comment): Likewise.
10489         * modules/sprintf-posix (Comment): Likewise.
10490         * modules/vasnprintf-posix (Comment): Likewise.
10491         * modules/vasprintf-posix (Comment): Likewise.
10492         * modules/vdprintf-posix (Comment): Likewise.
10493         * modules/vfprintf-posix (Comment): Likewise.
10494         * modules/vprintf-posix (Comment): Likewise.
10495         * modules/vsnprintf-posix (Comment): Likewise.
10496         * modules/vsprintf-posix (Comment): Likewise.
10497         * modules/xprintf-posix (Comment): Likewise.
10498         * modules/xvasprintf-posix (Comment): Likewise.
10499         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
10500         * modules/floorf-tests (Depends-on): Likewise.
10501         * modules/round-tests (Depends-on): Likewise.
10502         * modules/roundf-tests (Depends-on): Likewise.
10503         * modules/trunc-tests (Depends-on): Likewise.
10504         * modules/truncf-tests (Depends-on): Likewise.
10505         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
10506         'fprintf-posix' module is not present.
10507         * tests/test-floorf2.c (check): Likewise.
10508         * tests/test-trunc2.c (check): Likewise.
10509         * tests/test-truncf2.c (check): Likewise.
10510         * tests/test-round2.c (equal): Likewise.
10511         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10512
10513 2010-04-07  Karl Berry  <karl@gnu.org>
10514
10515         * config/srclist.txt,
10516         * config/srclistvars.sh,
10517         * config/srclist-update: doc fixes.
10518
10519 2010-04-07  Jim Meyering  <meyering@redhat.com>
10520
10521         maint.mk: add a PATH crosschecking syntax-check rule
10522         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
10523         Useful if you use a test like the one in help-version (coreutils,
10524         diffutils, grep, gzip) that ensures $(VERSION) matches what is
10525         printed by prog --version.
10526
10527 2010-04-06  Bruno Haible  <bruno@clisp.org>
10528
10529         Fix link error on mingw.
10530         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
10531         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
10532
10533 2010-04-06  Bruno Haible  <bruno@clisp.org>
10534
10535         Assume rmdir exists.
10536         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
10537
10538 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
10539
10540         doc: update users.txt
10541         * users.txt: Add gcal.
10542
10543 2010-04-06  Jim Meyering  <meyering@redhat.com>
10544
10545         init.sh: simply unset TMPDIR rather than risking env -i
10546         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
10547         although it probably works fine on all Unix-based systems, some
10548         systems (Cygwin?) cannot tolerate a totally cleared environment.
10549         Suggestion from Eric Blake.
10550
10551 2010-04-06  Jim Meyering  <meyering@redhat.com>
10552
10553         init.sh: portability fix: use env's POSIX-specified -i option not -u
10554         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
10555         than unportable env -u.  Solaris 5.11's env lacks support for -u.
10556
10557 2010-04-05  Bruno Haible  <bruno@clisp.org>
10558
10559         btowc: Work around Cygwin 1.7.2 bug.
10560         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
10561         does not map NUL to 0.
10562         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
10563
10564 2010-04-05  Bruno Haible  <bruno@clisp.org>
10565
10566         Make the multithread modules work on Cygwin 1.7.2.
10567         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
10568         imported symbols can be declared weak, so that it returns "no" on
10569         Cygwin 1.7.2.
10570
10571 2010-04-05  Bruno Haible  <bruno@clisp.org>
10572
10573         Use the module 'strncat'.
10574         * modules/unistr/u8-strncat (Depends-on): Add strncat.
10575
10576         Tests for module 'strncat'.
10577         * modules/strncat-tests: New file.
10578         * tests/test-strncat.c: New file.
10579
10580         New module 'strncat'.
10581         * lib/string.in.h (strncat): New declaration.
10582         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
10583         * m4/strncat.m4: New file, based on m4/memchr.m4.
10584         * modules/strncat: New file.
10585         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
10586         is declared.
10587         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
10588         REPLACE_STRNCAT.
10589         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
10590         REPLACE_STRNCAT.
10591         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
10592         module.
10593         * tests/test-string-c++.cc: Check signature of strncat.
10594
10595 2010-04-05  Jim Meyering  <meyering@redhat.com>
10596
10597         xstrtoumax-tests: convert to use init.sh
10598         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
10599         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10600         Use Exit, not exit.
10601         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10602
10603         xstrtoimax-tests: convert to use init.sh
10604         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
10605         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10606         Use Exit, not exit.
10607         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10608
10609 2010-04-05  Bruno Haible  <bruno@clisp.org>
10610
10611         sys_socket: Avoid #define replacements in C++ mode.
10612         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
10613         warning to the function if possible, rather than #defining the symbol
10614         to a dysfunctional alias.
10615
10616 2010-04-05  Bruno Haible  <bruno@clisp.org>
10617
10618         fseeko: Fix C++ test error on mingw.
10619         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
10620         gl_FUNC_FSEEKO.
10621         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
10622         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
10623         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
10624         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
10625
10626 2010-04-05  Bruno Haible  <bruno@clisp.org>
10627
10628         duplocale: Improve test output.
10629         * tests/test-duplocale.c (main): Print reason for skipped test.
10630
10631 2010-04-05  Bruno Haible  <bruno@clisp.org>
10632
10633         Assume rmdir exists.
10634         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
10635         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
10636
10637 2010-04-05  Bruno Haible  <bruno@clisp.org>
10638
10639         Fix link error on Solaris 8 with cc.
10640         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
10641
10642 2010-04-05  Bruno Haible  <bruno@clisp.org>
10643
10644         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10645         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
10646
10647 2010-04-05  Bruno Haible  <bruno@clisp.org>
10648
10649         vasprintf: Update documentation.
10650         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
10651
10652 2010-04-05  Bruno Haible  <bruno@clisp.org>
10653
10654         ptsname: Improve test.
10655         * tests/test-ptsname.c (main): Also try the various master names of BSD
10656         systems.
10657
10658 2010-04-05  Bruno Haible  <bruno@clisp.org>
10659
10660         memchr: Avoid a possible C++ test error.
10661         * lib/string.in.h (memchr): Provide declaration if function is missing.
10662         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
10663         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
10664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
10665         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
10666
10667 2010-04-05  Bruno Haible  <bruno@clisp.org>
10668
10669         strtok_r: Improve idiom.
10670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
10671         AC_LIBOBJ is used.
10672
10673 2010-04-05  Bruno Haible  <bruno@clisp.org>
10674
10675         strdup: Improve idiom.
10676         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
10677         AC_LIBOBJ is used.
10678         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
10679         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
10680         when AC_LIBOBJ is used.
10681
10682 2010-04-05  Bruno Haible  <bruno@clisp.org>
10683
10684         mbsinit, mbrtowc, wcrtomb: Improve idioms.
10685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
10686         don't set REPLACE_MBSINIT to 1.
10687         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
10688         don't set REPLACE_MBRTOWC to 1.
10689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
10690         exist, don't set REPLACE_MBSRTOWCS to 1.
10691         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
10692         exist, don't set REPLACE_MBSNRTOWCS to 1.
10693         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
10694         don't set REPLACE_WCRTOMB to 1.
10695         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
10696         exist, don't set REPLACE_WCSRTOMBS to 1.
10697         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
10698         exist, don't set REPLACE_WCSNRTOMBS to 1.
10699
10700 2010-04-05  Bruno Haible  <bruno@clisp.org>
10701
10702         ldexpl: Improve idiom.
10703         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
10704         make sure to set HAVE_DECL_LDEXPL to 0.
10705
10706 2010-04-05  Jim Meyering  <meyering@redhat.com>
10707
10708         xstrtol-tests: convert to use init.sh
10709         * modules/xstrtol-tests (Files): Add tests/init.sh.
10710         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10711         Use Exit, not exit.
10712         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10713
10714         atexit-tests: convert to use init.sh
10715         * modules/atexit-tests (Files): Add tests/init.sh.
10716         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10717         Use Exit, not exit.
10718         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10719
10720         init.sh: fix typo
10721         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
10722
10723         init.sh: make it easier for a test script to write to the tty, ...
10724         when using automake's parallel-tests mode.
10725         * tests/init.sh (stderr_fileno_): Define overridable variable.
10726         (warn_): New function, to use it.
10727         (fail_, skip_, framework_failure_): Use warn_.
10728
10729 2010-04-04  Bruno Haible  <bruno@clisp.org>
10730
10731         btowc: Avoid warning.
10732         * lib/btowc.c: Include <stdlib.h>.
10733         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
10734
10735 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10736             Bruno Haible  <bruno@clisp.org>
10737
10738         wchar: Port to NetBSD 1.5.
10739         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
10740         * lib/wctype.in.h (WEOF): Likewise.
10741
10742 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10743             Bruno Haible  <bruno@clisp.org>
10744
10745         Port extended stdio to NetBSD 1.5.
10746         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
10747         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
10748         older.
10749
10750 2010-04-04  Bruno Haible  <bruno@clisp.org>
10751
10752         string: Remove unused substitution.
10753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10754         HAVE_DECL_STRERROR.
10755         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
10756
10757 2010-04-04  Bruno Haible  <bruno@clisp.org>
10758
10759         strtod: Avoid a possible C++ test error.
10760         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
10761         set REPLACE_STRTOD.
10762
10763 2010-04-04  Bruno Haible  <bruno@clisp.org>
10764
10765         strerror: Update documentation.
10766         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
10767
10768 2010-04-04  Bruno Haible  <bruno@clisp.org>
10769
10770         stdio: Fix some C++ test errors on Solaris 8 with GCC.
10771         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
10772         _GL_CXXALIAS_SYS_CAST.
10773
10774 2010-04-04  Bruno Haible  <bruno@clisp.org>
10775
10776         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10777         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
10778         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
10779         REPLACE_FREXPL to 1.
10780         * doc/posix-functions/frexpl.texi: Update documentation.
10781
10782 2010-04-04  Bruno Haible  <bruno@clisp.org>
10783
10784         math: Fix some C++ test errors on Solaris 8 and Cygwin.
10785         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
10786
10787 2010-04-04  Bruno Haible  <bruno@clisp.org>
10788
10789         Implement nanosleep for native Windows.
10790         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
10791
10792 2010-04-04  Bruno Haible  <bruno@clisp.org>
10793
10794         math: Fix some C++ test errors on Solaris 8.
10795         * lib/math.in.h (truncf, trunc): Use simpler idiom.
10796
10797 2010-04-04  Bruno Haible  <bruno@clisp.org>
10798
10799         math: Fix some C++ test errors on Cygwin.
10800         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
10801         truncl): Provide declaration if the system does not have it.
10802         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
10803         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
10804         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
10805         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
10806         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
10807         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
10808         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
10809         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
10810         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
10811         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
10812         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
10813         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
10814         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
10815         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
10816         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
10817         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
10818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
10819         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10820         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10821         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
10822         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10823         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10824
10825 2010-04-04  Bruno Haible  <bruno@clisp.org>
10826
10827         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
10828         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10829         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10830         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10831         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10832         * m4/isinf.m4 (gl_ISINF): Likewise.
10833         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10834
10835 2010-04-04  Bruno Haible  <bruno@clisp.org>
10836
10837         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
10838         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10839
10840 2010-04-04  Bruno Haible  <bruno@clisp.org>
10841
10842         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
10843         * modules/tmpfile (configure.ac): Update.
10844
10845         tmpfile: Fix C++ test error on mingw.
10846         * lib/stdio.in.h (tmpfile): New declaration.
10847         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
10848         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
10849         * modules/tmpfile (Depends-on): Add stdio.
10850         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10851         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
10852         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
10853         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
10854         REPLACE_TMPFILE.
10855         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
10856
10857 2010-04-04  Bruno Haible  <bruno@clisp.org>
10858
10859         ioctl: Fix C++ test error on mingw.
10860         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
10861         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
10862         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
10863
10864 2010-04-03  Bruno Haible  <bruno@clisp.org>
10865
10866         wcwidth: Fix C++ test error on mingw.
10867         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
10868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
10869         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
10870
10871 2010-04-03  Bruno Haible  <bruno@clisp.org>
10872
10873         nanosleep: Fix C++ test error on mingw.
10874         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
10875         * lib/time.in.h (nanosleep): Use modern idiom.
10876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
10877         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
10878         REPLACE_NANOSLEEP to 1.
10879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
10880         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
10881
10882 2010-04-03  Bruno Haible  <bruno@clisp.org>
10883
10884         strptime: Fix C++ test error on mingw.
10885         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
10886         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
10887         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
10888         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
10889         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
10890         not REPLACE_STRPTIME.
10891         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
10892         REPLACE_STRPTIME.
10893
10894 2010-04-03  Bruno Haible  <bruno@clisp.org>
10895
10896         timegm: Fix C++ test error on mingw.
10897         * lib/time.in.h (timegm): Use modern idiom.
10898         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
10899         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
10900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
10901         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
10902
10903 2010-04-03  Bruno Haible  <bruno@clisp.org>
10904
10905         timegm: Assume declaration if function exists.
10906         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
10907         if it exists. Don't clobber ac_cv_func_timegm.
10908
10909 2010-04-03  Bruno Haible  <bruno@clisp.org>
10910
10911         time_r: Fix C++ test error on mingw.
10912         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
10913         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
10914         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
10915         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
10916         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
10917
10918 2010-04-03  Bruno Haible  <bruno@clisp.org>
10919
10920         time_r: Minor updates.
10921         * modules/time_r (Description): Mention the provided functions.
10922         * lib/time_r.c: Don't include <string.h>.
10923         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
10924         * doc/posix-functions/localtime_r.texi: Likewise.
10925
10926 2010-04-03  Bruno Haible  <bruno@clisp.org>
10927
10928         time: Fix regression introduced on 2010-03-08.
10929         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
10930         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
10931
10932 2010-04-03  Jim Meyering  <meyering@redhat.com>
10933
10934         maint.mk: don't silently disable project-specific syntax-check rules
10935         * top/maint.mk (_prohibit_regexp): Define, to help people realize
10936         that they need to convert their project-specific syntax-check rules
10937         to use the new _sc_search_regexp.
10938
10939 2010-04-03  Bruno Haible  <bruno@clisp.org>
10940
10941         fchdir: Fix regression introduced on 2010-03-08.
10942         * lib/unistd.in.h (fchdir): Fix declaration.
10943         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
10944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
10945         REPLACE_FCHDIR.
10946         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
10947         REPLACE_FCHDIR.
10948
10949 2010-04-03  Bruno Haible  <bruno@clisp.org>
10950
10951         getpagesize: Fix C++ test error on mingw.
10952         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
10953         system does not declare the function.
10954         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
10955         declared.
10956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10957         HAVE_DECL_GETPAGESIZE.
10958         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
10959
10960 2010-04-03  Bruno Haible  <bruno@clisp.org>
10961
10962         stdio: Make C++ tests work on mingw.
10963         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
10964         does not declare the function.
10965
10966 2010-04-03  Bruno Haible  <bruno@clisp.org>
10967
10968         ftello: Fix C++ test error on mingw.
10969         * lib/stdio.in.h (ftello): Use modern idiom.
10970         * lib/ftello.c (ftello): Renamed from rpl_ftello.
10971         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
10972         is missing and that it needs to be replaced.
10973         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
10974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
10975         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
10976
10977 2010-04-03  Bruno Haible  <bruno@clisp.org>
10978
10979         fseeko: Fix C++ test error on mingw.
10980         * lib/stdio.in.h (fseeko): Use modern idiom.
10981         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
10982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
10983         is missing and that it needs to be replaced.
10984         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
10985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10986         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
10987
10988 2010-04-03  Bruno Haible  <bruno@clisp.org>
10989
10990         mkstemp: Fix C++ test error on mingw.
10991         * lib/stdlib.in.h (mkstemp): Use modern idiom.
10992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
10993         function is missing and that it needs to be replaced.
10994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
10995         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
10996
10997 2010-04-03  Bruno Haible  <bruno@clisp.org>
10998
10999         stpncpy: Fix C++ test error on mingw.
11000         * lib/string.in.h (stpncpy): Use modern idiom.
11001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
11002         function is missing and that it needs to be replaced.
11003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11004         REPLACE_STPNCPY.
11005         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
11006
11007 2010-04-03  Bruno Haible  <bruno@clisp.org>
11008
11009         sys_stat: Fix C++ test error on mingw.
11010         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
11011         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
11012
11013 2010-04-03  Bruno Haible  <bruno@clisp.org>
11014
11015         pty: Update doc.
11016         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
11017
11018 2010-04-03  Bruno Haible  <bruno@clisp.org>
11019
11020         unistd: Fix C++ test error on mingw.
11021         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
11022
11023 2010-04-03  Bruno Haible  <bruno@clisp.org>
11024
11025         Update doc regarding mingw.
11026         * doc/glibc-functions/openpty.texi: Update regarding mingw.
11027         * doc/glibc-functions/login_tty.texi: Likewise.
11028         * doc/glibc-functions/forkpty.texi: Likewise.
11029
11030 2010-04-03  Bruno Haible  <bruno@clisp.org>
11031
11032         stdlib: Avoid compilation failure of c-strtold on mingw.
11033         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
11034
11035 2010-04-03  Bruno Haible  <bruno@clisp.org>
11036
11037         locale: Make C++ tests work on Cygwin and mingw.
11038         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
11039         cannot provide the function.
11040         Reported by Simon Josefsson.
11041
11042 2010-04-03  Bruno Haible  <bruno@clisp.org>
11043
11044         localename: Port to MacOS X 10.6.
11045         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
11046         memory layout of the locales in MacOS X 10.6 as well.
11047         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
11048
11049 2010-04-02  Bruno Haible  <bruno@clisp.org>
11050
11051         gnulib-tool: Ensure that long-running tests are executed last.
11052         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
11053         running tests after the one for the other tests.
11054
11055 2010-04-02  Bruno Haible  <bruno@clisp.org>
11056
11057         gnulib-tool: Ensure the tests in the main directory are executed first.
11058         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
11059         start with the current directory.
11060
11061 2010-04-02  Bruno Haible  <bruno@clisp.org>
11062
11063         Tests for module 'havelib', moved here from GNU gettext.
11064         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
11065         modifications.
11066         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
11067         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
11068         with modifications.
11069         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
11070         modifications.
11071         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
11072         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
11073         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
11074         with modifications.
11075         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
11076         with modifications.
11077         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
11078         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
11079         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
11080         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
11081         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
11082         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
11083         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
11084         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
11085         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
11086         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
11087         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
11088         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
11089         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
11090         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
11091         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
11092         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
11093         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
11094         with modifications.
11095         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
11096         with modifications.
11097         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
11098         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
11099         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
11100         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
11101         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
11102         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
11103         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
11104         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
11105         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
11106         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
11107         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
11108         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
11109         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
11110         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
11111         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
11112         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
11113         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
11114         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
11115         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
11116         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
11117         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
11118         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
11119         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
11120         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
11121         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
11122         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
11123         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
11124         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
11125         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
11126         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
11127         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
11128         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
11129         * tests/havelib/rpathx/rpathx.c: New file, from
11130         gettext/autoconf-lib-link.
11131         * tests/havelib/rpathx/Makefile.am: New file, from
11132         gettext/autoconf-lib-link.
11133         * tests/havelib/rpathx/configure.ac: New file, from
11134         gettext/autoconf-lib-link with modifications.
11135         * tests/havelib/rpathy/rpathy.c: New file, from
11136         gettext/autoconf-lib-link.
11137         * tests/havelib/rpathy/Makefile.am: New file, from
11138         gettext/autoconf-lib-link.
11139         * tests/havelib/rpathy/configure.ac: New file, from
11140         gettext/autoconf-lib-link with modifications.
11141         * tests/havelib/rpathz/rpathz.c: New file, from
11142         gettext/autoconf-lib-link.
11143         * tests/havelib/rpathz/Makefile.am: New file, from
11144         gettext/autoconf-lib-link.
11145         * tests/havelib/rpathz/configure.ac: New file, from
11146         gettext/autoconf-lib-link with modifications.
11147         * tests/havelib/rpathlx/usex.c: New file, from
11148         gettext/autoconf-lib-link.
11149         * tests/havelib/rpathlx/Makefile.am: New file, from
11150         gettext/autoconf-lib-link.
11151         * tests/havelib/rpathlx/configure.ac: New file, from
11152         gettext/autoconf-lib-link with modifications.
11153         * tests/havelib/rpathly/usey.c: New file, from
11154         gettext/autoconf-lib-link.
11155         * tests/havelib/rpathly/Makefile.am: New file, from
11156         gettext/autoconf-lib-link.
11157         * tests/havelib/rpathly/configure.ac: New file, from
11158         gettext/autoconf-lib-link with modifications.
11159         * tests/havelib/rpathlz/usez.c: New file, from
11160         gettext/autoconf-lib-link.
11161         * tests/havelib/rpathlz/Makefile.am: New file, from
11162         gettext/autoconf-lib-link.
11163         * tests/havelib/rpathlz/configure.ac: New file, from
11164         gettext/autoconf-lib-link with modifications.
11165         * tests/havelib/rpathlyx/usey.c: New file, from
11166         gettext/autoconf-lib-link.
11167         * tests/havelib/rpathlyx/Makefile.am: New file, from
11168         gettext/autoconf-lib-link.
11169         * tests/havelib/rpathlyx/configure.ac: New file, from
11170         gettext/autoconf-lib-link with modifications.
11171         * tests/havelib/rpathlzyx/usez.c: New file, from
11172         gettext/autoconf-lib-link.
11173         * tests/havelib/rpathlzyx/Makefile.am: New file, from
11174         gettext/autoconf-lib-link.
11175         * tests/havelib/rpathlzyx/configure.ac: New file, from
11176         gettext/autoconf-lib-link with modifications.
11177         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
11178         with modifications.
11179
11180 2010-04-02  Bruno Haible  <bruno@clisp.org>
11181
11182         gnulib-tool: Create distributed built sources also for the tests.
11183         * gnulib-tool (func_create_testdir): Also generate distributed built
11184         sources in the tests directory.
11185
11186 2010-04-02  Bruno Haible  <bruno@clisp.org>
11187
11188         gnulib-tool: Obey user's environment variables.
11189         * gnulib-tool (func_create_testdir): When creating built sources,
11190         respect the environment variables for autoconf, automake, etc. given by
11191         the user.
11192
11193 2010-04-02  Bruno Haible  <bruno@clisp.org>
11194
11195         gnulib-tool: Provide the value of --m4-base to modules.
11196         * gnulib-tool (func_import, func_create_testdir): Emit a definition
11197         of gl_m4_base.
11198
11199 2010-04-02  Eric Blake  <eblake@redhat.com>
11200
11201         maint.mk: fix some fallout
11202         * NEWS: Document the incompatible change, and its effect on cfg.mk.
11203         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
11204
11205 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11206
11207         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
11208         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
11209         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
11210         (sc_cast_of_x_alloc_return_value): Likewise.
11211         (sc_cast_of_alloca_return_value): Likewise.
11212         (sc_space_tab): Likewise.
11213         (sc_prohibit_atoi_atof): Likewise.
11214         (sc_prohibit_magic_number_exit): Likewise.
11215         (sc_error_exit_success): Likewise.
11216         (sc_file_system): Likewise.
11217         (sc_prohibit_have_config_h): Likewise.
11218         (sc_require_config_h): Likewise.
11219         (sc_prohibit_HAVE_MBRTOWC): Likewise.
11220         (sc_obsolete_symbols): Likewise.
11221         (sc_changelog): Likewise.
11222         (sc_program_name): Likewise.
11223         (sc_the_the): Likewise.
11224         (sc_trailing_blank): Likewise.
11225         (sc_two_space_separator_in_usage): Likewise.
11226         (sc_useless_cpp_parens): Likewise.
11227         (sc_GPL_version): Likewise.
11228         (sc_GFDL_version): Likewise.
11229         (sc_texinfo_acronym): Likewise.
11230         (sc_prohibit_cvs_keyword): Likewise.
11231         (sc_prohibit_stat_st_blocks): Likewise.
11232         (sc_prohibit_S_IS_definition): Likewise.
11233         (sc_redundant_const): Likewise.
11234         (sc_makefile_TAB_only_indentation): Likewise.
11235         (sc_m4_quote_check): Likewise.
11236         (sc_makefile_path_separator_check): Likewise.
11237         (sc_copyright_check): Likewise.
11238         (sc_Wundef_boolean): Likewise.
11239         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11240
11241         maint.mk: match 0 or more whitespace-before-function-call '('
11242         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
11243         that have zero or two-and-more spaces between the function name
11244         and the open parenthesis.
11245         (sc_error_message_warn_fatal): Likewise.
11246         (sc_error_message_uppercase): Likewise.
11247         (sc_error_message_period): Likewise.
11248
11249 2010-03-31  Eric Blake  <eblake@redhat.com>
11250
11251         maint.mk: check for [ as well as test
11252         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
11253         Based on a libvirt report by Matthias Bolte.
11254
11255         gnumakefile: don't squelch _version output
11256         * top/GNUmakefile (_version): Create one-shot dependency rather
11257         than using $(shell) when version must be regenerated.
11258         (_autoreconf): Run verbosely, by default.
11259
11260         sys_time: avoid compiler warnings
11261         * lib/sys_time.in.h (includes): Ensure gcc pragma is
11262         unconditional, fixing regression from 2010-03-29.
11263         Reported by Simon Josefsson.
11264
11265 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11266
11267         maint.mk: s/_header_without_use/_sc_header_without_use/
11268         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
11269         (sc_prohibit_assert_without_use): Use the new name.
11270         (sc_prohibit_close_stream_without_use): Likewise.
11271         (sc_prohibit_getopt_without_use): Likewise.
11272         (sc_prohibit_quotearg_without_use): Likewise.
11273         (sc_prohibit_quote_without_use): Likewise.
11274         (sc_prohibit_long_options_without_use): Likewise.
11275         (sc_prohibit_inttostr_without_use): Likewise.
11276         (sc_prohibit_ignore_value_without_use): Likewise.
11277         (sc_prohibit_error_without_use): Likewise.
11278         (sc_prohibit_xalloc_without_use): Likewise.
11279         (sc_prohibit_hash_without_use): Likewise.
11280         (sc_prohibit_hash_pjw_without_use): Likewise.
11281         (sc_prohibit_safe_read_without_use): Likewise.
11282         (sc_prohibit_argmatch_without_use): Likewise.
11283         (sc_prohibit_canonicalize_without_use): Likewise.
11284         (sc_prohibit_root_dev_ino_without_use): Likewise.
11285         (sc_prohibit_openat_without_use): Likewise.
11286         (sc_prohibit_c_ctype_without_use): Likewise.
11287         (sc_prohibit_signal_without_use): Likewise.
11288         (sc_prohibit_intprops_without_use): Likewise.
11289
11290 2010-03-30  Eric Blake  <eblake@redhat.com>
11291
11292         maint: improve module indicators
11293         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
11294         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
11295         columns, and avoid extra macro expansion.
11296
11297         fdopendir: work around FreeBSD bug
11298         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
11299         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
11300         * modules/dirent (Makefile.am): Substitute it.
11301         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
11302         declaration.
11303         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
11304         fix.
11305         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11306
11307 2010-03-29  Bruno Haible  <bruno@clisp.org>
11308
11309         Emit #pragma system_header after the inclusion guard, not before.
11310         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
11311         guard that spans the entire file, not before. This enables an
11312         optimization in GCC's preprocessor.
11313         * lib/ctype.in.h: Likewise.
11314         * lib/dirent.in.h: Likewise.
11315         * lib/errno.in.h: Likewise.
11316         * lib/float.in.h: Likewise.
11317         * lib/getopt.in.h: Likewise.
11318         * lib/iconv.in.h: Likewise.
11319         * lib/langinfo.in.h: Likewise.
11320         * lib/locale.in.h: Likewise.
11321         * lib/math.in.h: Likewise.
11322         * lib/netdb.in.h: Likewise.
11323         * lib/netinet_in.in.h: Likewise.
11324         * lib/pty.in.h: Likewise.
11325         * lib/sched.in.h: Likewise.
11326         * lib/se-selinux.in.h: Likewise.
11327         * lib/search.in.h: Likewise.
11328         * lib/spawn.in.h: Likewise.
11329         * lib/stdarg.in.h: Likewise.
11330         * lib/stdint.in.h: Likewise.
11331         * lib/string.in.h: Likewise.
11332         * lib/strings.in.h: Likewise.
11333         * lib/sys_file.in.h: Likewise.
11334         * lib/sys_ioctl.in.h: Likewise.
11335         * lib/sys_time.in.h: Likewise.
11336         * lib/sys_times.in.h: Likewise.
11337         * lib/sys_utsname.in.h: Likewise.
11338         * lib/sys_wait.in.h: Likewise.
11339         * lib/sysexits.in.h: Likewise.
11340         * lib/wctype.in.h: Likewise.
11341
11342 2010-03-28  James Youngman  <jay@gnu.org>
11343
11344         save-cwd: don't leak a file descriptor when the caller execs.
11345         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
11346         saved file descriptor.
11347         * modules/save-cwd (Depends-on): Depend on cloexec.
11348
11349 2010-03-29  Bruno Haible  <bruno@clisp.org>
11350
11351         Remove vestiges of fts-lgpl module.
11352         * lib/fts_.h: Assume GNULIB_FTS is 1.
11353         * lib/fts.c: Likewise.
11354         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11355
11356 2010-03-28  Bruno Haible  <bruno@clisp.org>
11357
11358         Fix definition of tests witness macro.
11359         * gnulib-tool (func_import): Fix definition of witness macro.
11360
11361 2010-03-28  Bruno Haible  <bruno@clisp.org>
11362
11363         Fix ioctl's protoype on glibc systems.
11364         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
11365         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
11366         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
11367         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
11368         signature. If not, arrange to replace the ioctl function.
11369         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11370         REPLACE_IOCTL.
11371         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
11372         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
11373         Reported by Ludovic Courtès <ludo@gnu.org>.
11374
11375 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
11376
11377         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
11378         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
11379         made it so grep -r --include=GLOB* ... did not work.
11380
11381 2010-03-26  Jim Meyering  <meyering@redhat.com>
11382             Eric Blake  <eblake@redhat.com>
11383
11384         maint.mk: prohibit use of test's -o and -a operators
11385         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
11386
11387 2010-03-28  Bruno Haible  <bruno@clisp.org>
11388
11389         Remove unused GNULIB_XYZ macro definitions.
11390         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
11391         invocation.
11392
11393 2010-03-28  Bruno Haible  <bruno@clisp.org>
11394
11395         Mark privileged tests modules.
11396         * modules/idpriv-drop-tests (Status): New section.
11397         * modules/idpriv-droptemp-tests (Status): New section.
11398
11399 2010-03-28  Bruno Haible  <bruno@clisp.org>
11400
11401         Split C++ tests into separate tests modules.
11402         * modules/dirent-c++-tests: New file, extracted from
11403         modules/dirent-tests.
11404         * modules/dirent-tests: Depend on it.
11405         * modules/fcntl-h-c++-tests: New file, extracted from
11406         modules/fcntl-h-tests.
11407         * modules/fcntl-h-tests: Depend on it.
11408         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
11409         * modules/glob-tests: Depend on it.
11410         * modules/iconv-h-c++-tests: New file, extracted from
11411         modules/iconv-h-tests.
11412         * modules/iconv-h-tests: Depend on it.
11413         * modules/langinfo-c++-tests: New file, extracted from
11414         modules/langinfo-tests.
11415         * modules/langinfo-tests: Depend on it.
11416         * modules/locale-c++-tests: New file, extracted from
11417         modules/locale-tests.
11418         * modules/locale-tests: Depend on it.
11419         * modules/math-c++-tests: New file, extracted from modules/math-tests.
11420         * modules/math-tests: Depend on it.
11421         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
11422         * modules/pty-tests: Depend on it.
11423         * modules/search-c++-tests: New file, extracted from
11424         modules/search-tests.
11425         * modules/search-tests: Depend on it.
11426         * modules/signal-c++-tests: New file, extracted from
11427         modules/signal-tests.
11428         * modules/signal-tests: Depend on it.
11429         * modules/spawn-c++-tests: New file, extracted from
11430         modules/spawn-tests.
11431         * modules/spawn-tests: Depend on it.
11432         * modules/stdio-c++-tests: New file, extracted from
11433         modules/stdio-tests.
11434         * modules/stdio-tests: Depend on it.
11435         * modules/stdlib-c++-tests: New file, extracted from
11436         modules/stdlib-tests.
11437         * modules/stdlib-tests: Depend on it.
11438         * modules/string-c++-tests: New file, extracted from
11439         modules/string-tests.
11440         * modules/string-tests: Depend on it.
11441         * modules/sys_ioctl-c++-tests: New file, extracted from
11442         modules/sys_ioctl-tests.
11443         * modules/sys_ioctl-tests: Depend on it.
11444         * modules/sys_select-c++-tests: New file, extracted from
11445         modules/sys_select-tests.
11446         * modules/sys_select-tests: Depend on it.
11447         * modules/sys_socket-c++-tests: New file, extracted from
11448         modules/sys_socket-tests.
11449         * modules/sys_socket-tests: Depend on it.
11450         * modules/sys_stat-c++-tests: New file, extracted from
11451         modules/sys_stat-tests.
11452         * modules/sys_stat-tests: Depend on it.
11453         * modules/sys_time-c++-tests: New file, extracted from
11454         modules/sys_time-tests.
11455         * modules/sys_time-tests: Depend on it.
11456         * modules/time-c++-tests: New file, extracted from modules/time-tests.
11457         * modules/time-tests: Depend on it.
11458         * modules/unistd-c++-tests: New file, extracted from
11459         modules/unistd-tests.
11460         * modules/unistd-tests: Depend on it.
11461         * modules/wchar-c++-tests: New file, extracted from
11462         modules/wchar-tests.
11463         * modules/wchar-tests: Depend on it.
11464         * modules/wctype-c++-tests: New file, extracted from
11465         modules/wctype-tests.
11466         * modules/wctype-tests: Depend on it.
11467         Reported by Simon Josefsson.
11468
11469 2010-03-28  Bruno Haible  <bruno@clisp.org>
11470
11471         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
11472         * gnulib-tool (func_exists_module): New function, extracted from
11473         func_verify_module.
11474         (func_verify_module): Use it.
11475         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
11476         'foo' only if 'foo' exists.
11477         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
11478         module.
11479
11480 2010-03-28  Bruno Haible  <bruno@clisp.org>
11481
11482         gnulib-tool: Add support for special categories of tests.
11483         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
11484         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
11485         (func_usage): Document them.
11486         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
11487         inc_unportable_tests, inc_all_tests): New variables.
11488         (func_acceptable): Consider these variables.
11489         (func_modules_transitive_closure): Make it work when the 'Status' field
11490         consists of multiple words.
11491         (func_import): Store and restore the values of inc_cxx_tests,
11492         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
11493         inc_all_tests in gnulib-comp.m4.
11494         (func_create_testdir): Set inc_all_tests to true.
11495         * doc/gnulib.texi (Extra tests modules): New section.
11496         Suggested by Jim Meyering.
11497
11498 2010-03-28  Bruno Haible  <bruno@clisp.org>
11499
11500         ansi-c++-opt: Allow turning off the C++ build by default.
11501         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
11502         gl_CXX_CHOICE_DEFAULT_NO is defined.
11503         Requested by Eric Blake.
11504
11505 2010-03-28  Bruno Haible  <bruno@clisp.org>
11506
11507         unistd: Avoid #define replacements in C++ mode.
11508         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11509         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11510         setsockopt, shutdown, select): In C++, attach a warning to the function
11511         if possible, rather than #defining the symbol to a dysfunctional alias.
11512         Reported by John W. Eaton <jwe@gnu.org>.
11513
11514 2010-03-28  Bruno Haible  <bruno@clisp.org>
11515
11516         Fix link errors on mingw.
11517         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
11518         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
11519         $(LIBSOCKET).
11520         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
11521         $(LIBSOCKET).
11522
11523 2010-03-28  Bruno Haible  <bruno@clisp.org>
11524             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11525
11526         lib-ignore: Determine different options for different compilers.
11527         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
11528         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
11529         Add comments.
11530         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
11531         * NEWS: Mention the change.
11532
11533 2010-03-27  Bruno Haible  <bruno@clisp.org>
11534
11535         Remove unused GNULIB_XYZ macro definitions.
11536         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11537         * modules/fseek (configure.ac): Likewise.
11538         * modules/ioctl (configure.ac): Likewise.
11539         * modules/open (configure.ac): Likewise.
11540         * modules/stdlib-safer (configure.ac): Likewise.
11541
11542 2010-03-27  Bruno Haible  <bruno@clisp.org>
11543
11544         Add a remark about certain modules.
11545         * modules/malloc (Comment): New section.
11546         * modules/realloc (Comment): Likewise.
11547         * modules/sigpipe (Comment): Likewise.
11548
11549 2010-03-27  Bruno Haible  <bruno@clisp.org>
11550
11551         Resolve conflict between the two kinds of module indicators.
11552         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
11553         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
11554         * modules/canonicalize (configure.ac): Invoke
11555         gl_MODULE_INDICATOR_FOR_TESTS.
11556         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
11557         GNULIB_XYZ.
11558         * tests/test-dirent-c++.cc: Likewise.
11559         * tests/test-dirent-safer.c: Likewise.
11560         * tests/test-dup2.c: Likewise.
11561         * tests/test-fchdir.c: Likewise.
11562         * tests/test-fcntl-h-c++.cc: Likewise.
11563         * tests/test-getopt.c: Likewise.
11564         * tests/test-getopt.h: Likewise.
11565         * tests/test-langinfo-c++.cc: Likewise.
11566         * tests/test-locale-c++.cc: Likewise.
11567         * tests/test-math-c++.cc: Likewise.
11568         * tests/test-pty-c++.cc: Likewise.
11569         * tests/test-search-c++.cc: Likewise.
11570         * tests/test-signal-c++.cc: Likewise.
11571         * tests/test-spawn-c++.cc: Likewise.
11572         * tests/test-stdio-c++.cc: Likewise.
11573         * tests/test-stdlib-c++.cc: Likewise.
11574         * tests/test-string-c++.cc: Likewise.
11575         * tests/test-sys_ioctl-c++.cc: Likewise.
11576         * tests/test-sys_select-c++.cc: Likewise.
11577         * tests/test-sys_socket-c++.cc: Likewise.
11578         * tests/test-sys_stat-c++.cc: Likewise.
11579         * tests/test-sys_time-c++.cc: Likewise.
11580         * tests/test-time-c++.cc: Likewise.
11581         * tests/test-unistd-c++.cc: Likewise.
11582         * tests/test-wchar-c++.cc: Likewise.
11583         * tests/uninorm/test-u8-nfc.c: Likewise.
11584         * tests/uninorm/test-u8-nfd.c: Likewise.
11585         * tests/uninorm/test-u8-nfkc.c: Likewise.
11586         * tests/uninorm/test-u8-nfkd.c: Likewise.
11587         * tests/uninorm/test-u16-nfc.c: Likewise.
11588         * tests/uninorm/test-u16-nfd.c: Likewise.
11589         * tests/uninorm/test-u16-nfkc.c: Likewise.
11590         * tests/uninorm/test-u16-nfkd.c: Likewise.
11591         * tests/uninorm/test-u32-nfc.c: Likewise.
11592         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11593         * tests/uninorm/test-u32-nfd.c: Likewise.
11594         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11595         * tests/uninorm/test-u32-nfkc.c: Likewise.
11596         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11597         * tests/uninorm/test-u32-nfkd.c: Likewise.
11598         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11599         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11600
11601 2010-03-27  Bruno Haible  <bruno@clisp.org>
11602
11603         Distinguish two kinds of module indicators.
11604         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
11605         gl_MODULE_INDICATOR.
11606         (gl_MODULE_INDICATOR): New macro.
11607         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11608         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
11609         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11610         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11611         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11612         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11613         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11614         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11615         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11616         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11617         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11618         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11620         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11621         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11622         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11623         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11624         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11625         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11626         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11627         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11628         * modules/cloexec (configure.ac): Likewise.
11629         * modules/getopt-gnu (configure.ac): Likewise.
11630         * modules/uninorm/u8-normalize (configure.ac): Likewise.
11631         * modules/uninorm/u16-normalize (configure.ac): Likewise.
11632         * modules/uninorm/u32-normalize (configure.ac): Likewise.
11633         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
11634
11635 2010-03-27  Bruno Haible  <bruno@clisp.org>
11636
11637         New module description field 'Comment'.
11638         * gnulib-tool: New option --extract-comment.
11639         (func_usage): Document it.
11640         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
11641         (func_get_comment): New function.
11642         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
11643
11644 2010-03-27  Bruno Haible  <bruno@clisp.org>
11645
11646         Addendum to 2010-02-07 commit.
11647         * gnulib-tool (func_usage): Document --extract-applicability option.
11648
11649 2010-03-27  Bruno Haible  <bruno@clisp.org>
11650
11651         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
11652         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
11653         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
11654         rather than link errors.
11655
11656 2010-03-27  Bruno Haible  <bruno@clisp.org>
11657
11658         Avoid side effects from tests-related modules on the compilation of lib.
11659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
11660         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
11661         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
11662         parameter. Emit into AM_CPPFLAGS a definition of the designated C
11663         macro.
11664         (func_import): Define a witness macro. Assign it a value that depends
11665         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
11666         tests-related modules.
11667         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
11668         Reported by Jim Meyering.
11669
11670 2010-03-27  Bruno Haible  <bruno@clisp.org>
11671
11672         Factorize common .m4 code.
11673         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
11674         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
11675         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
11676         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
11677         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11678         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
11679         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
11680         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11681         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11682         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11683         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
11684         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11685         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11686         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11687         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11688         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
11689         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11690         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11692         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
11693         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
11694         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11695         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11696         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11697         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11698         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11699         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
11700         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
11701         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
11702         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11703         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11704         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11705
11706 2010-03-27  Bruno Haible  <bruno@clisp.org>
11707
11708         Fix a compilation error on Cygwin with g++ >= 4.3.
11709         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
11710         if it is undefined or if we alias it to chmod.
11711         (lstat): Don't warn about the use of this function if it is undefined
11712         or if we alias it to stat.
11713         Reported by Simon Josefsson.
11714
11715 2010-03-27  Bruno Haible  <bruno@clisp.org>
11716
11717         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
11718         * modules/getlogin (configure.ac): Update.
11719
11720         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
11721         * modules/getlogin_r (configure.ac): Update.
11722
11723         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
11724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
11725         * modules/inet_ntop (configure.ac): Update.
11726
11727         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
11728         * modules/inet_pton (configure.ac): Update.
11729
11730         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
11731         * modules/mbslen (configure.ac): Update.
11732
11733         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
11734         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
11735         * modules/forkpty (configure.ac): Update.
11736         * modules/openpty (configure.ac): Update.
11737
11738 2010-03-26  Simon Josefsson  <simon@josefsson.org>
11739
11740         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
11741         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
11742
11743 2010-03-25  Eric Blake  <eblake@redhat.com>
11744
11745         maint: use pragma consistently across replacement headers
11746         * lib/ctype.in.h (system_header): Hoist for consistent placement.
11747         * lib/dirent.in.h (system_header): Likewise.
11748         * lib/errno.in.h (system_header): Likewise.
11749         * lib/float.in.h (system_header): Likewise.
11750         * lib/getopt.in.h (system_header): Likewise.
11751         * lib/iconv.in.h (system_header): Likewise.
11752         * lib/inttypes.in.h (system_header): Likewise.
11753         * lib/langinfo.in.h (system_header): Likewise.
11754         * lib/locale.in.h (system_header): Likewise.
11755         * lib/math.in.h (system_header): Likewise.
11756         * lib/netdb.in.h (system_header): Likewise.
11757         * lib/netinet_in.in.h (system_header): Likewise.
11758         * lib/pty.in.h (system_header): Likewise.
11759         * lib/sched.in.h (system_header): Likewise.
11760         * lib/se-selinux.in.h (system_header): Likewise.
11761         * lib/search.in.h (system_header): Likewise.
11762         * lib/spawn.in.h (system_header): Likewise.
11763         * lib/stdarg.in.h (system_header): Likewise.
11764         * lib/stdint.in.h (system_header): Likewise.
11765         * lib/string.in.h (system_header): Likewise.
11766         * lib/strings.in.h (system_header): Likewise.
11767         * lib/sys_file.in.h (system_header): Likewise.
11768         * lib/sys_ioctl.in.h (system_header): Likewise.
11769         * lib/sys_socket.in.h (system_header): Likewise.
11770         * lib/sys_times.in.h (system_header): Likewise.
11771         * lib/sys_utsname.in.h (system_header): Likewise.
11772         * lib/sys_wait.in.h (system_header): Likewise.
11773         * lib/sysexits.in.h (system_header): Likewise.
11774         * lib/unistd.in.h (system_header): Likewise.
11775         * lib/wctype.in.h (system_header): Likewise.
11776
11777         arpa/inet: fix mingw compilation warning
11778         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
11779         Reported by Matthew Bolte.
11780
11781 2010-03-25  Bruno Haible  <bruno@clisp.org>
11782
11783         Avoid collision between gnulib wrapper and libintl wrapper.
11784         * lib/printf.c (printf): Don't define if a printf wrapper is already
11785         defined in intl/printf.c.
11786         Reported by Michel Boaventura <michel@michelboaventura.com>.
11787
11788 2010-03-25  Bruno Haible  <bruno@clisp.org>
11789
11790         Use ANSI C.
11791         * lib/readutmp.h (getutent): Provide ANSI C prototype.
11792
11793 2010-03-25  Bruno Haible  <bruno@clisp.org>
11794
11795         Minor formatting changes.
11796         * lib/acosl.c: Insert space before function argument list.
11797         * lib/argz.c: Likewise.
11798         * lib/asinl.c: Likewise.
11799         * lib/expl.c: Likewise.
11800         * lib/gen-uni-tables.c: Likewise.
11801         * lib/gettext.h: Likewise.
11802         * lib/glthread/lock.h: Likewise.
11803         * lib/tanl.c: Likewise.
11804         * lib/uniname/uniname.c: Likewise.
11805         * tests/test-idpriv-drop.c: Likewise.
11806         * tests/test-idpriv-droptemp.c: Likewise.
11807         * tests/test-lock.c: Likewise.
11808         * tests/test-tls.c: Likewise.
11809         * lib/argp-help.c: Insert space before function-like macro argument
11810         list.
11811         * lib/memcmp.c: Likewise.
11812         * tests/test-base64.c: Likewise.
11813         * lib/localename.c: Insert space before sizeof's argument list.
11814         * lib/safe-alloc.h: Likewise.
11815         * lib/file-set.h: Insert space before macro argument list.
11816         * tests/test-argp.c: Likewise.
11817         * lib/argp-namefrob.h: Insert space before function parameter list.
11818         * lib/getaddrinfo.c: Likewise.
11819         * lib/netdb.in.h: Likewise.
11820         * lib/parse-duration.h: Likewise.
11821         * lib/parse-duration.c: Likewise.
11822         * lib/poll.c: Likewise.
11823         * lib/select.c: Likewise.
11824         * lib/trim.h: Likewise.
11825         * tests/test-usleep.c: Likewise.
11826         * lib/ldexpl.c: Insert space before function parameter list and before
11827         function argument list.
11828         * lib/logl.c: Likewise.
11829         * lib/sqrtl.c: Likewise.
11830         * lib/trim.c: Likewise.
11831         * lib/cosl.c: Use GNU style indentation. Insert space before function
11832         argument list.
11833         * lib/sinl.c: Likewise.
11834         * lib/tsearch.c: Insert space after 'for'.
11835         Reported by Jim Meyering.
11836
11837 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
11838
11839         * maint.mk (sc_Wundef_boolean): Check for the presence of the
11840         config header before grepping, as it's not present before
11841         autoreconf/configure are run.  Reported by Simon Josefsson.
11842
11843 2010-03-23  Bruno Haible  <bruno@clisp.org>
11844
11845         pt_chown: Make it work with automake < 1.11.
11846         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11847         Reported by Simon Josefsson.
11848
11849 2010-03-23  Bruno Haible  <bruno@clisp.org>
11850
11851         pt_chown: Don't depend on GPLed modules.
11852         * lib/pt_chown.c: Don't include idpriv.h.
11853         (main): Don't drop privileges.
11854         * modules/pt_chown (Depends-on): Remove idpriv-drop.
11855         Reported by Simon Josefsson.
11856
11857 2010-03-24  Simon Josefsson  <simon@josefsson.org>
11858
11859         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
11860         suggestions from karl@freefriends.org (Karl Berry).
11861
11862 2010-03-22  Eric Blake  <eblake@redhat.com>
11863
11864         gethostname: further tweaks
11865         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
11866         are overriding gethostname.
11867         Suggested by Bruno Haible.
11868
11869 2010-03-21  Bruno Haible  <bruno@clisp.org>
11870
11871         Fix comments.
11872         * lib/forkpty.c (rpl_forkpty): Fix comment.
11873         * lib/openpty.c (rpl_openpty): Likewise.
11874         Reported by Eric Blake.
11875
11876 2010-03-22  Eric Blake  <eblake@redhat.com>
11877
11878         gethostname: fix build on mingw
11879         * lib/unistd.in.h (includes): Work around fact that mingw
11880         <winsock2.h> re-includes <unistd.h>, by avoiding any
11881         redeclarations if we are being included by <winsock2.h>.
11882         Reported by Matthias Bolte.
11883
11884 2010-03-21  Bruno Haible  <bruno@clisp.org>
11885
11886         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11887         * lib/forkpty.c (forkpty): New replacement function, from glibc with
11888         modifications.
11889         * lib/pty.in.h (forkpty): Update declaration. Add comments.
11890         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
11891         provide the replacement.
11892         * modules/forkpty (Depends-on): Add openpty, login_tty.
11893         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11894         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
11895         * doc/glibc-functions/forkpty.texi: More supported platforms.
11896         * config/srclist.txt: Add forkpty.c (commented).
11897
11898 2010-03-21  Bruno Haible  <bruno@clisp.org>
11899
11900         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
11901         (Makefile.am): Verify that PTY_LIB is defined.
11902
11903         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
11904
11905 2010-03-21  Bruno Haible  <bruno@clisp.org>
11906
11907         Tests for module 'login_tty'.
11908         * modules/login_tty-tests: New file.
11909         * tests/test-login_tty.c: New file.
11910
11911         New module 'login_tty'.
11912         * lib/login_tty.c: New file.
11913         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
11914         * modules/login_tty: New file.
11915         * doc/glibc-functions/login_tty.texi: Mention the new module.
11916
11917 2010-03-21  Bruno Haible  <bruno@clisp.org>
11918
11919         login_tty: Documentation.
11920         * doc/glibc-functions/login_tty.texi: New file.
11921         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
11922
11923 2010-03-21  Bruno Haible  <bruno@clisp.org>
11924
11925         pty: Consistent macro naming.
11926         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
11927         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
11928         * modules/pty (configure.ac): Update.
11929
11930 2010-03-21  Bruno Haible  <bruno@clisp.org>
11931
11932         Tests for openpty: Make stricter.
11933         * tests/test-openpty.c (main): Add test of canonical processing and
11934         erase.
11935         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
11936
11937         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11938         * lib/openpty.c (openpty): New replacement function.
11939         * lib/pty.in.h: Include <termios.h>.
11940         (openpty): Update declaration. Add comments.
11941         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
11942         is not declared, arrange to provide the replacement. Check for _getpty
11943         and posix_openpt.
11944         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11945         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
11946         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
11947         * modules/pty-tests (test_pty_c___LDADD): New variable.
11948         * doc/glibc-functions/openpty.texi: More supported platforms.
11949
11950 2010-03-21  Bruno Haible  <bruno@clisp.org>
11951
11952         setenv: Tweaks.
11953         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
11954         the test program.
11955         * doc/posix-functions/setenv.texi: Update platforms list.
11956
11957 2010-03-21  Bruno Haible  <bruno@clisp.org>
11958
11959         New module 'unlockpt'.
11960         * lib/unlockpt.c: New file, from glibc with modifications.
11961         * m4/unlockpt.m4: New file.
11962         * modules/unlockpt: New file.
11963         * lib/stdlib.in.h (unlockpt): New declaration.
11964         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
11965         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
11966         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11967         HAVE_UNLOCKPT.
11968         * doc/posix-functions/unlockpt.texi: Mention the new module.
11969         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
11970         * config/srclist.txt: Add unlockpt.c (commented).
11971
11972 2010-03-21  Jim Meyering  <meyering@redhat.com>
11973
11974         maint.mk: prohibit inclusion of "intprops.h" without use
11975         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
11976
11977 2010-03-21  Bruno Haible  <bruno@clisp.org>
11978
11979         New module 'grantpt'.
11980         * lib/grantpt.c: New file, from glibc with modifications.
11981         * m4/grantpt.m4: New file.
11982         * modules/grantpt: New file.
11983         * lib/stdlib.in.h (grantpt): New declaration.
11984         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
11985         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
11986         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
11987         HAVE_GRANTPT.
11988         * doc/posix-functions/grantpt.texi: Mention the new module.
11989         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
11990         * config/srclist.txt: Add grantpt.c (commented).
11991
11992 2010-03-21  Bruno Haible  <bruno@clisp.org>
11993
11994         New module 'pt_chown'.
11995         * lib/pt_chown.c: New file, from glibc with modifications.
11996         * lib/pty-private.h: New file, from glibc with modifications.
11997         * modules/pt_chown: New file.
11998         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
11999
12000 2010-03-21  Bruno Haible  <bruno@clisp.org>
12001
12002         Tests for module 'ptsname'.
12003         * modules/ptsname-tests: New file.
12004         * tests/test-ptsname.c: New file.
12005
12006         New module 'ptsname'.
12007         * lib/ptsname.c: New file, from glibc with modifications.
12008         * m4/ptsname.m4: New file.
12009         * modules/ptsname: New file.
12010         * lib/stdlib.in.h (ptsname): New declaration.
12011         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
12012         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
12013         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
12014         HAVE_PTSNAME.
12015         * doc/posix-functions/ptsname.texi: Mention the new module.
12016         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
12017         * config/srclist.txt: Add ptsname.c (commented).
12018
12019 2010-03-21  Bruno Haible  <bruno@clisp.org>
12020
12021         Tests for module 'ttyname_r'.
12022         * modules/ttyname_r-tests: New file.
12023         * tests/test-ttyname_r.c: New file.
12024
12025         New module 'ttyname_r'.
12026         * lib/ttyname_r.c: New file.
12027         * m4/ttyname_r.m4: New file.
12028         * modules/ttyname_r: New file.
12029         * lib/unistd.in.h (ttyname_r): New declaration.
12030         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
12031         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
12032         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
12033         HAVE_TTYNAME_R.
12034         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
12035         * doc/posix-functions/ttyname_r.texi: Mention the new module.
12036
12037 2010-03-20  Bruno Haible  <bruno@clisp.org>
12038
12039         signal: Undefine macro definitions in C++ mode.
12040         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
12041         sigfillset): Undefine macro definitions from the system header in C++
12042         mode.
12043         Reported by John W. Eaton <jwe@gnu.org>.
12044
12045 2010-03-20  Bruno Haible  <bruno@clisp.org>
12046
12047         Ensure no #include statements inside extern "C" { ... }.
12048         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
12049         contain #include statements.
12050         * lib/time.in.h: Likewise.
12051
12052 2010-03-20  Bruno Haible  <bruno@clisp.org>
12053
12054         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
12055         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
12056         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
12057         Reported by John W. Eaton <jwe@gnu.org>.
12058
12059 2010-03-20  Bruno Haible  <bruno@clisp.org>
12060
12061         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
12062         Reported by Jim Meyering.
12063
12064 2010-03-20  Bruno Haible  <bruno@clisp.org>
12065
12066         pipe: Set errno upon failure.
12067         * lib/pipe.h: Specify that when -1 is returned, errno is set.
12068         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
12069         errno value in error message.
12070
12071 2010-03-20  Bruno Haible  <bruno@clisp.org>
12072             Jim Meyering  <meyering@redhat.com>
12073
12074         lchown: Avoid "unused variable" warning.
12075         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
12076
12077 2010-03-20  Bruno Haible  <bruno@clisp.org>
12078
12079         Work around unlink() bug on MacOS X 10.5.6.
12080         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
12081         attempting to unlink a parent directory.
12082         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
12083         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
12084         activate for the replacement function.
12085         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
12086
12087 2010-03-20  Bruno Haible  <bruno@clisp.org>
12088
12089         Fix link errors on Solaris 8.
12090         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
12091         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
12092
12093 2010-03-19  Jim Meyering  <meyering@redhat.com>
12094
12095         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
12096         The _LIBC implementation of build_range_exp correctly honors the
12097         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
12098         However, the non-_LIBC implementation would ignore that syntax-bit
12099         flag and return REG_ERANGE unconditionally.
12100         This change makes it honor that flag.
12101         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
12102         Make two pointer parameters "const".
12103         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
12104         (parse_bracket_exp): Update caller.
12105
12106         regex.m4: correct the reversed range endpoint ([b-a]) test
12107         * m4/regex.m4: When requiring that [b-a] evoke failure,
12108         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
12109         test pass once again for x86-based systems.
12110
12111 2010-03-19  Bruno Haible  <bruno@clisp.org>
12112
12113         scandir: Fix link error on Solaris 8.
12114         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
12115         macros.
12116
12117 2010-03-19  Bruno Haible  <bruno@clisp.org>
12118
12119         getusershell: Fix documentation.
12120         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
12121         module.
12122         * doc/glibc-functions/setusershell.texi: Likewise.
12123
12124         getusershell: Provide declaration, missing on Solaris 9.
12125         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
12126         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
12127         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
12128         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
12129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12130         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
12131         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
12132         HAVE_GETUSERSHELL.
12133         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
12134
12135 2010-03-19  Bruno Haible  <bruno@clisp.org>
12136
12137         wctype: Provide iswblank function.
12138         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
12139         exists and is fine.
12140         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
12141         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
12142         * tests/test-wctype.c (main): Re-enable the iswblank tests.
12143         * doc/posix-functions/iswblank.texi: Update.
12144
12145 2010-03-19  Bruno Haible  <bruno@clisp.org>
12146
12147         Tests of module 'pty' in C++ mode.
12148         * modules/pty-tests: New file.
12149         * tests/test-pty-c++.cc: New file.
12150         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12151
12152 2010-03-19  Eric Blake  <eblake@redhat.com>
12153
12154         logb: fix documentation
12155         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
12156         1.5 declaration bug.
12157
12158         forkpty, openpty: prefer glibc's const-safe prototype
12159         * lib/forkpty.c (rpl_forkpty): New file.
12160         * lib/openpty.c (rpl_openpty): Likewise.
12161         * modules/forkpty (Files): Distribute it.
12162         * modules/openpty (Files): Likewise.
12163         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
12164         check...
12165         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
12166         replacement for for non-const BSD signature.
12167         * modules/pty (Makefile.am): Substitute witnesses.
12168         * lib/pty.in.h (forkpty, openpty): Declare replacements.
12169         * tests/test-forkpty.c: Update signature check.
12170         * tests/test-openpty.c: Likewise.
12171         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
12172         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12173
12174         forkpty, openpty: split functions into new modules
12175         * modules/pty (Makefile.am): Substitute new witnesses.
12176         (Libraries): Move library detection...
12177         * modules/forkpty: ...into new module.
12178         * modules/openpty: Another new module.
12179         * modules/pty-tests: Rename and split...
12180         * modules/forkpty-tests: ...to this...
12181         * modules/openpty-tests: ...and this.
12182         * tests/test-pty.c: Rename and split...
12183         * tests/test-forkpty.c: ...to this...
12184         * tests/test-openpty.c: ...and this.
12185         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
12186         (gl_PTY): Split library searching...
12187         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
12188         (gl_FORKPTY, gl_OPENPTY): New macros.
12189         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
12190         * NEWS: Mention the split.
12191         * MODULES.html.sh (Misc): Document the modules.
12192         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
12193         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12194
12195         pty: improve replacement header
12196         * lib/pty.in.h: New file.
12197         * modules/pty (Files): Ship it.
12198         (Makefile.am): Always build replacement.
12199         * m4/pty.m4: Rename...
12200         * m4/pty_h.m4: ...to this.
12201         (gl_PTY): Modernize setting of witness macros; update check of
12202         forkpty to take proper advantage of cache.
12203         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
12204
12205         getopt: avoid compiler warning
12206         * lib/getopt.c (attribute_hidden): Remove unused macro.
12207
12208 2010-03-18  Bruno Haible  <bruno@clisp.org>
12209
12210         Fix link errors on Solaris 8.
12211         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
12212         * modules/search-tests (test_search_c___LDADD): Likewise.
12213         * modules/signal-tests (test_signal_c___LDADD): Likewise.
12214         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
12215         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
12216         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
12217         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
12218         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
12219         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
12220
12221 2010-03-18  Bruno Haible  <bruno@clisp.org>
12222
12223         Fix bug introduced on 2010-03-14.
12224         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
12225         (gl_SPAWN_H): Require it.
12226         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
12227         Reported by Simon Josefsson.
12228
12229 2010-03-18  Bruno Haible  <bruno@clisp.org>
12230
12231         Fix typo introduced on 2009-12-31.
12232         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
12233         posix_spawn_file_actions_adddup2.
12234
12235 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
12236         and Eric Blake  <eblake@redhat.com>
12237
12238         test-vc-list-files-git: make more robust
12239         * tests/test-vc-list-files-git.sh: Unset problematic environment
12240         variables.  Chain commands together.
12241
12242 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
12243
12244         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
12245         `AC_CHECK_DECL' invocation.
12246
12247 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
12248
12249         * lib/inttostr.c (inttostr): Make sure the invocation of verify
12250         appears before executable statements. Suggested by Petr Sumbera
12251         <Petr.Sumbera@Sun.COM>.
12252
12253 2010-03-14  Bruno Haible  <bruno@clisp.org>
12254
12255         * tests/test-flock.c (test_exclusive): Comment out a test that causes
12256         portability problems. Instead use a simpler test.
12257         (main): Check that invalid arguments are rejected only on Linux.
12258
12259 2010-03-14  Bruno Haible  <bruno@clisp.org>
12260
12261         Fix bug introduced on 2009-12-31.
12262         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12263         gl_PREREQ_SYS_H_WINSOCK2 always.
12264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
12265         SYS_SOCKET_H variable.
12266         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
12267         Update comments.
12268         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
12269         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12270         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12271         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12272         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12273
12274 2010-03-14  Bruno Haible  <bruno@clisp.org>
12275
12276         Fix values returned by sinl, cosl.
12277         * lib/trigl.h: Add specification comments.
12278         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
12279         that combines the values from the precomputed table with the values of
12280         the Chebyshev polynomials.
12281
12282 2010-03-14  Bruno Haible  <bruno@clisp.org>
12283
12284         Fix compilation error when modules 'posix_spawn[p]' are not used.
12285         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
12286         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
12287
12288 2010-03-14  Bruno Haible  <bruno@clisp.org>
12289
12290         Fix compilation error on mingw when module 'time_r' is not used.
12291         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
12292         is 1.
12293         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
12294         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12295         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
12296         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
12297
12298 2010-03-14  Bruno Haible  <bruno@clisp.org>
12299
12300         Fix compilation error with Sun C.
12301         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
12302         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
12303         instead of GCC specific ULONG_LONG_MAX.
12304         * lib/xstrtoll.c: Likewise.
12305         * lib/xstrtoull.c: Likewise.
12306
12307 2010-03-13  Bruno Haible  <bruno@clisp.org>
12308
12309         Allow the user to disable C++ code and tests.
12310         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
12311         (gl_PROG_ANSI_CXX): Require it.
12312
12313 2010-03-13  Bruno Haible  <bruno@clisp.org>
12314
12315         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
12316         cases.
12317
12318 2010-03-13  Bruno Haible  <bruno@clisp.org>
12319
12320         Test that gnulib does not break the standard C++ headers.
12321         * tests/test-locale-c++2.cc: New file.
12322         * modules/locale-tests (Files): Add it.
12323         (Makefile.am): Compile it for test-locale-c++.
12324         * tests/test-math-c++2.cc: New file.
12325         * modules/math-tests (Files): Add it.
12326         (Makefile.am): Compile it for test-math-c++.
12327         * tests/test-signal-c++2.cc: New file.
12328         * modules/signal-tests (Files): Add it.
12329         (Makefile.am): Compile it for test-signal-c++.
12330         * tests/test-stdio-c++2.cc: New file.
12331         * modules/stdio-tests (Files): Add it.
12332         (Makefile.am): Compile it for test-stdio-c++.
12333         * tests/test-stdlib-c++2.cc: New file.
12334         * modules/stdlib-tests (Files): Add it.
12335         (Makefile.am): Compile it for test-stdlib-c++.
12336         * tests/test-string-c++2.cc: New file.
12337         * modules/string-tests (Files): Add it.
12338         (Makefile.am): Compile it for test-string-c++.
12339         * tests/test-time-c++2.cc: New file.
12340         * modules/time-tests (Files): Add it.
12341         (Makefile.am): Compile it for test-time-c++.
12342         Reported by John W. Eaton <jwe@gnu.org>.
12343
12344 2010-03-13  Bruno Haible  <bruno@clisp.org>
12345
12346         * gnulib-tool (func_usage): Clarify which options are available for
12347         --create-testdir and --create-megatestdir.
12348
12349 2010-03-13  Bruno Haible  <bruno@clisp.org>
12350
12351         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
12352         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
12353         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
12354         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12355         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
12356         when appropriate.
12357         Reported by Jim Meyering.
12358
12359 2010-03-12  Simon Josefsson  <simon@josefsson.org>
12360
12361         * gnulib-tool (func_import): Explain origin of code.
12362
12363 2010-03-12  Bruno Haible  <bruno@clisp.org>
12364
12365         Fix problem with automake's definition of CXXLINK.
12366         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
12367         Reported by Simon Josefsson and Ludovic Courtès.
12368
12369 2010-03-12  Bruno Haible  <bruno@clisp.org>
12370
12371         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
12372         stable releases.
12373
12374 2010-03-11  Bruno Haible  <bruno@clisp.org>
12375
12376         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
12377         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
12378         whether the system provides one variant or multiple variants of the
12379         function.
12380         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
12381         C++ compilers.
12382         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
12383         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
12384         Reported by Jim Meyering.
12385
12386 2010-03-09  Simon Josefsson  <simon@josefsson.org>
12387
12388         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
12389
12390 2010-03-08  Bruno Haible  <bruno@clisp.org>
12391
12392         gnulib-tool: Add support for --libtool in --create-testdir.
12393         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
12394         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
12395
12396 2010-03-08  Eric Blake  <eblake@redhat.com>
12397
12398         gnulib-tool.texi: mention possibility of git submodule
12399         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
12400         submodules.
12401         * doc/.gitignore: Ignore another generated file.
12402
12403 2010-03-08  Karl Berry  <karl@gnu.org>
12404
12405         * doc/gnulib-tool.texi (VCS Issues): Mention third option
12406         of committing gnulib files while skipping others.
12407
12408 2010-03-07  Bruno Haible  <bruno@clisp.org>
12409
12410         Tests of module 'wctype' in C++ mode.
12411         * tests/test-wctype-c++.cc: New file.
12412         * modules/wctype-tests (Files): Add it and tests/signature.h.
12413         (Depends-on): Add ansi-c++-opt.
12414         (Makefile.am): Arrange to compile and run test-wctype-c++.
12415
12416         Tests of module 'wchar' in C++ mode.
12417         * tests/test-wchar-c++.cc: New file.
12418         * modules/wchar-tests (Files): Add it and tests/signature.h.
12419         (Depends-on): Add ansi-c++-opt.
12420         (Makefile.am): Arrange to compile and run test-wchar-c++.
12421         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
12422         gl_MODULE_INDICATOR.
12423
12424         Tests of module 'unistd' in C++ mode.
12425         * tests/test-unistd-c++.cc: New file.
12426         * modules/unistd-tests (Files): Add it and tests/signature.h.
12427         (Depends-on): Add ansi-c++-opt.
12428         (Makefile.am): Arrange to compile and run test-unistd-c++.
12429         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
12430         gl_MODULE_INDICATOR.
12431
12432         Tests of module 'time' in C++ mode.
12433         * tests/test-time-c++.cc: New file.
12434         * modules/time-tests (Files): Add it and tests/signature.h.
12435         (Depends-on): Add ansi-c++-opt.
12436         (Makefile.am): Arrange to compile and run test-time-c++.
12437         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12438
12439         Tests of module 'sys_time' in C++ mode.
12440         * tests/test-sys_time-c++.cc: New file.
12441         * modules/sys_time-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_time-c++.
12444         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
12445         gl_MODULE_INDICATOR.
12446
12447         Tests of module 'sys_stat' in C++ mode.
12448         * tests/test-sys_stat-c++.cc: New file.
12449         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
12450         (Depends-on): Add ansi-c++-opt.
12451         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
12452         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
12453         gl_MODULE_INDICATOR.
12454
12455         Tests of module 'sys_socket' in C++ mode.
12456         * tests/test-sys_socket-c++.cc: New file.
12457         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
12458         (Depends-on): Add ansi-c++-opt.
12459         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
12460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
12461         gl_MODULE_INDICATOR.
12462
12463         Tests of module 'sys_select' in C++ mode.
12464         * tests/test-sys_select-c++.cc: New file.
12465         * modules/sys_select-tests (Files): Add it and tests/signature.h.
12466         (Depends-on): Add ansi-c++-opt.
12467         (Makefile.am): Arrange to compile and run test-sys_select-c++.
12468         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
12469         gl_MODULE_INDICATOR.
12470
12471         Tests of module 'sys_ioctl' in C++ mode.
12472         * tests/test-sys_ioctl-c++.cc: New file.
12473         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
12474         (Depends-on): Add ansi-c++-opt.
12475         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
12476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
12477         gl_MODULE_INDICATOR.
12478
12479         Tests of module 'string' in C++ mode.
12480         * tests/test-string-c++.cc: New file.
12481         * modules/string-tests (Files): Add it and tests/signature.h.
12482         (Depends-on): Add ansi-c++-opt.
12483         (Makefile.am): Arrange to compile and run test-string-c++.
12484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
12485         gl_MODULE_INDICATOR.
12486
12487         Tests of module 'stdlib' in C++ mode.
12488         * tests/test-stdlib-c++.cc: New file.
12489         * modules/stdlib-tests (Files): Add it and tests/signature.h.
12490         (Depends-on): Add ansi-c++-opt.
12491         (Makefile.am): Arrange to compile and run test-stdlib-c++.
12492         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
12493         gl_MODULE_INDICATOR.
12494
12495         Tests of module 'stdio' in C++ mode.
12496         * tests/test-stdio-c++.cc: New file.
12497         * modules/stdio-tests (Files): Add it and tests/signature.h.
12498         (Depends-on): Add ansi-c++-opt.
12499         (Makefile.am): Arrange to compile and run test-stdio-c++.
12500         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
12501         gl_MODULE_INDICATOR.
12502
12503         Tests of module 'spawn' in C++ mode.
12504         * tests/test-spawn-c++.cc: New file.
12505         * modules/spawn-tests (Files): Add it and tests/signature.h.
12506         (Depends-on): Add ansi-c++-opt.
12507         (Makefile.am): Arrange to compile and run test-spawn-c++.
12508         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
12509         gl_MODULE_INDICATOR.
12510
12511         Tests of module 'signal' in C++ mode.
12512         * tests/test-signal-c++.cc: New file.
12513         * modules/signal-tests (Files): Add it and tests/signature.h.
12514         (Depends-on): Add ansi-c++-opt.
12515         (Makefile.am): Arrange to compile and run test-signal-c++.
12516         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
12517         gl_MODULE_INDICATOR.
12518
12519         Tests of module 'search' in C++ mode.
12520         * tests/test-search-c++.cc: New file.
12521         * modules/search-tests (Files): Add it and tests/signature.h.
12522         (Depends-on): Add ansi-c++-opt.
12523         (Makefile.am): Arrange to compile and run test-search-c++.
12524         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
12525         gl_MODULE_INDICATOR.
12526
12527         Tests of module 'math' in C++ mode.
12528         * tests/test-math-c++.cc: New file.
12529         * modules/math-tests (Files): Add it and tests/signature.h.
12530         (Depends-on): Add ansi-c++-opt.
12531         (Makefile.am): Arrange to compile and run test-math-c++.
12532         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12533
12534         Tests of module 'locale' in C++ mode.
12535         * tests/test-locale-c++.cc: New file.
12536         * modules/locale-tests (Files): Add it and tests/signature.h.
12537         (Depends-on): Add ansi-c++-opt.
12538         (Makefile.am): Arrange to compile and run test-locale-c++.
12539         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
12540         gl_MODULE_INDICATOR.
12541
12542         Tests of module 'langinfo' in C++ mode.
12543         * tests/test-langinfo-c++.cc: New file.
12544         * modules/langinfo-tests (Files): Add it and tests/signature.h.
12545         (Depends-on): Add ansi-c++-opt.
12546         (Makefile.am): Arrange to compile and run test-langinfo-c++.
12547         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
12548         gl_MODULE_INDICATOR.
12549
12550         Tests of module 'iconv-h' in C++ mode.
12551         * tests/test-iconv-h-c++.cc: New file.
12552         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
12553         (Depends-on): Add ansi-c++-opt.
12554         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
12555
12556         Tests of module 'glob' in C++ mode.
12557         * tests/test-glob-c++.cc: New file.
12558         * modules/glob-tests (Files): Add it.
12559         (Depends-on): Add ansi-c++-opt.
12560         (Makefile.am): Arrange to compile and run test-glob-c++.
12561
12562         Tests of module 'fcntl-h' in C++ mode.
12563         * tests/test-fcntl-h-c++.cc: New file.
12564         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
12565         (Depends-on): Add ansi-c++-opt.
12566         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
12567         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
12568         gl_MODULE_INDICATOR.
12569
12570         Tests of module 'dirent' in C++ mode.
12571         * tests/test-dirent-c++.cc: New file.
12572         * modules/dirent-tests (Files): Add it and tests/signature.h.
12573         (Depends-on): Add ansi-c++-opt.
12574         (Makefile.am): Arrange to compile and run test-dirent-c++.
12575         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12576         gl_MODULE_INDICATOR.
12577
12578         New module 'ansi-c++-opt'.
12579         * modules/ansi-c++-opt: New file.
12580         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
12581
12582         Document C++ namespace mode.
12583         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
12584
12585         wctype: Avoid #define replacements in C++ mode.
12586         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
12587         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
12588         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
12589         In C++, define a namespaced alias symbol.
12590         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
12591         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
12592         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
12593         rule.
12594
12595         wchar: Avoid #define replacements in C++ mode.
12596         * lib/wchar.in.h: Include c++defs.h.
12597         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
12598         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
12599         symbol.
12600         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
12601         * modules/wchar (Depends-on): Add c++defs.
12602         (Makefile.am): Update wchar.h rule.
12603
12604         unistd: Avoid #define replacements in C++ mode.
12605         * lib/unistd.in.h: Include c++defs.h.
12606         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
12607         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
12608         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
12609         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
12610         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
12611         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
12612         symbol.
12613         (environ): Update.
12614         * modules/unistd (Depends-on): Add c++defs.
12615         (Makefile.am): Update unistd.h rule.
12616
12617         time: Avoid #define replacements in C++ mode.
12618         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
12619         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
12620         define a namespaced alias symbol.
12621         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
12622         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
12623         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
12624         * modules/time (Depends-on): Add c++defs, warn-on-use.
12625         (Makefile.am): Update time.h rule.
12626         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12627         * modules/nanosleep (configure.ac): Likewise.
12628         * modules/strptime (configure.ac): Likewise.
12629         * modules/timegm (configure.ac): Likewise.
12630
12631         sys_time: Avoid #define replacements in C++ mode.
12632         * lib/sys_time.in.h: Include c++defs.h.
12633         (gettimeofday): In C++, define a namespaced alias symbol.
12634         * modules/sys_time (Depends-on): Add c++defs.
12635         (Makefile.am): Update sys/time.h rule.
12636
12637         sys_stat: Avoid #define replacements in C++ mode.
12638         * lib/sys_stat.in.h: Include c++defs.h.
12639         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
12640         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
12641         namespaced alias symbol.
12642         In C++, define a namespaced alias symbol.
12643         * modules/sys_stat (Depends-on): Add c++defs.
12644         (Makefile.am): Update sys/stat.h rule.
12645
12646         sys_socket: Avoid #define replacements in C++ mode.
12647         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
12648         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
12649         definitions also when the system has a <sys/socket.h>.
12650         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12651         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
12652         In C++, define a namespaced alias symbol.
12653         * modules/sys_socket (Depends-on): Add c++defs.
12654         (Makefile.am): Update sys/socket.h rule.
12655
12656         sys_select: Avoid #define replacements in C++ mode.
12657         * lib/sys_select.in.h: Include c++defs.h. Enable the function
12658         definitions also when the system has a <sys/select.h>.
12659         (select): In C++, define a namespaced alias symbol.
12660         * modules/sys_select (Depends-on): Add c++defs.
12661         (Makefile.am): Update sys/select.h rule.
12662
12663         sys_ioctl: Avoid #define replacements in C++ mode.
12664         * lib/sys_ioctl.in.h: Include c++defs.h.
12665         (ioctl): In C++, define a namespaced alias symbol.
12666         * modules/sys_ioctl (Depends-on): Add c++defs.
12667         (Makefile.am): Update sys/ioctl.h rule.
12668
12669         string: Avoid #define replacements in C++ mode.
12670         * lib/string.in.h: Include c++defs.h.
12671         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
12672         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12673         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12674         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
12675         strsignal, strverscmp): In C++, define a namespaced alias symbol.
12676         * modules/string (Depends-on): Add c++defs.
12677         (Makefile.am): Update string.h rule.
12678
12679         stdlib: Avoid #define replacements in C++ mode.
12680         * lib/stdlib.in.h: Include c++defs.h.
12681         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
12682         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
12683         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
12684         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
12685         symbol.
12686         * modules/stdlib (Depends-on): Add c++defs.
12687         (Makefile.am): Update stdlib.h rule.
12688
12689         stdio: Avoid #define replacements in C++ mode.
12690         * lib/stdio.in.h: Include c++defs.h.
12691         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
12692         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
12693         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
12694         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
12695         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
12696         namespaced alias symbol.
12697         * modules/stdio (Depends-on): Add c++defs.
12698         (Makefile.am): Update stdio.h rule.
12699
12700         spawn: Avoid #define replacements in C++ mode.
12701         * lib/spawn.in.h: Include c++defs.h.
12702         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12703         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12704         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12705         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12706         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12707         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12708         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12709         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12710         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12711         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12712         In C++, define a namespaced alias symbol.
12713         * modules/spawn (Depends-on): Add c++defs.
12714         (Makefile.am): Update spawn.h rule.
12715
12716         signal: Avoid #define replacements in C++ mode.
12717         * lib/signal.in.h: Include c++defs.h.
12718         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12719         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
12720         namespaced alias symbol.
12721         * modules/signal (Depends-on): Add c++defs.
12722         (Makefile.am): Update signal.h rule.
12723
12724         search: Avoid #define replacements in C++ mode.
12725         * lib/search.in.h: Include c++defs.h.
12726         (_gl_search_compar_fn, _gl_search_action_fn): New types.
12727         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
12728         symbol.
12729         * modules/search (Depends-on): Add c++defs.
12730         (Makefile.am): Update search.h rule.
12731
12732         math: Avoid #define replacements in C++ mode.
12733         * lib/math.in.h: Include c++defs.h.
12734         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
12735         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
12736         trunc, truncl): In C++, define a namespaced alias symbol.
12737         * modules/math (Depends-on): Add c++defs.
12738         (Makefile.am): Update math.h rule.
12739
12740         locale: Avoid #define replacements in C++ mode.
12741         * lib/locale.in.h: Include c++defs.h.
12742         (duplocale): In C++, define a namespaced alias symbol.
12743         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
12744         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
12745         * modules/locale (Depends-on): Add c++defs.
12746         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
12747
12748         langinfo: Avoid #define replacements in C++ mode.
12749         * lib/langinfo.in.h: Include c++defs.h.
12750         (nl_langinfo): In C++, define a namespaced alias symbol.
12751         * modules/langinfo (Depends-on): Add c++defs.
12752         (Makefile.am): Update langinfo.h rule.
12753
12754         iconv-h: Avoid #define replacements in C++ mode.
12755         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
12756         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
12757         symbol.
12758         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12759         whenever iconv is present.
12760         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
12761         (Makefile.am): Update iconv.h rule.
12762
12763         glob: Avoid #define replacements in C++ mode.
12764         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
12765         (_gl_glob_errfunc_fn): New type.
12766         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
12767         symbol.
12768         * modules/glob (Depends-on): Add c++defs, warn-on-use.
12769         (Makefile.am): Update glob.h rule.
12770
12771         fcntl-h: Avoid #define replacements in C++ mode.
12772         * lib/fcntl.in.h: Include c++defs.h.
12773         (fcntl, open, openat): In C++, define a namespaced alias symbol.
12774         * modules/fcntl-h (Depends-on): Add c++defs.
12775         (Makefile.am): Update fcntl.h rule.
12776
12777         dirent: Avoid #define replacements in C++ mode.
12778         * lib/dirent.in.h: Include c++defs.h.
12779         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
12780         namespaced alias symbol.
12781         (dirfd): Update declaration.
12782         * modules/dirent (Depends-on): Add c++defs.
12783         (Makefile.am): Update dirent.h rule.
12784
12785         ctype: Make it usable in C++ code.
12786         * lib/ctype.in.h: Include c++defs.h.
12787         (isblank): Declare as extern "C".
12788         * modules/ctype (Depends-on): Add c++defs.
12789         (Makefile.am): Update ctype.h rule.
12790
12791         New module 'c++defs'.
12792         * modules/c++defs: New file.
12793         * build-aux/c++defs.h: New file.
12794         Reported by John W. Eaton <jwe@gnu.org>.
12795
12796 2010-03-07  Bruno Haible  <bruno@clisp.org>
12797
12798         logb: Provide missing declaration for Cygwin.
12799         * lib/math.in.h (logb): New declaration.
12800         * m4/logb.m4: New file.
12801         * modules/logb (Files): Add m4/logb.m4.
12802         (Depends-on): Add math.
12803         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
12804         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
12805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
12806         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
12807         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
12808
12809 2010-03-07  Bruno Haible  <bruno@clisp.org>
12810
12811         Fix test-cond link error.
12812         * tests/test-cond.c: Include <stdio.h>.
12813
12814 2010-03-07  Bruno Haible  <bruno@clisp.org>
12815
12816         Fix test-dirent-safer link error.
12817         * modules/dirent-safer-tests (Makefile.am): Define
12818         test_dirent_safer_LDADD.
12819
12820 2010-03-07  Bruno Haible  <bruno@clisp.org>
12821
12822         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
12823         among default module list.
12824
12825 2010-03-07  Bruno Haible  <bruno@clisp.org>
12826
12827         Fix link error on platforms with GNU libiconv.
12828         * modules/unistr/u8-strcoll-tests (Makefile): Define
12829         test_u8_strcoll_LDADD.
12830         * modules/unistr/u16-strcoll-tests (Makefile): Define
12831         test_u16_strcoll_LDADD.
12832         * modules/unistr/u32-strcoll-tests (Makefile): Define
12833         test_u32_strcoll_LDADD.
12834
12835 2010-03-07  Bruno Haible  <bruno@clisp.org>
12836
12837         Use POSIX declarations for socket functions.
12838         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
12839         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
12840         rpl_sendto): Change declaration to match POSIX.
12841         * lib/connect.c (rpl_connect): Likewise.
12842         * lib/accept.c (rpl_accept): Likewise.
12843         * lib/bind.c (rpl_bind): Likewise.
12844         * lib/getpeername.c (rpl_getpeername): Likewise.
12845         * lib/getsockname.c (rpl_getsockname): Likewise.
12846         * lib/recv.c (rpl_recv): Likewise.
12847         * lib/send.c (rpl_send): Likewise.
12848         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12849         * lib/sendto.c (rpl_sendto): Likewise.
12850
12851 2010-03-06  Bruno Haible  <bruno@clisp.org>
12852
12853         Clarify access, euidaccess, faccessat.
12854         * doc/posix-functions/faccessat.texi: Mention security problem under
12855         "Other problems", not "Portability problems".
12856         * doc/posix-functions/access.texi: Likewise. Mention a related security
12857         problem.
12858         * doc/glibc-functions/euidaccess.texi: Mention security problems.
12859         * lib/euidaccess.c: Add comments about platforms.
12860         * lib/unistd.in.h (access, euidaccess): Add warnings.
12861
12862 2010-03-07  Bruno Haible  <bruno@clisp.org>
12863
12864         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
12865         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
12866         (POSIX_SPAWN_SETSCHEDULER): Likewise.
12867         (POSIX_SPAWN_USEVFORK): Define in a way that works when
12868         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12869         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
12870         declare when POSIX_SPAWN_SETSCHEDULER is zero.
12871         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
12872         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
12873         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
12874         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
12875         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
12876         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
12877         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
12878         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
12879         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
12880         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
12881         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
12882         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
12883         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
12884         Likewise.
12885         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
12886         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
12887         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
12888         Likewise.
12889         * tests/test-spawn.c (main): Make it work when
12890         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12891
12892 2010-03-07  Bruno Haible  <bruno@clisp.org>
12893
12894         Fix incorrect Makefile.am generation in German locale.
12895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12896         Execute sed command with character range in C locale.
12897
12898 2010-03-06  Bruno Haible  <bruno@clisp.org>
12899
12900         Tests for module 'iconv-h'.
12901         * modules/iconv-h-tests: New file.
12902         * tests/test-iconv-h.c: New file.
12903
12904         New module 'iconv-h'.
12905         * modules/iconv-h: New file.
12906         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
12907         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
12908         (configure.ac): Remove gl_ICONV_H.
12909         (Makefile.am): Remove rule for iconv.h.
12910
12911 2010-03-06  Bruno Haible  <bruno@clisp.org>
12912
12913         More consistent naming of *.m4 files.
12914         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
12915         * modules/wctype (Files): Update.
12916
12917         More consistent naming of *.m4 files.
12918         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
12919         * modules/wchar (Files): Update.
12920
12921 2010-03-06  Jim Meyering  <meyering@redhat.com>
12922
12923         euidaccess: relax license to LGPLv2+
12924         * modules/euidaccess (License): Relax to LGPLv2+.
12925
12926 2010-03-06  Bruno Haible  <bruno@clisp.org>
12927
12928         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
12929         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
12930         (Makefile.am): Augment lib_SOURCES instead.
12931
12932 2010-03-04  Jim Meyering  <meyering@redhat.com>
12933
12934         utime: remove obsolete module
12935         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
12936         unnecessary for years, and has been marked as obsolete for 10 months.
12937         * modules/utime: Remove file.
12938         * lib/utime.c: Remove file.
12939         * m4/utime.m4: Remove file.
12940         * m4/utimes-null.m4: Remove file.
12941         * doc/posix-functions/utime.texi (utime): Remove reference to
12942         the module.  Move the sole "fixed by gnulib" item into the
12943         "problems not fixed by Gnulib" list.
12944         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
12945
12946 2010-03-05  Simon Josefsson  <simon@josefsson.org>
12947
12948         * modules/exit (License): Relax license to LGPLv2+.
12949         (Status): Mark as obsolete.
12950         * NEWS: Mention deprecated 'exit' module.
12951         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
12952         of now obsolete 'exit'.
12953
12954 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12955
12956         fts-lgpl: remove unused module
12957         * modules/fts-lgpl: Remove.
12958         * MODULES.html.sh (func_all_modules): Adjust.
12959         * check-module (find_included_lib_files): Adjust.
12960         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
12961
12962 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
12963
12964         copy-acl: enhance Solaris ACL error handling
12965         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
12966         * lib/set-mode-acl.c (qset_acl): Likewise.
12967
12968 2010-03-02  Bruno Haible  <bruno@clisp.org>
12969
12970         spawn: Don't override the system defined values on FreeBSD 8.
12971         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
12972         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
12973         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
12974         if HAVE_POSIX_SPAWN is 1.
12975         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
12976
12977 2010-03-01  Bruno Haible  <bruno@clisp.org>
12978
12979         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
12980         regarding Automake.
12981
12982 2010-02-25  Bruno Haible  <bruno@clisp.org>
12983
12984         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
12985         * gnulib-tool: Define 'echo' as a function only before the ksh alias
12986         setting, not afterwards.
12987         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
12988
12989 2010-02-24  Eric Blake  <eblake@redhat.com>
12990
12991         bootstrap, git-version-gen: use timestamp
12992         * build-aux/git-version-gen (scriptversion): Force UTC.
12993         * build-aux/bootstrap (scriptversion): New variable.
12994
12995         bootstrap: allow older git
12996         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
12997         older than 1.6.4.  Requested by the libvirt project.
12998
12999 2010-02-23  Eric Blake  <eblake@redhat.com>
13000
13001         warn-on-use: work with old autoconf
13002         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
13003         AS_VAR semantics of autoconf 2.60.
13004         Reported by Bruno Haible.
13005
13006         bootstrap: improve some comments
13007         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
13008         clarification comments.
13009
13010         gettimeofday: provide correct function
13011         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
13012         when replacement is declared, otherwise provide gettimeofday.
13013         Reported by Michael Goffioul.
13014
13015 2010-02-23  Jim Meyering  <meyering@redhat.com>
13016
13017         lib-ignore: relax license to "unlimited", not LGPLv2+
13018         * modules/lib-ignore (License): Relax to "unlimited".
13019
13020 2010-02-23  Jim Meyering  <meyering@redhat.com>
13021
13022         lib-ignore: relax license to LGPLv2+
13023         * modules/lib-ignore (License): Relax to LGPLv2+.
13024
13025 2010-02-22  Eric Blake  <eblake@redhat.com>
13026
13027         lseek: avoid bash 3.2 broken pipe bug
13028         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
13029         warning from bash 3.2.
13030         Reported by Ben Pfaff, with analysis from Bruno Haible.
13031
13032         bootstrap: support non-FSF copyright holder
13033         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
13034         bootstrap.conf override of COPYRIGHT_HOLDER.
13035         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
13036
13037         bootstrap: interoperate with gettext 0.14.1
13038         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
13039
13040         bootstrap: allow for alternate submodule location
13041         * build-aux/bootstrap (gnulib_path): New variable; use instead of
13042         hardcoding submodule location.
13043         (gnulib_mk): Allow direct use of Makefile.am.
13044
13045         bootstrap: use GNULIB_SRCDIR to reduce disk usage
13046         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
13047         rather than reconfiguring where the submodule points.
13048
13049         gettimeofday: restore support for platforms that lack function
13050         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
13051         replacement if function is missing.
13052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
13053         * modules/sys_time (Makefile.am): Substitute it.
13054         * lib/sys_time.in.h (gettimeofday): Check it.
13055         Reported by Michael Goffioul.
13056
13057 2010-02-21  Bruno Haible  <bruno@clisp.org>
13058
13059         * lib/stdio.in.h (obstack_printf): Fix typo.
13060
13061 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
13062
13063         vc-list-files: use bzr ls's -R option
13064         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
13065         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
13066
13067 2010-02-21  Jim Meyering  <meyering@redhat.com>
13068
13069         init.sh: fix EXEEXT shims to work also for names like test-prog
13070         * tests/init.sh: Re-exec a better shell, when needed.
13071         If the current shell lacks support for posix $(...), an init.sh-using
13072         test will now try to find a shell that supports that.  If EXEEXT is
13073         nonempty, we also require support for hyphen-in-alias-name and shell
13074         substitutions like ${var#glob}.  Failure to find such a shell results
13075         in a skipped test.
13076
13077 2010-02-21  Bruno Haible  <bruno@clisp.org>
13078
13079         Really work around around "broken pipe" error message from bash 3.2.
13080         * gnulib-tool (func_reset_sigpipe): Remove function.
13081         (echo): In bash 3.2, define to a function that uses printf.
13082         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
13083
13084 2010-02-20  Bruno Haible  <bruno@clisp.org>
13085
13086         Restore support for automake 1.9.6 with autoconf 2.61.
13087         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
13088         Reported by James Youngman <jay@gnu.org>.
13089
13090 2010-02-20  Bruno Haible  <bruno@clisp.org>
13091
13092         Improve *printf warning condition.
13093         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
13094         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
13095         and the function is overridden due to SIGPIPE emulation.
13096
13097 2010-02-20  Bruno Haible  <bruno@clisp.org>
13098
13099         * lib/stdio.in.h: Tweak comments.
13100
13101 2010-02-19  Bruno Haible  <bruno@clisp.org>
13102
13103         Make it easier to find modules. New gnulib-tool option '--find'.
13104         * gnulib-tool: New option --find.
13105         (func_usage): Document it.
13106         (func_sanitize_modulelist): New function, extracted from
13107         func_all_modules.
13108         (func_all_modules): Invoke it.
13109         * doc/gnulib-tool.texi (Which modules?): New node.
13110
13111 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
13112
13113         * lib/sys_select.in.h: Provide select replacement even if
13114         sys/select.h exists on a system, for Interix.
13115
13116 2010-02-18  Jim Meyering  <meyering@redhat.com>
13117
13118         init.sh: don't use $(...) just yet
13119         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
13120         to accommodate e.g., Solaris' /bin/sh.
13121
13122 2010-02-17  Bruno Haible  <bruno@clisp.org>
13123
13124         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
13125         Reported by Ludovic Courtès <ludo@gnu.org>.
13126
13127 2010-02-16  Simon Josefsson  <simon@josefsson.org>
13128
13129         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
13130         linking with -lintl.
13131
13132 2010-02-17  Simon Josefsson  <simon@josefsson.org>
13133
13134         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
13135         if not provided by the system's netdb.h.  Reported by
13136         ludo@gnu.org (Ludovic Courtès).
13137
13138 2010-02-15  Jim Meyering  <meyering@redhat.com>
13139
13140         init.sh: improve portability and efficiency
13141         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
13142         "dummy" in a for loop.
13143         Use '!', not '^' to select the complement of a character set used
13144         in a "case" statement.
13145         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
13146         Suggestions from Eric Blake.
13147
13148         init.sh: automatically accommodate programs with the .exe suffix
13149         Automatically arrange for an invocation of "prog" to execute the
13150         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
13151         may use the simpler "prog", yet still work when built on a system
13152         that requires specifying the added suffix.
13153         Do this by constructing a function named "prog" that invokes
13154         "prog.exe" for each .exe file in selected directories.
13155         * tests/init.sh (find_exe_basenames_): New function.
13156         (create_exe_shim_functions_): New function.
13157         (path_prepend_): Use it.
13158
13159         maint.mk: mark syntax-check sc_*.m rules as .PHONY
13160         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
13161         "make -t syntax-check" doesn't create a ton of sc_*.m files.
13162
13163 2010-02-14  Jim Meyering  <meyering@redhat.com>
13164
13165         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
13166         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
13167         (sc_prohibit_hash_pjw_without_use): New rule.
13168
13169         maint.mk: allow the default upload destination dir to be overridden
13170         * top/maint.mk (upload_dest_dir_): Define with a default that
13171         preserves the status quo.
13172         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
13173         Reported by Peter Simons.
13174
13175         maint.mk: prohibit inclusion of "hash.h" without_use
13176         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
13177
13178 2010-02-10  Jim Meyering  <meyering@redhat.com>
13179
13180         maint.mk: prohibit inclusion of "ignore-value.h" without_use
13181         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
13182
13183 2010-02-09  Eric Blake  <ebb9@byu.net>
13184         and Bruno Haible  <bruno@clisp.org>
13185
13186         obstack-printf-posix: ensure declaration
13187         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
13188         extracted from gl_FUNC_OBSTACK_PRINTF.
13189         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
13190         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13191         Likewise.
13192         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
13193         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
13194         0.
13195
13196 2010-02-08  Bruno Haible  <bruno@clisp.org>
13197
13198         gnulib-tool: Fix typo in 2010-02-07 commit.
13199         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
13200         Reported by Eric Blake.
13201
13202 2010-02-07  Bruno Haible  <bruno@clisp.org>
13203
13204         gnulib-tool: Fix up caching patches.
13205         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
13206         option --no-cache. Use associative arrays when supported by the shell.
13207         (sed_comments): New variable.
13208         (modcache): Renamed from do_cache.
13209         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
13210         abbreviate unnecessarily.
13211         (have_associative): New variable.
13212         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
13213         way also for ksh and zsh.
13214         (func_init_sed_convert_to_cache_statements): New function, extracted
13215         from func_cache_lookup_module. Add support for associative arrays.
13216         Don't set the c_MODULE_cached variable here. Ignore all lines before
13217         the first field header. Remove only the final newline, not all trailing
13218         newlines. Support empty fields correctly. Limit the use of 'eval' to
13219         assignments.
13220         (func_get_description, func_get_status, func_get_notice,
13221         func_get_applicability, func_get_filelist, func_get_dependencies,
13222         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
13223         func_get_automake_snippet, func_get_include_directive,
13224         func_get_link_directive, func_get_license, func_get_maintainer):
13225         Update documentation. List the unoptimized code first. Add support for
13226         associative arrays. Limit the use of 'eval' to assignments.
13227         (func_get_applicability): Undo stylistic pessimisations.
13228         (func_get_automake_snippet, func_get_include_directive): Reduce code
13229         duplication.
13230         (func_modules_transitive_closure, func_modules_add_dummy,
13231         func_modules_notice, func_modules_to_filelist, func_add_file,
13232         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
13233         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
13234         func_create_testdir, func_create_megatestdir): Update documentation.
13235
13236 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13237
13238         * gnulib-tool (func_cache_lookup_module): Store the module name
13239         belonging to the cache variable; error out if two different
13240         module names map to the same cache variable name.
13241
13242 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13243
13244         gnulib-tool: Make caching optional.
13245         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
13246         Update matching short versions of --no-changelog.
13247         (func_usage): Update.
13248         (sed_extract_cache_prog): Renamed from ...
13249         (sed_extract_prog): ... this; revert to old extraction script.
13250         (func_get_description, func_get_status)
13251         (func_get_notice, func_get_applicability, func_get_filelist)
13252         (func_get_dependencies, func_get_autoconf_early_snippet)
13253         (func_get_autoconf_snippet, func_get_automake_snippet)
13254         (func_get_include_directive, func_get_link_directive)
13255         (func_get_license, func_get_maintainer): If $do_cache is false,
13256         use old, non-caching extraction scripts.
13257         Suggestion by Bruno Haible.
13258
13259 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13260
13261         gnulib-tool: cache module metainformation.
13262         * gnulib-tool (sed_extract_prog): Match newline before each
13263         header, and rewrite header to a shell variable suffix.
13264         (func_cache_var, func_cache_lookup_module): New functions,
13265         to turn a module name into a cache variable prefix, and to
13266         look up and cache module metainformation.
13267         (func_get_description, func_get_status)
13268         (func_get_notice, func_get_applicability, func_get_filelist)
13269         (func_get_dependencies, func_get_autoconf_early_snippet)
13270         (func_get_autoconf_snippet, func_get_automake_snippet)
13271         (func_get_include_directive, func_get_link_directive)
13272         (func_get_license, func_get_maintainer): Use
13273         func_cache_lookup_module.
13274
13275 2010-02-07  Bruno Haible  <bruno@clisp.org>
13276
13277         fnctl: Fix missing dependency.
13278         * modules/fcntl (Depends-on): Add getdtablesize.
13279         Reported by John W. Eaton <jwe@gnu.org>.
13280
13281 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13282
13283         Argp: fix recognition of short alias options.
13284
13285         * lib/argp-parse.c (convert_options): Fix improper use of
13286         `|' between character values.
13287         * tests/test-argp.c (group1_option): New alias option
13288         --read (-r).
13289         (group1_parser): Special handling for 'r'.
13290         (test15): New test case.
13291         (test_fun): Add test15.
13292         * tests/test-argp-2.sh: Update expected --help and --usage
13293         outputs.
13294
13295 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13296
13297         * tests/test-argp.c: Fix indentation.
13298
13299 2010-02-04  Eric Blake  <ebb9@byu.net>
13300
13301         gettimeofday: expose type of second argument
13302         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
13303         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
13304         * tests/test-gettimeofday.c: Use it to silence warning.
13305         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
13306         the issue.
13307
13308 2010-02-03  Jim Meyering  <meyering@redhat.com>
13309
13310         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
13311         * lib/regcomp.c (TYPE_SIGNED): Define.
13312         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
13313
13314         regcomp.c: avoid a new -Wshadow warning
13315         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
13316
13317 2010-02-01  Jim Meyering  <meyering@redhat.com>
13318
13319         removing useless parentheses in cpp #define directives
13320         For motivation, see commit c0221df4, "define STREQ(a,b)
13321         consistently, removing useless parentheses"
13322         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
13323         * lib/mountlist.c (MNT_IGNORE): Likewise.
13324         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
13325
13326 2010-02-01  Eric Blake  <ebb9@byu.net>
13327
13328         sys_time: use link-warning
13329         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
13330         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
13331         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
13332         * modules/sys_time (Depends-on): Add warn-on-use.
13333         (Makefile.am): Always build replacement.
13334         (configure.ac): Update substitutions.
13335         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
13336         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
13337         bother with SYS_TIME_H.
13338         * modules/gettimeofday (configure.ac): Declare indicator.
13339         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
13340         in use.
13341
13342         closein-tests: silence compiler warning
13343         * tests/test-closein.c (main): Ignore fread result.
13344         * modules/closein-tests (Depends-on): Add ignore-value.
13345
13346         tests: silence warning about system return
13347         * tests/test-areadlink-with-size.c (main): Ignore system result.
13348         * tests/test-areadlink.c (main): Likewise.
13349         * tests/test-areadlinkat-with-size.c (main): Likewise.
13350         * tests/test-areadlinkat.c (main): Likewise.
13351         * tests/test-canonicalize-lgpl.c (main): Likewise.
13352         * tests/test-canonicalize.c (main): Likewise.
13353         * tests/test-chown.c (main): Likewise.
13354         * tests/test-fchownat.c (main): Likewise.
13355         * tests/test-fdutimensat.c (main): Likewise.
13356         * tests/test-fstatat.c (main): Likewise.
13357         * tests/test-futimens.c (main): Likewise.
13358         * tests/test-lchown.c (main): Likewise.
13359         * tests/test-link.c (main): Likewise.
13360         * tests/test-linkat.c (main): Likewise.
13361         * tests/test-lstat.c (main): Likewise.
13362         * tests/test-mkdir.c (main): Likewise.
13363         * tests/test-mkdirat.c (main): Likewise.
13364         * tests/test-mkfifo.c (main): Likewise.
13365         * tests/test-mkfifoat.c (main): Likewise.
13366         * tests/test-mknod.c (main): Likewise.
13367         * tests/test-readlink.c (main): Likewise.
13368         * tests/test-remove.c (main): Likewise.
13369         * tests/test-rename.c (main): Likewise.
13370         * tests/test-renameat.c (main): Likewise.
13371         * tests/test-rmdir.c (main): Likewise.
13372         * tests/test-symlink.c (main): Likewise.
13373         * tests/test-symlinkat.c (main): Likewise.
13374         * tests/test-unlink.c (main): Likewise.
13375         * tests/test-unlinkat.c (main): Likewise.
13376         * tests/test-utimens.c (main): Likewise.
13377         * tests/test-utimensat.c (main): Likewise.
13378         * modules/areadlink-tests (Depends-on): Add ignore-value.
13379         * modules/areadlink-with-size-tests (Depends-on): Likewise.
13380         * modules/areadlinkat-tests (Depends-on): Likewise.
13381         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
13382         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13383         * modules/canonicalize-tests (Depends-on): Likewise.
13384         * modules/chown-tests (Depends-on): Likewise.
13385         * modules/fdutimensat-tests (Depends-on): Likewise.
13386         * modules/futimens-tests (Depends-on): Likewise.
13387         * modules/lchown-tests (Depends-on): Likewise.
13388         * modules/link-tests (Depends-on): Likewise.
13389         * modules/linkat-tests (Depends-on): Likewise.
13390         * modules/lstat-tests (Depends-on): Likewise.
13391         * modules/mkdir-tests (Depends-on): Likewise.
13392         * modules/mkfifo-tests (Depends-on): Likewise.
13393         * modules/mkfifoat-tests (Depends-on): Likewise.
13394         * modules/mknod-tests (Depends-on): Likewise.
13395         * modules/openat-tests (Depends-on): Likewise.
13396         * modules/readlink-tests (Depends-on): Likewise.
13397         * modules/remove-tests (Depends-on): Likewise.
13398         * modules/rename-tests (Depends-on): Likewise.
13399         * modules/renameat-tests (Depends-on): Likewise.
13400         * modules/rmdir-tests (Depends-on): Likewise.
13401         * modules/symlink-tests (Depends-on): Likewise.
13402         * modules/symlinkat-tests (Depends-on): Likewise.
13403         * modules/unlink-tests (Depends-on): Likewise.
13404         * modules/utimens-tests (Depends-on): Likewise.
13405         * modules/utimensat-tests (Depends-on): Likewise.
13406
13407 2010-01-31  Bruno Haible  <bruno@clisp.org>
13408
13409         Perform the same test for many <math.h> functions.
13410         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
13411         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
13412         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
13413         of gl_MATHFUNC.
13414         * modules/acos (configure.ac): Likewise.
13415         * modules/asin (configure.ac): Likewise.
13416         * modules/atan (configure.ac): Likewise.
13417         * modules/atan2 (configure.ac): Likewise.
13418         * modules/cbrt (configure.ac): Likewise.
13419         * modules/copysign (configure.ac): Likewise.
13420         * modules/cos (configure.ac): Likewise.
13421         * modules/cosh (configure.ac): Likewise.
13422         * modules/erf (configure.ac): Likewise.
13423         * modules/erfc (configure.ac): Likewise.
13424         * modules/exp (configure.ac): Likewise.
13425         * modules/fmod (configure.ac): Likewise.
13426         * modules/hypot (configure.ac): Likewise.
13427         * modules/j0 (configure.ac): Likewise.
13428         * modules/j1 (configure.ac): Likewise.
13429         * modules/jn (configure.ac): Likewise.
13430         * modules/lgamma (configure.ac): Likewise.
13431         * modules/log (configure.ac): Likewise.
13432         * modules/log10 (configure.ac): Likewise.
13433         * modules/log1p (configure.ac): Likewise.
13434         * modules/pow (configure.ac): Likewise.
13435         * modules/remainder (configure.ac): Likewise.
13436         * modules/sin (configure.ac): Likewise.
13437         * modules/sinh (configure.ac): Likewise.
13438         * modules/tan (configure.ac): Likewise.
13439         * modules/tanh (configure.ac): Likewise.
13440         * modules/y0 (configure.ac): Likewise.
13441         * modules/y1 (configure.ac): Likewise.
13442         * modules/yn (configure.ac): Likewise.
13443         Suggested by Paolo Bonzini.
13444
13445 2010-01-31  Bruno Haible  <bruno@clisp.org>
13446
13447         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
13448
13449 2010-01-31  Bruno Haible  <bruno@clisp.org>
13450
13451         Work around getdelim() bug on FreeBSD 8.0.
13452         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
13453         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
13454         not work.
13455         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
13456         is 1.
13457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
13458         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
13459         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
13460         a non-zero size.
13461         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
13462
13463 2010-01-31  Bruno Haible  <bruno@clisp.org>
13464
13465         Work around getline() bug on FreeBSD 8.0.
13466         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
13467         and a non-zero size.
13468         * tests/test-getline.c (main): Likewise.
13469         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
13470         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
13471
13472 2010-01-28  Eric Blake  <ebb9@byu.net>
13473
13474         regex: fix build failure
13475         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
13476         platforms.
13477
13478 2010-01-28  Jim Meyering  <meyering@redhat.com>
13479
13480         regex: do not ignore memory allocation failure
13481         * lib/regex_internal.c (create_cd_newstate): Detect
13482         re_node_set_init_copy failure.   Extracted from glibc commit
13483         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13484
13485         regex: sync more white-space changes from libc
13486         * lib/regex_internal.c: White-space only changes.
13487         * lib/regexec.c: Likewise.
13488
13489         regex: add many uses of __attribute_warn_unused_result__
13490         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
13491         * lib/regexec.c: Likewise.
13492         Extracted from a messy glibc commit.
13493
13494         regcomp.c: spelling and merge-artifact from glibc
13495         * lib/regcomp.c: Merge remainder of glibc's
13496         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13497
13498         regcomp.c: sync white-space changes from glibc
13499         * lib/regcomp.c: Merge to accommodate white space
13500         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13501
13502         regcomp.c: do not ignore internal return values
13503         * lib/regcomp.c: Do not ignore internal return values.
13504         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
13505         but without its white-space changes and spelling fixes.
13506
13507         regex_internal.h: define __attribute_warn_unused_result__
13508         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
13509
13510         maint: add a syntax-check rule to check for vulnerable Makefile.in
13511         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
13512
13513 2010-01-27  Jim Meyering  <meyering@redhat.com>
13514
13515         ncftpput-ftp: clean up spaces
13516         * build-aux/ncftpput-ftp: Make Copyright line consistent.
13517         Remove trailing blanks.
13518
13519 2010-01-27  Simon Josefsson  <simon@josefsson.org>
13520
13521         * build-aux/git-version-gen: Fix copyright statement.
13522         * build-aux/gnupload: Likewise.
13523         * tests/test-arcfour.c: Likewise.
13524         * tests/test-arctwo.c: Likewise.
13525         * tests/test-count-one-bits.c: Likewise.
13526         * tests/test-crc.c: Likewise.
13527         * tests/test-des.c: Likewise.
13528         * tests/test-gc-arcfour.c: Likewise.
13529         * tests/test-gc-arctwo.c: Likewise.
13530         * tests/test-gc-des.c: Likewise.
13531         * tests/test-gc-hmac-md5.c: Likewise.
13532         * tests/test-gc-hmac-sha1.c: Likewise.
13533         * tests/test-gc-md2.c: Likewise.
13534         * tests/test-gc-md4.c: Likewise.
13535         * tests/test-gc-md5.c: Likewise.
13536         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13537         * tests/test-gc-rijndael.c: Likewise.
13538         * tests/test-gc-sha1.c: Likewise.
13539         * tests/test-gc.c: Likewise.
13540         * tests/test-gethostname.c: Likewise.
13541         * tests/test-gettimeofday.c: Likewise.
13542         * tests/test-hash.c: Likewise.
13543         * tests/test-hmac-md5.c: Likewise.
13544         * tests/test-hmac-sha1.c: Likewise.
13545         * tests/test-md2.c: Likewise.
13546         * tests/test-md4.c: Likewise.
13547         * tests/test-md5.c: Likewise.
13548         * tests/test-memchr.c: Likewise.
13549         * tests/test-memchr2.c: Likewise.
13550         * tests/test-memcmp.c: Likewise.
13551         * tests/test-memmem.c: Likewise.
13552         * tests/test-memrchr.c: Likewise.
13553         * tests/test-rawmemchr.c: Likewise.
13554         * tests/test-read-file.c: Likewise.
13555         * tests/test-rijndael.c: Likewise.
13556         * tests/test-sockets.c: Likewise.
13557         * tests/test-strchrnul.c: Likewise.
13558         * tests/test-strstr.c: Likewise.
13559         * tests/test-strtod.c: Likewise.
13560         * build-aux/ncftpput-ftp: Likewise.
13561
13562 2010-01-26  Eric Blake  <ebb9@byu.net>
13563
13564         ignore-value: update recommended header name
13565         * modules/ignore-value (Include): Only use <> for headers that
13566         exist in glibc.
13567
13568 2010-01-26  Jim Meyering  <meyering@redhat.com>
13569
13570         test-userspec.c: avoid compiler warnings
13571         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
13572         and "initialization discards qualifiers..." warnings.
13573         Put the first "uid" in its own scope, and make char* members "const".
13574
13575 2010-01-25  Bruno Haible  <bruno@clisp.org>
13576
13577         gnulib-tool: Make warning diagnostics consistent.
13578         * gnulib-tool (func_warning): New function.
13579         Use it everywhere where gnulib-tool produces output to stderr and it is
13580         not a fatal error.
13581
13582 2010-01-25  Bruno Haible  <bruno@clisp.org>
13583
13584         Fix test dependencies.
13585         * modules/xstrtol-tests (Depends-on): Add inttypes.
13586         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
13587
13588 2010-01-25 Pádraig Brady <P@draigBrady.com>
13589
13590         syntax-check: detect incorrect boolean macro values in config.h
13591         * modules/maintainer-makefile (configure.ac): Parameterize the location
13592         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
13593         The logic is from Eric Blake and the location indicated by Jim Meyering.
13594         Note the more natural CONFIG_HEADER name is prohibited by automake
13595         for backwards compatibility reasons.
13596         * top/maint.mk (sc_Wundef_boolean): New rule.
13597
13598 2010-01-25  Jim Meyering  <meyering@redhat.com>
13599
13600         bootstrap: detect MacOS 10.6's shasum, too
13601         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
13602         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
13603
13604 2010-01-23  Jim Meyering  <meyering@redhat.com>
13605
13606         xstrtoll: new module
13607         * modules/xstrtoll: New file.
13608         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
13609         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
13610         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
13611         ./configure fails if you use this module and lack "long long".
13612         * modules/xstrtoll-tests: New module.
13613         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
13614         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
13615         new init.sh-based test framework.
13616
13617 2010-01-24  Bruno Haible  <bruno@clisp.org>
13618
13619         Tests for module 'yn'.
13620         * modules/yn-tests: New file.
13621         * tests/test-yn.c: New file.
13622
13623         Tests for module 'y1'.
13624         * modules/y1-tests: New file.
13625         * tests/test-y1.c: New file.
13626
13627         Tests for module 'y0'.
13628         * modules/y0-tests: New file.
13629         * tests/test-y0.c: New file.
13630
13631         Tests for module 'tanh'.
13632         * modules/tanh-tests: New file.
13633         * tests/test-tanh.c: New file.
13634
13635         Tests for module 'tan'.
13636         * modules/tan-tests: New file.
13637         * tests/test-tan.c: New file.
13638
13639         Tests for module 'sqrt'.
13640         * modules/sqrt-tests: New file.
13641         * tests/test-sqrt.c: New file.
13642
13643         Tests for module 'sinh'.
13644         * modules/sinh-tests: New file.
13645         * tests/test-sinh.c: New file.
13646
13647         Tests for module 'sin'.
13648         * modules/sin-tests: New file.
13649         * tests/test-sin.c: New file.
13650
13651         Tests for module 'rint'.
13652         * modules/rint-tests: New file.
13653         * tests/test-rint.c: New file.
13654
13655         Tests for module 'remainder'.
13656         * modules/remainder-tests: New file.
13657         * tests/test-remainder.c: New file.
13658
13659         Tests for module 'pow'.
13660         * modules/pow-tests: New file.
13661         * tests/test-pow.c: New file.
13662
13663         Tests for module 'nextafter'.
13664         * modules/nextafter-tests: New file.
13665         * tests/test-nextafter.c: New file.
13666
13667         Tests for module 'modf'.
13668         * modules/modf-tests: New file.
13669         * tests/test-modf.c: New file.
13670
13671         Tests for module 'logb'.
13672         * modules/logb-tests: New file.
13673         * tests/test-logb.c: New file.
13674
13675         Tests for module 'log1p'.
13676         * modules/log1p-tests: New file.
13677         * tests/test-log1p.c: New file.
13678
13679         Tests for module 'log10'.
13680         * modules/log10-tests: New file.
13681         * tests/test-log10.c: New file.
13682
13683         Tests for module 'log'.
13684         * modules/log-tests: New file.
13685         * tests/test-log.c: New file.
13686
13687         Tests for module 'lgamma'.
13688         * modules/lgamma-tests: New file.
13689         * tests/test-lgamma.c: New file.
13690
13691         Tests for module 'ldexp'.
13692         * modules/ldexp-tests: New file.
13693         * tests/test-ldexp.c: New file.
13694
13695         Tests for module 'jn'.
13696         * modules/jn-tests: New file.
13697         * tests/test-jn.c: New file.
13698
13699         Tests for module 'j1'.
13700         * modules/j1-tests: New file.
13701         * tests/test-j1.c: New file.
13702
13703         Tests for module 'j0'.
13704         * modules/j0-tests: New file.
13705         * tests/test-j0.c: New file.
13706
13707         Tests for module 'hypot'.
13708         * modules/hypot-tests: New file.
13709         * tests/test-hypot.c: New file.
13710
13711         Tests for module 'fmod'.
13712         * modules/fmod-tests: New file.
13713         * tests/test-fmod.c: New file.
13714
13715         Tests for module 'fabs'.
13716         * modules/fabs-tests: New file.
13717         * tests/test-fabs.c: New file.
13718
13719         Tests for module 'exp'.
13720         * modules/exp-tests: New file.
13721         * tests/test-exp.c: New file.
13722
13723         Tests for module 'erfc'.
13724         * modules/erfc-tests: New file.
13725         * tests/test-erfc.c: New file.
13726
13727         Tests for module 'erf'.
13728         * modules/erf-tests: New file.
13729         * tests/test-erf.c: New file.
13730
13731         Tests for module 'cosh'.
13732         * modules/cosh-tests: New file.
13733         * tests/test-cosh.c: New file.
13734
13735         Tests for module 'cos'.
13736         * modules/cos-tests: New file.
13737         * tests/test-cos.c: New file.
13738
13739         Tests for module 'copysign'.
13740         * modules/copysign-tests: New file.
13741         * tests/test-copysign.c: New file.
13742
13743         Tests for module 'cbrt'.
13744         * modules/cbrt-tests: New file.
13745         * tests/test-cbrt.c: New file.
13746
13747         Tests for module 'atan2'.
13748         * modules/atan2-tests: New file.
13749         * tests/test-atan2.c: New file.
13750
13751         Tests for module 'atan'.
13752         * modules/atan-tests: New file.
13753         * tests/test-atan.c: New file.
13754
13755         Tests for module 'asin'.
13756         * modules/asin-tests: New file.
13757         * tests/test-asin.c: New file.
13758
13759         Tests for module 'acos'.
13760         * modules/acos-tests: New file.
13761         * tests/test-acos.c: New file.
13762
13763 2010-01-24  Bruno Haible  <bruno@clisp.org>
13764
13765         Fix tests for common <math.h> functions.
13766         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
13767         code snippet that references the function pointer, rather than merely
13768         calling the function. Substitute the FUNC_LIBM variable.
13769         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
13770         * modules/acos (configure.ac): Likewise.
13771         * modules/asin (configure.ac): Likewise.
13772         * modules/atan (configure.ac): Likewise.
13773         * modules/atan2 (configure.ac): Likewise.
13774         * modules/cbrt (configure.ac): Likewise.
13775         * modules/copysign (configure.ac): Likewise.
13776         * modules/cos (configure.ac): Likewise.
13777         * modules/cosh (configure.ac): Likewise.
13778         * modules/erf (configure.ac): Likewise.
13779         * modules/erfc (configure.ac): Likewise.
13780         * modules/exp (configure.ac): Likewise.
13781         * modules/fabs (configure.ac): Likewise.
13782         * modules/fmod (configure.ac): Likewise.
13783         * modules/hypot (configure.ac): Likewise.
13784         * modules/j0 (configure.ac): Likewise.
13785         * modules/j1 (configure.ac): Likewise.
13786         * modules/jn (configure.ac): Likewise.
13787         * modules/ldexp (configure.ac): Likewise.
13788         * modules/lgamma (configure.ac): Likewise.
13789         * modules/log (configure.ac): Likewise.
13790         * modules/log10 (configure.ac): Likewise.
13791         * modules/log1p (configure.ac): Likewise.
13792         * modules/logb (configure.ac): Likewise.
13793         * modules/modf (configure.ac): Likewise.
13794         * modules/nextafter (configure.ac): Likewise.
13795         * modules/pow (configure.ac): Likewise.
13796         * modules/remainder (configure.ac): Likewise.
13797         * modules/rint (configure.ac): Likewise.
13798         * modules/sin (configure.ac): Likewise.
13799         * modules/sinh (configure.ac): Likewise.
13800         * modules/tan (configure.ac): Likewise.
13801         * modules/tanh (configure.ac): Likewise.
13802         * modules/y0 (configure.ac): Likewise.
13803         * modules/y1 (configure.ac): Likewise.
13804         * modules/yn (configure.ac): Likewise.
13805
13806 2010-01-24  Bruno Haible  <bruno@clisp.org>
13807
13808         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
13809         * tests/test-acosl.c (x): New variable.
13810         (main): Store argument in x and fetch it from x.
13811         * tests/test-asinl.c (x): New variable.
13812         (main): Store argument in x and fetch it from x.
13813         * tests/test-atanl.c (x): New variable.
13814         (main): Store argument in x and fetch it from x.
13815         * tests/test-cosl.c (x): New variable.
13816         (main): Store argument in x and fetch it from x.
13817         * tests/test-expl.c (x): New variable.
13818         (main): Store argument in x and fetch it from x.
13819         * tests/test-logl.c (x): New variable.
13820         (main): Store argument in x and fetch it from x.
13821         * tests/test-sinl.c (x): New variable.
13822         (main): Store argument in x and fetch it from x.
13823         * tests/test-sqrtl.c (x): New variable.
13824         (main): Store argument in x and fetch it from x.
13825         * tests/test-tanl.c (x): New variable.
13826         (main): Store argument in x and fetch it from x.
13827
13828 2010-01-24  Bruno Haible  <bruno@clisp.org>
13829
13830         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
13831         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
13832         assignments to the initial TESTS_ENVIRONMENT.
13833         * doc/gnulib.texi (Unit test modules): Document it.
13834         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
13835         TESTS_ENVIRONMENT.
13836         * modules/btowc-tests (Makefile.am): Likewise.
13837         * modules/c-stack-tests (Makefile.am): Likewise.
13838         * modules/c-strcase-tests (Makefile.am): Likewise.
13839         * modules/copy-file-tests (Makefile.am): Likewise.
13840         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
13841         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
13842         * modules/mbrtowc-tests (Makefile.am): Likewise.
13843         * modules/mbscasecmp-tests (Makefile.am): Likewise.
13844         * modules/mbscasestr-tests (Makefile.am): Likewise.
13845         * modules/mbschr-tests (Makefile.am): Likewise.
13846         * modules/mbscspn-tests (Makefile.am): Likewise.
13847         * modules/mbsinit-tests (Makefile.am): Likewise.
13848         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13849         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
13850         * modules/mbspbrk-tests (Makefile.am): Likewise.
13851         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13852         * modules/mbsrchr-tests (Makefile.am): Likewise.
13853         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
13854         * modules/mbsspn-tests (Makefile.am): Likewise.
13855         * modules/mbsstr-tests (Makefile.am): Likewise.
13856         * modules/nl_langinfo-tests (Makefile.am): Likewise.
13857         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
13858         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13859         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13860         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13861         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13862         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
13863         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13864         * modules/wcrtomb-tests (Makefile.am): Likewise.
13865         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
13866         * modules/wcsrtombs-tests (Makefile.am): Likewise.
13867         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
13868         assignments from TESTS_ENVIRONMENT.
13869         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
13870         augmentation.
13871         * modules/argp-version-etc-tests (Makefile.am): Likewise.
13872         * modules/atexit-tests (Makefile.am): Likewise.
13873         * modules/binary-io-tests (Makefile.am): Likewise.
13874         * modules/closein-tests (Makefile.am): Likewise.
13875         * modules/dprintf-posix-tests (Makefile.am): Likewise.
13876         * modules/exclude-tests (Makefile.am): Likewise.
13877         * modules/fflush-tests (Makefile.am): Likewise.
13878         * modules/fpending-tests (Makefile.am): Likewise.
13879         * modules/fprintf-posix-tests (Makefile.am): Likewise.
13880         * modules/freadahead-tests (Makefile.am): Likewise.
13881         * modules/freadptr-tests (Makefile.am): Likewise.
13882         * modules/freadseek-tests (Makefile.am): Likewise.
13883         * modules/fseek-tests (Makefile.am): Likewise.
13884         * modules/fseeko-tests (Makefile.am): Likewise.
13885         * modules/ftell-tests (Makefile.am): Likewise.
13886         * modules/ftello-tests (Makefile.am): Likewise.
13887         * modules/idpriv-drop-tests (Makefile.am): Likewise.
13888         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
13889         * modules/lseek-tests (Makefile.am): Likewise.
13890         * modules/parse-duration-tests (Makefile.am): Likewise.
13891         * modules/perror-tests (Makefile.am): Likewise.
13892         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
13893         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
13894         * modules/pipe-tests (Makefile.am): Likewise.
13895         * modules/pread-tests (Makefile.am): Likewise.
13896         * modules/printf-posix-tests (Makefile.am): Likewise.
13897         * modules/select-tests (Makefile.am): Likewise.
13898         * modules/sigpipe-tests (Makefile.am): Likewise.
13899         * modules/tsearch-tests (Makefile.am): Likewise.
13900         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
13901         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
13902         * modules/uniname/uniname-tests (Makefile.am): Likewise.
13903         * modules/uniwidth/width-tests (Makefile.am): Likewise.
13904         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
13905         * modules/version-etc-tests (Makefile.am): Likewise.
13906         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13907         * modules/vprintf-posix-tests (Makefile.am): Likewise.
13908         * modules/xalloc-die-tests (Makefile.am): Likewise.
13909         * modules/xprintf-posix-tests (Makefile.am): Likewise.
13910         * modules/xstrtoimax-tests (Makefile.am): Likewise.
13911         * modules/xstrtol-tests (Makefile.am): Likewise.
13912         * modules/xstrtoumax-tests (Makefile.am): Likewise.
13913         * modules/yesno-tests (Makefile.am): Likewise.
13914         Suggested by Jim Meyering.
13915
13916 2010-01-24  Bruno Haible  <bruno@clisp.org>
13917
13918         More documentation.
13919         * doc/gnulib.texi (Writing modules): New chapter.
13920         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
13921         the new chapter.
13922
13923 2010-01-24  Jim Meyering  <meyering@redhat.com>
13924
13925         maint.mk: do not prepend "./" after filtering
13926         * top/maint.mk (_prepend_srcdir_prefix): New variable
13927         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
13928         "./" when $(srcdir) is ".".
13929
13930         define STREQ(a,b) consistently, removing useless parentheses
13931         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
13932         since the only risk is that "a" or "b" contains an unparenthesized
13933         comma, but if either did that, STREQ would have 3 or more arguments.
13934         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
13935         * lib/fts.c (STREQ): Remove unnecessary parentheses.
13936         * lib/hash-triple.c (STREQ): Likewise.
13937         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
13938         * lib/getugroups.c (STREQ): Likewise.
13939
13940 2010-01-23  Jim Meyering  <meyering@redhat.com>
13941
13942         maint.mk: fix syntax-check in a non-srcdir build directory
13943         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
13944         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
13945
13946 2010-01-22  Jim Meyering  <meyering@redhat.com>
13947
13948         userspec: add unit tests
13949         * tests/test-userspec.c: New file.
13950         * modules/userspec-tests: Likewise.
13951
13952 2010-01-21  Jim Meyering  <meyering@redhat.com>
13953
13954         maint.mk: handle source file names containing "." robustly
13955         * top/maint.mk (_dot_escaped_srcdir): Define.
13956         (VC_LIST): Use it in LHS of sed substitution.
13957
13958 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
13959
13960         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
13961         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
13962         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
13963         from a non-srcdir build.
13964
13965 2010-01-20  Eric Blake  <ebb9@byu.net>
13966
13967         warn-on-use: use instead of link-warning
13968         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
13969         * modules/unistd (Depends-on, Makefile.am): Likewise.
13970         * modules/arpa_inet (Depends-on): Replace link-warning with
13971         warn-on-use.
13972         (Makefile.am): Update rules accordingly.
13973         * modules/ctype (Depends-on, Makefile.am): Likewise.
13974         * modules/dirent (Depends-on, Makefile.am): Likewise.
13975         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
13976         * modules/inttypes (Depends-on, Makefile.am): Likewise.
13977         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13978         * modules/locale (Depends-on, Makefile.am): Likewise.
13979         * modules/math (Depends-on, Makefile.am): Likewise.
13980         * modules/search (Depends-on, Makefile.am): Likewise.
13981         * modules/signal (Depends-on, Makefile.am): Likewise.
13982         * modules/spawn (Depends-on, Makefile.am): Likewise.
13983         * modules/stdlib (Depends-on, Makefile.am): Likewise.
13984         * modules/string (Depends-on, Makefile.am): Likewise.
13985         * modules/strings (Depends-on, Makefile.am): Likewise.
13986         * modules/sys_file (Depends-on, Makefile.am): Likewise.
13987         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
13988         * modules/sys_select (Depends-on, Makefile.am): Likewise.
13989         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
13990         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
13991         * modules/sys_times (Depends-on, Makefile.am): Likewise.
13992         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13993         * modules/wchar (Depends-on, Makefile.am): Likewise.
13994         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
13995         should be poisoned.
13996         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
13997         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
13998         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
13999         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14000         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14001         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14002         * m4/math_h.m4 (gl_MATH_H): Likewise.
14003         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14004         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14005         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14006         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14007         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14008         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14009         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14010         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
14011         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14012         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14013         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14014         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14015         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14017         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14018         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14019         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
14020         GL_LINK_WARNING.
14021         * lib/ctype.in.h: Likewise.
14022         * lib/dirent.in.h: Likewise.
14023         * lib/fcntl.in.h: Likewise.
14024         * lib/inttypes.in.h: Likewise.
14025         * lib/langinfo.in.h: Likewise.
14026         * lib/locale.in.h: Likewise.
14027         * lib/math.in.h: Likewise.
14028         * lib/search.in.h: Likewise.
14029         * lib/signal.in.h: Likewise.
14030         * lib/spawn.in.h: Likewise.
14031         * lib/stdio.in.h: Likewise.
14032         * lib/stdlib.in.h: Likewise.
14033         * lib/string.in.h: Likewise.
14034         * lib/strings.in.h: Likewise.
14035         * lib/sys_file.in.h: Likewise.
14036         * lib/sys_ioctl.in.h: Likewise.
14037         * lib/sys_select.in.h: Likewise.
14038         * lib/sys_socket.in.h: Likewise.
14039         * lib/sys_stat.in.h: Likewise.
14040         * lib/sys_times.in.h: Likewise.
14041         * lib/sys_utsname.in.h: Likewise.
14042         * lib/unistd.in.h: Likewise.
14043         * lib/wchar.in.h: Likewise.
14044
14045 2010-01-20  Bruno Haible  <bruno@clisp.org>
14046
14047         Avoid duplicate -lm.
14048         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
14049         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
14050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
14051         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
14052         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
14053         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
14054         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
14055         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
14056         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
14057         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
14058         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
14059         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14060         Reported by Paolo Bonzini.
14061
14062 2010-01-19  Bruno Haible  <bruno@clisp.org>
14063
14064         langinfo, nl_langinfo: Relicense under LGPLv2+.
14065         * modules/langinfo (License): Change to LGPLv2+.
14066         * modules/nl_langinfo (License): Likewise.
14067         Patch by David Lutterkort <lutter@redhat.com>.
14068
14069 2010-01-19  Bruno Haible  <bruno@clisp.org>
14070
14071         Avoid compilation error with cc on OSF/1 5.1.
14072         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
14073         statement, not before.
14074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14075
14076 2010-01-18  Bruno Haible  <bruno@clisp.org>
14077
14078         Avoid a link error due to the __printf__ symbol.
14079         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
14080         and 2.6.x.
14081         (__format__, __printf__): Remove definitions.
14082         * lib/argp-fmtstream.h: Likewise.
14083         * lib/argp.h: Likewise.
14084         * lib/error.h: Likewise.
14085         * lib/vasnprintf.h: Likewise.
14086         * lib/xprintf.h: Likewise.
14087         * lib/xvasprintf.h: Likewise.
14088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14089
14090 2010-01-18  Bruno Haible  <bruno@clisp.org>
14091
14092         Tests for module 'tanl'.
14093         * modules/tanl-tests: New file.
14094         * tests/test-tanl.c: New file.
14095
14096         Tests for module 'sqrtl'.
14097         * modules/sqrtl-tests: New file.
14098         * tests/test-sqrtl.c: New file.
14099
14100         Tests for module 'sinl'.
14101         * modules/sinl-tests: New file.
14102         * tests/test-sinl.c: New file.
14103
14104         Tests for module 'logl'.
14105         * modules/logl-tests: New file.
14106         * tests/test-logl.c: New file.
14107
14108         Tests for module 'expl'.
14109         * modules/expl-tests: New file.
14110         * tests/test-expl.c: New file.
14111
14112         Tests for module 'cosl'.
14113         * modules/cosl-tests: New file.
14114         * tests/test-cosl.c: New file.
14115
14116         Tests for module 'atanl'.
14117         * modules/atanl-tests: New file.
14118         * tests/test-atanl.c: New file.
14119
14120         Tests for module 'asinl'.
14121         * modules/asinl-tests: New file.
14122         * tests/test-asinl.c: New file.
14123
14124         Tests for module 'acosl'.
14125         * modules/acosl-tests: New file.
14126         * tests/test-acosl.c: New file.
14127
14128         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14129         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
14130         tanl): Use the standard gnulib idiom.
14131         * lib/cosl.c: Don't include trigl.c and sincosl.c.
14132         * lib/sinl.c: Likewise.
14133         * lib/tanl.c: Don't include trigl.c.
14134         (kernel_tanl): Make static.
14135         * lib/sincosl.c: Include trigl.h first.
14136         * lib/trigl.c: Likewise.
14137         * m4/acosl.m4: New file.
14138         * m4/asinl.m4: New file.
14139         * m4/atanl.m4: New file.
14140         * m4/cosl.m4: New file.
14141         * m4/expl.m4: New file.
14142         * m4/logl.m4: New file.
14143         * m4/sinl.m4: New file.
14144         * m4/sqrtl.m4: New file.
14145         * m4/tanl.m4: New file.
14146         * m4/mathl.m4: Remove file.
14147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
14148         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14149         Don't initialize GNULIB_MATHL.
14150         * modules/acosl: New file.
14151         * modules/asinl: New file.
14152         * modules/atanl: New file.
14153         * modules/cosl: New file.
14154         * modules/expl: New file.
14155         * modules/logl: New file.
14156         * modules/sinl: New file.
14157         * modules/sqrtl: New file.
14158         * modules/tanl: New file.
14159         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
14160         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
14161         substitute GNULIB_MATHL.
14162         * modules/mathl: Rewritten.
14163         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
14164         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
14165         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
14166         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
14167         * doc/posix-functions/expl.texi: Mention the 'expl' module.
14168         * doc/posix-functions/logl.texi: Mention the 'logl' module.
14169         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
14170         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
14171         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
14172
14173 2010-01-18  Bruno Haible  <bruno@clisp.org>
14174
14175         sqrt: Make gl_FUNC_SQRT requirable.
14176         * m4/sqrt.m4: New file.
14177         * modules/sqrt (Files): Add it.
14178         (configure.ac): Invoke gl_FUNC_SQRT.
14179
14180 2010-01-18  Bruno Haible  <bruno@clisp.org>
14181
14182         New modules for common <math.h> functions.
14183         * m4/mathfunc.m4: New file.
14184         * modules/acos: New file.
14185         * modules/asin: New file.
14186         * modules/atan: New file.
14187         * modules/atan2: New file.
14188         * modules/cbrt: New file.
14189         * modules/copysign: New file.
14190         * modules/cos: New file.
14191         * modules/cosh: New file.
14192         * modules/erf: New file.
14193         * modules/erfc: New file.
14194         * modules/exp: New file.
14195         * modules/fabs: New file.
14196         * modules/fmod: New file.
14197         * modules/hypot: New file.
14198         * modules/j0: New file.
14199         * modules/j1: New file.
14200         * modules/jn: New file.
14201         * modules/ldexp: New file.
14202         * modules/lgamma: New file.
14203         * modules/log: New file.
14204         * modules/log10: New file.
14205         * modules/log1p: New file.
14206         * modules/logb: New file.
14207         * modules/modf: New file.
14208         * modules/nextafter: New file.
14209         * modules/pow: New file.
14210         * modules/remainder: New file.
14211         * modules/rint: New file.
14212         * modules/sin: New file.
14213         * modules/sinh: New file.
14214         * modules/sqrt: New file.
14215         * modules/tan: New file.
14216         * modules/tanh: New file.
14217         * modules/y0: New file.
14218         * modules/y1: New file.
14219         * modules/yn: New file.
14220         * doc/posix-functions/acos.texi: Mention the 'acos' module.
14221         * doc/posix-functions/asin.texi: Mention the 'asin' module.
14222         * doc/posix-functions/atan.texi: Mention the 'atan' module.
14223         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
14224         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
14225         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
14226         * doc/posix-functions/cos.texi: Mention the 'cos' module.
14227         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
14228         * doc/posix-functions/erf.texi: Mention the 'erf' module.
14229         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
14230         * doc/posix-functions/exp.texi: Mention the 'exp' module.
14231         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
14232         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
14233         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
14234         * doc/posix-functions/j0.texi: Mention the 'j0' module.
14235         * doc/posix-functions/j1.texi: Mention the 'j1' module.
14236         * doc/posix-functions/jn.texi: Mention the 'jn' module.
14237         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
14238         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
14239         * doc/posix-functions/log.texi: Mention the 'log' module.
14240         * doc/posix-functions/log10.texi: Mention the 'log10' module.
14241         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
14242         * doc/posix-functions/logb.texi: Mention the 'logb' module.
14243         * doc/posix-functions/modf.texi: Mention the 'modf' module.
14244         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
14245         * doc/posix-functions/pow.texi: Mention the 'pow' module.
14246         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
14247         * doc/posix-functions/rint.texi: Mention the 'rint' module.
14248         * doc/posix-functions/sin.texi: Mention the 'sin' module.
14249         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
14250         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
14251         * doc/posix-functions/tan.texi: Mention the 'tan' module.
14252         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
14253         * doc/posix-functions/y0.texi: Mention the 'y0' module.
14254         * doc/posix-functions/y1.texi: Mention the 'y1' module.
14255         * doc/posix-functions/yn.texi: Mention the 'yn' module.
14256
14257 2010-01-18  Jim Meyering  <meyering@redhat.com>
14258
14259         ignore-value: relax license to LGPLv2+
14260         * modules/ignore-value (License): Relax to LGPLv2+.
14261
14262         getdate: don't leak when TZ contains two or more '"'s
14263         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
14264         double quote in TZ after the first one.
14265
14266         readtokens: do not leak internal token_lengths buffer
14267         * lib/readtokens.c (readtokens): Free the local, lengths,
14268         when the supplied "token_lengths" parameter is NULL.
14269
14270 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14271
14272         Fix a couple of missing LIBTHREAD link failures on AIX.
14273         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
14274         $(LIBTHREAD).
14275         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
14276
14277         Link test-poll against INET_PTON_LIB.
14278         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
14279         for inet_pton on Solaris 10.
14280
14281 2010-01-17  Bruno Haible  <bruno@clisp.org>
14282
14283         unistdio/*-sprintf: Fix typo in module description.
14284         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
14285         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
14286         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
14287         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
14288         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
14289         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
14290         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
14291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14292
14293 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14294
14295         gnulib-tool: fix filelist for AIX, HP-UX ksh.
14296         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
14297         variables in shell case patterns, for AIX and HP-UX ksh.
14298
14299         Split large sed scripts, for HP-UX sed.
14300         * modules/stdio: Split sed scripts around 50 sed commands,
14301         to avoid HP-UX limit of 99 commands, in the near future.
14302         * modules/string: Likewise.
14303         * modules/unistd: Likewise.
14304
14305         gnulib-tool: avoid writing in the current directory.
14306         * gnulib-tool (func_emit_lib_Makefile_am)
14307         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
14308         not in the current directory, so concurrent gnulib-tool
14309         instances do not interfere.
14310
14311 2010-01-16  Jim Meyering  <meyering@redhat.com>
14312
14313         doc: update users.txt
14314         * users.txt: Add grep.
14315         (diffutils, gzip): Update URLs.
14316
14317 2010-01-12  Bruno Haible  <bruno@clisp.org>
14318
14319         posix_spawn: Avoid test failure on Cygwin.
14320         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
14321         characters.
14322         Reported by Simon Josefsson.
14323
14324 2010-01-12  Bruno Haible  <bruno@clisp.org>
14325
14326         * tests/test-cond.c (main): When skipping the test, show the reason.
14327
14328 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14329
14330         * lib/striconv.c (str_cd_iconv): Avoid if before free.
14331
14332 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14333
14334         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
14335         VC_LIST_ALWAYS_EXCLUDE_REGEX.
14336
14337 2010-01-12  Eric Blake  <ebb9@byu.net>
14338
14339         build: guarantee AS_VAR_IF
14340         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
14341         (gl_AS_VAR_IF): Move...
14342         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
14343         Reported by Simon Josefsson.
14344
14345 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14346
14347         * lib/stdio.in.h: Fix typo.
14348
14349 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14350
14351         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
14352         libgpg-error.
14353
14354 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14355
14356         * tests/test-xalloc-die.sh: Use $EXEEXT.
14357
14358 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14359             Bruno Haible  <bruno@clisp.org>
14360
14361         getlogin, getlogin_r: Avoid test failure.
14362         * tests/test-getlogin.c: Include <stdio.h>.
14363         (main): Skip the test when the function fails because stdin is not a
14364         tty.
14365         * tests/test-getlogin_r.c: Include <stdio.h>.
14366         (main): Skip the test when the function fails because stdin is not a
14367         tty.
14368
14369 2010-01-11  Eric Blake  <ebb9@byu.net>
14370
14371         tests: avoid more large file warnings
14372         * tests/test-fflush.c: Avoid warning about ftell use.
14373         * tests/test-fseek.c: Avoid warning about fseek use.
14374
14375 2010-01-10  Bruno Haible  <bruno@clisp.org>
14376
14377         nproc: Work better on Linux when /proc and /sys are not mounted.
14378         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
14379         as lower bound when, on glibc/Linux systems,
14380         sysconf (_SC_NPROCESSORS_CONF) returns 1.
14381         Suggested by Pádraig Brady <P@draigbrady.com>.
14382         Reported by Dmitry V. Levin <ldv@altlinux.org>.
14383
14384         nproc: Refactor.
14385         * lib/nproc.c (num_processors_via_affinity_mask): New function,
14386         extracted from num_processors.
14387         (num_processors): Call it.
14388
14389 2010-01-11  Jim Meyering  <meyering@redhat.com>
14390
14391         utimecmp: avoid new warning from upcoming gcc-4.5.0
14392         * lib/utimecmp.c (BILLION): Define using #define rather than an
14393         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
14394
14395 2010-01-11  Eric Blake  <ebb9@byu.net>
14396
14397         math: add portability warnings for classification macros
14398         * modules/math (Depends-on): Add warn-on-use.
14399         (Makefile.am): Provide new substitutions.
14400         * m4/math_h.m4 (gl_MATH_H): Require inline.
14401         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
14402         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
14403         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
14404         implement warnings.
14405
14406         unistd: warn on use of environ without module
14407         * modules/unistd (Depends-on): Add warn-on-use.
14408         (Makefile.am): Provide new substitutions.
14409         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
14410         * lib/unistd.in.h (environ): Wrap with a warning helper function.
14411
14412         stdio: warn on suspicious uses
14413         * modules/stdio (Depends-on): Add warn-on-use.
14414         (Makefile.am): Provide new substitutions.
14415         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
14416         fseeko.
14417         * lib/stdio.in.h (gets): Always warn on use.
14418         (fseek, ftell): Adjust when warnings are issued, and honor
14419         _GL_NO_LARGE_FILES as a way to silence the warning.
14420         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
14421         any warning about large file offsets.
14422         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
14423         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
14424         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
14425         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
14426         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
14427         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
14428         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
14429         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
14430
14431         warn-on-use: new module
14432         * modules/warn-on-use: New file.
14433         * build-aux/warn-on-use.h: Likewise.
14434         * m4/warn-on-use.m4: Likewise.
14435         * MODULES.html.sh (Support for building): Mention it.
14436
14437 2010-01-10  Bruno Haible  <bruno@clisp.org>
14438
14439         Tests for module 'unistr/u32-strdup'.
14440         * modules/unistr/u32-strdup-tests: New file.
14441         * tests/unistr/test-u32-strdup.c: New file.
14442
14443         Tests for module 'unistr/u16-strdup'.
14444         * modules/unistr/u16-strdup-tests: New file.
14445         * tests/unistr/test-u16-strdup.c: New file.
14446
14447         Tests for module 'unistr/u8-strdup'.
14448         * modules/unistr/u8-strdup-tests: New file.
14449         * tests/unistr/test-u8-strdup.c: New file.
14450         * tests/unistr/test-strdup.h: New file.
14451
14452         Tests for module 'unistr/u32-strncmp'.
14453         * modules/unistr/u32-strncmp-tests: New file.
14454         * tests/unistr/test-u32-strncmp.c: New file.
14455
14456         Tests for module 'unistr/u16-strncmp'.
14457         * modules/unistr/u16-strncmp-tests: New file.
14458         * tests/unistr/test-u16-strncmp.c: New file.
14459
14460         Tests for module 'unistr/u8-strncmp'.
14461         * modules/unistr/u8-strncmp-tests: New file.
14462         * tests/unistr/test-u8-strncmp.c: New file.
14463         * tests/unistr/test-strncmp.h: New file.
14464
14465         Tests for module 'unistr/u32-strcoll'.
14466         * modules/unistr/u32-strcoll-tests: New file.
14467         * tests/unistr/test-u32-strcoll.c: New file.
14468
14469         Tests for module 'unistr/u16-strcoll'.
14470         * modules/unistr/u16-strcoll-tests: New file.
14471         * tests/unistr/test-u16-strcoll.c: New file.
14472
14473         Tests for module 'unistr/u8-strcoll'.
14474         * modules/unistr/u8-strcoll-tests: New file.
14475         * tests/unistr/test-u8-strcoll.c: New file.
14476
14477         Tests for module 'unistr/u32-strcmp'.
14478         * modules/unistr/u32-strcmp-tests: New file.
14479         * tests/unistr/test-u32-strcmp.c: New file.
14480         * tests/unistr/test-u32-strcmp.h: New file.
14481
14482         Tests for module 'unistr/u16-strcmp'.
14483         * modules/unistr/u16-strcmp-tests: New file.
14484         * tests/unistr/test-u16-strcmp.c: New file.
14485         * tests/unistr/test-u16-strcmp.h: New file.
14486
14487         Tests for module 'unistr/u8-strcmp'.
14488         * modules/unistr/u8-strcmp-tests: New file.
14489         * tests/unistr/test-u8-strcmp.c: New file.
14490         * tests/unistr/test-u8-strcmp.h: New file.
14491         * tests/unistr/test-strcmp.h: New file.
14492
14493         Tests for module 'unistr/u32-strncat'.
14494         * modules/unistr/u32-strncat-tests: New file.
14495         * tests/unistr/test-u32-strncat.c: New file.
14496
14497         Tests for module 'unistr/u16-strncat'.
14498         * modules/unistr/u16-strncat-tests: New file.
14499         * tests/unistr/test-u16-strncat.c: New file.
14500
14501         Tests for module 'unistr/u8-strncat'.
14502         * modules/unistr/u8-strncat-tests: New file.
14503         * tests/unistr/test-u8-strncat.c: New file.
14504         * tests/unistr/test-strncat.h: New file.
14505
14506         Tests for module 'unistr/u32-strcat'.
14507         * modules/unistr/u32-strcat-tests: New file.
14508         * tests/unistr/test-u32-strcat.c: New file.
14509
14510         Tests for module 'unistr/u16-strcat'.
14511         * modules/unistr/u16-strcat-tests: New file.
14512         * tests/unistr/test-u16-strcat.c: New file.
14513
14514         Tests for module 'unistr/u8-strcat'.
14515         * modules/unistr/u8-strcat-tests: New file.
14516         * tests/unistr/test-u8-strcat.c: New file.
14517         * tests/unistr/test-strcat.h: New file.
14518
14519         Tests for module 'unistr/u32-stpncpy'.
14520         * modules/unistr/u32-stpncpy-tests: New file.
14521         * tests/unistr/test-u32-stpncpy.c: New file.
14522
14523         Tests for module 'unistr/u16-stpncpy'.
14524         * modules/unistr/u16-stpncpy-tests: New file.
14525         * tests/unistr/test-u16-stpncpy.c: New file.
14526
14527         Tests for module 'unistr/u8-stpncpy'.
14528         * modules/unistr/u8-stpncpy-tests: New file.
14529         * tests/unistr/test-u8-stpncpy.c: New file.
14530         * tests/unistr/test-stpncpy.h: New file.
14531
14532         Tests for module 'unistr/u32-strncpy'.
14533         * modules/unistr/u32-strncpy-tests: New file.
14534         * tests/unistr/test-u32-strncpy.c: New file.
14535
14536         Tests for module 'unistr/u16-strncpy'.
14537         * modules/unistr/u16-strncpy-tests: New file.
14538         * tests/unistr/test-u16-strncpy.c: New file.
14539
14540         Tests for module 'unistr/u8-strncpy'.
14541         * modules/unistr/u8-strncpy-tests: New file.
14542         * tests/unistr/test-u8-strncpy.c: New file.
14543         * tests/unistr/test-strncpy.h: New file.
14544
14545         Tests for module 'unistr/u32-stpcpy'.
14546         * modules/unistr/u32-stpcpy-tests: New file.
14547         * tests/unistr/test-u32-stpcpy.c: New file.
14548
14549         Tests for module 'unistr/u16-stpcpy'.
14550         * modules/unistr/u16-stpcpy-tests: New file.
14551         * tests/unistr/test-u16-stpcpy.c: New file.
14552
14553         Tests for module 'unistr/u8-stpcpy'.
14554         * modules/unistr/u8-stpcpy-tests: New file.
14555         * tests/unistr/test-u8-stpcpy.c: New file.
14556         * tests/unistr/test-stpcpy.h: New file.
14557
14558         Tests for module 'unistr/u32-strcpy'.
14559         * modules/unistr/u32-strcpy-tests: New file.
14560         * tests/unistr/test-u32-strcpy.c: New file.
14561
14562         Tests for module 'unistr/u16-strcpy'.
14563         * modules/unistr/u16-strcpy-tests: New file.
14564         * tests/unistr/test-u16-strcpy.c: New file.
14565
14566         Tests for module 'unistr/u8-strcpy'.
14567         * modules/unistr/u8-strcpy-tests: New file.
14568         * tests/unistr/test-u8-strcpy.c: New file.
14569         * tests/unistr/test-strcpy.h: New file.
14570
14571         Tests for module 'unistr/u32-strnlen'.
14572         * modules/unistr/u32-strnlen-tests: New file.
14573         * tests/unistr/test-u32-strnlen.c: New file.
14574
14575         Tests for module 'unistr/u16-strnlen'.
14576         * modules/unistr/u16-strnlen-tests: New file.
14577         * tests/unistr/test-u16-strnlen.c: New file.
14578
14579         Tests for module 'unistr/u8-strnlen'.
14580         * modules/unistr/u8-strnlen-tests: New file.
14581         * tests/unistr/test-u8-strnlen.c: New file.
14582         * tests/unistr/test-strnlen.h: New file.
14583
14584         Tests for module 'unistr/u32-strlen'.
14585         * modules/unistr/u32-strlen-tests: New file.
14586         * tests/unistr/test-u32-strlen.c: New file.
14587
14588         Tests for module 'unistr/u16-strlen'.
14589         * modules/unistr/u16-strlen-tests: New file.
14590         * tests/unistr/test-u16-strlen.c: New file.
14591
14592         Tests for module 'unistr/u8-strlen'.
14593         * modules/unistr/u8-strlen-tests: New file.
14594         * tests/unistr/test-u8-strlen.c: New file.
14595
14596         Tests for module 'unistr/u32-prev'.
14597         * modules/unistr/u32-prev-tests: New file.
14598         * tests/unistr/test-u32-prev.c: New file.
14599
14600         Tests for module 'unistr/u16-prev'.
14601         * modules/unistr/u16-prev-tests: New file.
14602         * tests/unistr/test-u16-prev.c: New file.
14603
14604         Tests for module 'unistr/u8-prev'.
14605         * modules/unistr/u8-prev-tests: New file.
14606         * tests/unistr/test-u8-prev.c: New file.
14607
14608         Tests for module 'unistr/u32-next'.
14609         * modules/unistr/u32-next-tests: New file.
14610         * tests/unistr/test-u32-next.c: New file.
14611
14612         Tests for module 'unistr/u16-next'.
14613         * modules/unistr/u16-next-tests: New file.
14614         * tests/unistr/test-u16-next.c: New file.
14615
14616         Tests for module 'unistr/u8-next'.
14617         * modules/unistr/u8-next-tests: New file.
14618         * tests/unistr/test-u8-next.c: New file.
14619
14620         Tests for module 'unistr/u32-strmbtouc'.
14621         * modules/unistr/u32-strmbtouc-tests: New file.
14622         * tests/unistr/test-u32-strmbtouc.c: New file.
14623
14624         Tests for module 'unistr/u16-strmbtouc'.
14625         * modules/unistr/u16-strmbtouc-tests: New file.
14626         * tests/unistr/test-u16-strmbtouc.c: New file.
14627
14628         Tests for module 'unistr/u8-strmbtouc'.
14629         * modules/unistr/u8-strmbtouc-tests: New file.
14630         * tests/unistr/test-u8-strmbtouc.c: New file.
14631
14632         Tests for module 'unistr/u32-strmblen'.
14633         * modules/unistr/u32-strmblen-tests: New file.
14634         * tests/unistr/test-u32-strmblen.c: New file.
14635
14636         Tests for module 'unistr/u16-strmblen'.
14637         * modules/unistr/u16-strmblen-tests: New file.
14638         * tests/unistr/test-u16-strmblen.c: New file.
14639
14640         Tests for module 'unistr/u8-strmblen'.
14641         * modules/unistr/u8-strmblen-tests: New file.
14642         * tests/unistr/test-u8-strmblen.c: New file.
14643
14644         Tests for module 'unistr/u32-cpy-alloc'.
14645         * modules/unistr/u32-cpy-alloc-tests: New file.
14646         * tests/unistr/test-u32-cpy-alloc.c: New file.
14647
14648         Tests for module 'unistr/u16-cpy-alloc'.
14649         * modules/unistr/u16-cpy-alloc-tests: New file.
14650         * tests/unistr/test-u16-cpy-alloc.c: New file.
14651
14652         Tests for module 'unistr/u8-cpy-alloc'.
14653         * modules/unistr/u8-cpy-alloc-tests: New file.
14654         * tests/unistr/test-u8-cpy-alloc.c: New file.
14655         * tests/unistr/test-cpy-alloc.h: New file.
14656
14657         Tests for module 'unistr/u32-mbsnlen'.
14658         * modules/unistr/u32-mbsnlen-tests: New file.
14659         * tests/unistr/test-u32-mbsnlen.c: New file.
14660
14661         Tests for module 'unistr/u16-mbsnlen'.
14662         * modules/unistr/u16-mbsnlen-tests: New file.
14663         * tests/unistr/test-u16-mbsnlen.c: New file.
14664
14665         Tests for module 'unistr/u8-mbsnlen'.
14666         * modules/unistr/u8-mbsnlen-tests: New file.
14667         * tests/unistr/test-u8-mbsnlen.c: New file.
14668
14669         Tests for module 'unistr/u32-chr'.
14670         * modules/unistr/u32-chr-tests: New file.
14671         * tests/unistr/test-u32-chr.c: New file.
14672
14673         Tests for module 'unistr/u16-chr'.
14674         * modules/unistr/u16-chr-tests: New file.
14675         * tests/unistr/test-u16-chr.c: New file.
14676
14677         Tests for module 'unistr/u8-chr'.
14678         * modules/unistr/u8-chr-tests: New file.
14679         * tests/unistr/test-u8-chr.c: New file.
14680         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
14681
14682         Tests for module 'unistr/u32-cmp2'.
14683         * modules/unistr/u32-cmp2-tests: New file.
14684         * tests/unistr/test-u32-cmp2.c: New file.
14685
14686         Tests for module 'unistr/u16-cmp2'.
14687         * modules/unistr/u16-cmp2-tests: New file.
14688         * tests/unistr/test-u16-cmp2.c: New file.
14689
14690         Tests for module 'unistr/u8-cmp2'.
14691         * modules/unistr/u8-cmp2-tests: New file.
14692         * tests/unistr/test-u8-cmp2.c: New file.
14693         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
14694
14695         Tests for module 'unistr/u32-cmp'.
14696         * modules/unistr/u32-cmp-tests: New file.
14697         * tests/unistr/test-u32-cmp.c: New file.
14698
14699         Tests for module 'unistr/u16-cmp'.
14700         * modules/unistr/u16-cmp-tests: New file.
14701         * tests/unistr/test-u16-cmp.c: New file.
14702
14703         Tests for module 'unistr/u8-cmp'.
14704         * modules/unistr/u8-cmp-tests: New file.
14705         * tests/unistr/test-u8-cmp.c: New file.
14706         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
14707
14708         Tests for module 'unistr/u32-set'.
14709         * modules/unistr/u32-set-tests: New file.
14710         * tests/unistr/test-u32-set.c: New file.
14711
14712         Tests for module 'unistr/u16-set'.
14713         * modules/unistr/u16-set-tests: New file.
14714         * tests/unistr/test-u16-set.c: New file.
14715
14716         Tests for module 'unistr/u8-set'.
14717         * modules/unistr/u8-set-tests: New file.
14718         * tests/unistr/test-u8-set.c: New file.
14719         * tests/unistr/test-set.h: New file.
14720
14721         Tests for module 'unistr/u32-move'.
14722         * modules/unistr/u32-move-tests: New file.
14723         * tests/unistr/test-u32-move.c: New file.
14724
14725         Tests for module 'unistr/u16-move'.
14726         * modules/unistr/u16-move-tests: New file.
14727         * tests/unistr/test-u16-move.c: New file.
14728
14729         Tests for module 'unistr/u8-move'.
14730         * modules/unistr/u8-move-tests: New file.
14731         * tests/unistr/test-u8-move.c: New file.
14732         * tests/unistr/test-move.h: New file.
14733
14734         Tests for module 'unistr/u32-cpy'.
14735         * modules/unistr/u32-cpy-tests: New file.
14736         * tests/unistr/test-u32-cpy.c: New file.
14737
14738         Tests for module 'unistr/u16-cpy'.
14739         * modules/unistr/u16-cpy-tests: New file.
14740         * tests/unistr/test-u16-cpy.c: New file.
14741
14742         Tests for module 'unistr/u8-cpy'.
14743         * modules/unistr/u8-cpy-tests: New file.
14744         * tests/unistr/test-u8-cpy.c: New file.
14745         * tests/unistr/test-cpy.h: New file.
14746
14747 2010-01-09  Bruno Haible  <bruno@clisp.org>
14748
14749         Tests for module 'unistr/u32-uctomb'.
14750         * modules/unistr/u32-uctomb-tests: New file.
14751         * tests/unistr/test-u32-uctomb.c: New file.
14752
14753         Tests for module 'unistr/u16-uctomb'.
14754         * modules/unistr/u16-uctomb-tests: New file.
14755         * tests/unistr/test-u16-uctomb.c: New file.
14756
14757         Tests for module 'unistr/u8-uctomb'.
14758         * modules/unistr/u8-uctomb-tests: New file.
14759         * tests/unistr/test-u8-uctomb.c: New file.
14760
14761         Tests for module 'unistr/u32-mbtoucr'.
14762         * modules/unistr/u32-mbtoucr-tests: New file.
14763         * tests/unistr/test-u32-mbtoucr.c: New file.
14764
14765         Tests for module 'unistr/u16-mbtoucr'.
14766         * modules/unistr/u16-mbtoucr-tests: New file.
14767         * tests/unistr/test-u16-mbtoucr.c: New file.
14768
14769         Tests for module 'unistr/u8-mbtoucr'.
14770         * modules/unistr/u8-mbtoucr-tests: New file.
14771         * tests/unistr/test-u8-mbtoucr.c: New file.
14772
14773         Tests for module 'unistr/u32-mbtouc'.
14774         * modules/unistr/u32-mbtouc-tests: New file.
14775         * tests/unistr/test-u32-mbtouc.c: New file.
14776
14777         Tests for module 'unistr/u16-mbtouc'.
14778         * modules/unistr/u16-mbtouc-tests: New file.
14779         * tests/unistr/test-u16-mbtouc.c: New file.
14780
14781         Tests for module 'unistr/u8-mbtouc'.
14782         * modules/unistr/u8-mbtouc-tests: New file.
14783         * tests/unistr/test-u8-mbtouc.c: New file.
14784
14785         Tests for module 'unistr/u32-mbtouc-unsafe'.
14786         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
14787         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
14788         * tests/unistr/test-u32-mbtouc.h: New file.
14789
14790         Tests for module 'unistr/u16-mbtouc-unsafe'.
14791         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
14792         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
14793         * tests/unistr/test-u16-mbtouc.h: New file.
14794
14795         Tests for module 'unistr/u8-mbtouc-unsafe'.
14796         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
14797         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
14798         * tests/unistr/test-u8-mbtouc.h: New file.
14799
14800         Tests for module 'unistr/u32-mblen'.
14801         * modules/unistr/u32-mblen-tests: New file.
14802         * tests/unistr/test-u32-mblen.c: New file.
14803
14804         Tests for module 'unistr/u16-mblen'.
14805         * modules/unistr/u16-mblen-tests: New file.
14806         * tests/unistr/test-u16-mblen.c: New file.
14807
14808         Tests for module 'unistr/u8-mblen'.
14809         * modules/unistr/u8-mblen-tests: New file.
14810         * tests/unistr/test-u8-mblen.c: New file.
14811
14812         Tests for module 'unistr/u32-to-u16'.
14813         * modules/unistr/u32-to-u16-tests: New file.
14814         * tests/unistr/test-u32-to-u16.c: New file.
14815
14816         Tests for module 'unistr/u32-to-u8'.
14817         * modules/unistr/u32-to-u8-tests: New file.
14818         * tests/unistr/test-u32-to-u8.c: New file.
14819
14820         Tests for module 'unistr/u16-to-u32'.
14821         * modules/unistr/u16-to-u32-tests: New file.
14822         * tests/unistr/test-u16-to-u32.c: New file.
14823
14824         Tests for module 'unistr/u16-to-u8'.
14825         * modules/unistr/u16-to-u8-tests: New file.
14826         * tests/unistr/test-u16-to-u8.c: New file.
14827
14828         Tests for module 'unistr/u8-to-u32'.
14829         * modules/unistr/u8-to-u32-tests: New file.
14830         * tests/unistr/test-u8-to-u32.c: New file.
14831
14832         Tests for module 'unistr/u8-to-u16'.
14833         * modules/unistr/u8-to-u16-tests: New file.
14834         * tests/unistr/test-u8-to-u16.c: New file.
14835
14836         Tests for module 'unistr/u32-check'.
14837         * modules/unistr/u32-check-tests: New file.
14838         * tests/unistr/test-u32-check.c: New file.
14839
14840         Tests for module 'unistr/u16-check'.
14841         * modules/unistr/u16-check-tests: New file.
14842         * tests/unistr/test-u16-check.c: New file.
14843
14844         Tests for module 'unistr/u8-check'.
14845         * modules/unistr/u8-check-tests: New file.
14846         * tests/unistr/test-u8-check.c: New file.
14847
14848         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
14849         (category_equals): New function.
14850         (main): Add more tests.
14851         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
14852
14853         * tests/unictype/test-bidi_byname.c (main): Add more tests.
14854
14855 2010-01-10  Bruno Haible  <bruno@clisp.org>
14856
14857         unistr/u*-strcoll: Try harder to distinguish different strings.
14858         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
14859         compare s1 and s2 to see if they are different.
14860
14861 2010-01-10  Bruno Haible  <bruno@clisp.org>
14862
14863         unistr/u*-stpncpy: Fix the return value.
14864         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
14865         description of the return value consistent with stpncpy in glibc.
14866         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
14867         written non-NUL unit.
14868
14869 2010-01-10  Bruno Haible  <bruno@clisp.org>
14870
14871         unistr/u*-next: Add missing dependencies.
14872         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
14873         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14874         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
14875
14876 2010-01-10  Bruno Haible  <bruno@clisp.org>
14877
14878         unistr/u8-mbsnlen: Fix return value for incomplete character.
14879         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
14880         u8_mblen.
14881         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
14882         Remove unistr/u8-mblen.
14883         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
14884         u16_mblen.
14885         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
14886         Remove unistr/u16-mblen.
14887
14888 2010-01-10  Bruno Haible  <bruno@clisp.org>
14889
14890         wchar: Fix compilation error when <wchar.h> is used from coreutils.
14891         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
14892         Reported by Brian Gough <bjg@gnu.org> and
14893         Chris Clayton <chris2553@googlemail.com> via
14894         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
14895
14896 2010-01-09  Bruno Haible  <bruno@clisp.org>
14897
14898         unistr/u16-to-u32: Reject invalid input.
14899         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
14900         u16_mbtouc.
14901         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
14902         Remove unistr/u16-mbtouc.
14903
14904         unistr/u16-to-u8: Reject invalid input.
14905         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
14906         u16_mbtouc.
14907         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
14908         Remove unistr/u16-mbtouc.
14909
14910         unistr/u8-to-u32: Reject invalid input.
14911         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
14912         u8_mbtouc.
14913         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
14914         Remove unistr/u8-mbtouc.
14915
14916         unistr/u8-to-u16: Reject invalid input.
14917         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
14918         u8_mbtouc.
14919         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
14920         Remove unistr/u8-mbtouc.
14921
14922 2010-01-09  Bruno Haible  <bruno@clisp.org>
14923
14924         Tests for module 'getlogin'.
14925         * modules/getlogin-tests: New file.
14926         * tests/test-getlogin.c: New file.
14927
14928         New module 'getlogin'.
14929         * lib/unistd.in.h (getlogin): New declaration.
14930         * lib/getlogin.c: New file.
14931         * m4/getlogin.m4: New file.
14932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
14933         HAVE_GETLOGIN.
14934         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
14935         HAVE_GETLOGIN.
14936         * modules/getlogin: New file.
14937         * doc/posix-functions/getlogin.texi: Mention the new module.
14938         Reported by John W. Eaton <jwe@gnu.org>.
14939
14940 2010-01-09  Bruno Haible  <bruno@clisp.org>
14941
14942         getlogin_r: Support for native Windows.
14943         * lib/getlogin_r.c: Include <windows.h>
14944         (getlogin_r): Implement for native Windows.
14945         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
14946         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
14947         via John W. Eaton <jwe@gnu.org>.
14948
14949 2010-01-09  Bruno Haible  <bruno@clisp.org>
14950
14951         getlogin_r: Small fixes.
14952         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
14953         succeeds.
14954         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
14955         before testing whether getlogin_r is declared. No need to set
14956         HAVE_DECL_GETLOGIN_R to 1.
14957         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
14958
14959 2010-01-09  Bruno Haible  <bruno@clisp.org>
14960
14961         * lib/unistd.in.h (getlogin_r): Add comment.
14962
14963 2010-01-09  Bruno Haible  <bruno@clisp.org>
14964
14965         Tests for module 'getlogin_r'.
14966         * modules/getlogin_r-tests: New file.
14967         * tests/test-getlogin_r.c: New file.
14968
14969 2010-01-09  Jim Meyering  <meyering@redhat.com>
14970
14971         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
14972         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
14973         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
14974
14975 2010-01-08  Simon Josefsson  <simon@josefsson.org>
14976
14977         * lib/dup2.c (rpl_dup2): Improve comment.
14978
14979 2010-01-08  Eric Blake  <ebb9@byu.net>
14980
14981         maint.mk: allow packages to add makefile @@ exceptions
14982         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
14983         (sc_makefile_check): Rename...
14984         (sc_makefile_at_at_check): ...to this, and use hook.
14985
14986         dup2: work around mingw bug
14987         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
14988         Reported by Simon Josefsson.
14989
14990 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
14991
14992         glob: Fix C++ compilation.
14993         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
14994         C++.
14995
14996 2010-01-07  Bruno Haible  <bruno@clisp.org>
14997
14998         Fix indentation of wctype.in.h, broken since 2007-01-06.
14999         * lib/wctype.in.h: Fix indentation of preprocessor directives.
15000
15001 2010-01-07  Bruno Haible  <bruno@clisp.org>
15002
15003         mbslen: Avoid collision with system function.
15004         * lib/string.in.h [MirBSD]: Include <wchar.h>.
15005         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
15006         * m4/mbslen.m4: New file.
15007         * modules/mbslen (Files): Add it.
15008         (configure.ac): Invoke gl_MBSLEN.
15009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
15010         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
15011         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
15012         via Ian Beckwith <ianb@erislabs.net>.
15013
15014 2010-01-07  Bruno Haible  <bruno@clisp.org>
15015
15016         dirent: Document the last fix.
15017         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
15018
15019 2010-01-07  Bruno Haible  <bruno@clisp.org>
15020
15021         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
15022         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
15023         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
15024         va_list are defined.
15025         * doc/posix-headers/stdio.texi: Document the bug of missing types.
15026         Reported by Eric Blake.
15027
15028 2010-01-07  Bruno Haible  <bruno@clisp.org>
15029
15030         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
15031         * modules/xlist (Depends-on): Add 'list',
15032         * modules/xoset (Depends-on): Add 'oset'.
15033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15034
15035 2010-01-07  Bruno Haible  <bruno@clisp.org>
15036
15037         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
15038         * doc/posix-functions/strncasecmp.texi: Likewise.
15039
15040 2010-01-07  Bruno Haible  <bruno@clisp.org>
15041
15042         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
15043
15044 2010-01-07  John W. Eaton  <jwe@octave.org>
15045
15046         wctype: allow C++ use
15047         * lib/wctype.in.h: Add extern "C" block for C++.
15048
15049 2010-01-06  Eric Blake  <ebb9@byu.net>
15050
15051         maint.mk: detect incorrect GFDL usage
15052         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
15053
15054 2010-01-06  Jim Meyering  <meyering@redhat.com>
15055         and Eric Blake  <ebb9@byu.net>
15056
15057         maint.mk: ignore multi-line copyright in NEWS
15058         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
15059
15060 2010-01-06  Eric Blake  <ebb9@byu.net>
15061
15062         select: add missing dependency
15063         * modules/select-tests (Depends-on): Move sockets dependency...
15064         * modules/select (Depends-on): ...here.
15065         Reported by Ian Beckwith.
15066
15067         doc: regenerate INSTALL
15068         * doc/INSTALL: Reflect recent autoconf update.
15069         * doc/INSTALL.ISO: Likewise.
15070         * doc/INSTALL.UTF-8: Likewise.
15071
15072         pread: fix compilation on glibc
15073         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
15074         Reported by Ralf Wildenhues.
15075
15076         dirent: fix test failure
15077         * lib/dirent.in.h (includes): Guarantee ino_t.
15078         Reported by Ralf Wildenhues.
15079
15080 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
15081
15082         linkat, renameat: avoid bad free
15083         * lib/at-func2.c (at_func2): Fix typo.
15084         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
15085
15086 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15087
15088         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
15089         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
15090         to avoid failure of symlink test later.
15091
15092 2010-01-06  Eric Blake  <ebb9@byu.net>
15093
15094         stdio, unistd: guarantee ssize_t
15095         * lib/unistd.in.h (includes): Ensure that types required by POSIX
15096         2008 are exposed when needed.
15097         * lib/stdio.in.h (includes): Likewise.
15098         Reported by Ralf Wildenhues.
15099
15100 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
15101
15102         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
15103         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
15104         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
15105
15106 2010-01-06  Jim Meyering  <meyering@redhat.com>
15107
15108         readtokens: this module *does* require xalloc.h
15109         It uses only functions that were omitted by the old syntax-check rule.
15110         * lib/readtokens.c: Include "xalloc.h" once again.
15111         * modules/readtokens (Depends-on): Add xalloc.
15112         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
15113
15114 2010-01-05  Eric Blake  <ebb9@byu.net>
15115
15116         maint: support 'make announcement' from a VPATH build
15117         * top/maint.mk (announcement): Look for correct NEWS file.
15118
15119 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
15120
15121         utimens (fdutimens): ignore a negative FD, per contract
15122         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
15123         when we have a valid file descriptor.  Otherwise, using a brand
15124         new glibc (with just-patched futimens that now fails with EBADF)
15125         would cause this function to fail with ENOSYS.
15126         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
15127         See also http://bugzilla.redhat.com/552320.
15128
15129 2010-01-05  Eric Blake  <ebb9@byu.net>
15130
15131         strcase: document what it provides
15132         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
15133         gnulib module.
15134         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
15135         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
15136
15137 2010-01-05  Jim Meyering  <meyering@redhat.com>
15138
15139         maint: remove useless inclusions of "xalloc.h"
15140         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
15141         * lib/readtokens.c: Likewise.
15142         * lib/same.c: Likewise.
15143         * modules/getloadavg (Depends-on): Remove xalloc.
15144         * modules/readtokens: Likewise.
15145         * modules/same: Likewise.
15146
15147         maint.mk: include 4 more function names in alloca.h-checking regexp
15148         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
15149         regexp.  Before, we would give a false-positive (saying alloca.h
15150         is included unnecessarily) when the only uses involved omitted symbols.
15151
15152         xalloc.h: use consistent formatting
15153         * lib/xalloc.h: Move declarations to start in the first column.
15154
15155 2010-01-05  Eric Blake  <ebb9@byu.net>
15156
15157         mkdir: avoid xalloc
15158         * lib/mkdir.c (includes): Drop unused header.
15159         Reported by John W. Eaton.
15160
15161 2010-01-04  Jim Meyering  <meyering@redhat.com>
15162
15163         nl_langinfo: avoid configure-time syntax error
15164         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
15165         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
15166         the empty string.  Don't let that provoke a shell syntax error.
15167
15168         regcomp, regexec, fnmatch: avoid array bounds read error
15169         * lib/regcomp.c (build_equiv_class): From glibc:
15170         Use only the low 24 bits of a findidx return value as an index
15171         into the weights array.  Patch by Ulrich Drepper:
15172         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
15173         * lib/regexec.c (check_node_accept_bytes): Likewise.
15174         * lib/fnmatch_loop.c (FCT): Likewise.
15175
15176         regcomp: skip collseq lookup when there are no rules
15177         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
15178         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
15179
15180         regcomp: recognize ill-formed { } expressions
15181         * lib/regcomp.c (parse_dup_op): From glibc:
15182         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
15183
15184         regcomp: fix typo in comment
15185         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
15186         s/satisfy/satisfies/.
15187
15188         regcomp: sync from glibc: remove dead store
15189         * lib/regcomp.c (duplicate_node_closure): Remove useless
15190         search_duplicated_node call and dead store.
15191
15192         regcomp: sync from glibc; always use nl_langinfo
15193         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
15194         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
15195         * modules/regex (Depends-on): Add nl_langinfo.
15196
15197 2010-01-04  Eric Blake  <ebb9@byu.net>
15198
15199         fdopendir: fix configure test
15200         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
15201
15202 2010-01-01  Bruno Haible  <bruno@clisp.org>
15203
15204         wchar: Remove unused configure check.
15205         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
15206
15207 2010-01-01  Eric Blake  <ebb9@byu.net>
15208
15209         headers: make check of system header explicit
15210         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
15211         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
15212         ourselves.
15213         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
15216         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
15217         internals.
15218         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
15219         missing.
15220         Suggested by Bruno Haible.
15221
15222 2010-01-01  Jim Meyering  <meyering@redhat.com>
15223
15224         ChangeLog: tweak to eliminate unnecessary copyright line
15225         * ChangeLog: Remove a copyright line that was mistakenly updated
15226         by today's update-copyright run.  Reported by Eric Blake.
15227
15228         test-update-copyright: don't let envvar setting cause test failure
15229         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15230
15231 2010-01-01  Bruno Haible  <bruno@clisp.org>
15232
15233         localename: Avoid gcc warning.
15234         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
15235         function if it is not used.
15236
15237 2010-01-01  Jim Meyering  <meyering@redhat.com>
15238
15239         update nearly all FSF copyright year lists to include 2010
15240         Use the same procedure as for 2009, outlined in
15241         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
15242
15243         version-etc: set COPYRIGHT_YEAR to 2010
15244         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
15245
15246 2009-12-31  Eric Blake  <ebb9@byu.net>
15247
15248         doc: correct availability of cygwin 1.5.x getopt
15249         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
15250         variables.
15251         * doc/posix-functions/opterr.texi (opterr): Likewise.
15252         * doc/posix-functions/optind.texi (optind): Likewise.
15253         * doc/posix-functions/optopt.texi (optopt): Likewise.
15254         * doc/posix-functions/tzname.texi (tzname): Likewise.
15255
15256         openat: update maintainer
15257         * modules/openat (Maintainer): Add myself.
15258
15259         utimens: avoid shadowing warning
15260         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
15261         buffers into one, to avoid shadowing, as well as avoiding a
15262         redundant stat.
15263         Reported by Jim Meyering.
15264
15265         test-dup2: avoid compiler warning
15266         * tests/test-dup2.c (is_inheritable): Only define if used.
15267
15268 2010-01-01  Bruno Haible  <bruno@clisp.org>
15269
15270         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
15271         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
15272         defined, use wctomb instead of wcrtomb.
15273
15274 2010-01-01  Bruno Haible  <bruno@clisp.org>
15275
15276         iconv: Reject native Solaris iconv.
15277         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
15278         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
15279
15280 2009-12-31  Bruno Haible  <bruno@clisp.org>
15281
15282         * tests/test-signal.c (main): Remove test of 'SIG'.
15283
15284 2009-12-31  Bruno Haible  <bruno@clisp.org>
15285
15286         spawn: Fix incomplete fix.
15287         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15288         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15289         warnings for GNULIB_POSIXCHECK again.
15290         Reported by Eric Blake.
15291
15292 2009-12-31  Bruno Haible  <bruno@clisp.org>
15293
15294         Avoid namespace pollution on glibc systems.
15295         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
15296         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
15297         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
15298         glibc systems.
15299
15300 2009-12-31  Bruno Haible  <bruno@clisp.org>
15301
15302         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
15303         (gl_REPLACE_WCHAR_H): Turn into a no-op.
15304         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
15305         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15306         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15307         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15308         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15309
15310 2009-12-31  Bruno Haible  <bruno@clisp.org>
15311
15312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15313         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
15314         afterwards.
15315
15316 2009-12-31  Bruno Haible  <bruno@clisp.org>
15317
15318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
15319         SYS_UTSNAME_H.
15320
15321 2009-12-31  Bruno Haible  <bruno@clisp.org>
15322
15323         spawn: Fix misapplied patch.
15324         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15325         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15326         warnings for GNULIB_POSIXCHECK.
15327
15328 2009-12-31  Bruno Haible  <bruno@clisp.org>
15329
15330         times: Update after sys_times changed.
15331         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
15332         * modules/times (Files): Add it.
15333         (configure.ac): Invoke gl_FUNC_TIMES.
15334
15335 2009-12-31  Bruno Haible  <bruno@clisp.org>
15336
15337         Use AC_C_INLINE where necessary.
15338         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
15339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
15340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
15341         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
15342         * m4/mbfile.m4 (gl_MBFILE): Likewise.
15343         * m4/mbiter.m4 (gl_MBITER): Likewise.
15344         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15345         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15346         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
15347         * modules/u64 (configure.ac): Likewise.
15348
15349 2009-12-31  Bruno Haible  <bruno@clisp.org>
15350
15351         Use AC_C_INLINE instead of module 'inline' where possible.
15352         * modules/inline (Description): Clarify purpose.
15353         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
15354         * modules/count-one-bits (Depends-on): Remove inline.
15355         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
15356         * modules/openat (Depends-on): Remove inline.
15357         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
15358         instead of depending on module 'inline'.
15359         * modules/filevercmp (Depends-on, configure.ac): Likewise.
15360         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
15361         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
15362         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
15363         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
15364         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
15365         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
15366         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
15367         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
15368         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
15369         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
15370         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
15371         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
15372         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
15373         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
15374         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
15375         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
15376         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
15377         Likewise.
15378         * modules/unictype/property-ascii-hex-digit (Depends-on,
15379         configure.ac): Likewise.
15380         * modules/unictype/property-bidi-arabic-digit (Depends-on,
15381         configure.ac): Likewise.
15382         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
15383         configure.ac): Likewise.
15384         * modules/unictype/property-bidi-block-separator (Depends-on,
15385         configure.ac): Likewise.
15386         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
15387         configure.ac): Likewise.
15388         * modules/unictype/property-bidi-common-separator (Depends-on,
15389         configure.ac): Likewise.
15390         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
15391         Likewise.
15392         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
15393         configure.ac): Likewise.
15394         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
15395         configure.ac): Likewise.
15396         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
15397         configure.ac): Likewise.
15398         * modules/unictype/property-bidi-european-digit (Depends-on,
15399         configure.ac): Likewise.
15400         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
15401         configure.ac): Likewise.
15402         * modules/unictype/property-bidi-left-to-right (Depends-on,
15403         configure.ac): Likewise.
15404         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
15405         configure.ac): Likewise.
15406         * modules/unictype/property-bidi-other-neutral (Depends-on,
15407         configure.ac): Likewise.
15408         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
15409         Likewise.
15410         * modules/unictype/property-bidi-segment-separator (Depends-on,
15411         configure.ac): Likewise.
15412         * modules/unictype/property-bidi-whitespace (Depends-on,
15413         configure.ac): Likewise.
15414         * modules/unictype/property-combining (Depends-on, configure.ac):
15415         Likewise.
15416         * modules/unictype/property-composite (Depends-on, configure.ac):
15417         Likewise.
15418         * modules/unictype/property-currency-symbol (Depends-on,
15419         configure.ac): Likewise.
15420         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
15421         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
15422         Likewise.
15423         * modules/unictype/property-default-ignorable-code-point (Depends-on,
15424         configure.ac): Likewise.
15425         * modules/unictype/property-deprecated (Depends-on, configure.ac):
15426         Likewise.
15427         * modules/unictype/property-diacritic (Depends-on, configure.ac):
15428         Likewise.
15429         * modules/unictype/property-extender (Depends-on, configure.ac):
15430         Likewise.
15431         * modules/unictype/property-format-control (Depends-on, configure.ac):
15432         Likewise.
15433         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
15434         Likewise.
15435         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
15436         Likewise.
15437         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
15438         Likewise.
15439         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
15440         Likewise.
15441         * modules/unictype/property-hyphen (Depends-on, configure.ac):
15442         Likewise.
15443         * modules/unictype/property-id-continue (Depends-on, configure.ac):
15444         Likewise.
15445         * modules/unictype/property-id-start (Depends-on, configure.ac):
15446         Likewise.
15447         * modules/unictype/property-ideographic (Depends-on, configure.ac):
15448         Likewise.
15449         * modules/unictype/property-ids-binary-operator (Depends-on,
15450         configure.ac): Likewise.
15451         * modules/unictype/property-ids-trinary-operator (Depends-on,
15452         configure.ac): Likewise.
15453         * modules/unictype/property-ignorable-control (Depends-on,
15454         configure.ac): Likewise.
15455         * modules/unictype/property-iso-control (Depends-on, configure.ac):
15456         Likewise.
15457         * modules/unictype/property-join-control (Depends-on, configure.ac):
15458         Likewise.
15459         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
15460         Likewise.
15461         * modules/unictype/property-line-separator (Depends-on, configure.ac):
15462         Likewise.
15463         * modules/unictype/property-logical-order-exception (Depends-on,
15464         configure.ac): Likewise.
15465         * modules/unictype/property-lowercase (Depends-on, configure.ac):
15466         Likewise.
15467         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
15468         * modules/unictype/property-non-break (Depends-on, configure.ac):
15469         Likewise.
15470         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
15471         Likewise.
15472         * modules/unictype/property-numeric (Depends-on, configure.ac):
15473         Likewise.
15474         * modules/unictype/property-other-alphabetic (Depends-on,
15475         configure.ac): Likewise.
15476         * modules/unictype/property-other-default-ignorable-code-point
15477         (Depends-on, configure.ac): Likewise.
15478         * modules/unictype/property-other-grapheme-extend (Depends-on,
15479         configure.ac): Likewise.
15480         * modules/unictype/property-other-id-continue (Depends-on,
15481         configure.ac): Likewise.
15482         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
15483         Likewise.
15484         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
15485         Likewise.
15486         * modules/unictype/property-other-math (Depends-on, configure.ac):
15487         Likewise.
15488         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
15489         Likewise.
15490         * modules/unictype/property-paired-punctuation (Depends-on,
15491         configure.ac): Likewise.
15492         * modules/unictype/property-paragraph-separator (Depends-on,
15493         configure.ac): Likewise.
15494         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
15495         Likewise.
15496         * modules/unictype/property-pattern-white-space (Depends-on,
15497         configure.ac): Likewise.
15498         * modules/unictype/property-private-use (Depends-on, configure.ac):
15499         Likewise.
15500         * modules/unictype/property-punctuation (Depends-on, configure.ac):
15501         Likewise.
15502         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
15503         Likewise.
15504         * modules/unictype/property-radical (Depends-on, configure.ac):
15505         Likewise.
15506         * modules/unictype/property-sentence-terminal (Depends-on,
15507         configure.ac): Likewise.
15508         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
15509         Likewise.
15510         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
15511         * modules/unictype/property-terminal-punctuation (Depends-on,
15512         configure.ac): Likewise.
15513         * modules/unictype/property-titlecase (Depends-on, configure.ac):
15514         Likewise.
15515         * modules/unictype/property-unassigned-code-value (Depends-on,
15516         configure.ac): Likewise.
15517         * modules/unictype/property-unified-ideograph (Depends-on,
15518         configure.ac): Likewise.
15519         * modules/unictype/property-uppercase (Depends-on, configure.ac):
15520         Likewise.
15521         * modules/unictype/property-variation-selector (Depends-on,
15522         configure.ac): Likewise.
15523         * modules/unictype/property-white-space (Depends-on, configure.ac):
15524         Likewise.
15525         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
15526         Likewise.
15527         * modules/unictype/property-xid-start (Depends-on, configure.ac):
15528         Likewise.
15529         * modules/unictype/property-zero-width (Depends-on, configure.ac):
15530         Likewise.
15531         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
15532         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
15533         Likewise.
15534
15535 2009-12-31  Bruno Haible  <bruno@clisp.org>
15536
15537         Remove unnecessary AC_C_INLINE invocation.
15538         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
15539         since 2009-08-21.
15540
15541 2009-12-31  Jim Meyering  <meyering@redhat.com>
15542
15543         maint.mk: don't require explicit gpg_key_ID in cfg.mk
15544         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
15545         With this change, we can all remove the gpg_key_ID = ... definition
15546         from our respective cfg.mk files.
15547
15548         maint.mk: create announcement template in ~/, not in /tmp
15549         * top/maint.mk (emit_upload_commands): Adjust.
15550         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
15551         Remove temporary file, .ci-msg.
15552
15553 2009-12-31  Eric Blake  <ebb9@byu.net>
15554
15555         link-warning: always build headers with link warnings
15556         * modules/arpa_inet (Makefile.am): Always build replacement
15557         header.
15558         * modules/ctype (Makefile.am): Likewise.
15559         * modules/dirent (Makefile.am): Likewise.
15560         * modules/inttypes (Makefile.am): Likewise.
15561         * modules/langinfo (Makefile.am): Likewise.
15562         * modules/locale (Makefile.am): Likewise.
15563         * modules/spawn (Makefile.am): Likewise.
15564         * modules/sys_file (Makefile.am): Likewise.
15565         * modules/sys_ioctl (Makefile.am): Likewise.
15566         * modules/sys_select (Makefile.am): Likewise.
15567         * modules/sys_socket (Makefile.am): Likewise.
15568         * modules/sys_times (Makefile.am): Likewise.
15569         * modules/sys_utsname (Makefile.am): Likewise.
15570         * modules/sys_wait (Makefile.am): Likewise.
15571         * modules/wchar (Makefile.am): Likewise.
15572         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
15573         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
15574         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
15575         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
15576         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
15577         Likewise.
15578         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15579         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
15581         Likewise.
15582         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
15583         Likewise.
15584         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
15586         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
15587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15588         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15589         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15590         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15591         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
15592         (gl_WCHAR_H_DEFAULTS): Likewise.
15593
15594 2009-12-31  Eric Blake  <ebb9@byu.net>
15595
15596         signal, spawn: use link warnings
15597         * lib/signal.in.h (sigset_t): Make unconditional.
15598         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
15599         (sigpending, sigprocmask, sigaction): Add link warnings.
15600         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
15601         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
15602         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
15603         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
15604         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
15605         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
15606         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
15607         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
15608         (posix_spawn_file_actions_destroy)
15609         (posix_spawn_file_actions_addopen)
15610         (posix_spawn_file_actions_addclose)
15611         (posix_spawn_file_actions_adddup2): Likewise.
15612         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
15613         * tests/test-signal.c (main): Enhance test.
15614
15615         spawn: improve wrapper support
15616         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
15617         (gl_SPAWN_H_DEFAULTS): New defaults.
15618         * modules/spawn (Makefile.am): Substitute them.
15619         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
15620         Only declare if missing or broken.
15621
15622         sys_times, sys_utsname: use include_next
15623         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
15624         header.
15625         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
15626         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15627         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15628         * modules/sys_times (Depends-on): Add include_next.
15629         (Makefile.am): Substitute additional values.
15630         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15631         * lib/sys_times.in.h (includes): Include native header, if
15632         available.
15633         * lib/sys_utsname.in.h (includes): Likewise.
15634         * tests/test-sys_times.c (main): Enhance test.
15635
15636         fdutimensat: revert prior patch
15637         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
15638         utimens.h.
15639         Reported by Bruno Haible.
15640
15641 2009-12-30  Eric Blake  <ebb9@byu.net>
15642
15643         sys_wait: drop link-warning dependency
15644         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
15645         link-warning efforts.
15646         * lib/sys_wait.in.h: Likewise.
15647
15648         fdutimensat: remove bogus dependency
15649         * modules/fdutimensat (Depends-on): Drop inline.
15650
15651         unistd: fix typo
15652         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
15653
15654 2009-12-30  Bruno Haible  <bruno@clisp.org>
15655
15656         Fix compilation error with Solaris cc.
15657         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
15658         * lib/unicase/u16-is-invariant.c: Likewise.
15659         * lib/unicase/u32-is-invariant.c: Likewise.
15660         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15661
15662 2009-12-30  Bruno Haible  <bruno@clisp.org>
15663
15664         Fix test crash.
15665         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
15666         locales.
15667         Reported by Simon Josefsson <simon@josefsson.org>.
15668
15669 2009-12-30  Bruno Haible  <bruno@clisp.org>
15670
15671         Fix compilation error on most platforms.
15672         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
15673         Reported by Simon Josefsson <simon@josefsson.org>
15674         and Nelson H. F. Beebe <beebe@math.utah.edu>.
15675
15676 2009-12-30  Eric Blake  <ebb9@byu.net>
15677
15678         futimens, utimensat: work around ntfs-3g bug
15679         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
15680         a ctime bug is present, and expand workaround to cover ntfs-3g.
15681         * lib/utimens.c (fdutimens, lutimens): Likewise.
15682         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
15683         (validate_timespec): Adjust return value.
15684         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
15685         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15686         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
15687
15688 2009-12-29  Eric Blake  <ebb9@byu.net>
15689
15690         link-warning: make usage consistent
15691         * modules/ctype (Depends-on): Add link-warning.
15692         (Makefile.am): Update rules accordingly.
15693         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15694         * modules/locale (Depends-on, Makefile.am): Likewise.
15695         * modules/sys_file (Makefile.am): Likewise.
15696         * modules/getopt-posix (Makefile.am): Delete unused link warning
15697         efforts.
15698         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
15699         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
15700         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
15701         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
15702
15703         stdio: remove unused variables
15704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
15705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
15706         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15707
15708         tests: test more substitute headers
15709         * modules/ctype-tests: New file.
15710         * modules/dirent-tests: Likewise.
15711         * modules/spawn-tests: Likewise.
15712         * modules/sys_file-tests: Likewise.
15713         * modules/sys_ioctl-tests: Likewise.
15714         * modules/sys_wait-tests: Likewise.
15715         * tests/test-ctype.c: Likewise.
15716         * tests/test-dirent.c: Likewise.
15717         * tests/test-spawn.c: Likewise.
15718         * tests/test-sys_file.c: Likewise.
15719         * tests/test-sys_ioctl.c: Likewise.
15720         * tests/test-sys_wait.c: Likewise.
15721         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
15722         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
15723         whether or not flock is in use.
15724
15725         tests: remove License section from module
15726         * modules/arpa_inet-tests: Remove unneeded section.
15727         * modules/byteswap-tests: Likewise.
15728         * modules/ceilf-tests: Likewise.
15729         * modules/ceill-tests: Likewise.
15730         * modules/crypto/des-tests: Likewise.
15731         * modules/crypto/gc-arcfour-tests: Likewise.
15732         * modules/crypto/gc-arctwo-tests: Likewise.
15733         * modules/crypto/gc-des-tests: Likewise.
15734         * modules/crypto/gc-hmac-md5-tests: Likewise.
15735         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15736         * modules/crypto/gc-md2-tests: Likewise.
15737         * modules/crypto/gc-md4-tests: Likewise.
15738         * modules/crypto/gc-md5-tests: Likewise.
15739         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15740         * modules/crypto/gc-rijndael-tests: Likewise.
15741         * modules/crypto/gc-sha1-tests: Likewise.
15742         * modules/crypto/gc-tests: Likewise.
15743         * modules/crypto/md2-tests: Likewise.
15744         * modules/crypto/md4-tests: Likewise.
15745         * modules/fcntl-h-tests: Likewise.
15746         * modules/floorf-tests: Likewise.
15747         * modules/floorl-tests: Likewise.
15748         * modules/frexp-nolibm-tests: Likewise.
15749         * modules/frexp-tests: Likewise.
15750         * modules/frexpl-nolibm-tests: Likewise.
15751         * modules/frexpl-tests: Likewise.
15752         * modules/getaddrinfo-tests: Likewise.
15753         * modules/inttypes-tests: Likewise.
15754         * modules/isfinite-tests: Likewise.
15755         * modules/isinf-tests: Likewise.
15756         * modules/ldexpl-tests: Likewise.
15757         * modules/locale-tests: Likewise.
15758         * modules/math-tests: Likewise.
15759         * modules/netdb-tests: Likewise.
15760         * modules/netinet_in-tests: Likewise.
15761         * modules/printf-frexp-tests: Likewise.
15762         * modules/printf-frexpl-tests: Likewise.
15763         * modules/priv-set-tests: Likewise.
15764         * modules/random_r-tests: Likewise.
15765         * modules/round-tests: Likewise.
15766         * modules/roundf-tests: Likewise.
15767         * modules/roundl-tests: Likewise.
15768         * modules/search-tests: Likewise.
15769         * modules/select-tests: Likewise.
15770         * modules/signal-tests: Likewise.
15771         * modules/stdbool-tests: Likewise.
15772         * modules/stddef-tests: Likewise.
15773         * modules/stdint-tests: Likewise.
15774         * modules/stdio-tests: Likewise.
15775         * modules/stdlib-tests: Likewise.
15776         * modules/string-tests: Likewise.
15777         * modules/strings-tests: Likewise.
15778         * modules/sys_select-tests: Likewise.
15779         * modules/sys_socket-tests: Likewise.
15780         * modules/sys_stat-tests: Likewise.
15781         * modules/sys_time-tests: Likewise.
15782         * modules/sys_utsname-tests: Likewise.
15783         * modules/sysexits-tests: Likewise.
15784         * modules/time-tests: Likewise.
15785         * modules/trunc-tests: Likewise.
15786         * modules/truncf-tests: Likewise.
15787         * modules/truncl-tests: Likewise.
15788         * modules/tsearch-tests: Likewise.
15789         * modules/unistd-tests: Likewise.
15790         * modules/wchar-tests: Likewise.
15791         * modules/wctype-tests: Likewise.
15792
15793         tests: fix license on several tests
15794         * tests/test-des.c: Update to GPLv3+.
15795         * tests/test-flock.c: Likewise.
15796         * tests/test-fsync.c: Likewise.
15797         * tests/test-futimens.h: Likewise.
15798         * tests/test-gc-arcfour.c: Likewise.
15799         * tests/test-gc-arctwo.c: Likewise.
15800         * tests/test-gc-des.c: Likewise.
15801         * tests/test-gc-hmac-md5.c: Likewise.
15802         * tests/test-gc-hmac-sha1.c: Likewise.
15803         * tests/test-gc-md2.c: Likewise.
15804         * tests/test-gc-md4.c: Likewise.
15805         * tests/test-gc-md5.c: Likewise.
15806         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15807         * tests/test-gc-rijndael.c: Likewise.
15808         * tests/test-gc-sha1.c: Likewise.
15809         * tests/test-gc.c: Likewise.
15810         * tests/test-getcwd.c: Likewise.
15811         * tests/test-link.c: Likewise.
15812         * tests/test-link.h: Likewise.
15813         * tests/test-lutimens.h: Likewise.
15814         * tests/test-md2.c: Likewise.
15815         * tests/test-md4.c: Likewise.
15816         * tests/test-mkdir.h: Likewise.
15817         * tests/test-rename.c: Likewise.
15818         * tests/test-rename.h: Likewise.
15819         * tests/test-safe-alloc.c: Likewise.
15820         * tests/test-utimens-common.h: Likewise.
15821         * tests/test-utimens.h: Likewise.
15822
15823         maint: sync license texts
15824         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
15825         * doc/gpl-3.0.texi: Revert copyright year update.
15826         * doc/lgpl-3.0.texi: Likewise.
15827
15828 2009-12-29  Jim Meyering  <meyering@redhat.com>
15829
15830         update nearly all FSF copyright year lists to include 2009
15831         The files named by the following are exempted:
15832             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
15833               test -f "$dst" && { echo "$dst"; continue; }
15834               test -d "$dst" || continue
15835               echo "$dst"/$(basename "$src")
15836             done > exempt
15837             git ls-files tests/unictype >> exempt
15838         In the remaining files, convert to all-interval notation if
15839         - there is already at least one year interval like 2000-2003
15840         - the file is maintained by me
15841         - the file is in lib/uni*/, where that style already prevails
15842         Otherwise, use update-copyright's default.
15843
15844 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15845         and Eric Blake  <ebb9@byu.net>
15846
15847         tests: don't require debug system() to pass
15848         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
15849         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15850         * tests/test-unlink.h (test_unlink_func): Likewise.
15851         * tests/test-fstatat.c (main): ...into callers.
15852         * tests/test-lstat.c (main): Likewise.
15853         * tests/test-rmdir.c (main): Likewise.
15854         * tests/test-unlink.c (main): Likewise.
15855         * tests/test-unlinkat.c (main): Likewise.
15856         * tests/test-areadlink-with-size.c (main): Don't require a
15857         debug-only system call to pass, aiding cross-testing to mingw.
15858         * tests/test-areadlink.c (main): Likewise.
15859         * tests/test-areadlinkat-with-size.c (main): Likewise.
15860         * tests/test-areadlinkat.c (main): Likewise.
15861         * tests/test-canonicalize-lgpl.c (main): Likewise.
15862         * tests/test-canonicalize.c (main): Likewise.
15863         * tests/test-chown.c (main): Likewise.
15864         * tests/test-fchownat.c (main): Likewise.
15865         * tests/test-lchown.c (main): Likewise.
15866         * tests/test-fdutimensat.c (main): Likewise.
15867         * tests/test-futimens.c (main): Likewise.
15868         * tests/test-link.c (main): Likewise.
15869         * tests/test-linkat.c (main): Likewise.
15870         * tests/test-mkdir.c (main): Likewise.
15871         * tests/test-mkdirat.c (main): Likewise.
15872         * tests/test-mkfifo.c (main): Likewise.
15873         * tests/test-mkfifoat.c (main): Likewise.
15874         * tests/test-mknod.c (main): Likewise.
15875         * tests/test-readlink.c (main): Likewise.
15876         * tests/test-remove.c (main): Likewise.
15877         * tests/test-rename.c (main): Likewise.
15878         * tests/test-renameat.c (main): Likewise.
15879         * tests/test-symlink.c (main): Likewise.
15880         * tests/test-symlinkat.c (main): Likewise.
15881         * tests/test-utimens.c (main): Likewise.
15882         * tests/test-utimensat.c (main): Likewise.
15883
15884 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15885
15886         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
15887         on $(UNUSED_PARAMETER_H) to avoid build failure.
15888
15889 2009-12-28  Jim Meyering  <meyering@redhat.com>
15890
15891         update-copyright: you may specify a max. line length other than 72
15892         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15893
15894         maint: use consistent FSF copyright line syntax
15895         * lib/posixtm.c: Add missing comma in FSF copyright line.
15896         * lib/posixtm.h: Likewise.
15897         * lib/getugroups.c: Add missing ", Inc.".
15898
15899         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
15900         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
15901         FSF copyright line.  Remove trailing blanks.
15902
15903 2009-12-28  Eric Blake  <ebb9@byu.net>
15904
15905         test-dup2: reduce dependencies
15906         * modules/cloexec (Configure.ac): Set witness.
15907         * modules/dup2-tests (Depends-on): Drop cloexec.
15908         * tests/test-dup2.c (main): Skip portion of test if cloexec module
15909         not present.
15910         Suggested by Bruno Haible.
15911
15912 2009-12-26  Bruno Haible  <bruno@clisp.org>
15913
15914         Remove an unneeded dependency.
15915         * modules/fseterr (Depends-on): Remove dup2.
15916
15917 2009-12-26  Eric Blake  <ebb9@byu.net>
15918
15919         tests: use macros.h in more places
15920         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
15921         (ASSERT_STREAM): Provide default of stderr.
15922         * tests/test-dirent-safer.c: Include macros.h, using alternate
15923         stream for assertions.
15924         * tests/test-dup-safer.c: Likewise.
15925         * tests/test-freopen-safer.c: Likewise.
15926         * tests/test-getopt.c: Likewise.
15927         * tests/test-openat-safer.c: Likewise.
15928         * tests/test-pipe.c: Likewise.
15929         * tests/test-popen-safer.c: Likewise.
15930         * modules/dirent-safer-tests (Files): Include macros.h.
15931         * modules/unistd-safer-tests (Files): Likewise.
15932         * modules/freopen-safer-tests (Files): Likewise.
15933         * modules/getopt-posix-tests (Files): Likewise.
15934         * modules/openat-safer-tests (Files): Likewise.
15935         * modules/pipe-tests (Files): Likewise.
15936
15937 2009-12-26  Bruno Haible  <bruno@clisp.org>
15938
15939         javacomp: Portability fix.
15940         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
15941         that it also works on Solaris.
15942
15943 2009-12-26  Bruno Haible  <bruno@clisp.org>
15944
15945         localename: Fix storage allocation of gl_locale_name_thread's result.
15946         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
15947         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
15948         all platforms that have 'uselocale'.
15949         (gl_locale_name_thread_unsafe): New function, extracted from
15950         gl_locale_name_thread.
15951         (gl_locale_name_thread): Call struniq on all platforms that have
15952         'uselocale'.
15953         * tests/test-localename.c (test_locale_name_thread): Check that the
15954         resulting strings are permanently allocated.
15955         * modules/localename-tests (Depends-on): Add strdup.
15956
15957 2009-12-26  Bruno Haible  <bruno@clisp.org>
15958
15959         * tests/test-localename.c (categories): Fill in the strings.
15960
15961 2009-12-26  Jim Meyering  <meyering@redhat.com>
15962
15963         isdir: complete the removal of m4/isdir.m4
15964         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
15965
15966         isdir: clean up, since at least grep still uses it
15967         * lib/isdir.c: Include "isdir.h".
15968         (S_ISDIR): Remove now-unneeded definition.
15969         * modules/isdir (Files): Add lib/isdir.h.
15970         * lib/isdir.h: New file, with declaration.
15971         * m4/isdir.m4: Remove file -- unneeded.
15972
15973 2009-12-25  Bruno Haible  <bruno@clisp.org>
15974
15975         selinux-h: Make generated .h files standalone.
15976         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
15977         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
15978         * lib/se-selinux.in.h: Likewise.
15979         * modules/selinux-h (Depends-on): Add unused-parameter.
15980         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
15981         selinux/selinux.h and selinux/context.h.
15982         Suggested by Eric Blake.
15983
15984 2009-12-25  Bruno Haible  <bruno@clisp.org>
15985
15986         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
15987         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
15988         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
15989         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
15990         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
15991
15992 2009-12-24  Bruno Haible  <bruno@clisp.org>
15993
15994         openat: Fix warning.
15995         * lib/openat-proc.c: Include <unistd.h>.
15996
15997 2009-12-24  Bruno Haible  <bruno@clisp.org>
15998
15999         New module 'unused-parameter'.
16000         * build-aux/unused-parameter.h: New file, extracted from earlier
16001         gnulib-common.m4.
16002         * modules/unused-parameter: New file.
16003         * lib/unistr.h: Include unused-parameter.h.
16004         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
16005         _GL_UNUSED.
16006         * modules/unistr/base (Depends-on): Add unused-parameter.
16007
16008 2009-12-24  Bruno Haible  <bruno@clisp.org>
16009
16010         Add missing dependencies to 'extensions' module.
16011         * m4/extensions.m4: Add comment.
16012         * modules/accept4 (Depends-on): Add extensions.
16013         * modules/dup3 (Depends-on): Likewise.
16014         * modules/fcntl (Depends-on): Likewise.
16015         * modules/futimens (Depends-on): Likewise.
16016         * modules/mknod (Depends-on): Likewise.
16017         * modules/pipe2 (Depends-on): Likewise.
16018         * modules/stat-time (Depends-on): Likewise.
16019         * modules/strcasestr-simple (Depends-on): Likewise.
16020         * modules/strsignal (Depends-on): Likewise.
16021         * modules/utimensat (Depends-on): Likewise.
16022         * modules/localcharset (Depends-on): Likewise. Needed because of
16023         gl_FCNTL_O_FLAGS.
16024         * modules/wcrtomb (Depends-on): Likewise. Needed because of
16025         AC_TYPE_MBSTATE_T.
16026         * modules/wcsnrtombs (Depends-on): Likewise.
16027         * modules/wcsrtombs (Depends-on): Likewise.
16028
16029 2009-12-24  Bruno Haible  <bruno@clisp.org>
16030
16031         binary-io: Avoid gcc warning due to SET_BINARY.
16032         * lib/binary-io.h (SET_BINARY): Cast the result to void.
16033         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
16034
16035 2009-12-24  Bruno Haible  <bruno@clisp.org>
16036
16037         Avoid future namespace pollution on glibc systems.
16038         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
16039         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
16040         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
16041         glibc systems.
16042
16043 2009-12-24  Bruno Haible  <bruno@clisp.org>
16044
16045         Refactor common macros used in tests.
16046         * tests/macros.h: New file.
16047         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
16048         and/or <stdlib.h>, if appropriate.
16049         (ASSERT, SIZEOF): Remove macros.
16050         * tests/test-areadlink-with-size.c: Likewise.
16051         * tests/test-areadlinkat.c: Likewise.
16052         * tests/test-areadlinkat-with-size.c: Likewise.
16053         * tests/test-argmatch.c: Likewise.
16054         * tests/test-argv-iter.c: Likewise.
16055         * tests/test-array-mergesort.c: Likewise.
16056         * tests/test-array_list.c: Likewise.
16057         * tests/test-array_oset.c: Likewise.
16058         * tests/test-avltree_list.c: Likewise.
16059         * tests/test-avltree_oset.c: Likewise.
16060         * tests/test-avltreehash_list.c: Likewise.
16061         * tests/test-base64.c: Likewise.
16062         * tests/test-binary-io.c: Likewise.
16063         * tests/test-bitrotate.c: Likewise.
16064         * tests/test-btowc.c: Likewise.
16065         * tests/test-byteswap.c: Likewise.
16066         * tests/test-c-ctype.c: Likewise.
16067         * tests/test-c-stack.c: Likewise.
16068         * tests/test-c-strcasecmp.c: Likewise.
16069         * tests/test-c-strcasestr.c: Likewise.
16070         * tests/test-c-strncasecmp.c: Likewise.
16071         * tests/test-c-strstr.c: Likewise.
16072         * tests/test-canonicalize-lgpl.c: Likewise.
16073         * tests/test-canonicalize.c: Likewise.
16074         * tests/test-carray_list.c: Likewise.
16075         * tests/test-ceilf1.c: Likewise.
16076         * tests/test-ceilf2.c: Likewise.
16077         * tests/test-ceill.c: Likewise.
16078         * tests/test-chown.c: Likewise.
16079         * tests/test-cloexec.c: Likewise.
16080         * tests/test-copy-acl.c: Likewise.
16081         * tests/test-copy-file.c: Likewise.
16082         * tests/test-count-one-bits.c: Likewise.
16083         * tests/test-dprintf-posix.c: Likewise.
16084         * tests/test-dup2.c: Likewise.
16085         * tests/test-dup3.c: Likewise.
16086         * tests/test-duplocale.c: Likewise.
16087         * tests/test-fbufmode.c: Likewise.
16088         * tests/test-fchdir.c: Likewise.
16089         * tests/test-fchownat.c: Likewise.
16090         * tests/test-fcntl-safer.c: Likewise.
16091         * tests/test-fcntl.c: Likewise.
16092         * tests/test-fdopendir.c: Likewise.
16093         * tests/test-fdutimensat.c: Likewise.
16094         * tests/test-fflush2.c: Likewise.
16095         * tests/test-file-has-acl.c: Likewise.
16096         * tests/test-filevercmp.c: Likewise.
16097         * tests/test-flock.c: Likewise.
16098         * tests/test-floorf1.c: Likewise.
16099         * tests/test-floorf2.c: Likewise.
16100         * tests/test-floorl.c: Likewise.
16101         * tests/test-fnmatch.c: Likewise.
16102         * tests/test-fopen.h: Likewise.
16103         * tests/test-fpending.c: Likewise.
16104         * tests/test-fprintf-posix.c: Likewise.
16105         * tests/test-fpurge.c: Likewise.
16106         * tests/test-freadable.c: Likewise.
16107         * tests/test-freadahead.c: Likewise.
16108         * tests/test-freading.c: Likewise.
16109         * tests/test-freadptr.c: Likewise.
16110         * tests/test-freadptr2.c: Likewise.
16111         * tests/test-freadseek.c: Likewise.
16112         * tests/test-freopen.c: Likewise.
16113         * tests/test-frexp.c: Likewise.
16114         * tests/test-frexpl.c: Likewise.
16115         * tests/test-fseek.c: Likewise.
16116         * tests/test-fseeko.c: Likewise.
16117         * tests/test-fstatat.c: Likewise.
16118         * tests/test-fstrcmp.c: Likewise.
16119         * tests/test-fsync.c: Likewise.
16120         * tests/test-ftell.c: Likewise.
16121         * tests/test-ftello.c: Likewise.
16122         * tests/test-func.c: Likewise.
16123         * tests/test-futimens.c: Likewise.
16124         * tests/test-fwritable.c: Likewise.
16125         * tests/test-fwriting.c: Likewise.
16126         * tests/test-getcwd.c: Likewise.
16127         * tests/test-getdate.c: Likewise.
16128         * tests/test-getdelim.c: Likewise.
16129         * tests/test-getdtablesize.c: Likewise.
16130         * tests/test-getgroups.c: Likewise.
16131         * tests/test-getline.c: Likewise.
16132         * tests/test-getndelim2.c: Likewise.
16133         * tests/test-glob.c: Likewise.
16134         * tests/test-hash.c: Likewise.
16135         * tests/test-i-ring.c: Likewise.
16136         * tests/test-iconv-utf.c: Likewise.
16137         * tests/test-iconv.c: Likewise.
16138         * tests/test-idpriv-drop.c: Likewise.
16139         * tests/test-idpriv-droptemp.c: Likewise.
16140         * tests/test-inet_ntop.c: Likewise.
16141         * tests/test-inet_pton.c: Likewise.
16142         * tests/test-isblank.c: Likewise.
16143         * tests/test-isfinite.c: Likewise.
16144         * tests/test-isinf.c: Likewise.
16145         * tests/test-isnan.c: Likewise.
16146         * tests/test-isnand.h: Likewise.
16147         * tests/test-isnanf.h: Likewise.
16148         * tests/test-isnanl.h: Likewise.
16149         * tests/test-lchown.c: Likewise.
16150         * tests/test-ldexpl.c: Likewise.
16151         * tests/test-link.c: Likewise.
16152         * tests/test-linkat.c: Likewise.
16153         * tests/test-linked_list.c: Likewise.
16154         * tests/test-linkedhash_list.c: Likewise.
16155         * tests/test-localename.c: Likewise.
16156         * tests/test-lseek.c: Likewise.
16157         * tests/test-lstat.c: Likewise.
16158         * tests/test-mbmemcasecmp.c: Likewise.
16159         * tests/test-mbmemcasecoll.c: Likewise.
16160         * tests/test-mbrtowc.c: Likewise.
16161         * tests/test-mbscasecmp.c: Likewise.
16162         * tests/test-mbscasestr1.c: Likewise.
16163         * tests/test-mbscasestr2.c: Likewise.
16164         * tests/test-mbscasestr3.c: Likewise.
16165         * tests/test-mbscasestr4.c: Likewise.
16166         * tests/test-mbschr.c: Likewise.
16167         * tests/test-mbscspn.c: Likewise.
16168         * tests/test-mbsinit.c: Likewise.
16169         * tests/test-mbsncasecmp.c: Likewise.
16170         * tests/test-mbsnrtowcs.c: Likewise.
16171         * tests/test-mbspbrk.c: Likewise.
16172         * tests/test-mbspcasecmp.c: Likewise.
16173         * tests/test-mbsrchr.c: Likewise.
16174         * tests/test-mbsrtowcs.c: Likewise.
16175         * tests/test-mbsspn.c: Likewise.
16176         * tests/test-mbsstr1.c: Likewise.
16177         * tests/test-mbsstr2.c: Likewise.
16178         * tests/test-mbsstr3.c: Likewise.
16179         * tests/test-memchr.c: Likewise.
16180         * tests/test-memchr2.c: Likewise.
16181         * tests/test-memcmp.c: Likewise.
16182         * tests/test-memmem.c: Likewise.
16183         * tests/test-memrchr.c: Likewise.
16184         * tests/test-mkdir.c: Likewise.
16185         * tests/test-mkdirat.c: Likewise.
16186         * tests/test-mkfifo.c: Likewise.
16187         * tests/test-mkfifoat.c: Likewise.
16188         * tests/test-mknod.c: Likewise.
16189         * tests/test-nanosleep.c: Likewise.
16190         * tests/test-nl_langinfo.c: Likewise.
16191         * tests/test-obstack-printf.c: Likewise.
16192         * tests/test-open.c: Likewise.
16193         * tests/test-openat.c: Likewise.
16194         * tests/test-pipe-filter-gi1.c: Likewise.
16195         * tests/test-pipe-filter-gi2-main.c: Likewise.
16196         * tests/test-pipe-filter-ii1.c: Likewise.
16197         * tests/test-pipe-filter-ii2-main.c: Likewise.
16198         * tests/test-pipe2.c: Likewise.
16199         * tests/test-popen.h: Likewise.
16200         * tests/test-posixtm.c: Likewise.
16201         * tests/test-pread.c: Likewise.
16202         * tests/test-printf-frexp.c: Likewise.
16203         * tests/test-printf-frexpl.c: Likewise.
16204         * tests/test-printf-posix.c: Likewise.
16205         * tests/test-priv-set.c: Likewise.
16206         * tests/test-quotearg.c: Likewise.
16207         * tests/test-random_r.c: Likewise.
16208         * tests/test-rawmemchr.c: Likewise.
16209         * tests/test-rbtree_list.c: Likewise.
16210         * tests/test-rbtree_oset.c: Likewise.
16211         * tests/test-rbtreehash_list.c: Likewise.
16212         * tests/test-readlink.c: Likewise.
16213         * tests/test-remove.c: Likewise.
16214         * tests/test-rename.c: Likewise.
16215         * tests/test-renameat.c: Likewise.
16216         * tests/test-rmdir.c: Likewise.
16217         * tests/test-round1.c: Likewise.
16218         * tests/test-roundf1.c: Likewise.
16219         * tests/test-roundl.c: Likewise.
16220         * tests/test-safe-alloc.c: Likewise.
16221         * tests/test-sameacls.c: Likewise.
16222         * tests/test-set-mode-acl.c: Likewise.
16223         * tests/test-setenv.c: Likewise.
16224         * tests/test-sigaction.c: Likewise.
16225         * tests/test-signbit.c: Likewise.
16226         * tests/test-sleep.c: Likewise.
16227         * tests/test-snprintf-posix.c: Likewise.
16228         * tests/test-snprintf.c: Likewise.
16229         * tests/test-sprintf-posix.c: Likewise.
16230         * tests/test-stat-time.c: Likewise.
16231         * tests/test-stat.c: Likewise.
16232         * tests/test-strcasestr.c: Likewise.
16233         * tests/test-strchrnul.c: Likewise.
16234         * tests/test-strerror.c: Likewise.
16235         * tests/test-striconv.c: Likewise.
16236         * tests/test-striconveh.c: Likewise.
16237         * tests/test-striconveha.c: Likewise.
16238         * tests/test-strsignal.c: Likewise.
16239         * tests/test-strstr.c: Likewise.
16240         * tests/test-strtod.c: Likewise.
16241         * tests/test-strverscmp.c: Likewise.
16242         * tests/test-symlink.c: Likewise.
16243         * tests/test-symlinkat.c: Likewise.
16244         * tests/test-trunc1.c: Likewise.
16245         * tests/test-trunc2.c: Likewise.
16246         * tests/test-truncf1.c: Likewise.
16247         * tests/test-truncf2.c: Likewise.
16248         * tests/test-truncl.c: Likewise.
16249         * tests/test-uname.c: Likewise.
16250         * tests/test-unlink.c: Likewise.
16251         * tests/test-unlinkat.c: Likewise.
16252         * tests/test-unsetenv.c: Likewise.
16253         * tests/test-usleep.c: Likewise.
16254         * tests/test-utimens.c: Likewise.
16255         * tests/test-utimensat.c: Likewise.
16256         * tests/test-vasnprintf-posix.c: Likewise.
16257         * tests/test-vasnprintf-posix2.c: Likewise.
16258         * tests/test-vasnprintf.c: Likewise.
16259         * tests/test-vasprintf-posix.c: Likewise.
16260         * tests/test-vasprintf.c: Likewise.
16261         * tests/test-vdprintf-posix.c: Likewise.
16262         * tests/test-vfprintf-posix.c: Likewise.
16263         * tests/test-vprintf-posix.c: Likewise.
16264         * tests/test-vsnprintf-posix.c: Likewise.
16265         * tests/test-vsnprintf.c: Likewise.
16266         * tests/test-vsprintf-posix.c: Likewise.
16267         * tests/test-wcrtomb.c: Likewise.
16268         * tests/test-wcsnrtombs.c: Likewise.
16269         * tests/test-wcsrtombs.c: Likewise.
16270         * tests/test-wctype.c: Likewise.
16271         * tests/test-wcwidth.c: Likewise.
16272         * tests/test-xfprintf-posix.c: Likewise.
16273         * tests/test-xmemdup0.c: Likewise.
16274         * tests/test-xprintf-posix.c: Likewise.
16275         * tests/test-xvasprintf.c: Likewise.
16276         * tests/unicase/test-locale-language.c: Likewise.
16277         * tests/unicase/test-mapping-part1.h: Likewise.
16278         * tests/unicase/test-predicate-part1.h: Likewise.
16279         * tests/unicase/test-u8-casecmp.c: Likewise.
16280         * tests/unicase/test-u8-casecoll.c: Likewise.
16281         * tests/unicase/test-u8-casefold.c: Likewise.
16282         * tests/unicase/test-u8-is-cased.c: Likewise.
16283         * tests/unicase/test-u8-is-casefolded.c: Likewise.
16284         * tests/unicase/test-u8-is-lowercase.c: Likewise.
16285         * tests/unicase/test-u8-is-titlecase.c: Likewise.
16286         * tests/unicase/test-u8-is-uppercase.c: Likewise.
16287         * tests/unicase/test-u8-tolower.c: Likewise.
16288         * tests/unicase/test-u8-totitle.c: Likewise.
16289         * tests/unicase/test-u8-toupper.c: Likewise.
16290         * tests/unicase/test-u16-casecmp.c: Likewise.
16291         * tests/unicase/test-u16-casecoll.c: Likewise.
16292         * tests/unicase/test-u16-casefold.c: Likewise.
16293         * tests/unicase/test-u16-is-cased.c: Likewise.
16294         * tests/unicase/test-u16-is-casefolded.c: Likewise.
16295         * tests/unicase/test-u16-is-lowercase.c: Likewise.
16296         * tests/unicase/test-u16-is-titlecase.c: Likewise.
16297         * tests/unicase/test-u16-is-uppercase.c: Likewise.
16298         * tests/unicase/test-u16-tolower.c: Likewise.
16299         * tests/unicase/test-u16-totitle.c: Likewise.
16300         * tests/unicase/test-u16-toupper.c: Likewise.
16301         * tests/unicase/test-u32-casecmp.c: Likewise.
16302         * tests/unicase/test-u32-casecoll.c: Likewise.
16303         * tests/unicase/test-u32-casefold.c: Likewise.
16304         * tests/unicase/test-u32-is-cased.c: Likewise.
16305         * tests/unicase/test-u32-is-casefolded.c: Likewise.
16306         * tests/unicase/test-u32-is-lowercase.c: Likewise.
16307         * tests/unicase/test-u32-is-titlecase.c: Likewise.
16308         * tests/unicase/test-u32-is-uppercase.c: Likewise.
16309         * tests/unicase/test-u32-tolower.c: Likewise.
16310         * tests/unicase/test-u32-totitle.c: Likewise.
16311         * tests/unicase/test-u32-toupper.c: Likewise.
16312         * tests/unicase/test-ulc-casecmp.c: Likewise.
16313         * tests/unicase/test-ulc-casecoll.c: Likewise.
16314         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16315         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16316         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16317         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16318         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16319         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16320         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16321         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16322         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16323         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16324         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16325         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16326         * tests/unictype/test-bidi_byname.c: Likewise.
16327         * tests/unictype/test-bidi_name.c: Likewise.
16328         * tests/unictype/test-bidi_of.c: Likewise.
16329         * tests/unictype/test-bidi_test.c: Likewise.
16330         * tests/unictype/test-block_list.c: Likewise.
16331         * tests/unictype/test-block_of.c: Likewise.
16332         * tests/unictype/test-block_test.c: Likewise.
16333         * tests/unictype/test-categ_and.c: Likewise.
16334         * tests/unictype/test-categ_and_not.c: Likewise.
16335         * tests/unictype/test-categ_byname.c: Likewise.
16336         * tests/unictype/test-categ_name.c: Likewise.
16337         * tests/unictype/test-categ_none.c: Likewise.
16338         * tests/unictype/test-categ_of.c: Likewise.
16339         * tests/unictype/test-categ_or.c: Likewise.
16340         * tests/unictype/test-categ_test_withtable.c: Likewise.
16341         * tests/unictype/test-combining.c: Likewise.
16342         * tests/unictype/test-decdigit.c: Likewise.
16343         * tests/unictype/test-digit.c: Likewise.
16344         * tests/unictype/test-mirror.c: Likewise.
16345         * tests/unictype/test-numeric.c: Likewise.
16346         * tests/unictype/test-pr_byname.c: Likewise.
16347         * tests/unictype/test-pr_test.c: Likewise.
16348         * tests/unictype/test-predicate-part1.h: Likewise.
16349         * tests/unictype/test-scripts.c: Likewise.
16350         * tests/unictype/test-sy_c_ident.c: Likewise.
16351         * tests/unictype/test-sy_java_ident.c: Likewise.
16352         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
16353         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
16354         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
16355         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
16356         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
16357         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
16358         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
16359         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
16360         * tests/uninorm/test-canonical-decomposition.c: Likewise.
16361         * tests/uninorm/test-compat-decomposition.c: Likewise.
16362         * tests/uninorm/test-composition.c: Likewise.
16363         * tests/uninorm/test-decomposing-form.c: Likewise.
16364         * tests/uninorm/test-decomposition.c: Likewise.
16365         * tests/uninorm/test-u8-nfc.c: Likewise.
16366         * tests/uninorm/test-u8-nfd.c: Likewise.
16367         * tests/uninorm/test-u8-nfkc.c: Likewise.
16368         * tests/uninorm/test-u8-nfkd.c: Likewise.
16369         * tests/uninorm/test-u8-normcmp.c: Likewise.
16370         * tests/uninorm/test-u8-normcoll.c: Likewise.
16371         * tests/uninorm/test-u16-nfc.c: Likewise.
16372         * tests/uninorm/test-u16-nfd.c: Likewise.
16373         * tests/uninorm/test-u16-nfkc.c: Likewise.
16374         * tests/uninorm/test-u16-nfkd.c: Likewise.
16375         * tests/uninorm/test-u16-normcmp.c: Likewise.
16376         * tests/uninorm/test-u16-normcoll.c: Likewise.
16377         * tests/uninorm/test-u32-nfc.c: Likewise.
16378         * tests/uninorm/test-u32-nfd.c: Likewise.
16379         * tests/uninorm/test-u32-nfkc.c: Likewise.
16380         * tests/uninorm/test-u32-nfkd.c: Likewise.
16381         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16382         * tests/uninorm/test-u32-normcmp.c: Likewise.
16383         * tests/uninorm/test-u32-normcoll.c: Likewise.
16384         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
16385         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16386         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16387         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16388         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16389         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16390         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16391         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16392         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16393         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16394         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16395         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16396         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16397         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16398         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16399         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16400         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16401         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16402         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16403         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16404         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16405         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16406         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16407         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16408         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16409         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16410         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16411         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16412         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16413         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
16414         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
16415         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
16416         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
16417         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16418         * tests/uniwidth/test-u8-width.c: Likewise.
16419         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16420         * tests/uniwidth/test-u16-width.c: Likewise.
16421         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16422         * tests/uniwidth/test-u32-width.c: Likewise.
16423         * tests/uniwidth/test-uc_width.c: Likewise.
16424         * tests/uniwidth/test-uc_width2.c: Likewise.
16425         * modules/acl-tests (Files): Add tests/macros.h.
16426         * modules/areadlink-tests (Files): Likewise.
16427         * modules/areadlink-with-size-tests (Files): Likewise.
16428         * modules/areadlinkat-tests (Files): Likewise.
16429         * modules/areadlinkat-with-size-tests (Files): Likewise.
16430         * modules/argmatch-tests (Files): Likewise.
16431         * modules/argv-iter-tests (Files): Likewise.
16432         * modules/array-list-tests (Files): Likewise.
16433         * modules/array-mergesort-tests (Files): Likewise.
16434         * modules/array-oset-tests (Files): Likewise.
16435         * modules/avltree-list-tests (Files): Likewise.
16436         * modules/avltree-oset-tests (Files): Likewise.
16437         * modules/avltreehash-list-tests (Files): Likewise.
16438         * modules/base64-tests (Files): Likewise.
16439         * modules/binary-io-tests (Files): Likewise.
16440         * modules/bitrotate-tests (Files): Likewise.
16441         * modules/btowc-tests (Files): Likewise.
16442         * modules/byteswap-tests (Files): Likewise.
16443         * modules/c-ctype-tests (Files): Likewise.
16444         * modules/c-stack-tests (Files): Likewise.
16445         * modules/c-strcase-tests (Files): Likewise.
16446         * modules/c-strcasestr-tests (Files): Likewise.
16447         * modules/c-strstr-tests (Files): Likewise.
16448         * modules/canonicalize-lgpl-tests (Files): Likewise.
16449         * modules/canonicalize-tests (Files): Likewise.
16450         * modules/carray-list-tests (Files): Likewise.
16451         * modules/ceilf-tests (Files): Likewise.
16452         * modules/ceill-tests (Files): Likewise.
16453         * modules/chown-tests (Files): Likewise.
16454         * modules/cloexec-tests (Files): Likewise.
16455         * modules/copy-file-tests (Files): Likewise.
16456         * modules/count-one-bits-tests (Files): Likewise.
16457         * modules/dprintf-posix-tests (Files): Likewise.
16458         * modules/dup2-tests (Files): Likewise.
16459         * modules/dup3-tests (Files): Likewise.
16460         * modules/duplocale-tests (Files): Likewise.
16461         * modules/fbufmode-tests (Files): Likewise.
16462         * modules/fchdir-tests (Files): Likewise.
16463         * modules/fcntl-safer-tests (Files): Likewise.
16464         * modules/fcntl-tests (Files): Likewise.
16465         * modules/fdopendir-tests (Files): Likewise.
16466         * modules/fdutimensat-tests (Files): Likewise.
16467         * modules/fflush-tests (Files): Likewise.
16468         * modules/filevercmp-tests (Files): Likewise.
16469         * modules/flock-tests (Files): Likewise.
16470         * modules/floorf-tests (Files): Likewise.
16471         * modules/floorl-tests (Files): Likewise.
16472         * modules/fnmatch-tests (Files): Likewise.
16473         * modules/fopen-safer-tests (Files): Likewise.
16474         * modules/fopen-tests (Files): Likewise.
16475         * modules/fpending-tests (Files): Likewise.
16476         * modules/fprintf-posix-tests (Files): Likewise.
16477         * modules/fpurge-tests (Files): Likewise.
16478         * modules/freadable-tests (Files): Likewise.
16479         * modules/freadahead-tests (Files): Likewise.
16480         * modules/freading-tests (Files): Likewise.
16481         * modules/freadptr-tests (Files): Likewise.
16482         * modules/freadseek-tests (Files): Likewise.
16483         * modules/freopen-tests (Files): Likewise.
16484         * modules/frexp-nolibm-tests (Files): Likewise.
16485         * modules/frexp-tests (Files): Likewise.
16486         * modules/frexpl-nolibm-tests (Files): Likewise.
16487         * modules/frexpl-tests (Files): Likewise.
16488         * modules/fseek-tests (Files): Likewise.
16489         * modules/fseeko-tests (Files): Likewise.
16490         * modules/fstrcmp-tests (Files): Likewise.
16491         * modules/fsync-tests (Files): Likewise.
16492         * modules/ftell-tests (Files): Likewise.
16493         * modules/ftello-tests (Files): Likewise.
16494         * modules/func-tests (Files): Likewise.
16495         * modules/futimens-tests (Files): Likewise.
16496         * modules/fwritable-tests (Files): Likewise.
16497         * modules/fwriting-tests (Files): Likewise.
16498         * modules/getcwd-tests (Files): Likewise.
16499         * modules/getdate-tests (Files): Likewise.
16500         * modules/getdelim-tests (Files): Likewise.
16501         * modules/getdtablesize-tests (Files): Likewise.
16502         * modules/getgroups-tests (Files): Likewise.
16503         * modules/getline-tests (Files): Likewise.
16504         * modules/getndelim2-tests (Files): Likewise.
16505         * modules/glob-tests (Files): Likewise.
16506         * modules/hash-tests (Files): Likewise.
16507         * modules/i-ring-tests (Files): Likewise.
16508         * modules/iconv-tests (Files): Likewise.
16509         * modules/iconv_open-utf-tests (Files): Likewise.
16510         * modules/idpriv-drop-tests (Files): Likewise.
16511         * modules/idpriv-droptemp-tests (Files): Likewise.
16512         * modules/inet_ntop-tests (Files): Likewise.
16513         * modules/inet_pton-tests (Files): Likewise.
16514         * modules/isblank-tests (Files): Likewise.
16515         * modules/isfinite-tests (Files): Likewise.
16516         * modules/isinf-tests (Files): Likewise.
16517         * modules/isnan-tests (Files): Likewise.
16518         * modules/isnand-nolibm-tests (Files): Likewise.
16519         * modules/isnand-tests (Files): Likewise.
16520         * modules/isnanf-nolibm-tests (Files): Likewise.
16521         * modules/isnanf-tests (Files): Likewise.
16522         * modules/isnanl-nolibm-tests (Files): Likewise.
16523         * modules/isnanl-tests (Files): Likewise.
16524         * modules/lchown-tests (Files): Likewise.
16525         * modules/ldexpl-tests (Files): Likewise.
16526         * modules/link-tests (Files): Likewise.
16527         * modules/linkat-tests (Files): Likewise.
16528         * modules/linked-list-tests (Files): Likewise.
16529         * modules/linkedhash-list-tests (Files): Likewise.
16530         * modules/localename-tests (Files): Likewise.
16531         * modules/lseek-tests (Files): Likewise.
16532         * modules/lstat-tests (Files): Likewise.
16533         * modules/mbmemcasecmp-tests (Files): Likewise.
16534         * modules/mbmemcasecoll-tests (Files): Likewise.
16535         * modules/mbrtowc-tests (Files): Likewise.
16536         * modules/mbscasecmp-tests (Files): Likewise.
16537         * modules/mbscasestr-tests (Files): Likewise.
16538         * modules/mbschr-tests (Files): Likewise.
16539         * modules/mbscspn-tests (Files): Likewise.
16540         * modules/mbsinit-tests (Files): Likewise.
16541         * modules/mbsncasecmp-tests (Files): Likewise.
16542         * modules/mbsnrtowcs-tests (Files): Likewise.
16543         * modules/mbspbrk-tests (Files): Likewise.
16544         * modules/mbspcasecmp-tests (Files): Likewise.
16545         * modules/mbsrchr-tests (Files): Likewise.
16546         * modules/mbsrtowcs-tests (Files): Likewise.
16547         * modules/mbsspn-tests (Files): Likewise.
16548         * modules/mbsstr-tests (Files): Likewise.
16549         * modules/memchr-tests (Files): Likewise.
16550         * modules/memchr2-tests (Files): Likewise.
16551         * modules/memcmp-tests (Files): Likewise.
16552         * modules/memmem-tests (Files): Likewise.
16553         * modules/memrchr-tests (Files): Likewise.
16554         * modules/mkdir-tests (Files): Likewise.
16555         * modules/mkfifo-tests (Files): Likewise.
16556         * modules/mkfifoat-tests (Files): Likewise.
16557         * modules/mknod-tests (Files): Likewise.
16558         * modules/nanosleep-tests (Files): Likewise.
16559         * modules/nl_langinfo-tests (Files): Likewise.
16560         * modules/obstack-printf-tests (Files): Likewise.
16561         * modules/open-tests (Files): Likewise.
16562         * modules/openat-tests (Files): Likewise.
16563         * modules/pipe-filter-gi-tests (Files): Likewise.
16564         * modules/pipe-filter-ii-tests (Files): Likewise.
16565         * modules/pipe2-tests (Files): Likewise.
16566         * modules/popen-safer-tests (Files): Likewise.
16567         * modules/popen-tests (Files): Likewise.
16568         * modules/posixtm-tests (Files): Likewise.
16569         * modules/pread-tests (Files): Likewise.
16570         * modules/printf-frexp-tests (Files): Likewise.
16571         * modules/printf-frexpl-tests (Files): Likewise.
16572         * modules/printf-posix-tests (Files): Likewise.
16573         * modules/priv-set-tests (Files): Likewise.
16574         * modules/quotearg-tests (Files): Likewise.
16575         * modules/random_r-tests (Files): Likewise.
16576         * modules/rawmemchr-tests (Files): Likewise.
16577         * modules/rbtree-list-tests (Files): Likewise.
16578         * modules/rbtree-oset-tests (Files): Likewise.
16579         * modules/rbtreehash-list-tests (Files): Likewise.
16580         * modules/readlink-tests (Files): Likewise.
16581         * modules/remove-tests (Files): Likewise.
16582         * modules/rename-tests (Files): Likewise.
16583         * modules/renameat-tests (Files): Likewise.
16584         * modules/rmdir-tests (Files): Likewise.
16585         * modules/round-tests (Files): Likewise.
16586         * modules/roundf-tests (Files): Likewise.
16587         * modules/roundl-tests (Files): Likewise.
16588         * modules/safe-alloc-tests (Files): Likewise.
16589         * modules/setenv-tests (Files): Likewise.
16590         * modules/sigaction-tests (Files): Likewise.
16591         * modules/signbit-tests (Files): Likewise.
16592         * modules/sleep-tests (Files): Likewise.
16593         * modules/snprintf-posix-tests (Files): Likewise.
16594         * modules/snprintf-tests (Files): Likewise.
16595         * modules/sprintf-posix-tests (Files): Likewise.
16596         * modules/stat-tests (Files): Likewise.
16597         * modules/stat-time-tests (Files): Likewise.
16598         * modules/strcasestr-tests (Files): Likewise.
16599         * modules/strchrnul-tests (Files): Likewise.
16600         * modules/strerror-tests (Files): Likewise.
16601         * modules/striconv-tests (Files): Likewise.
16602         * modules/striconveh-tests (Files): Likewise.
16603         * modules/striconveha-tests (Files): Likewise.
16604         * modules/strsignal-tests (Files): Likewise.
16605         * modules/strstr-tests (Files): Likewise.
16606         * modules/strtod-tests (Files): Likewise.
16607         * modules/strverscmp-tests (Files): Likewise.
16608         * modules/symlink-tests (Files): Likewise.
16609         * modules/symlinkat-tests (Files): Likewise.
16610         * modules/trunc-tests (Files): Likewise.
16611         * modules/truncf-tests (Files): Likewise.
16612         * modules/truncl-tests (Files): Likewise.
16613         * modules/uname-tests (Files): Likewise.
16614         * modules/unicase/cased-tests (Files): Likewise.
16615         * modules/unicase/ignorable-tests (Files): Likewise.
16616         * modules/unicase/locale-language-tests (Files): Likewise.
16617         * modules/unicase/tolower-tests (Files): Likewise.
16618         * modules/unicase/totitle-tests (Files): Likewise.
16619         * modules/unicase/toupper-tests (Files): Likewise.
16620         * modules/unicase/u8-casecmp-tests (Files): Likewise.
16621         * modules/unicase/u8-casecoll-tests (Files): Likewise.
16622         * modules/unicase/u8-casefold-tests (Files): Likewise.
16623         * modules/unicase/u8-is-cased-tests (Files): Likewise.
16624         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
16625         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
16626         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
16627         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
16628         * modules/unicase/u8-tolower-tests (Files): Likewise.
16629         * modules/unicase/u8-totitle-tests (Files): Likewise.
16630         * modules/unicase/u8-toupper-tests (Files): Likewise.
16631         * modules/unicase/u16-casecmp-tests (Files): Likewise.
16632         * modules/unicase/u16-casecoll-tests (Files): Likewise.
16633         * modules/unicase/u16-casefold-tests (Files): Likewise.
16634         * modules/unicase/u16-is-cased-tests (Files): Likewise.
16635         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
16636         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
16637         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
16638         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
16639         * modules/unicase/u16-tolower-tests (Files): Likewise.
16640         * modules/unicase/u16-totitle-tests (Files): Likewise.
16641         * modules/unicase/u16-toupper-tests (Files): Likewise.
16642         * modules/unicase/u32-casecmp-tests (Files): Likewise.
16643         * modules/unicase/u32-casecoll-tests (Files): Likewise.
16644         * modules/unicase/u32-casefold-tests (Files): Likewise.
16645         * modules/unicase/u32-is-cased-tests (Files): Likewise.
16646         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
16647         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
16648         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
16649         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
16650         * modules/unicase/u32-tolower-tests (Files): Likewise.
16651         * modules/unicase/u32-totitle-tests (Files): Likewise.
16652         * modules/unicase/u32-toupper-tests (Files): Likewise.
16653         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
16654         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
16655         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
16656         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
16657         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
16658         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
16659         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
16660         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
16661         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
16662         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
16663         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
16664         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
16665         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
16666         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
16667         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
16668         * modules/unictype/bidicategory-name-tests (Files): Likewise.
16669         * modules/unictype/bidicategory-of-tests (Files): Likewise.
16670         * modules/unictype/bidicategory-test-tests (Files): Likewise.
16671         * modules/unictype/block-list-tests (Files): Likewise.
16672         * modules/unictype/block-of-tests (Files): Likewise.
16673         * modules/unictype/block-test-tests (Files): Likewise.
16674         * modules/unictype/category-C-tests (Files): Likewise.
16675         * modules/unictype/category-Cc-tests (Files): Likewise.
16676         * modules/unictype/category-Cf-tests (Files): Likewise.
16677         * modules/unictype/category-Cn-tests (Files): Likewise.
16678         * modules/unictype/category-Co-tests (Files): Likewise.
16679         * modules/unictype/category-Cs-tests (Files): Likewise.
16680         * modules/unictype/category-L-tests (Files): Likewise.
16681         * modules/unictype/category-Ll-tests (Files): Likewise.
16682         * modules/unictype/category-Lm-tests (Files): Likewise.
16683         * modules/unictype/category-Lo-tests (Files): Likewise.
16684         * modules/unictype/category-Lt-tests (Files): Likewise.
16685         * modules/unictype/category-Lu-tests (Files): Likewise.
16686         * modules/unictype/category-M-tests (Files): Likewise.
16687         * modules/unictype/category-Mc-tests (Files): Likewise.
16688         * modules/unictype/category-Me-tests (Files): Likewise.
16689         * modules/unictype/category-Mn-tests (Files): Likewise.
16690         * modules/unictype/category-N-tests (Files): Likewise.
16691         * modules/unictype/category-Nd-tests (Files): Likewise.
16692         * modules/unictype/category-Nl-tests (Files): Likewise.
16693         * modules/unictype/category-No-tests (Files): Likewise.
16694         * modules/unictype/category-P-tests (Files): Likewise.
16695         * modules/unictype/category-Pc-tests (Files): Likewise.
16696         * modules/unictype/category-Pd-tests (Files): Likewise.
16697         * modules/unictype/category-Pe-tests (Files): Likewise.
16698         * modules/unictype/category-Pf-tests (Files): Likewise.
16699         * modules/unictype/category-Pi-tests (Files): Likewise.
16700         * modules/unictype/category-Po-tests (Files): Likewise.
16701         * modules/unictype/category-Ps-tests (Files): Likewise.
16702         * modules/unictype/category-S-tests (Files): Likewise.
16703         * modules/unictype/category-Sc-tests (Files): Likewise.
16704         * modules/unictype/category-Sk-tests (Files): Likewise.
16705         * modules/unictype/category-Sm-tests (Files): Likewise.
16706         * modules/unictype/category-So-tests (Files): Likewise.
16707         * modules/unictype/category-Z-tests (Files): Likewise.
16708         * modules/unictype/category-Zl-tests (Files): Likewise.
16709         * modules/unictype/category-Zp-tests (Files): Likewise.
16710         * modules/unictype/category-Zs-tests (Files): Likewise.
16711         * modules/unictype/category-and-not-tests (Files): Likewise.
16712         * modules/unictype/category-and-tests (Files): Likewise.
16713         * modules/unictype/category-byname-tests (Files): Likewise.
16714         * modules/unictype/category-name-tests (Files): Likewise.
16715         * modules/unictype/category-none-tests (Files): Likewise.
16716         * modules/unictype/category-of-tests (Files): Likewise.
16717         * modules/unictype/category-or-tests (Files): Likewise.
16718         * modules/unictype/category-test-withtable-tests (Files): Likewise.
16719         * modules/unictype/combining-class-tests (Files): Likewise.
16720         * modules/unictype/ctype-alnum-tests (Files): Likewise.
16721         * modules/unictype/ctype-alpha-tests (Files): Likewise.
16722         * modules/unictype/ctype-blank-tests (Files): Likewise.
16723         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
16724         * modules/unictype/ctype-digit-tests (Files): Likewise.
16725         * modules/unictype/ctype-graph-tests (Files): Likewise.
16726         * modules/unictype/ctype-lower-tests (Files): Likewise.
16727         * modules/unictype/ctype-print-tests (Files): Likewise.
16728         * modules/unictype/ctype-punct-tests (Files): Likewise.
16729         * modules/unictype/ctype-space-tests (Files): Likewise.
16730         * modules/unictype/ctype-upper-tests (Files): Likewise.
16731         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
16732         * modules/unictype/decimal-digit-tests (Files): Likewise.
16733         * modules/unictype/digit-tests (Files): Likewise.
16734         * modules/unictype/mirror-tests (Files): Likewise.
16735         * modules/unictype/numeric-tests (Files): Likewise.
16736         * modules/unictype/property-alphabetic-tests (Files): Likewise.
16737         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
16738         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
16739         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
16740         Likewise.
16741         * modules/unictype/property-bidi-block-separator-tests (Files):
16742         Likewise.
16743         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
16744         Likewise.
16745         * modules/unictype/property-bidi-common-separator-tests (Files):
16746         Likewise.
16747         * modules/unictype/property-bidi-control-tests (Files): Likewise.
16748         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
16749         Likewise.
16750         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
16751         Likewise.
16752         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
16753         Likewise.
16754         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
16755         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
16756         Likewise.
16757         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
16758         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
16759         Likewise.
16760         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
16761         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
16762         * modules/unictype/property-bidi-segment-separator-tests (Files):
16763         Likewise.
16764         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
16765         * modules/unictype/property-byname-tests (Files): Likewise.
16766         * modules/unictype/property-combining-tests (Files): Likewise.
16767         * modules/unictype/property-composite-tests (Files): Likewise.
16768         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
16769         * modules/unictype/property-dash-tests (Files): Likewise.
16770         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
16771         * modules/unictype/property-default-ignorable-code-point-tests (Files):
16772         Likewise.
16773         * modules/unictype/property-deprecated-tests (Files): Likewise.
16774         * modules/unictype/property-diacritic-tests (Files): Likewise.
16775         * modules/unictype/property-extender-tests (Files): Likewise.
16776         * modules/unictype/property-format-control-tests (Files): Likewise.
16777         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
16778         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
16779         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
16780         * modules/unictype/property-hex-digit-tests (Files): Likewise.
16781         * modules/unictype/property-hyphen-tests (Files): Likewise.
16782         * modules/unictype/property-id-continue-tests (Files): Likewise.
16783         * modules/unictype/property-id-start-tests (Files): Likewise.
16784         * modules/unictype/property-ideographic-tests (Files): Likewise.
16785         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
16786         * modules/unictype/property-ids-trinary-operator-tests (Files):
16787         Likewise.
16788         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
16789         * modules/unictype/property-iso-control-tests (Files): Likewise.
16790         * modules/unictype/property-join-control-tests (Files): Likewise.
16791         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
16792         * modules/unictype/property-line-separator-tests (Files): Likewise.
16793         * modules/unictype/property-logical-order-exception-tests (Files):
16794         Likewise.
16795         * modules/unictype/property-lowercase-tests (Files): Likewise.
16796         * modules/unictype/property-math-tests (Files): Likewise.
16797         * modules/unictype/property-non-break-tests (Files): Likewise.
16798         * modules/unictype/property-not-a-character-tests (Files): Likewise.
16799         * modules/unictype/property-numeric-tests (Files): Likewise.
16800         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
16801         * modules/unictype/property-other-default-ignorable-code-point-tests
16802         (Files): Likewise.
16803         * modules/unictype/property-other-grapheme-extend-tests (Files):
16804         Likewise.
16805         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
16806         * modules/unictype/property-other-id-start-tests (Files): Likewise.
16807         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
16808         * modules/unictype/property-other-math-tests (Files): Likewise.
16809         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
16810         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
16811         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
16812         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
16813         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
16814         * modules/unictype/property-private-use-tests (Files): Likewise.
16815         * modules/unictype/property-punctuation-tests (Files): Likewise.
16816         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
16817         * modules/unictype/property-radical-tests (Files): Likewise.
16818         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
16819         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
16820         * modules/unictype/property-space-tests (Files): Likewise.
16821         * modules/unictype/property-terminal-punctuation-tests (Files):
16822         Likewise.
16823         * modules/unictype/property-test-tests (Files): Likewise.
16824         * modules/unictype/property-titlecase-tests (Files): Likewise.
16825         * modules/unictype/property-unassigned-code-value-tests (Files):
16826         Likewise.
16827         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
16828         * modules/unictype/property-uppercase-tests (Files): Likewise.
16829         * modules/unictype/property-variation-selector-tests (Files): Likewise.
16830         * modules/unictype/property-white-space-tests (Files): Likewise.
16831         * modules/unictype/property-xid-continue-tests (Files): Likewise.
16832         * modules/unictype/property-xid-start-tests (Files): Likewise.
16833         * modules/unictype/property-zero-width-tests (Files): Likewise.
16834         * modules/unictype/scripts-tests (Files): Likewise.
16835         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
16836         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
16837         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
16838         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
16839         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
16840         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
16841         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
16842         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
16843         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
16844         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
16845         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
16846         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
16847         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
16848         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
16849         * modules/uninorm/composition-tests (Files): Likewise.
16850         * modules/uninorm/decomposing-form-tests (Files): Likewise.
16851         * modules/uninorm/decomposition-tests (Files): Likewise.
16852         * modules/uninorm/filter-tests (Files): Likewise.
16853         * modules/uninorm/nfc-tests (Files): Likewise.
16854         * modules/uninorm/nfd-tests (Files): Likewise.
16855         * modules/uninorm/nfkc-tests (Files): Likewise.
16856         * modules/uninorm/nfkd-tests (Files): Likewise.
16857         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
16858         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
16859         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
16860         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
16861         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
16862         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
16863         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
16864         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16865         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
16866         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
16867         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
16868         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
16869         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16870         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
16871         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
16872         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
16873         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
16874         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16875         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
16876         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
16877         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
16878         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
16879         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16880         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
16881         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
16882         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
16883         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
16884         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
16885         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
16886         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
16887         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
16888         * modules/uniwidth/u8-width-tests (Files): Likewise.
16889         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
16890         * modules/uniwidth/u16-width-tests (Files): Likewise.
16891         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
16892         * modules/uniwidth/u32-width-tests (Files): Likewise.
16893         * modules/uniwidth/width-tests (Files): Likewise.
16894         * modules/unlink-tests (Files): Likewise.
16895         * modules/unsetenv-tests (Files): Likewise.
16896         * modules/usleep-tests (Files): Likewise.
16897         * modules/utimens-tests (Files): Likewise.
16898         * modules/utimensat-tests (Files): Likewise.
16899         * modules/vasnprintf-posix-tests (Files): Likewise.
16900         * modules/vasnprintf-tests (Files): Likewise.
16901         * modules/vasprintf-posix-tests (Files): Likewise.
16902         * modules/vasprintf-tests (Files): Likewise.
16903         * modules/vdprintf-posix-tests (Files): Likewise.
16904         * modules/vfprintf-posix-tests (Files): Likewise.
16905         * modules/vprintf-posix-tests (Files): Likewise.
16906         * modules/vsnprintf-posix-tests (Files): Likewise.
16907         * modules/vsnprintf-tests (Files): Likewise.
16908         * modules/vsprintf-posix-tests (Files): Likewise.
16909         * modules/wcrtomb-tests (Files): Likewise.
16910         * modules/wcsnrtombs-tests (Files): Likewise.
16911         * modules/wcsrtombs-tests (Files): Likewise.
16912         * modules/wctype-tests (Files): Likewise.
16913         * modules/wcwidth-tests (Files): Likewise.
16914         * modules/xmemdup0-tests (Files): Likewise.
16915         * modules/xprintf-posix-tests (Files): Likewise.
16916         * modules/xvasprintf-tests (Files): Likewise.
16917
16918 2009-12-24  Eric Blake  <ebb9@byu.net>
16919
16920         test-nanosleep: fix typo
16921         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
16922         patch.
16923         Reported by Bruno Haible.
16924
16925 2009-12-24  Bruno Haible  <bruno@clisp.org>
16926
16927         Reduce namespace pollution on glibc systems.
16928         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
16929         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
16930         systems.
16931         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
16932         <getopt.h> on glibc systems.
16933         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
16934         systems.
16935         * lib/fcntl.c: Include <unistd.h> here instead.
16936
16937 2009-12-24  Bruno Haible  <bruno@clisp.org>
16938
16939         * lib/stdlib.in.h (includes): Fix typo in today's commit.
16940
16941 2009-12-24  Eric Blake  <ebb9@byu.net>
16942
16943         tests: add signature checks
16944         * tests/signature.h (SIGNATURE_CHECK): New file.
16945         * modules/atexit-tests (Files): Use it.
16946         * modules/btowc-tests (Files): Likewise.
16947         * modules/canonicalize-lgpl-tests (Files): Likewise.
16948         * modules/ceilf-tests (Files): Likewise.
16949         * modules/ceill-tests (Files): Likewise.
16950         * modules/chown-tests (Files): Likewise.
16951         * modules/dprintf-posix-tests (Files): Likewise.
16952         * modules/dup2-tests (Files): Likewise.
16953         * modules/dup3-tests (Files): Likewise.
16954         * modules/duplocale-tests (Files): Likewise.
16955         * modules/fchdir-tests (Files): Likewise.
16956         * modules/fcntl-tests (Files): Likewise.
16957         * modules/fdopendir-tests (Files): Likewise.
16958         * modules/fflush-tests (Files): Likewise.
16959         * modules/flock-tests (Files): Likewise.
16960         * modules/floorf-tests (Files): Likewise.
16961         * modules/floorl-tests (Files): Likewise.
16962         * modules/fnmatch-tests (Files): Likewise.
16963         * modules/fopen-tests (Files): Likewise.
16964         * modules/fprintf-posix-tests (Files): Likewise.
16965         * modules/freopen-tests (Files): Likewise.
16966         * modules/frexp-nolibm-tests (Files): Likewise.
16967         * modules/frexp-tests (Files): Likewise.
16968         * modules/frexpl-nolibm-tests (Files): Likewise.
16969         * modules/frexpl-tests (Files): Likewise.
16970         * modules/fseek-tests (Files): Likewise.
16971         * modules/fseeko-tests (Files): Likewise.
16972         * modules/fsync-tests (Files): Likewise.
16973         * modules/ftell-tests (Files): Likewise.
16974         * modules/ftello-tests (Files): Likewise.
16975         * modules/futimens-tests (Files): Likewise.
16976         * modules/getaddrinfo-tests (Files): Likewise.
16977         * modules/getcwd-tests (Files): Likewise.
16978         * modules/getdelim-tests (Files): Likewise.
16979         * modules/getdtablesize-tests (Files): Likewise.
16980         * modules/getgroups-tests (Files): Likewise.
16981         * modules/gethostname-tests (Files): Likewise.
16982         * modules/getline-tests (Files): Likewise.
16983         * modules/getopt-posix-tests (Files): Likewise.
16984         * modules/gettimeofday-tests (Files): Likewise.
16985         * modules/glob-tests (Files): Likewise.
16986         * modules/iconv-tests (Files): Likewise.
16987         * modules/inet_ntop-tests (Files): Likewise.
16988         * modules/inet_pton-tests (Files): Likewise.
16989         * modules/isblank-tests (Files): Likewise.
16990         * modules/lchown-tests (Files): Likewise.
16991         * modules/ldexpl-tests (Files): Likewise.
16992         * modules/link-tests (Files): Likewise.
16993         * modules/linkat-tests (Files): Likewise.
16994         * modules/lseek-tests (Files): Likewise.
16995         * modules/lstat-tests (Files): Likewise.
16996         * modules/mbrtowc-tests (Files): Likewise.
16997         * modules/mbsinit-tests (Files): Likewise.
16998         * modules/mbsnrtowcs-tests (Files): Likewise.
16999         * modules/mbsrtowcs-tests (Files): Likewise.
17000         * modules/memchr-tests (Files): Likewise.
17001         * modules/memcmp-tests (Files): Likewise.
17002         * modules/memmem-tests (Files): Likewise.
17003         * modules/memrchr-tests (Files): Likewise.
17004         * modules/mkdir-tests (Files): Likewise.
17005         * modules/mkfifo-tests (Files): Likewise.
17006         * modules/mkfifoat-tests (Files): Likewise.
17007         * modules/mknod-tests (Files): Likewise.
17008         * modules/nanosleep-tests (Files): Likewise.
17009         * modules/nl_langinfo-tests (Files): Likewise.
17010         * modules/obstack-printf-tests (Files): Likewise.
17011         * modules/open-tests (Files): Likewise.
17012         * modules/openat-tests (Files): Likewise.
17013         * modules/perror-tests (Files): Likewise.
17014         * modules/pipe2-tests (Files): Likewise.
17015         * modules/poll-tests (Files): Likewise.
17016         * modules/popen-tests (Files): Likewise.
17017         * modules/posix_spawn-tests (Files): Likewise.
17018         * modules/posix_spawnp-tests (Files): Likewise.
17019         * modules/pread-tests (Files): Likewise.
17020         * modules/printf-posix-tests (Files): Likewise.
17021         * modules/pty-tests (Files): Likewise.
17022         * modules/random_r-tests (Files): Likewise.
17023         * modules/rawmemchr-tests (Files): Likewise.
17024         * modules/readlink-tests (Files): Likewise.
17025         * modules/remove-tests (Files): Likewise.
17026         * modules/rename-tests (Files): Likewise.
17027         * modules/renameat-tests (Files): Likewise.
17028         * modules/rmdir-tests (Files): Likewise.
17029         * modules/round-tests (Files): Likewise.
17030         * modules/roundf-tests (Files): Likewise.
17031         * modules/roundl-tests (Files): Likewise.
17032         * modules/select-tests (Files): Likewise.
17033         * modules/setenv-tests (Files): Likewise.
17034         * modules/sigaction-tests (Files): Likewise.
17035         * modules/sleep-tests (Files): Likewise.
17036         * modules/snprintf-posix-tests (Files): Likewise.
17037         * modules/snprintf-tests (Files): Likewise.
17038         * modules/sprintf-posix-tests (Files): Likewise.
17039         * modules/stat-tests (Files): Likewise.
17040         * modules/strcasestr-tests (Files): Likewise.
17041         * modules/strchrnul-tests (Files): Likewise.
17042         * modules/strerror-tests (Files): Likewise.
17043         * modules/strsignal-tests (Files): Likewise.
17044         * modules/strstr-tests (Files): Likewise.
17045         * modules/strtod-tests (Files): Likewise.
17046         * modules/strverscmp-tests (Files): Likewise.
17047         * modules/symlink-tests (Files): Likewise.
17048         * modules/symlinkat-tests (Files): Likewise.
17049         * modules/times-tests (Files): Likewise.
17050         * modules/trunc-tests (Files): Likewise.
17051         * modules/truncf-tests (Files): Likewise.
17052         * modules/truncl-tests (Files): Likewise.
17053         * modules/tsearch-tests (Files): Likewise.
17054         * modules/uname-tests (Files): Likewise.
17055         * modules/unlink-tests (Files): Likewise.
17056         * modules/unsetenv-tests (Files): Likewise.
17057         * modules/usleep-tests (Files): Likewise.
17058         * modules/utimensat-tests (Files): Likewise.
17059         * modules/vasprintf-tests (Files): Likewise.
17060         * modules/vdprintf-posix-tests (Files): Likewise.
17061         * modules/vfprintf-posix-tests (Files): Likewise.
17062         * modules/vprintf-posix-tests (Files): Likewise.
17063         * modules/vsnprintf-posix-tests (Files): Likewise.
17064         * modules/vsnprintf-tests (Files): Likewise.
17065         * modules/vsprintf-posix-tests (Files): Likewise.
17066         * modules/wcrtomb-tests (Files): Likewise.
17067         * modules/wcsnrtombs-tests (Files): Likewise.
17068         * modules/wcsrtombs-tests (Files): Likewise.
17069         * modules/wcwidth-tests (Files): Likewise.
17070         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
17071         * tests/test-isinf.c (isinf): Likewise.
17072         * tests/test-isnan.c (isnan): Likewise.
17073         * tests/test-signbit.c (signbit): Likewise.
17074         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
17075         declaration, either as macro or with correct signature.
17076         (select): Ensure function under test is declared with correct
17077         signature in correct header.
17078         * tests/test-atexit.c (atexit): Likewise.
17079         * tests/test-btowc.c (btowc): Likewise.
17080         * tests/test-canonicalize-lgpl.c (realpath)
17081         (canonicalize_file_name): Likewise.
17082         * tests/test-ceilf1.c (ceilf): Likewise.
17083         * tests/test-ceill.c (ceill): Likewise.
17084         * tests/test-chown.c (chown): Likewise.
17085         * tests/test-dprintf-posix.c (dprintf): Likewise.
17086         * tests/test-dup2.c (dup2): Likewise.
17087         * tests/test-dup3.c (dup3): Likewise.
17088         * tests/test-duplocale.c (duplocale): Likewise.
17089         * tests/test-fchdir.c (fchdir): Likewise.
17090         * tests/test-fchownat.c (fchownat): Likewise.
17091         * tests/test-fcntl.c (fcntl): Likewise.
17092         * tests/test-fdopendir.c (fdopendir): Likewise.
17093         * tests/test-fflush.c (fflush): Likewise.
17094         * tests/test-flock.c (flock): Likewise.
17095         * tests/test-floorf1.c (floorf): Likewise.
17096         * tests/test-floorl.c (floorl): Likewise.
17097         * tests/test-fnmatch.c (fnmatch): Likewise.
17098         * tests/test-fopen.c (fopen): Likewise.
17099         * tests/test-fprintf-posix.c (fprintf): Likewise.
17100         * tests/test-freopen.c (freopen): Likewise.
17101         * tests/test-frexp.c (frexp): Likewise.
17102         * tests/test-frexpl.c (frexpl): Likewise.
17103         * tests/test-fseek.c (fseek): Likewise.
17104         * tests/test-fseeko.c (fseeko): Likewise.
17105         * tests/test-fstatat.c (fstatat): Likewise.
17106         * tests/test-fsync.c (fsync): Likewise.
17107         * tests/test-ftell.c (ftell): Likewise.
17108         * tests/test-ftello.c (ftello): Likewise.
17109         * tests/test-futimens.c (futimens): Likewise.
17110         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
17111         (gai_strerror): Likewise.
17112         * tests/test-getcwd.c (getcwd): Likewise.
17113         * tests/test-getdelim.c (getdelim): Likewise.
17114         * tests/test-getdtablesize.c (getdtablesize): Likewise.
17115         * tests/test-getgroups.c (getgroups): Likewise.
17116         * tests/test-gethostname.c (gethostname): Likewise.
17117         * tests/test-getline.c (getline): Likewise.
17118         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
17119         Likewise.
17120         * tests/test-gettimeofday.c (gettimeofday): Likewise.
17121         * tests/test-glob.c (glob, globfree): Likewise.
17122         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
17123         * tests/test-inet_ntop.c (inet_ntop): Likewise.
17124         * tests/test-inet_pton.c (inet_pton): Likewise.
17125         * tests/test-isblank.c (isblank): Likewise.
17126         * tests/test-lchown.c (lchown): Likewise.
17127         * tests/test-ldexpl.c (ldexpl): Likewise.
17128         * tests/test-link.c (link): Likewise.
17129         * tests/test-linkat.c (linkat): Likewise.
17130         * tests/test-lseek.c (lseek): Likewise.
17131         * tests/test-lstat.c (lstat): Likewise.
17132         * tests/test-mbrtowc.c (mbrtowc): Likewise.
17133         * tests/test-mbsinit.c (mbsinit): Likewise.
17134         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
17135         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
17136         * tests/test-memchr.c (memchr): Likewise.
17137         * tests/test-memcmp.c (memcmp): Likewise.
17138         * tests/test-memmem.c (memmem): Likewise.
17139         * tests/test-memrchr.c (memrchr): Likewise.
17140         * tests/test-mkdir.c (mkdir): Likewise.
17141         * tests/test-mkdirat.c (mkdirat): Likewise.
17142         * tests/test-mkfifo.c (mkfifo): Likewise.
17143         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
17144         * tests/test-mknod.c (mknod): Likewise.
17145         * tests/test-nanosleep.c (nanosleep): Likewise.
17146         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
17147         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
17148         Likewise.
17149         * tests/test-open.c (open): Likewise.
17150         * tests/test-openat.c (openat): Likewise.
17151         * tests/test-perror.c (perror): Likewise.
17152         * tests/test-pipe2.c (pipe2): Likewise.
17153         * tests/test-poll.c (poll): Likewise.
17154         * tests/test-popen.c (popen, pclose): Likewise.
17155         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
17156         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
17157         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
17158         (posix_spawn_file_actions_destroy)
17159         (posix_spawn_file_actions_addclose)
17160         (posix_spawn_file_actions_addopen)
17161         (posix_spawn_file_actions_adddup2): Likewise.
17162         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
17163         * tests/test-pread.c (pread): Likewise.
17164         * tests/test-printf-posix.c (printf): Likewise.
17165         * tests/test-pty.c (openpty, forkpty): Likewise.
17166         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
17167         (random_r): Likewise.
17168         * tests/test-rawmemchr.c (rawmemchr): Likewise.
17169         * tests/test-readlink.c (readlink): Likewise.
17170         * tests/test-remove.c (remove): Likewise.
17171         * tests/test-rename.c (rename): Likewise.
17172         * tests/test-renameat.c (renameat): Likewise.
17173         * tests/test-rmdir.c (rmdir): Likewise.
17174         * tests/test-round1.c (round): Likewise.
17175         * tests/test-roundf1.c (roundf): Likewise.
17176         * tests/test-roundl.c (roundl): Likewise.
17177         * tests/test-setenv.c (setenv): Likewise.
17178         * tests/test-sigaction.c (sigaction): Likewise.
17179         * tests/test-sleep.c (sleep): Likewise.
17180         * tests/test-snprintf.c (snprintf): Likewise.
17181         * tests/test-sprintf-posix.c (sprintf): Likewise.
17182         * tests/test-stat.c (stat): Likewise.
17183         * tests/test-stpncpy.c (stpncpy): Likewise.
17184         * tests/test-strcasestr.c (strcasestr): Likewise.
17185         * tests/test-strchrnul.c (strchrnul): Likewise.
17186         * tests/test-strerror.c (strerror): Likewise.
17187         * tests/test-strsignal.c (strsignal): Likewise.
17188         * tests/test-strstr.c (strstr): Likewise.
17189         * tests/test-strtod.c (strtod): Likewise.
17190         * tests/test-strverscmp.c (strverscmp): Likewise.
17191         * tests/test-symlink.c (symlink): Likewise.
17192         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
17193         * tests/test-times.c (times): Likewise.
17194         * tests/test-trunc1.c (trunc): Likewise.
17195         * tests/test-truncf1.c (truncf): Likewise.
17196         * tests/test-truncl.c (truncl): Likewise.
17197         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
17198         Likewise.
17199         * tests/test-uname.c (uname): Likewise.
17200         * tests/test-unlink.c (unlink): Likewise.
17201         * tests/test-unlinkat.c (unlinkat): Likewise.
17202         * tests/test-unsetenv.c (unsetenv): Likewise.
17203         * tests/test-usleep.c (usleep): Likewise.
17204         * tests/test-utimensat.c (utimensat): Likewise.
17205         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
17206         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
17207         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
17208         * tests/test-vprintf-posix.c (vprintf): Likewise.
17209         * tests/test-vsnprintf.c (vsnprintf): Likewise.
17210         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
17211         * tests/test-wcrtomb.c (wcrtomb): Likewise.
17212         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
17213         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
17214         * tests/test-wcwidth.c (wcwidth): Likewise.
17215
17216         build: pull in conditional headers during GNULIB_POSIXCHECK
17217         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
17218         definitions from any conditionally-included headers.
17219         * lib/stdlib.in.h (includes): Likewise.
17220         * lib/unistd.in.h (includes): Likewise.
17221
17222 2009-12-24  Bruno Haible  <bruno@clisp.org>
17223
17224         * tests/test-argv-iter.c: Include header file being tested immediately
17225         after config.h.
17226         * tests/test-base64.c: Likewise.
17227         * tests/test-flock.c: Likewise.
17228         * tests/test-fsync.c: Likewise.
17229         * tests/test-getdate.c: Likewise.
17230         * tests/test-getndelim2.c: Likewise.
17231         * tests/test-isfinite.c: Likewise.
17232         * tests/test-isinf.c: Likewise.
17233         * tests/test-strerror.c: Likewise.
17234         * tests/test-strsignal.c: Likewise.
17235
17236 2009-12-23  Eric Blake  <ebb9@byu.net>
17237
17238         unistd: work around cygwin bug
17239         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
17240         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
17241         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17242
17243 2009-12-23  Bruno Haible  <bruno@clisp.org>
17244
17245         localename: More tests.
17246         * tests/test-localename.c (SIZEOF): New macro.
17247         (categories): New variable.
17248         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
17249         test_locale_name_default): Add test w.r.t. thread locale.
17250         (test_locale_name_thread): New function.
17251         (main): Invoke it.
17252
17253         localename: Make aware of thread locale.
17254         * lib/localename.h (gl_locale_name_thread): New declaration.
17255         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
17256         behaviour with respect to thread locale.
17257         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
17258         <langinfo.h>, glthread/lock.h.
17259         (SIZE_BITS): New macro.
17260         (string_hash): New function.
17261         (struct hash_node): New type.
17262         (HASH_TABLE_SIZE): New macro.
17263         (struniq_hash_table, struniq_lock): New variables.
17264         (struniq): New function.
17265         (gl_locale_name_thread): New function.
17266         (gl_locale_name): Invoke it.
17267         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
17268         * modules/localename (Depends-on): Add lock.
17269         Reported by Mike Gran <spk121@yahoo.com>.
17270
17271 2009-12-23  Eric Blake  <ebb9@byu.net>
17272
17273         va-args: new module
17274         * modules/va-args: New file.
17275         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
17276         * MODULES.html.sh (Core language properties): Mention it.
17277
17278         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
17279         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
17280         named alias for __attribute__((__unused__)).
17281         * lib/chown.c: Update client.
17282         * lib/fchmodat.c: Likewise.
17283         * lib/fts.c: Likewise.
17284         * lib/getdate.y: Likewise.
17285         * lib/getgroups.c: Likewise.
17286         * lib/getopt.c: Likewise.
17287         * lib/getugroups.c: Likewise.
17288         * lib/mkdir.c: Likewise.
17289         * lib/mkfifo.c: Likewise.
17290         * lib/mkfifoat.c: Likewise.
17291         * lib/mknod.c: Likewise.
17292         * lib/mknodat.c: Likewise.
17293         * lib/readlink.c: Likewise.
17294         * lib/se-context.in.h: Likewise.
17295         * lib/se-selinux.in.h: Likewise.
17296         * lib/sockets.c: Likewise.
17297         * lib/symlink.c: Likewise.
17298         * lib/symlinkat.c: Likewise.
17299         * lib/unicodeio.c: Likewise.
17300         * lib/unistr.h: Likewise.
17301         * tests/test-areadlink.c: Likewise.
17302         * tests/test-areadlinkat.c: Likewise.
17303         * tests/test-filenamecat.c: Likewise.
17304         * tests/test-fseeko.c: Likewise.
17305         * tests/test-ftello.c: Likewise.
17306         * tests/test-getdate.c: Likewise.
17307         * tests/test-getgroups.c: Likewise.
17308         * tests/test-gethostname.c: Likewise.
17309         * tests/test-quotearg.c: Likewise.
17310         * tests/test-version-etc.c: Likewise.
17311         * tests/test-xalloc-die.c: Likewise.
17312         * tests/test-xfprintf-posix.c: Likewise.
17313         * tests/test-xprintf-posix.c: Likewise.
17314         * tests/test-xvasprintf.c: Likewise.
17315
17316         tests: avoid compiler warnings
17317         * tests/test-fcntl.c (main): Delete unused parameters.
17318         * tests/test-freopen-safer.c (main): Likewise.
17319         * tests/test-xalloc-die.c (main): Mark unused parameters.
17320         * tests/test-fseeko.c (main): Likewise.
17321         * tests/test-ftello.c (main): Likewise.
17322         * tests/test-nanosleep.c (main): Avoid declaration warning.
17323         * tests/test-sleep.c (main): Likewise.
17324         * tests/test-unsetenv.c (main): Silence warning about string
17325         literal.
17326         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17327
17328 2009-12-23  Bruno Haible  <bruno@clisp.org>
17329
17330         * tests/test-localename.c (test_locale_name): New function, extracted
17331         from main. Also test mixed situations.
17332         (test_locale_name_posix, test_locale_name_environ,
17333         test_locale_name_default): New functions.
17334         (main): Invoke them all.
17335         * modules/localename-tests (configure.ac): Test for newlocale.
17336
17337 2009-12-23  Bruno Haible  <bruno@clisp.org>
17338
17339         unistd: Ensure getcwd gets declared before being overridden.
17340         * lib/unistd.in.h: Conditionally include <io.h>.
17341
17342 2009-12-22  Bruno Haible  <bruno@clisp.org>
17343
17344         wchar: Diagnose broken combination of glibc and gcc versions and flags.
17345         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
17346         (gl_WCHAR_H): Invoke it.
17347         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
17348         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
17349         Reported by Karl Berry <karl@freefriends.org>.
17350
17351 2009-12-22  Eric Blake  <ebb9@byu.net>
17352
17353         math, unistd: avoid redundant includes
17354         * lib/math.in.h (isnan): No need to re-include <math.h>.
17355         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
17356
17357         getsubopt: work around cygwin bug
17358         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
17359         avoid conflicting with system getsubopt.
17360         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
17361         bug.
17362
17363         getopt: synchronize from glibc
17364         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
17365         parameter order.  Adjust all callers.
17366         (_getopt_internal_r, main): Adjust quoting in error messages.
17367         Drop considerations for outdated POSIX 1003.2 error message.
17368         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
17369         callers.
17370         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
17371
17372         test-getopt: test stderr behavior
17373         * modules/getopt-posix-tests (Depends-on): Add dup2.
17374         * tests/test-getopt.c (ASSERT): Avoid stderr.
17375         (main): Move stderr to a temporary file.
17376         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
17377         Instead, add parameter to inform caller if output occurred.
17378         (test_getopt): Adjust all existing tests to expect silence, and
17379         add new tests of leading ":".
17380         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17381         glibc shortcomings with leading "-:" or "+:" in optstring.
17382         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17383         Likewise.
17384         * doc/posix-functions/getopt.texi (getopt): Likewise.
17385
17386         test-getopt: enhance test
17387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
17388         supports optind=0.
17389         * tests/test-getopt.c (OPTIND_MIN): Move...
17390         * tests/test-getopt.h (OPTIND_MIN): ...here.
17391         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
17392         Require that optind=0 works, since modern BSD supports it in
17393         addition to optreset, and since coreutils expects it.
17394         (test_getopt_long_only): New test.
17395         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17396         glibc shortcomings with 'W;', and enforcement of optind=0.
17397         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17398         Likewise.
17399
17400 2009-12-21  Bruno Haible  <bruno@clisp.org>
17401
17402         localename: Improvements for MacOS X and Cygwin.
17403         * lib/localename.h (gl_locale_name_environ): New declaration.
17404         * lib/localename.c (gl_locale_name_environ): New function, extracted from
17405         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
17406         (gl_locale_name_posix): Invoke it.
17407         (gl_locale_name_default): Add comments. Use Windows native API also on
17408         Cygwin.
17409
17410 2009-12-21  Bruno Haible  <bruno@clisp.org>
17411
17412         Update list of Win32 locale ids.
17413         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
17414         (LANG_SAMI): Renamed from LANG_SAAMI.
17415         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
17416         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
17417         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
17418         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
17419         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
17420         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
17421         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
17422         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
17423         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
17424         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
17425         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
17426         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
17427         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
17428         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
17429         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
17430         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
17431         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
17432         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
17433         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
17434         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
17435         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
17436         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
17437         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
17438         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
17439         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
17440         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
17441         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
17442         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
17443         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
17444         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
17445         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
17446         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
17447         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
17448         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
17449         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
17450         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
17451         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
17452         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
17453         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
17454         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
17455         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
17456         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
17457         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
17458         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
17459         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
17460         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
17461         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
17462         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
17463         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
17464         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
17465         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
17466         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
17467         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
17468         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
17469         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
17470         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
17471         Add more languages and countries for Sami, Sorbian. Add more countries
17472         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
17473         for Pashto. Change country for Syriac, Tswana.
17474
17475 2009-12-21  Eric Blake  <ebb9@byu.net>
17476
17477         test-utimens: avoid spurious failure
17478         * tests/test-chown.h (nap): Factor...
17479         * tests/nap.h: ...into new file.
17480         * tests/test-lchown.h (nap): Avoid duplication.
17481         * tests/test-utimens-common.h (nap): Use shared implementation,
17482         necessary on file systems with 1-second resolution.
17483         * modules/chown-tests (Files): Include new file.
17484         * modules/fdutimensat-tests (Files): Likewise.
17485         * modules/futimens-tests (Files): Likewise.
17486         * modules/lchown-tests (Files): Likewise.
17487         * modules/openat-tests (Files): Likewise.
17488         * modules/utimens-tests (Files): Likewise.
17489         * modules/utimensat-tests (Files): Likewise.
17490
17491 2009-12-19  Eric Blake  <ebb9@byu.net>
17492
17493         futimens, utimensat: work around Linux bug
17494         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
17495         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17496         * lib/utimensat.c (rpl_utimensat): Work around it.
17497         * lib/futimens.c (rpl_futimens): Adjust comment.
17498
17499         utimens: work around Linux ctime bug
17500         * lib/utimens.c (detect_ctime_bug): New helper function.
17501         (update_timespec): Differentiate between workaround needed for
17502         this bug vs. what is needed for systems that lack utimensat.
17503         (fdutimens, lutimens): Work around bug.
17504
17505         utimens: check for ctime update
17506         * tests/test-utimens-common.h (check_ctime): Define.
17507         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
17508         * tests/test-futimens.h (test_futimens): Likewise.
17509         * tests/test-lutimens.h (test_lutimens): Likewise.
17510         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17511         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17512
17513 2009-12-19  Bruno Haible  <bruno@clisp.org>
17514
17515         dprintf-posix: Check against memory leak fixed on 2009-12-15.
17516         * tests/test-dprintf-posix2.sh: New file.
17517         * tests/test-dprintf-posix2.c: New file.
17518         * modules/dprintf-posix-tests (Files): Add them.
17519         (configure.ac): Check for getrlimit and setrlimit.
17520         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17521
17522 2009-12-19  Bruno Haible  <bruno@clisp.org>
17523
17524         fprintf-posix: Check against memory leak fixed on 2009-12-15.
17525         * tests/test-fprintf-posix3.sh: New file.
17526         * tests/test-fprintf-posix3.c: New file.
17527         * modules/fprintf-posix-tests (Files): Add them.
17528         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17529
17530 2009-12-19  Eric Blake  <ebb9@byu.net>
17531
17532         dirfd: fix prototype
17533         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
17534         * lib/dirfd.c (dirfd): Likewise.
17535
17536         canonicalize: reduce memory usage
17537         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
17538         allocation to size.
17539         Reported by Solar Designer <solar@openwall.com>.
17540
17541 2009-12-19  Bruno Haible  <bruno@clisp.org>
17542
17543         New module attribute 'Applicability'.
17544         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
17545         * gnulib-tool: New option --extract-applicability.
17546         (func_usage): Document it.
17547         (sed_extract_prog): Recognize it.
17548         (func_get_applicability): New function.
17549         (func_import): Generalize handling of 'link-warning' module.
17550         * modules/link-warning (Applicability): New section.
17551         * modules/arg-nonnull (Applicability): New section.
17552         Repoted by Simon Josefsson <simon@josefsson.org>.
17553
17554 2009-12-19  Bruno Haible  <bruno@clisp.org>
17555
17556         fflush: tweak
17557         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
17558         * lib/fseeko.c (rpl_fseeko): Likewise.
17559
17560 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
17561
17562         * lib/gl_list.h: Fix typo in comment.
17563
17564 2009-12-16  Eric Blake  <ebb9@byu.net>
17565
17566         fcntl: use to simplify other modules
17567         * modules/cloexec (Depends-on): Add fcntl.
17568         * modules/fchdir (Depends-on): Likewise.
17569         * modules/fd-safer-flag (Depends-on): Likewise.
17570         * modules/unistd-safer (Depends-on): Likewise.
17571         * modules/dup3 (configure.ac): Set module indicator.
17572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
17573         missing.
17574         * lib/fchdir.c (_gl_register_dup): Fix comment.
17575         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
17576         * lib/dup-safer.c (dup_safer): Likewise.
17577         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
17578         * lib/dup3.c (dup3): Likewise.
17579         * tests/test-fchdir.c (main): Enhance test.
17580         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
17581
17582         fcntl: port portions of fcntl to mingw
17583         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
17584         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
17585         replacement for mingw.
17586         * modules/fcntl (Description): Update.
17587         (Depends-on): Add dup2.
17588         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
17589         * modules/fcntl-h (Makefile.am): Substitute it.
17590         * lib/fcntl.in.h (fcntl): Update declaration.
17591         (F_DUPFD, F_GETFD): New macros, when needed.
17592         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17593         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
17594         * tests/test-fcntl.c (check_flags, main): Enhance test for items
17595         we now guarantee.
17596
17597         fcntl: work around cygwin bug in F_DUPFD
17598         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
17599         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
17600         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
17601         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
17602         * doc/posix-functions/fcntl.texi (fcntl): Document it.
17603
17604         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
17605         * modules/fcntl (Files): List new files.
17606         (configure.ac): Run a test.
17607         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
17608         * lib/fcntl.c (rpl_fcntl): Likewise.
17609         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
17610         (gl_FCNTL_H): Always replace fcntl.h.
17611         * modules/fcntl-h (Makefile.am): Substitute witnesses.
17612         * lib/fcntl.in.h (fcntl): Declare replacement.
17613         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
17614         needed, plus a witness.
17615         * doc/posix-functions/fcntl.texi (fcntl): Document this.
17616         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17617         * tests/test-fcntl.c: New file.
17618         * modules/fcntl-tests: Likewise.
17619
17620         binary-io: avoid potential compilation warning
17621         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
17622         directives.
17623
17624         fflush: avoid compilation error on NetBSD
17625         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
17626         between off_t and fpos_t, since the latter is sometimes a struct.
17627         * lib/fseeko.c (rpl_fseeko): Likewise.
17628         Reported by Alexander Nasonov <alnsn@yandex.ru>.
17629
17630 2009-12-15  Eric Blake  <ebb9@byu.net>
17631
17632         fcntl-h, stdio, sys_ioctl: fix declarations
17633         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
17634         function must not take arguments.
17635         * lib/sys_ioctl.in.h (ioctl): Likewise.
17636         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
17637         (open): Add a link warning.
17638
17639 2009-12-15  Jim Meyering  <meyering@redhat.com>
17640
17641         areadlink, areadlink-with-size: relax license to LGPLv2+
17642         * modules/areadlink (License): Relax to LGPLv2+.
17643         * modules/areadlink-with-size (License): Likewise.
17644
17645 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
17646             Bruno Haible  <bruno@clisp.org>
17647
17648         *printf: Fix memory leak.
17649         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
17650         * lib/vfprintf.c (vfprintf): Likewise.
17651         * lib/dprintf.c (dprintf): Likewise.
17652         * lib/vdprintf.c (vdprintf): Likewise.
17653
17654 2009-12-14  Eric Blake  <ebb9@byu.net>
17655
17656         accept4: adjust module dependencies
17657         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
17658
17659         utimens: one more try at avoiding compiler warning
17660         * lib/utimens.c (lutimens): Lower scope of result.
17661
17662 2009-12-13  Bruno Haible  <bruno@clisp.org>
17663
17664         Move the malloc checking from module 'list' to new module 'xlist'.
17665         * modules/xlist: New file.
17666         * lib/gl_xlist.h: New file.
17667         * lib/gl_xlist.c: New file.
17668         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
17669         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
17670         gl_list_add_last, gl_list_add_before, gl_list_add_after,
17671         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
17672         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
17673         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
17674         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
17675         gl_sortedlist_nx_add): New declarations.
17676         (struct gl_list_implementation): Rename and change methods accordingly.
17677         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
17678         (gl_list_nx_create): Renamed from gl_list_create.
17679         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17680         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17681         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17682         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17683         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17684         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17685         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17686         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17687         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
17688         gl_list_create_empty.
17689         (gl_list_nx_create): Renamed from gl_list_create.
17690         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17691         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17692         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17693         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17694         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17695         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17696         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17697         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17698         * lib/gl_array_list.c: Don't include xalloc.h.
17699         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
17700         NULL upon out-of-memory.
17701         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
17702         out-of-memory.
17703         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
17704         Change return type to 'int'.
17705         (gl_array_nx_set_at): Renamed from gl_array_set_at.
17706         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17707         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
17708         upon out-of-memory.
17709         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
17710         upon out-of-memory.
17711         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
17712         upon out-of-memory.
17713         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
17714         upon out-of-memory.
17715         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
17716         out-of-memory.
17717         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
17718         Update.
17719         (gl_array_list_implementation): Update.
17720         * lib/gl_carray_list.c: Don't include xalloc.h.
17721         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
17722         Return NULL upon out-of-memory.
17723         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
17724         out-of-memory.
17725         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
17726         Change return type to 'int'.
17727         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
17728         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17729         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
17730         upon out-of-memory.
17731         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
17732         upon out-of-memory.
17733         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
17734         out-of-memory.
17735         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
17736         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
17737         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
17738         Update.
17739         (gl_carray_list_implementation): Update.
17740         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
17741         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
17742         gl_linked_create_empty. Return NULL upon out-of-memory.
17743         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
17744         out-of-memory.
17745         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
17746         Change return type to 'int'. Return -1 upon out-of-memory.
17747         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
17748         out-of-memory.
17749         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
17750         upon out-of-memory.
17751         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
17752         upon out-of-memory.
17753         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
17754         NULL upon out-of-memory.
17755         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
17756         upon out-of-memory.
17757         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
17758         out-of-memory.
17759         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
17760         Update.
17761         * lib/gl_linked_list.c: Don't include xalloc.h.
17762         (gl_linked_list_implementation): Update.
17763         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
17764         (add_to_bucket): Change return type to 'int'.
17765         (gl_linkedhash_list_implementation): Update.
17766         * lib/gl_anytree_list1.h (free_subtree): New function.
17767         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
17768         gl_tree_create_empty. Return NULL upon out-of-memory.
17769         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
17770         Change return type to 'int'. Return -1 upon out-of-memory.
17771         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
17772         out-of-memory.
17773         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
17774         (gl_tree_remove_node): New function, moved here from
17775         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
17776         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
17777         Update.
17778         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
17779         malloc, not xmalloc. Return NULL upon out-of-memory.
17780         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17781         out-of-memory.
17782         (gl_tree_remove_node_from_tree): New function, extracted from
17783         gl_tree_remove_node.
17784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17785         upon out-of-memory.
17786         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17787         out-of-memory.
17788         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17789         upon out-of-memory.
17790         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17791         upon out-of-memory.
17792         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17793         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
17794         not xmalloc. Return NULL upon out-of-memory.
17795         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17796         out-of-memory.
17797         (gl_tree_remove_node_from_tree): New function, extracted from
17798         gl_tree_remove_node.
17799         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17800         upon out-of-memory.
17801         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17802         out-of-memory.
17803         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17804         upon out-of-memory.
17805         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17806         upon out-of-memory.
17807         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17808         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
17809         gl_anytree_list1.h before gl_anyavltree_list2.h.
17810         (gl_avltree_list_implementation): Update.
17811         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
17812         gl_anytree_list1.h before gl_anyavltree_list2.h.
17813         (gl_rbtree_list_implementation): Update.
17814         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
17815         Change return type to 'int'. Return -1 upon out-of-memory. Use
17816         __builtin_expect.
17817         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
17818         (gl_avltreehash_list_implementation): Update.
17819         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
17820         (gl_rbtreehash_list_implementation): Update.
17821         * modules/array-list (Depends-on): Remove xalloc.
17822         * modules/carray-list (Depends-on): Likewise.
17823         * modules/linked-list (Depends-on): Likewise.
17824         * modules/linkedhash-list (Depends-on): Likewise.
17825         * modules/avltree-list (Depends-on): Likewise.
17826         * modules/rbtree-list (Depends-on): Likewise.
17827         * modules/avltreehash-list (Depends-on): Likewise.
17828         * modules/rbtreehash-list (Depends-on): Likewise.
17829
17830         * modules/xsublist: New file.
17831         * lib/gl_xsublist.h: New file.
17832         * lib/gl_xsublist.c: New file.
17833         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
17834         (gl_sublist_nx_create): New declaration.
17835         * lib/gl_sublist.c: Don't include xalloc.h.
17836         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
17837         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
17838         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
17839         Change return type to 'int'. Return -1 upon out-of-memory.
17840         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
17841         upon out-of-memory.
17842         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
17843         NULL upon out-of-memory.
17844         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
17845         upon out-of-memory.
17846         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
17847         NULL upon out-of-memory.
17848         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
17849         NULL upon out-of-memory.
17850         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
17851         upon out-of-memory.
17852         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
17853         (gl_sublist_list_implementation): Update.
17854         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
17855         upon out-of-memory.
17856         * modules/sublist (Depends-on): Remove xalloc.
17857
17858         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
17859         * tests/test-carray_list.c: Likewise.
17860         * tests/test-linked_list.c: Likewise.
17861         * tests/test-linkedhash_list.c: Likewise.
17862         * tests/test-avltree_list.c: Likewise.
17863         * tests/test-rbtree_list.c: Likewise.
17864         * tests/test-avltreehash_list.c: Likewise.
17865         * tests/test-rbtreehash_list.c: Likewise.
17866         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
17867         * modules/carray-list-tests (Makefile.am): Likewise.
17868         * modules/linked-list-tests (Makefile.am): Likewise.
17869         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17870         * modules/avltree-list-tests (Makefile.am): Likewise.
17871         * modules/rbtree-list-tests (Makefile.am): Likewise.
17872         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17873         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17874
17875         * NEWS: Mention the changes.
17876
17877         * lib/clean-temp.c: Include gl_xlist.h.
17878         * modules/clean-temp (Depends-on): Add xlist.
17879
17880         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
17881         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
17882
17883         * tests/test-array_oset.c: Include gl_xlist.h.
17884         * modules/array-oset-tests (Depends-on): Add xlist.
17885
17886         Reported by José E. Marchesi <jemarch@gnu.org>.
17887
17888 2009-12-13  Bruno Haible  <bruno@clisp.org>
17889
17890         Move the malloc checking from module 'oset' to new module 'xoset'.
17891         * modules/xoset: New file.
17892         * lib/gl_xoset.h: New file.
17893         * lib/gl_xoset.c: New file.
17894         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
17895         declarations.
17896         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
17897         (struct gl_oset_implementation): Rename and change methods accordingly.
17898         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
17899         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17900         'int'. Mark as __warn_unused_result__.
17901         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
17902         gl_oset_create_empty.
17903         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17904         'int'.
17905         * lib/gl_array_oset.c: Don't include xalloc.h.
17906         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
17907         malloc, not xmalloc.
17908         (grow): Change return type to 'int'. Don't call xalloc_die.
17909         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
17910         to 'int'.
17911         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
17912         'int'.
17913         (gl_array_oset_implementation): Update.
17914         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
17915         gl_tree_create_empty.
17916         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
17917         'int'.
17918         * lib/gl_avltree_oset.c: Don't include xalloc.h.
17919         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17920         xmalloc.
17921         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17922         not xmalloc.
17923         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17924         xmalloc.
17925         (gl_avltree_oset_implementation): Update.
17926         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
17927         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17928         xmalloc.
17929         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17930         not xmalloc.
17931         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17932         xmalloc.
17933         (gl_rbtree_oset_implementation): Update.
17934         * modules/array-oset (Depends-on): Remove xalloc.
17935         * modules/avltree-oset (Depends-on): Likewise.
17936         * modules/rbtree-oset (Depends-on): Likewise.
17937         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
17938         * tests/test-avltree_oset.c: Likewise.
17939         * tests/test-rbtree_oset.c: Likewise.
17940         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17941         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
17942         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17943         * NEWS: Mention the change.
17944
17945 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
17946
17947         maint.mk: allow a project to override release-prep commands
17948         * top/maint.mk (alpha, beta, stable): Move release-preparatory
17949         commands into a new rule.
17950         (release-prep): New rule.
17951         (release-prep-hook): New overridable variable.
17952
17953 2009-12-13  Bruno Haible  <bruno@clisp.org>
17954
17955         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
17956
17957 2009-12-13  Jim Meyering  <meyering@redhat.com>
17958
17959         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
17960         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
17961
17962 2009-12-12  Bruno Haible  <bruno@clisp.org>
17963
17964         duplocale: Tweak.
17965         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
17966
17967 2009-12-12  Karl Berry  <karl@gnu.org>
17968
17969         * config/srclist.txt (strtoll.c): tab changes, no more sync.
17970
17971 2009-12-12  Bruno Haible  <bruno@clisp.org>
17972
17973         * m4/po.m4: Undo incorrect untabification.
17974
17975 2009-12-12  Bruno Haible  <bruno@clisp.org>
17976
17977         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
17978         * modules/c-strtod (Depends-on): Add locale.
17979         * modules/c-strtold (Depends-on): Likewise.
17980
17981 2009-12-12  Bruno Haible  <bruno@clisp.org>
17982
17983         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
17984
17985 2009-12-11  Eric Blake  <ebb9@byu.net>
17986
17987         setenv: relax requirement in light of POSIX ruling
17988         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
17989         not NULL.
17990         * tests/test-setenv.c (main): Relax test.
17991         * tests/test-unsetenv.c (main): Likewise.
17992         * doc/posix-functions/setenv.texi (setenv): Document this.
17993         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17994
17995 2009-12-11  Bruno Haible  <bruno@clisp.org>
17996
17997         New module 'fd-safer-flag'.
17998         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
17999         * lib/dup-safer.c (dup_safer_flag): Remove function.
18000         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
18001         * lib/fd-safer.c (fd_safer_flag): Remove function.
18002         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
18003         * modules/cloexec (configure.ac): Drop indicator macro.
18004         * modules/fd-safer-flag: New file.
18005         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
18006         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
18007         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
18008
18009 2009-12-11  Bruno Haible  <bruno@clisp.org>
18010
18011         Tests for module 'nl_langinfo'.
18012         * modules/nl_langinfo-tests: New file.
18013         * tests/test-nl_langinfo.sh: New file.
18014         * tests/test-nl_langinfo.c: New file.
18015
18016         New module 'nl_langinfo'.
18017         * lib/nl_langinfo.c: New file.
18018         * m4/nl_langinfo.m4: New file.
18019         * modules/nl_langinfo: New file.
18020         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
18021
18022 2009-12-11  Bruno Haible  <bruno@clisp.org>
18023
18024         Tests for module 'langinfo'.
18025         * modules/langinfo-tests: New file.
18026         * tests/test-langinfo.c: New file.
18027
18028         New module 'langinfo'.
18029         * lib/langinfo.in.h: New file.
18030         * m4/langinfo_h.m4: New file.
18031         * modules/langinfo: New file.
18032         * doc/posix-headers/langinfo.texi: Mention the new module.
18033
18034 2009-12-11  Bruno Haible  <bruno@clisp.org>
18035
18036         * lib/config.charset: Untabify.
18037
18038 2009-12-11  Bruno Haible  <bruno@clisp.org>
18039
18040         * modules/unistd-safer (configure.ac): Drop indicator macro.
18041
18042 2009-12-11  Bruno Haible  <bruno@clisp.org>
18043
18044         Move pipe2-safer code to its own file.
18045         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
18046         * lib/pipe-safer.c (pipe2_safer): Remove function.
18047         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
18048         (Makefile.am): Add it to lib_SOURCES.
18049
18050 2009-12-10  Bruno Haible  <bruno@clisp.org>
18051
18052         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
18053
18054 2009-12-10  Bruno Haible  <bruno@clisp.org>
18055
18056         Declare which arguments expect non-NULL values, for GCC and clang.
18057         * build-aux/arg-nonnull.h: New file.
18058         * modules/arg-nonnull: New file.
18059         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
18060         (inet_ntop, inet_pton): Use it.
18061         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
18062         (closedir, dirfd, opendir, scandir, alphasort): Use it.
18063         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
18064         (open, openat): Use it.
18065         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
18066         (fnmatch): Use it.
18067         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
18068         (getopt, getopt_long, getopt_long_only): Use it.
18069         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
18070         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
18071         Use it.
18072         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
18073         (iconv_open): Use it.
18074         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
18075         (strtoimax, strtoumax): Use it.
18076         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
18077         (duplocale): Use it.
18078         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
18079         (frexp, frexpl): Use it.
18080         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
18081         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
18082         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
18083         (tsearch, tfind, tdelete, twalk): Use it.
18084         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
18085         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18086         sigpending): Use it.
18087         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
18088         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18089         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18090         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18091         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18092         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18093         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18094         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18095         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18096         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18097         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18098         Use it.
18099         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
18100         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
18101         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
18102         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
18103         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
18104         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
18105         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
18106         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
18107         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
18108         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
18109         strtoull, unsetenv): Use it.
18110         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
18111         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18112         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18113         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18114         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18115         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
18116         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
18117         (strcasecmp, strncasecmp): Use it.
18118         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
18119         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
18120         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
18121         rpl_setsockopt): Use it.
18122         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
18123         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
18124         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
18125         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
18126         (gettimeofday): Use it.
18127         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
18128         (times): Use it.
18129         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
18130         (uname): Use it.
18131         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
18132         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
18133         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
18134         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
18135         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
18136         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
18137         unlinkat, write): Use it.
18138         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
18139         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
18140         * lib/argv-iter.h: Include arg-nonnull.h.
18141         (_ATTRIBUTE_NONNULL_): Remove macro.
18142         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
18143         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
18144         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
18145         optimization.
18146         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
18147         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
18148         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
18149         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
18150         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
18151         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
18152         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
18153         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
18154         * modules/arpa_inet (Depends-on): Add arg-nonnull.
18155         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
18156         * modules/dirent (Depends-on): Add arg-nonnull.
18157         (Makefile.am): Insert arg-nonnull.h into dirent.h.
18158         * modules/fcntl-h (Depends-on): Add arg-nonnull.
18159         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
18160         * modules/fnmatch (Depends-on): Add arg-nonnull.
18161         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
18162         * modules/getopt-posix (Depends-on): Add arg-nonnull.
18163         (Makefile.am): Insert arg-nonnull.h into getopt.h.
18164         * modules/glob (Depends-on): Add arg-nonnull.
18165         (Makefile.am): Insert arg-nonnull.h into glob.h.
18166         * modules/iconv_open (Depends-on): Add arg-nonnull.
18167         (Makefile.am): Insert arg-nonnull.h into iconv.h.
18168         * modules/inttypes (Depends-on): Add arg-nonnull.
18169         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
18170         * modules/locale (Depends-on): Add arg-nonnull.
18171         (Makefile.am): Insert arg-nonnull.h into locale.h.
18172         * modules/math (Depends-on): Add arg-nonnull.
18173         (Makefile.am): Insert arg-nonnull.h into math.h.
18174         * modules/netdb (Depends-on): Add arg-nonnull.
18175         (Makefile.am): Insert arg-nonnull.h into netdb.h.
18176         * modules/search (Depends-on): Add arg-nonnull.
18177         (Makefile.am): Insert arg-nonnull.h into search.h.
18178         * modules/signal (Depends-on): Add arg-nonnull.
18179         (Makefile.am): Insert arg-nonnull.h into signal.h.
18180         * modules/spawn (Depends-on): Add arg-nonnull.
18181         (Makefile.am): Insert arg-nonnull.h into spawn.h.
18182         * modules/stdio (Depends-on): Add arg-nonnull.
18183         (Makefile.am): Insert arg-nonnull.h into stdio.h.
18184         * modules/stdlib (Depends-on): Add arg-nonnull.
18185         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
18186         * modules/string (Depends-on): Add arg-nonnull.
18187         (Makefile.am): Insert arg-nonnull.h into string.h.
18188         * modules/strings (Depends-on): Add arg-nonnull.
18189         (Makefile.am): Insert arg-nonnull.h into strings.h.
18190         * modules/sys_socket (Depends-on): Add arg-nonnull.
18191         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
18192         * modules/sys_stat (Depends-on): Add arg-nonnull.
18193         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
18194         * modules/sys_time (Depends-on): Add arg-nonnull.
18195         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
18196         * modules/sys_times (Depends-on): Add arg-nonnull.
18197         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
18198         * modules/sys_utsname (Depends-on): Add arg-nonnull.
18199         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
18200         * modules/time (Depends-on): Add arg-nonnull.
18201         (Makefile.am): Insert arg-nonnull.h into time.h.
18202         * modules/unistd (Depends-on): Add arg-nonnull.
18203         (Makefile.am): Insert arg-nonnull.h into unistd.h.
18204         * modules/wchar (Depends-on): Add arg-nonnull.
18205         (Makefile.am): Insert arg-nonnull.h into wchar.h.
18206         * modules/argv-iter (Depends-on): Add arg-nonnull.
18207         * tests/test-canonicalize.c (null_ptr): New function.
18208         (main): Use it.
18209         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
18210         (main): Use it.
18211         * tests/test-memmem.c (null_ptr): New function.
18212         (main): Use it.
18213         Reported by Jim Meyering.
18214
18215 2009-12-10  Bruno Haible  <bruno@clisp.org>
18216
18217         Use spaces for indentation, not tabs.
18218         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18219         * m4/*.m4: Untabify.
18220         * build-aux/*.h: Untabify.
18221         * tests/**/*.[hc]: Untabify.
18222         * README: New section "Indent with spaces, not TABs", based on
18223         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
18224         * NEWS: Mention the change.
18225
18226 2009-12-10  Bruno Haible  <bruno@clisp.org>
18227
18228         pty test: Fix link error.
18229         * modules/pty-tests (Makefile.am): Add the default LDADD value to
18230         test_pty_LDADD.
18231
18232 2009-12-07  Simon Josefsson  <simon@josefsson.org>
18233
18234         * modules/pty: New file.
18235         * modules/pty-tests: New file.
18236         * m4/pty.m4: New file.
18237         * tests/test-pty.c: New file.
18238         * doc/glibc-headers/pty.texi: Modified.
18239         * doc/glibc-functions/forkpty.texi: Modified.
18240         * doc/glibc-functions/openpty.texi: Modified.
18241
18242 2009-12-10  Bruno Haible  <bruno@clisp.org>
18243
18244         Avoid syntax error in C++ mode.
18245         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
18246
18247 2009-12-10  Bruno Haible  <bruno@clisp.org>
18248
18249         Use sed with option -e.
18250         * gnulib-tool (func_version, func_emit_copyright_notice,
18251         func_emit_initmacro_end, func_import, func_create_testdir): Pass
18252         option -e to sed.
18253         * modules/link-warning (Makefile.am): Likewise.
18254
18255 2009-12-10  Jim Meyering  <meyering@redhat.com>
18256
18257         mgetgroups: do not write bytes beyond end of malloc'd buffer
18258         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
18259         username, we call getgroups with a one-element-shorter buffer,
18260         but still told it the length was original, max_n_groups.
18261
18262 2009-12-09  Eric Blake  <ebb9@byu.net>
18263
18264         cloexec: relax license
18265         * modules/cloexec (Maintainer): Add myself.
18266         (License): Use LGPL, not GPL.
18267
18268         link-warning: optimize generation
18269         * modules/link-warning (Makefile.am): Reduce process usage.
18270
18271 2009-12-09  Bruno Haible  <bruno@clisp.org>
18272
18273         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
18274         workaround was added on 2009-11-17.
18275
18276 2009-12-09  Jim Meyering  <meyering@redhat.com>
18277             Bruno Haible  <bruno@clisp.org>
18278
18279         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
18280         * modules/link-warning (Makefile.am): Make the comment-removing sed
18281         command more robust in the face of bootstrap-prepended comment lines.
18282
18283 2009-12-09  Bruno Haible  <bruno@clisp.org>
18284
18285         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
18286         most one group.
18287
18288 2009-12-09  Simon Josefsson <simon@josefsson.org>
18289             Bruno Haible  <bruno@clisp.org>
18290
18291         * build-aux/link-warning.h: Add copyright notice.
18292         * modules/link-warning (Makefile.am): Generate link-warning.h from
18293         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
18294         * NEWS: Mention change in link-warning module.
18295         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
18296         * modules/dirent (Makefile.am): Add dependency to dirent.h.
18297         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
18298         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
18299         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
18300         * modules/math (Makefile.am): Add dependency to math.h.
18301         * modules/search (Makefile.am): Add dependency to search.h.
18302         * modules/signal (Makefile.am): Add dependency to signal.h.
18303         * modules/spawn (Makefile.am): Add dependency to spawn.h.
18304         * modules/stdio (Makefile.am): Add dependency to stdio.h.
18305         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
18306         * modules/string (Makefile.am): Add dependency to string.h.
18307         * modules/strings (Makefile.am): Add dependency to strings.h.
18308         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
18309         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
18310         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
18311         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
18312         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
18313         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
18314         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
18315         * modules/unistd (Makefile.am): Add dependency to unistd.h.
18316         * modules/wchar (Makefile.am): Add dependency to wchar.h.
18317
18318 2009-12-09  Bruno Haible  <bruno@clisp.org>
18319
18320         fchdir: Optimize away rpl_fstat when possible.
18321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
18322         REPLACE_OPEN_DIRECTORY.
18323         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
18324
18325 2009-12-09  Bruno Haible  <bruno@clisp.org>
18326
18327         * lib/fchdir.c: Update comment.
18328
18329 2009-12-09  Bruno Haible  <bruno@clisp.org>
18330
18331         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
18332
18333 2009-12-08  Eric Blake  <ebb9@byu.net>
18334
18335         fchdir: avoid memory leak on re-registration.
18336         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
18337
18338 2009-12-08  Jim Meyering  <meyering@redhat.com>
18339
18340         init.sh: avoid Solaris 10 /bin/sh portability problem
18341         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
18342         sourced script:
18343           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
18344           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
18345           bar
18346         tests/init.sh relied on that, accepting a --set-path=DIR argument,
18347         and two tests used that idiom.
18348         * tests/init.sh: Update suggested usage comments.
18349         (path_prepend_): New function, to be used in place
18350         of the --src-path=DIR option.
18351         (setup_): Move PATH-prepending code into path_prepend_.
18352         * tests/test-pread.sh: Adapt to new usage.
18353         * tests/test-xalloc-die.sh: Likewise.
18354
18355 2009-12-08  Simon Josefsson  <simon@josefsson.org>
18356
18357         * doc/gnulib.texi (Glibc pty.h): Add.
18358         * doc/glibc-functions/forkpty.texi: Add.
18359         * doc/glibc-functions/openpty.texi: Add.
18360         Suggested by Bruno Haible.
18361
18362 2009-12-08  Eric Blake  <ebb9@byu.net>
18363
18364         fchdir: fix logic bugs
18365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
18366         * tests/test-fchdir.c (main): Enhance test.
18367         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
18368         is in use.
18369
18370         dup2: fix logic bugs
18371         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
18372         REPLACE_DUP2 to decide when rpl_dup2 is needed.
18373         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
18374         exists.
18375         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
18376
18377 2009-12-07  Eric Blake  <ebb9@byu.net>
18378
18379         unlink: fix m4 detection
18380         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
18381
18382         unistd-safer: add unit test
18383         * modules/unistd-safer-tests: New file.
18384         * tests/test-dup-safer.c: Likewise.
18385         * tests/test-cloexec.c (setmode): Avoid compiler warning.
18386         * tests/test-dup2.c (setmode): Likewise.
18387         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
18388
18389         cloexec: preserve text vs. binary across dup_cloexec
18390         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
18391         mode.
18392         * modules/dup2-tests (Depends-on): Add binary-io.
18393         * modules/cloexec-tests (Depends-on): Likewise.
18394         * tests/test-dup2.c (setmode, is_mode): New helpers.
18395         (main): Add tests that translation mode is preserved.
18396         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
18397         Reported by Bruno Haible.
18398
18399         mgetgroups: reduce duplicate listings
18400         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
18401         resulting array.
18402         * tests/test-chown.h (test_chown): Simplify client.
18403         * tests/test-lchown.h (test_lchown): Likewise.
18404
18405 2009-12-06  Bruno Haible  <bruno@clisp.org>
18406
18407         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
18408         value.
18409
18410 2009-12-06  Bruno Haible  <bruno@clisp.org>
18411
18412         * lib/progname.c: Include stdio.h, stdlib.h.
18413         (set_program_name): Reject a NULL argument.
18414
18415 2009-12-05  Eric Blake  <ebb9@byu.net>
18416
18417         pipe2-safer: new module
18418         * modules/pipe2-safer: New file.
18419         * lib/unistd-safer.h (pipe2_safer): New prototype.
18420         * lib/unistd--.h (pipe2): New wrapper.
18421         * lib/pipe-safer.c (pipe2_safer): New function.
18422         * modules/pipe (Depends-on): Add pipe2-safer.
18423         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
18424
18425         stdlib-safer: preserve cloexec flag for mkostemp[s]
18426         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
18427         fd_safer_flag.
18428
18429         unistd-safer: allow preservation of cloexec status via flag
18430         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
18431         prototypes.
18432         * lib/dup-safer.c (dup_safer_flag): New function.
18433         * lib/fd-safer.c (fd_safer_flag): Likewise.
18434         * modules/cloexec (configure.ac): Set witness.
18435
18436         test-dup2: enhance test
18437         * modules/dup2-tests (Depends-on): Add cloexec.
18438         * tests/test-dup2.c (main): Enhance test.
18439
18440         cloexec: add dup_cloexec
18441         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
18442         header and comments.
18443         * lib/cloexec.c (set_cloexec_flag): Add comments.
18444         (dup_cloexec): New function, with mingw implementation borrowed
18445         from...
18446         * lib/w32spawn.h (dup_noinherit): ...here.
18447         * modules/execute (Depends-on): Add cloexec.
18448         * modules/pipe (Depends-on): Likewise.
18449         * modules/cloexec (Depends-on): Add dup2.
18450         * modules/cloexec-tests (Files): New file.
18451         * tests/test-cloexec.c: Likewise.
18452
18453         test-xalloc-die: fix test for mingw
18454         * modules/xalloc-die-tests (Files): Add tests/init.sh.
18455         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
18456         directory and .exe suffix off argv[0] output.
18457
18458         test-fseeko: fix test for mingw
18459         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
18460         than undefining fseek, so test will pass on mingw.
18461
18462 2009-12-05  Bruno Haible  <bruno@clisp.org>
18463
18464         * lib/progname.h (set_program_name): Clarify specification.
18465         * lib/progname.c (set_program_name): Likewise.
18466         Reported by Jim Meyering.
18467
18468 2009-12-05  Jim Meyering  <meyering@redhat.com>
18469
18470         maint.mk: backslash-escape parens in default regexp
18471         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
18472         backslash-escape the literal parentheses.
18473
18474         maint.mk: news-date-check: use grep -E
18475         * top/maint.mk (today): Define a Make variable, not a...
18476         (news-date-check): ...shell variable.
18477         (news-date-regexp): Use the Make variable.
18478         Use grep's -E option.  Change the failing diagnostic to mention
18479         the variable, $(news-date-regexp).
18480
18481 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
18482
18483         maintainer-makefile: allow customization of NEWS entry format
18484         * top/maint.mk (news-date-regexp): New overridable variable.
18485         (news-date-check): Use it.
18486
18487 2009-12-04  Eric Blake  <ebb9@byu.net>
18488
18489         mgetgroups: add xgetgroups, and avoid ENOSYS failures
18490         * lib/mgetgroups.h (xgetgroups): New prototype.
18491         * lib/mgetgroups.c (xgetgroups): New wrapper.
18492         (mgetgroups): Handle ENOSYS.
18493         * modules/mgetgroups (Depends-on): Add realloc.
18494         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
18495
18496         mgetgroups: avoid argument promotion issues with -1
18497         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
18498         for invalid gid_t.
18499         * tests/test-chown.h (getegid, test_chown): Likewise.
18500         * tests/test-lchown.h (getegid, test_lchown): Likewise.
18501
18502 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
18503
18504         exclude: Fix header file problems.
18505         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
18506
18507 2009-12-01  Jim Meyering  <meyering@redhat.com>
18508
18509         fts: fts_open: do not let an empty string cause immediate failure
18510         This is required in support of GNU rm, for which the command
18511         "rm A '' B" must process and remove both A and B, in spite of
18512         the empty string argument.
18513         * lib/fts.c (fts_open): Do not let the presence of an empty string
18514         cause fts_open to fail immediately.  Most fts-using tools must be
18515         able to process all arguments, in order, and can be expected to
18516         diagnose such arguments themselves.
18517
18518 2009-11-30  Eric Blake  <ebb9@byu.net>
18519
18520         utimens: fix compilation error
18521         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
18522         Declare variable at right scope.
18523
18524 2009-11-29  Jim Meyering  <meyering@redhat.com>
18525
18526         bootstrap: handle perl-5.11's changed --version output
18527         * build-aux/bootstrap (get_version): Handle perl separately,
18528         since perl-5.11's --version output is different.
18529
18530 2009-11-28  Jim Meyering  <meyering@redhat.com>
18531
18532         userspec: depend on the inttostr module, too
18533         * modules/userspec (Depends-on): Add inttostr.
18534
18535         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
18536         * lib/userspec.c (parse_with_separator): Do not accept a user ID
18537         number of MAXUID when it evaluates to (uid_t) -1.
18538         Likewise for group ID.  Reported by Matt McCutchen in
18539         <http://savannah.gnu.org/bugs/?28113>
18540
18541         userspec: reformat to use spaces, not TABs
18542         * lib/userspec.c: Expand TABs to spaces.
18543         Add Emacs' "indent-tabs-mode: nil" hint.
18544
18545 2009-11-27  Eric Blake  <ebb9@byu.net>
18546
18547         getopt-gnu: flush out another BSD bug
18548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
18549         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
18550         flush out BSD bug.
18551         * tests/test-getopt.h (test_getopt): End lists with NULL.
18552         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18553         (test_getopt_long_posix): Enhance test.
18554         * modules/getopt-posix-tests (Depends-on): Add stdbool.
18555         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
18556         getopt-gnu.
18557         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18558         Likewise.
18559
18560 2009-11-27  Simon Josefsson  <simon@josefsson.org>
18561
18562         * modules/idpriv-droptemp-tests (Notice): Fix text.
18563
18564 2009-11-27  Jim Meyering  <meyering@redhat.com>
18565
18566         test-xalloc-die: avoid spurious failure due to libtool argv difference
18567         In a libtool-enabled project, this test would fail due to a difference
18568         in the emitted program name, e.g.,
18569         -test-xalloc-die: memory exhausted
18570         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
18571         Use program to avoid that.
18572         * modules/xalloc-die-tests (Depends-on): Add progname.
18573         * tests/test-xalloc-die.c: Include progname.h".
18574         (program_name): Remove decl.
18575         (main): Call set_program_name.
18576         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
18577
18578 2009-11-26  Richard Jones  <rjones@redhat.com>
18579
18580         w32sock: leave win32 error in place.
18581         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
18582
18583 2009-11-26  Eric Blake  <ebb9@byu.net>
18584
18585         init.sh: suggest to use skip_ and fail_ functions in comments
18586         * tests/init.sh: Add a sentence.
18587
18588 2009-11-25  Bruno Haible  <bruno@clisp.org>
18589
18590         init.sh: add documentation in comments
18591         * tests/init.sh: Add some developer and user documentation.
18592
18593 2009-11-26  Jim Meyering  <meyering@redhat.com>
18594
18595         init.sh: accommodate even those who specify bogus srcdir manually
18596         * tests/init.sh: Normally, srcdir is guaranteed by automake and
18597         configure-time tests to be sanitized, so that there is no need to
18598         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
18599         (with no double quotes) suffices.  However, since tests may be
18600         invoked manually, and since you may explicitly set srcdir to the
18601         name of a directory containing spaces, do quote its uses here.
18602         * tests/test-pread.sh: Likewise.
18603         Suggested by Bruno Haible.
18604
18605         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
18606         * tests/test-pread.sh: Write no data into the pipe, because
18607         test-pread actually reads none.  This avoids a diagnostic,
18608         "bash: echo: write error: Broken pipe", that arises in the unusual
18609         event something is ignoring SIGPIPE, and might be interpreted
18610         as some sort of failure.  Reported by Bruno Haible.
18611
18612 2009-11-25  Jim Meyering  <meyering@redhat.com>
18613
18614         test-pread: cover failure with ESPIPE and EINVAL
18615         * tests/test-pread.c (main): Test for failure, too.
18616         * tests/test-pread.sh: Invoke with stdin on a pipe.
18617         Suggested by Eric Blake.
18618
18619         pread: improvement and fix
18620         * modules/pread (Depends-on): Depend on lseek, for portability to
18621         e.g., mingw.  Suggested by Eric Blake.
18622         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
18623
18624         unistd.in.h: correct declaration of pread
18625         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
18626         Reported by Richard W.M. Jones.
18627
18628         test-pread.sh: distribute the test script
18629         * modules/pread-tests (Files): Include test-pread.sh.
18630
18631         test-pread.sh: clean up
18632         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
18633         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
18634         That is unnecessary, since it's always ".".
18635         Suggestion from Eric Blake.
18636
18637         test-pread.sh: make executable
18638         * tests/test-pread.sh: Set executable bit.
18639         Reported by Eric Blake.
18640
18641         correct typo in test-pread.sh
18642         * tests/test-pread.sh: Add #! line.
18643
18644         test pread
18645         * tests/test-pread.c: New file.
18646         * tests/test-pread.sh: Likewise.
18647         * modules/pread-tests: Likewise.
18648
18649         pread: new module
18650         * modules/pread: New file.
18651         * lib/unistd.in.h (pread): Define/declare.
18652         * lib/pread.c (pread): New file.
18653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
18654         * modules/unistd (Makefile.am): Substitute witnesses.
18655         * doc/posix-functions/pread.texi (pread): Update.
18656         * MODULES.html.sh: Add pread.
18657
18658 2009-11-25  Jim Meyering  <meyering@redhat.com>
18659
18660         tests/init.sh: new file to be used via most *.sh tests
18661         * tests/init.sh: New file.
18662
18663 2009-11-25  Eric Blake  <ebb9@byu.net>
18664
18665         utimens: work around older Linux failure with symlinks
18666         * lib/utimens.c (lutimensat_works_really): New variable.
18667         (fdutimens, lutimens): Use it to manage kernels that support
18668         nanosecond times on files, but not on symlinks.
18669         Reported by OndÅ™ej Vašík.
18670
18671         utimes: fix configure grammar
18672         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
18673
18674 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
18675
18676         regex: Fix fastmap for multibyte character ranges.
18677         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
18678         characters when a multibyte character range is included.
18679
18680 2009-11-22  Andy Wingo  <wingo@pobox.com>
18681
18682         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
18683         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
18684
18685 2009-11-24  Bruno Haible  <bruno@clisp.org>
18686
18687         doc: Most *_l functions exist in MacOS X 10.5.
18688         * doc/posix-functions/duplocale.texi: Update platforms list.
18689         * doc/posix-functions/freelocale.texi: Likewise.
18690         * doc/posix-functions/newlocale.texi: Likewise.
18691         * doc/posix-functions/uselocale.texi: Likewise.
18692         * doc/posix-functions/isalnum_l.texi: Likewise.
18693         * doc/posix-functions/isalpha_l.texi: Likewise.
18694         * doc/posix-functions/isblank_l.texi: Likewise.
18695         * doc/posix-functions/iscntrl_l.texi: Likewise.
18696         * doc/posix-functions/isdigit_l.texi: Likewise.
18697         * doc/posix-functions/isgraph_l.texi: Likewise.
18698         * doc/posix-functions/islower_l.texi: Likewise.
18699         * doc/posix-functions/isprint_l.texi: Likewise.
18700         * doc/posix-functions/ispunct_l.texi: Likewise.
18701         * doc/posix-functions/isspace_l.texi: Likewise.
18702         * doc/posix-functions/isupper_l.texi: Likewise.
18703         * doc/posix-functions/iswalnum_l.texi: Likewise.
18704         * doc/posix-functions/iswalpha_l.texi: Likewise.
18705         * doc/posix-functions/iswblank_l.texi: Likewise.
18706         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18707         * doc/posix-functions/iswctype_l.texi: Likewise.
18708         * doc/posix-functions/iswdigit_l.texi: Likewise.
18709         * doc/posix-functions/iswgraph_l.texi: Likewise.
18710         * doc/posix-functions/iswlower_l.texi: Likewise.
18711         * doc/posix-functions/iswprint_l.texi: Likewise.
18712         * doc/posix-functions/iswpunct_l.texi: Likewise.
18713         * doc/posix-functions/iswspace_l.texi: Likewise.
18714         * doc/posix-functions/iswupper_l.texi: Likewise.
18715         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18716         * doc/posix-functions/isxdigit_l.texi: Likewise.
18717         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
18718         * doc/posix-functions/strcasecmp_l.texi: Likewise.
18719         * doc/posix-functions/strcoll_l.texi: Likewise.
18720         * doc/posix-functions/strfmon_l.texi: Likewise.
18721         * doc/posix-functions/strftime_l.texi: Likewise.
18722         * doc/posix-functions/strncasecmp_l.texi: Likewise.
18723         * doc/posix-functions/strxfrm_l.texi: Likewise.
18724         * doc/posix-functions/tolower_l.texi: Likewise.
18725         * doc/posix-functions/toupper_l.texi: Likewise.
18726         * doc/posix-functions/towctrans_l.texi: Likewise.
18727         * doc/posix-functions/towlower_l.texi: Likewise.
18728         * doc/posix-functions/towupper_l.texi: Likewise.
18729         * doc/posix-functions/wcscoll_l.texi: Likewise.
18730         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18731         * doc/posix-functions/wctrans_l.texi: Likewise.
18732         * doc/posix-functions/wctype_l.texi: Likewise.
18733         * doc/glibc-functions/strptime_l.texi: Likewise.
18734         * doc/glibc-functions/strtod_l.texi: Likewise.
18735         * doc/glibc-functions/strtof_l.texi: Likewise.
18736         * doc/glibc-functions/strtol_l.texi: Likewise.
18737         * doc/glibc-functions/strtold_l.texi: Likewise.
18738         * doc/glibc-functions/strtoll_l.texi: Likewise.
18739         * doc/glibc-functions/strtoul_l.texi: Likewise.
18740         * doc/glibc-functions/strtoull_l.texi: Likewise.
18741         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18742         * doc/glibc-functions/wcstod_l.texi: Likewise.
18743         * doc/glibc-functions/wcstof_l.texi: Likewise.
18744         * doc/glibc-functions/wcstol_l.texi: Likewise.
18745         * doc/glibc-functions/wcstold_l.texi: Likewise.
18746         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18747         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18748         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18749
18750 2009-11-24  Bruno Haible  <bruno@clisp.org>
18751
18752         duplocale: Fix logic bug.
18753         * lib/duplocale.c: Don't include <langinfo.h>.
18754         (_NL_LOCALE_NAME): Remove macro.
18755         (rpl_duplocale): Use setlocale instead of nl_langinfo.
18756         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
18757
18758 2009-11-23  Jim Meyering  <meyering@redhat.com>
18759
18760         test-update-copyright: don't hard-code /usr/bin/perl
18761         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
18762         perl to print the current year.  Gilles Espinasse reported that
18763         the replaced use of perl was hard-coded as /usr/bin/perl.
18764
18765 2009-11-23  Bruno Haible  <bruno@clisp.org>
18766
18767         duplocale: Add support for glibc 2.3.x.
18768         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
18769
18770 2009-11-22  Bruno Haible  <bruno@clisp.org>
18771
18772         vasnprintf: Tiny optimization.
18773         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
18774         MacOS X.
18775
18776 2009-11-22  Bruno Haible  <bruno@clisp.org>
18777
18778         Tests for module 'duplocale'.
18779         * modules/duplocale-tests: New file.
18780         * tests/test-duplocale.c: New file.
18781
18782         New module 'duplocale'.
18783         * m4/duplocale.m4: New file.
18784         * lib/locale.in.h (duplocale): New declaration.
18785         * lib/duplocale.c: New file.
18786         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
18787         gl_LOCALE_H_DEFAULTS): New macros.
18788         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
18789         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
18790         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
18791         REPLACE_DUPLOCALE.
18792         * modules/duplocale: New file.
18793         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
18794
18795 2009-11-22  Bruno Haible  <bruno@clisp.org>
18796
18797         * modules/locale-tests (configure.ac): Test for newlocale function.
18798         * tests/test-locale.c: When the system has extended locale functions,
18799         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
18800
18801         locale: Make locale_t available when possible.
18802         * lib/locale.in.h: Include <xlocale.h> when it exists.
18803         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
18804         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
18805         * modules/locale (Depends-on): Add extensions.
18806         (Makefile.am): Also substitute HAVE_XLOCALE_H.
18807         * doc/posix-headers/locale.texi: Document the problem with locale_t.
18808
18809 2009-11-22  Bruno Haible  <bruno@clisp.org>
18810
18811         Add comments.
18812         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
18813         invocation.
18814         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18815         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18816         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18817
18818 2009-11-22  Bruno Haible  <bruno@clisp.org>
18819
18820         error: account for the possibility of freopen (stdout).
18821         * lib/error.c: Include <unistd.h>.
18822         (flush_stdout): New function, extracted from error and error_at_line.
18823         Determine stdout's fd dynamically.
18824         (error, error_at_line): Invoke flush_stdout.
18825         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
18826         * modules/error (Depends-on): Add unistd.
18827
18828 2009-11-22  Bruno Haible  <bruno@clisp.org>
18829
18830         diffseq: Add comment.
18831         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
18832
18833 2009-11-22  Jim Meyering  <meyering@redhat.com>
18834
18835         c-stack: avoid defining an unused static function
18836         * lib/c-stack.c (find_stack_direction): Do not define this function
18837         when it will not be used.
18838
18839         diffseq: avoid spurious gcc warnings
18840         * lib/diffseq.h (IF_LINT2): Define.
18841         (compareseq): Use it to initialize two members of "part".
18842         This avoids two used-uninitialized warnings.
18843
18844 2009-11-21  Jim Meyering  <meyering@redhat.com>
18845
18846         c-stack: avoid "ignoring return value of `write'" warning
18847         * lib/c-stack.c: Include "ignore-value.h".
18848         (die): Explicitly ignore each write return value.
18849         * modules/c-stack (Depends-on): Add ignore-value.
18850
18851 2009-11-21  Bruno Haible  <bruno@clisp.org>
18852
18853         diffseq: reduce scope of variable 'best'.
18854         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
18855         variable, earlier used for two different purposes.
18856
18857 2009-11-21  Jim Meyering  <meyering@redhat.com>
18858
18859         diffseq: remove useless assignment to "best"
18860         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
18861         assignment.  At that point "best" is already guaranteed to be zero.
18862
18863 2009-11-20  Eric Blake  <ebb9@byu.net>
18864
18865         build: mention ftp redirector in release announcements
18866         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
18867         values that used to come from cfg.mk; mention FTP redirect URL.
18868         * build-aux/announce-gen: Mention the mirror list.
18869         Suggested by Karl Berry.
18870
18871         nanosleep: improve port to mingw
18872         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
18873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
18874         LIB_NANOSLEEP, but only when needed.
18875         * modules/select (Link): Document LIBSOCKET.
18876         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
18877         enough.
18878
18879         nanosleep: work around cygwin bug
18880         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
18881         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
18882         bug.
18883         (getnow): Delete, not needed.
18884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
18885         LIB_CLOCK_GETTIME.
18886         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
18887         clock-time, gettime.
18888         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
18889         bug.
18890         * modules/nanosleep-tests: New test.
18891         * tests/test-nanosleep.c: New file.
18892
18893         sleep: work around cygwin bug
18894         * lib/sleep.c (rpl_sleep): Work around the bug.
18895         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
18896         (gl_PREREQ_SLEEP): Delete unused macro.
18897         * modules/sleep (Depends-on): Add verify.
18898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18899         * modules/unistd (Makefile.am): Substitute witness.
18900         * lib/unistd.in.h (sleep): Update prototype.
18901         * doc/posix-functions/sleep.texi (sleep): Document the bug.
18902         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
18903         * modules/sleep-tests (Depends-on): Check for alarm.
18904
18905 2009-11-20  Jim Meyering  <meyering@redhat.com>
18906
18907         maint.mk: improve sc_prohibit_magic_number_exit
18908         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
18909         so it does not match uses like System.exit(1).
18910         Add comments showing how to correct all offenders.
18911
18912 2009-11-19  Eric Blake  <ebb9@byu.net>
18913
18914         xalloc-die-tests: add missing library
18915         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
18916
18917         test-xvasprintf: silence compiler warnings
18918         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
18919         empty string from gcc.
18920
18921 2009-11-19  Jim Meyering  <meyering@redhat.com>
18922
18923         xfreopen: new module, from coreutils
18924         * modules/xfreopen: New module.
18925         * lib/xfreopen.c: New file.
18926         * lib/xfreopen.h: New file.
18927         * MODULES.html.sh (File stream based Input/Output"): Add it.
18928
18929 2009-11-19  Eric Blake  <ebb9@byu.net>
18930
18931         manywarnings: depend on warnings
18932         * modules/manywarnings (Depends-on): Add warnings.
18933
18934         build: avoid compiler warnings
18935         * lib/select.c (rpl_select): Delete unused variable.
18936         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
18937
18938 2009-11-18  Eric Blake  <ebb9@byu.net>
18939
18940         tests: avoid false negative with --with-packager
18941         * tests/test-version-etc.sh: Discard packager information.
18942         * tests/test-argp-version-etc-1.sh: Likewise.
18943         Reported by Mike Frysinger.
18944
18945         utimens: fix regression on Solaris
18946         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
18947         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
18948         can only change fd timestamps via futimesat.  Instead, use an
18949         additional witness macro to avoid BSD bug.
18950         Reported by Jim Meyering.
18951
18952 2009-11-17  Eric Blake  <ebb9@byu.net>
18953
18954         usleep: use it to simplify tests
18955         * modules/stat-time-tests (Depends-on): Add usleep.
18956         (configure.ac): Drop usleep check.
18957         * modules/chown-tests (Depends-on, configure.ac): Likewise.
18958         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
18959         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
18960         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
18961         * modules/openat-tests (Depends-on, configure.ac): Likewise.
18962         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
18963         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
18964         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
18965         Likewise.
18966         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
18967         * tests/test-lchown.h (nap): Likewise.
18968         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
18969         * tests/test-stat-time.c (nap): Likewise.
18970         * tests/test-utimens-common.h (nap): Update comments.
18971
18972         usleep: new module
18973         * modules/usleep: New file.
18974         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18975         * lib/usleep.c (usleep): Likewise.
18976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18977         * modules/unistd (Makefile.am): Substitute witnesses.
18978         * lib/unistd.in.h (usleep): Add declaration.
18979         * doc/pastposix-functions/usleep.texi (usleep): Document this.
18980         * MODULES.html.sh (Date and time): Likewise.
18981         * modules/usleep-tests (Depends-on): New test.
18982         * tests/test-usleep.c: New file.
18983
18984         chown: work around OpenBSD bug
18985         * lib/chown.c (rpl_chown): Work around the bug.
18986         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
18987         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
18988         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
18989         * modules/chown (Depends-on): Add stdbool.
18990         * modules/lchown (Depends-on): Likewise.
18991         * doc/posix-functions/chown.texi (chown): Document the bug.
18992         * doc/posix-functions/lchown.texi (lchown): Likewise.
18993         * tests/test-lchown.h (test_chown): Relax test.
18994
18995         mkstemp: avoid conflict with C++ keyword template
18996         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
18997         * lib/mkostemp.c (mkostemp): Likewise.
18998         * lib/mkostemps.c (mkostemps): Likewise.
18999         * lib/mkstemp.c (mkstemp): Likewise.
19000         * lib/mkstemps.c (mkstemps): Likewise.
19001
19002         xalloc-die-tests: optimize
19003         * tests/test-xalloc-die.sh: Reduce number of processes.
19004
19005 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19006
19007         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
19008         patch from ludo@gnu.org (Ludovic Courtès).
19009
19010 2009-11-17  Jim Meyering  <meyering@redhat.com>
19011
19012         version-etc: use proper license string
19013         * modules/version-etc (License): Use LGPL, not LGPLv3+.
19014         * modules/version-etc-fsf: Likewise.
19015
19016 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19017
19018         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
19019         printed to stdout.  Deal with EOL differences.
19020
19021 2009-11-17  Eric Blake  <ebb9@byu.net>
19022
19023         unsetenv: work around Solaris bug
19024         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
19025         * lib/unsetenv.c (rpl_unsetenv): Work around it.
19026         Reported by Jim Meyering.
19027
19028         vasnprintf: avoid compiler warnings
19029         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
19030         variables.
19031         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
19032
19033 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19034
19035         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
19036         settings since xalloc-die is no longer the self test,
19037         xalloc-die.sh is.
19038
19039 2009-11-17  Jim Meyering  <meyering@redhat.com>
19040
19041         test-xalloc-die.sh: make the code agree with the commit log
19042         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
19043         at the end, just in case you happen to have a test-xalloc-die
19044         program in some other PATH directory.
19045
19046         test-xalloc-die.sh: fix a portability bug
19047         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
19048         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
19049         Otherwise, argv[0] (as often seen in diagnostics) would be too
19050         system-dependent, sometimes with, and sometimes without the leading "./".
19051
19052         version-etc-fsf: relax license to LGPLv3+
19053         * modules/version-etc-fsf (License): Relax license.
19054
19055 2009-11-16  Eric Blake  <ebb9@byu.net>
19056
19057         xalloc-die-tests: avoid printing null pointer
19058         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
19059         shell script.
19060         * tests/test-xalloc-die.c (program_name): Declare.
19061         * tests/test-xalloc-die.sh (tmpfiles): New file.
19062
19063         setenv, unsetenv: work around various bugs
19064         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
19065         (setenv) [HAVE_SETENV]: Work around bugs.
19066         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
19067         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
19068         for bugs.
19069         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
19070         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
19071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
19072         * modules/stdlib (Makefile.am): Update substitutions.
19073         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
19074         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
19075         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19076         * modules/setenv-tests: New test.
19077         * modules/unsetenv-tests: Likewise.
19078         * tests/test-setenv.c: New file.
19079         * tests/test-unsetenv.c: Likewise.
19080
19081 2009-11-16  Jim Meyering  <meyering@redhat.com>
19082
19083         version-etc: relax license to LGPLv3+
19084         * modules/version-etc (License): Relax license.
19085
19086         better AC_REQUIRE expanded-before-required-warning avoidance
19087         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
19088         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
19089         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
19090         which is no longer needed.
19091
19092 2009-11-16  Eric Blake  <ebb9@byu.net>
19093
19094         test-freading: clean up temporary file
19095         * tests/test-freading.c (main): Remove file on success, and use
19096         ASSERT more liberally.
19097         Reported by Jim Meyering.
19098
19099 2009-11-16  Jim Meyering  <meyering@redhat.com>
19100
19101         avoid new AC_REQUIRE expanded-before-required warnings
19102         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
19103         merely using it.
19104         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
19105         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
19106
19107 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19108
19109         * tests/test-xalloc-die.c: New file.
19110         * modules/xalloc-die-tests: New file.
19111         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
19112         XFAIL_TESTS so it can be appended by modules.
19113
19114 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19115
19116         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
19117         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
19118
19119 2009-11-14  Eric Blake  <ebb9@byu.net>
19120
19121         fnmatch: avoid compiler warning
19122         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
19123         to silence compiler warning about mismatch signedness in ?:.
19124         Reported by Robert Millan.
19125
19126         intprops: add double-inclusion guard
19127         * lib/intprops.h: Allow idempotent includes.
19128         Suggested by Bruce Korb.
19129
19130         openat: detect Solaris fchownat bug
19131         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
19132         penalizing glibc chownat when only lchownat is broken.
19133         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
19134         trailing slash bugs.
19135         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
19136         * modules/openat-tests (Files): Include more files.
19137         (Depends-on): Add mgetgroups, sleep, stat-time.
19138         (configure.ac): Add additional checks.
19139         (Makefile.am): Build new test.
19140         * tests/test-fchownat.c: New file.
19141
19142         lchown: detect Solaris and FreeBSD bug
19143         * lib/lchown.c (rpl_lchown): Work around bug.
19144         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
19145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19146         * modules/unistd (Makefile.am): Populate it.
19147         * lib/unistd.in.h (lchown): Update declaration.
19148         * doc/posix-functions/lchown.texi (lchown): Document the bug.
19149         * modules/lchown-tests: New file.
19150         * tests/test-lchown.h (test_lchown): Likewise.
19151         * tests/test-lchown.c (main): Likewise.
19152
19153         chown: detect Solaris and FreeBSD bug
19154         * lib/chown.c (rpl_chown): Work around bug.
19155         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
19156         (gl_PREREQ_CHOWN): Delete.
19157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19158         * modules/unistd (Makefile.am): Populate it.
19159         * lib/unistd.in.h (chown): Update declaration.
19160         * lib/lchown.c (chown): Update client.
19161         * modules/lchown (Depends-on): Add lstat.
19162         * doc/posix-functions/chown.texi (chown): Document the bug.
19163         * doc/posix-functions/getgroups.texi (getgroups): Document
19164         getgroups pitfall.
19165         * modules/chown-tests: New file.
19166         * tests/test-chown.h (test_chown): Likewise.
19167         * tests/test-chown.c (main): Likewise.
19168
19169 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
19170
19171         gnulib-tool: correctly detect absence of m4 directories
19172         * gnulib-tool: Avoid extra newline on data passed to wc -l.
19173
19174 2009-11-14  Jim Meyering  <meyering@redhat.com>
19175
19176         maint.mk: Prohibit inclusion of "xalloc.h" without use.
19177         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19178
19179 2009-11-14  John W. Eaton  <jwe@gnu.org>
19180
19181         strftime.h: wrap funtion declaration in extern "C" block
19182         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
19183
19184 2009-11-13  Eric Blake  <ebb9@byu.net>
19185
19186         getgroups: avoid compiler warning
19187         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
19188
19189         getgroups: work around FreeBSD bug
19190         * lib/getgroups.c (rpl_getgroups): Work around the bug.
19191         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
19192         * doc/posix-functions/getgroups.texi (getgroups): Document it.
19193         * tests/test-getgroups.c (main): Fix buffer overrun.
19194
19195         getgroups: avoid compilation failure
19196         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
19197         * modules/getgroups (Depends-on): Add stdint.
19198
19199 2009-11-13  Jim Meyering  <meyering@redhat.com>
19200
19201         test-getgroups: avoid compilation failure
19202         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
19203
19204 2009-11-13  Eric Blake  <ebb9@byu.net>
19205
19206         mgetgroups: new module, taken from coreutils
19207         * modules/mgetgroups: New file.
19208         * lib/mgetgroups.h: Likewise.
19209         * lib/mgetgroups.c (mgetgroups): Likewise.
19210         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
19211         * MODULES.html.sh (Users and groups): Mention it.
19212
19213         getgroups: don't expose GETGROUPS_T to user
19214         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
19215         an element at a time if GETGROUPS_T is wrong size.
19216         * lib/getugroups.h (getugroups): Change signature.
19217         * lib/unistd.in.h (getgroups): Likewise.
19218         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
19219         signature needs fixing.
19220         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
19221         AC_TYPE_GETGROUPS.
19222         * modules/group-member (Depends-on): Add getgroups.
19223         * lib/group-member.c (group_info, get_group_info): Use gid_t.
19224         (group_member): Rely on getgroups replacement.
19225         * lib/getugroups.c (getugroups): Use gid_t.
19226         * tests/test-getgroups.c (main): Likewise.
19227         * NEWS: Mention the signature change.
19228         * doc/posix-functions/getgroups.texi (getgroups): Mention the
19229         problem with signature.
19230         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
19231         GETGROUPS_T is still useful for setgroups.
19232
19233         getgroups, getugroups: provide stubs for mingw
19234         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
19235         * lib/getugroups.c (getugroups): Likewise.
19236         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
19237         function.  Modernize replacement scheme.
19238         (gl_PREREQ_GETGROUPS): Delete.
19239         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
19240         * modules/getgroups (configure.ac): Declare witness.
19241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19242         * modules/unistd (Depends-on): Substitute witness.
19243         * lib/unistd.in.h (getgroups): Declare replacement.
19244
19245         getgroups: avoid calling exit
19246         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
19247         drop xalloc.
19248         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
19249         dependencies.
19250         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
19251         exiting, in the rare case of malloc failure.
19252
19253         getgroups: fix logic error
19254         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
19255         has more than 20 groups.
19256         * modules/getgroups-tests: New test.
19257         * tests/test-getgroups.c: New file.
19258
19259 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19260
19261         * tests/test-base64.c: Improve.
19262
19263 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19264
19265         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
19266         Blake <ebb9@byu.net>.
19267
19268 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19269
19270         * tests/test-xvasprintf.c: Add %s%s related checks.
19271
19272 2009-11-12  Eric Blake  <ebb9@byu.net>
19273
19274         version-etc: match standards.texi style
19275         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
19276         and use <> only for URLs.
19277
19278 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
19279
19280         fts: do not fail on a submount during traversal
19281         * lib/fts.c (fts_build): Read the stat info again after opening
19282         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
19283         Original report at http://bugzilla.redhat.com/501848.
19284
19285 2009-11-12  Jim Meyering  <meyering@redhat.com>
19286
19287         bootstrap: sync from coreutils
19288         * build-aux/bootstrap (bootstrap_epilogue): New function.
19289         Use git_modules_config in one more place.  This make bootstrap's
19290         --gnulib-srcdir option more useful for testing.
19291
19292         bootstrap: generalize autoheader check
19293         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
19294         AC_CONFIG_HEADERS.
19295
19296 2009-11-11  Eric Blake  <ebb9@byu.net>
19297
19298         mkfifoat: use new modules for Solaris and BSD bugs
19299         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
19300         * lib/mkfifoat.c (mknodat): Split...
19301         * lib/mknodat.c (mknodat): ...into new file.
19302         * modules/mkfifoat (Files): Ship new file.
19303         (Depends-on): Add mkfifo, mknod.
19304         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
19305         (Depends-on): Add symlink.
19306         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
19307         redundant with test_mkfifo.h.
19308         (do_mkfifoat, do_mknodat): New helpers.
19309
19310         mknod: new module
19311         * modules/mknod: New file.
19312         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19313         * lib/mknod.c (mknod): Likewise.
19314         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19315         defaults.
19316         * modules/sys_stat (Makefile.am): Substitute them.
19317         * lib/sys_stat.in.h (mknod): Declare replacement.
19318         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19319         Document it.
19320         * doc/posix-functions/mknod.texi (mknod): Likewise.
19321         * modules/mknod-tests: New test.
19322         * tests/test-mknod.c: Likewise.
19323
19324         mkfifo: new module
19325         * modules/mkfifo: New file.
19326         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19327         * lib/mkfifo.c (mkfifo): Likewise.
19328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19329         defaults.
19330         * modules/sys_stat (Makefile.am): Substitute them.
19331         * lib/sys_stat.in.h (mkfifo): Declare replacement.
19332         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19333         Document it.
19334         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
19335         * modules/mkfifo-tests: New test.
19336         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
19337         from test-mkfifoat.c.
19338         * tests/test-mkfifo.c: New file.
19339
19340         readlink: detect FreeBSD bug
19341         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
19342         slash on symlink.
19343         * doc/posix-functions/readlink.texi (readlink): Document the bug.
19344         * tests/test-readlink.h (test_readlink): Enhance test.
19345
19346         symlink: detect FreeBSD bug
19347         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
19348         slash on symlink.
19349         * doc/posix-functions/symlink.texi (symlink): Document the bug.
19350         * tests/test-symlink.h (test_symlink): Enhance test.
19351
19352 2009-11-10  Eric Blake  <ebb9@byu.net>
19353
19354         link: detect FreeBSD bug
19355         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
19356         symlink.
19357         * doc/posix-functions/link.texi (link): Document the bug.
19358         * tests/test-link.h (test_link): Enhance test.
19359         * tests/test-linkat.c (main): Update caller.
19360
19361         unlink, remove: detect FreeBSD bug
19362         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
19363         slash on symlink.
19364         * doc/posix-functions/unlink.texi (unlink): Document the bug.
19365         * doc/posix-functions/remove.texi (remove): Likewise.
19366         * tests/test-unlink.h (test_unlink): Enhance test.
19367         * tests/test-remove.c (main): Likewise.
19368
19369 2009-11-09  Eric Blake  <ebb9@byu.net>
19370
19371         rename: detect FreeBSD bug
19372         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
19373         slash on symlink.
19374         * modules/renameat-tests (Depends-on): Add filenamecat.
19375         * tests/test-rename.h (test_rename): Allow one more errno.
19376         * tests/test-renameat.c (main): Likewise.
19377         * doc/posix-functions/rename.texi (rename): Document the bug.
19378
19379         open: detect FreeBSD bug
19380         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
19381         symlink.
19382         * doc/posix-functions/open.texi (open): Document the bug.
19383         * doc/posix-functions/utimes.texi (utimes): Likewise.
19384         * tests/test-open.h (test_open): Add parameters, and test symlink
19385         handling.
19386         * tests/test-open.c (main): Adjust caller.
19387         * tests/test-fcntl-safer.c (main): Likewise.
19388         * modules/open-tests (Depends-on): Add stdbool, symlink.
19389         * modules/fcntl-safer-tests (Depends-on): Likewise.
19390         * tests/test-openat.c (main): Add test-open tests.
19391
19392         stat: detect FreeBSD bug
19393         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
19394         symlink.
19395         * doc/posix-functions/stat.texi (stat): Document the bug.
19396         * tests/test-stat.h (test_stat_func): Add argument.
19397         * tests/test-stat.c (main): Adjust caller.
19398         * tests/test-fstatat.c (main): Likewise.
19399         * modules/stat-tests (Depends-on): Add stdbool, symlink.
19400         Reported by Jim Meyering.
19401
19402 2009-11-09  James Youngman  <jay@gnu.org>
19403
19404         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
19405         * lib/strftime.c: Correct placement of #include "ignore-value.h".
19406
19407 2009-11-08  Jim Meyering  <meyering@redhat.com>
19408
19409         utimens: remove invalid futimesat call
19410         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
19411         It used the file descriptor of the target file as the DIR_FD
19412         parameter and NULL as the file name.  That caused failure with
19413         errno == EFAULT on FreeBSD-8.0-rc2
19414
19415 2009-11-07  Eric Blake  <ebb9@byu.net>
19416
19417         fflush, freadseek: use fseeko, not fseek
19418         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19419         (clear_ungetc_buffer): Avoid potential problems on large files.
19420         * lib/freadseek.c (freadseek): Likewise.
19421         * modules/freadseek (Depends-on): Add fseeko.
19422         * modules/fseek (configure.ac): Set a witness.
19423         * tests/test-fflush.c (main): Use fseeko.
19424         * tests/test-fpurge.c (fseek): Disable link warning.
19425         * tests/test-freadable.c (fseek): Likewise.
19426         * tests/test-freading.c (fseek): Likewise.
19427         * tests/test-fseeko.c (fseek): Likewise.
19428         * tests/test-ftell.c (fseek): Likewise.
19429         * tests/test-ftello.c (fseek): Likewise.
19430         * tests/test-fwritable.c (fseek): Likewise.
19431         * tests/test-fwriting.c (fseek): Likewise.
19432
19433 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19434
19435         * modules/memchr (Depends-on): Drop getpagesize dependency.
19436
19437 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19438
19439         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
19440         Reported by Ludovic Courtès.
19441         * build-aux/pmccabe2html: Improve example usage.
19442         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
19443
19444 2009-11-06  Jim Meyering  <meyering@redhat.com>
19445
19446         do-release-commit-and-tag: New module.
19447         Automate the release-commit and tag process.
19448         * build-aux/do-release-commit-and-tag: New script, from coreutils.
19449         * modules/do-release-commit-and-tag: New file.
19450         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19451
19452 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19453
19454         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
19455         because test-select.c uses inet_pton.
19456
19457 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19458
19459         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
19460         GETADDRINFO_LIB.  Bump serial number.
19461         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
19462         Suggested by Eric Blake <ebb9@byu.net>.
19463
19464 2009-11-05  Eric Blake  <ebb9@byu.net>
19465
19466         strtod: detect darwin bug
19467         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
19468         Reported by Leo Davis.
19469
19470         freopen-safer: new module
19471         * modules/freopen-safer: New module.
19472         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
19473         * lib/freopen-safer.c (freopen_safer): New file.
19474         * lib/stdio-safer.h (freopen_safer): New declaration.
19475         * lib/stdio--.h (freopen): New override.
19476         * MODULES.html.sh (File stream based Input/Output): Mention it.
19477         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
19478         freopen-safer module.
19479         * doc/posix-functions/stderr.texi (stderr): Likewise.
19480         * doc/posix-functions/stdin.texi (stdin): Likewise.
19481         * doc/posix-functions/stdout.texi (stdout): Likewise.
19482         * modules/freopen-safer-tests: New test.
19483         * tests/test-reopen-safer.c: New file.
19484
19485 2009-11-05  Jim Meyering  <meyering@redhat.com>
19486
19487         maint.mk: Prohibit inclusion of "close-stream.h" without use.
19488         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19489
19490 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19491
19492         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
19493
19494 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19495
19496         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
19497
19498 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19499
19500         Fix link error.
19501         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19502         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19503
19504 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19505
19506         * tests/test-func.c: Also test value of __func__.
19507
19508 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19509
19510         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
19511         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
19512
19513 2009-11-05  Bruno Haible  <bruno@clisp.org>
19514
19515         Fix link error.
19516         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19517         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19518         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
19519
19520 2009-11-05  Bruno Haible  <bruno@clisp.org>
19521
19522         Tests for module 'inet_pton'.
19523         * modules/inet_pton-tests: New file.
19524         * tests/test-inet_pton.c: New file.
19525
19526 2009-11-05  Bruno Haible  <bruno@clisp.org>
19527
19528         Tests for module 'inet_ntop'.
19529         * modules/inet_ntop-tests: New file.
19530         * tests/test-inet_ntop.c: New file.
19531
19532 2009-11-04  Eric Blake  <ebb9@byu.net>
19533
19534         stdlib-safer: wrap all mkstemp variants
19535         * modules/mkostemp (configure.ac): Set witness.
19536         * modules/mkostemps (configure.ac): Likewise.
19537         * modules/mkstemps (configure.ac): Likewise.
19538         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
19539         (mkstemps_safer): Wrap more functions.
19540         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
19541         wrapping.
19542         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
19543         (mkstemps_safer): Implement the wrappers.
19544
19545         mkstemps, mkostemps: new modules
19546         * modules/mkostemps: New module.
19547         * modules/mkstemps: Likewise.
19548         * lib/mkostemps.c (mkostemps): New file.
19549         * lib/mkstemps.c (mkstemps): Likewise.
19550         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
19551         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
19552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
19553         * modules/stdlib (Makefile.am): Substitute them.
19554         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
19555         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
19556         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19557         * doc/gnulib.texi (Glibc stdlib.h): Include them.
19558         * MODULES.html.sh (File system functions): Mention them.
19559
19560         tempname: resync from glibc
19561         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
19562         same values for __GT_FILE as glibc.  Abort even when assertions
19563         are disabled.
19564         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
19565         match its value otherwise.  Allow idempotent inclusion.
19566         * lib/mkdtemp.c (mkdtemp): Adjust caller.
19567         * lib/mkostemp.c (mkostemp): Likewise.
19568         * lib/mkstemp.c (mkstemp): Likewise.
19569         * lib/tmpfile.c (tmpfile): Likewise.
19570         * NEWS: Document this.
19571
19572         utimens: fix use of futimens on older Linux
19573         * lib/utimens.c (fdutimens): Use updated, rather than original,
19574         timespec to avoid bug in older Linux kernel.
19575         Reported by Simon Josefsson.
19576
19577 2009-11-04  Bruno Haible  <bruno@clisp.org>
19578
19579         Make num_processors more flexible and consistent.
19580         * lib/nproc.h (enum nproc_query): New type.
19581         (num_processors): Add a 'query' argument.
19582         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
19583         (num_processors): Add a 'query' argument. Test the value of the
19584         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
19585         mingw, count the number of CPUs available for the current process.
19586         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
19587         Check for sched_getaffinity and sched_getaffinity_np.
19588         * modules/nproc (Depends-on): Add c-ctype, extensions.
19589         * NEWS: Mention the change.
19590
19591 2009-11-03  Bruno Haible  <bruno@clisp.org>
19592
19593         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
19594
19595 2009-11-03  Jim Meyering  <meyering@redhat.com>
19596
19597         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
19598         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
19599         if it is defined.
19600
19601 2009-11-02  Eric Blake  <ebb9@byu.net>
19602
19603         mktime, timegm: share common declaration
19604         * lib/mktime-internal.h: New file.
19605         * lib/mktime.c: Use it rather than open-coding a declaration.
19606         * lib/timegm.c: Likewise.
19607         * modules/mktime (Files): Ship it.
19608         * modules/timegm (Files): Likewise.
19609         Suggested by Bruno Haible.
19610
19611         test-update-copyright: update test to match script changes
19612         * tests/test-update-copyright.sh: Avoid hard-coding perl
19613         location.  Don't update *.bak created by earlier runs.
19614
19615 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19616             Simon Josefsson  <simon@josefsson.org>
19617             Bruno Haible  <bruno@clisp.org>
19618
19619         Fix link error on Solaris 8.
19620         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
19621         also in libnsl. Define also INET_PTON_LIB.
19622         * modules/inet_pton (Link): New section.
19623
19624 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19625             Bruno Haible  <bruno@clisp.org>
19626
19627         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
19628         * modules/inet_ntop (Link): New section.
19629         Reported by Boyan Kasarov <bkasarov@gmail.com>.
19630
19631 2009-11-02  Eric Blake  <ebb9@byu.net>
19632
19633         maint: avoid compiler warnings in m4 macros
19634         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
19635         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
19636
19637 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19638
19639         * m4/pmccabe2html.m4: Remove file.
19640         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
19641         function.  Change maintainer.
19642         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
19643         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
19644         Courtès).
19645
19646 2009-10-31  Eric Blake  <ebb9@byu.net>
19647
19648         fseeko: fix m4 regression
19649         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
19650         regression from 2009-10-27.
19651         Reported by Ralf Wildenhues.
19652
19653 2009-10-31  Jim Meyering  <meyering@redhat.com>
19654
19655         inttostr: aesthetics and improved (compile-time) safety
19656         Define inttype_is_signed rather than inttype_is_unsigned,
19657         since the sole use is via "#if inttype_is_signed".
19658         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
19659         inttype_is_unsigned.
19660         * lib/offtostr.c (inttype_is_signed): Likewise.
19661         * lib/uinttostr.c (inttype_is_signed): Likewise.
19662         * lib/umaxtostr.c (inttype_is_signed): Likewise.
19663         * lib/inttostr.c (inttostr): Use verify to cross-check the
19664         inttype_is_signed value and the signedness of the actual type.
19665         * modules/inttostr (Depends-on): Add verify.
19666
19667 2009-10-30  Eric Blake  <ebb9@byu.net>
19668
19669         build: avoid compiler warnings
19670         * lib/fchmodat.c (lchmod): Mark unused variables.
19671         * lib/getopt.c (_getopt_initialize): Likewise.
19672         * lib/mktime.c (__mktime_internal): Provide prototype.
19673         * lib/inttostr.c (inttostr): Avoid compiler warning even with
19674         older gcc that do not understand #pragma GCC diagnostic.
19675         * lib/uinttostr.c (inttype_is_unsigned): Define.
19676         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
19677
19678 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19679
19680         stat: fix compilation on AIX
19681         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
19682         only see struct stat64.
19683
19684 2009-10-30  Eric Blake  <ebb9@byu.net>
19685
19686         exclude: make more robust
19687         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
19688         rather than masking a coding bug.
19689         Suggested by Bruno Haible.
19690
19691 2009-10-30  Jim Meyering  <meyering@redhat.com>
19692
19693         perl scripts: remove #!/usr/bin/perl in favor of more portable...
19694         Rather than putting #!/usr/bin/perl on the first line,
19695         start with a variant of what's recommended by "man perlrun" that
19696         invokes the first "perl" program from your shell's search path.
19697         * build-aux/gitlog-to-changelog: Replace #!... as above.
19698         Add a "Local Variables" perl mode setting.
19699         Prompted by a patch from Ludovic Courtès.
19700         Improved by Eric Blake.
19701         * build-aux/useless-if-before-free: Likewise.
19702         * build-aux/announce-gen: Likewise.
19703         * build-aux/update-copyright: Likewise.
19704
19705 2009-10-29  Eric Blake  <ebb9@byu.net>
19706
19707         filenamecat-lgpl: adjust clients
19708         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
19709         filenamecat.
19710         * modules/renameat (Depends-on): Likewise.
19711
19712         filenamecat: split into filenamecat-lgpl
19713         * modules/filenamecat-lgpl: New module.
19714         * modules/filenamecat (Files): Move library-safe files into
19715         filenamecat-lgpl.
19716         (Depends-on): Add filenamecat-lgpl.
19717         (configure.ac): Declare witness.
19718         * lib/filenamecat.h (file_name_concat): Only declare when using
19719         GPL module.
19720         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
19721         Move...
19722         * lib/filenamecat-lgpl.c: ...into new file.
19723         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
19724         (gl_FILE_NAME_CONCAT): Use it.
19725         * MODULES.html.sh (File system functions): Mention new module.
19726
19727         argp: avoid memory leak
19728         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
19729         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
19730         base_name, since the latter malloc()s and can call exit().
19731         Leak introduced 2006-07-03.
19732
19733         dirname-lgpl: adjust clients that don't need full dirname
19734         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
19735         * modules/filenamecat (Depends-on): Likewise.
19736         * modules/linkat (Depends-on): Likewise.
19737         * modules/mkancesdirs (Depends-on): Likewise.
19738         * modules/mkdir (Depends-on): Likewise.
19739         * modules/openat (Depends-on): Likewise.
19740         * modules/savewd (Depends-on): Likewise.
19741         * modules/rename (Depends-on): Likewise.
19742         (License): Relax license.
19743         * modules/mkdir-tests (Depends-on): Drop progname.
19744         (Makefile.am): Delete unneeded LDADD.
19745         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
19746
19747         dirname: split into dirname-lgpl
19748         * modules/dirname-lgpl: New module.
19749         * modules/dirname (Files): Move library-safe files into
19750         dirname-lgpl.
19751         (Depends-on): Add dirname-lgpl.
19752         (configure.ac): Declare witness.
19753         * modules/double-slash-root (License): Relax license.
19754         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
19755         module.
19756         * lib/dirname.c (dir_len, mdir_name): Move...
19757         * lib/dirname-lgpl.c: ...into new file.
19758         * lib/basename.c (last_component, base_len): Move...
19759         * lib/basename-lgpl.c: ...into new file.
19760         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
19761         (gl_DIRNAME): Use it.
19762         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
19763         Mention new module.
19764         * modules/dirname-tests (Depends-on): Add progname.
19765         * tests/test-dirname.c (program_name): Delete.
19766
19767         mkdir: make safe for libraries
19768         * modules/mkdir (Depends-on): Drop xalloc.
19769         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
19770         exit.
19771
19772         tests: avoid some compiler warnings
19773         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
19774         literals.
19775         * tests/test-memchr.c (main): Avoid type mismatch.
19776         * tests/test-arpa_inet.c (main): Avoid unused parameters.
19777         * tests/test-base64.c (main): Likewise.
19778         * tests/test-getdelim.c (main): Likewise.
19779         * tests/test-gethostname.c (main): Likewise.
19780         * tests/test-getline.c (main): Likewise.
19781         * tests/test-netinet_in.c (main): Likewise.
19782         * tests/test-select.c (open_server_socket, main): Likewise.
19783         * tests/test-select-stdin.c (main): Likewise.
19784         * tests/test-sockets.c (main): Likewise.
19785         * tests/test-strsignal.c (main): Likewise.
19786         * tests/test-sys_select.c (main): Likewise.
19787         * tests/test-sys_socket.c (main): Likewise.
19788         * tests/test-u64.c (main): Likewise.
19789         * tests/test-xfprintf-posix.c (main): Likewise.
19790         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
19791
19792         sockets: avoid compiler warning
19793         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
19794
19795         maint: detect usage(1) and other suspicious exits
19796         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
19797
19798 2009-10-29  Jim Meyering  <meyering@redhat.com>
19799
19800         timespec: long-to-int truncation could make timespec_cmp malfunction
19801         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
19802         a multiple of 2^32 nanoseconds as no difference.
19803
19804 2009-10-28  Jim Meyering  <meyering@redhat.com>
19805
19806         fprintftime: wrap macro code argument in "do {...} while(0)"
19807         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
19808         cpy macro must be a statement that can be followed by a semicolon.
19809         Now that the else clause contains a comment and is hence longer
19810         than one line, I require curly braces.  That in turn requires
19811         that we wrap this code block in the standard do...while(0).
19812
19813         fprintftime: remove stray semicolon from previous change
19814         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
19815
19816         fprintftime: avoid a warning about ignored fwrite return value
19817         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
19818         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
19819         that is unsafe.
19820         * modules/fprintftime (Depends-on): Add ignore-value.
19821
19822         exclude: avoid an unwarranted warning
19823         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
19824
19825 2009-10-27  Eric Blake  <ebb9@byu.net>
19826
19827         fseek: avoid compilation failure when fflush is replaced
19828         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19829         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
19830         module is in use.
19831         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
19832         module is not in use; since REPLACE_FSEEK worked otherwise.
19833         (GNULIB_FTELLO): Likewise for ftell.
19834         Reported by Ian Beckwith and others.
19835
19836 2009-10-27  Bruno Haible  <bruno@clisp.org>
19837
19838         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
19839         Reported by Jim Meyering.
19840
19841 2009-10-27  Jim Meyering  <jim@meyering.net>
19842             Bruno Haible  <bruno@clisp.org>
19843
19844         Avoid warning despite dropping the return value of fwrite.
19845         * lib/unicodeio.c: Include ignore-value.h.
19846         (fwrite_success_callback): Explicitly ignore fwrite's return value.
19847         * modules/unicodeio (Depends-on): Add ignore-value.
19848
19849 2009-10-26  Eric Blake  <ebb9@byu.net>
19850
19851         areadlinkat: fix fallback path
19852         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
19853         pointer and zero.
19854
19855 2009-10-22  Pádraig Brady  <P@draigBrady.com>
19856
19857         Use a better IO block size for modern systems
19858         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
19859         * lib/md2.c: Likewise.
19860         * lib/md4.c: Likewise.
19861         * lib/md5.c: Likewise.
19862         * lib/sha1.c: Likewise.
19863         * lib/sha256.c: Likewise.
19864         * lib/sha512.c: Likewise.
19865
19866 2009-10-22  Eric Blake  <ebb9@byu.net>
19867
19868         tests: avoid several compiler warnings
19869         * tests/test-getcwd.c (main): Avoid buffer underflow.
19870         * tests/test-getdate.c (main): String literals are not safe with
19871         putenv, so use setenv.  Declare unused argument.
19872         * modules/getdate-tests (Depends-on): Add setenv.
19873         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
19874         problems with string literals in char *.
19875         * tests/test-hash.c (main): Avoid shadowing declaration.
19876         (insert_new): Treat string literals as char const *.
19877         * tests/test-getopt.h (test_getopt): Likewise.
19878         (getopt_loop): Alter types to minimize casting elsewhere.
19879         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
19880         (test_getopt_long_posix): Likewise.
19881         (do_getopt_long): Add wrapper to minimize casting.
19882         * tests/test-atexit.c (clear_temp_file): Use void.
19883         * tests/test-areadlink-with-size.c (main): Declare unused
19884         arguments.
19885         * tests/test-areadlink.c (main): Likewise.
19886         * tests/test-areadlinkat-with-size.c (main): Likewise.
19887         * tests/test-areadlinkat.c (main): Likewise.
19888         * tests/test-canonicalize-lgpl.c (main): Likewise.
19889         * tests/test-canonicalize.c (main): Likewise.
19890         * tests/test-dirent-safer.c (main): Likewise.
19891         * tests/test-dirname.c (main): Likewise.
19892         * tests/test-dup2.c (main): Likewise.
19893         * tests/test-fchdir.c (main): Likewise.
19894         * tests/test-fcntl-h.c (main): Likewise.
19895         * tests/test-fcntl-safer.c (main): Likewise.
19896         * tests/test-fdopendir.c (main): Likewise.
19897         * tests/test-fdutimensat.c (main): Likewise.
19898         * tests/test-fflush.c (main): Likewise.
19899         * tests/test-filenamecat.c (main): Likewise.
19900         * tests/test-filevercmp.c (main): Likewise.
19901         * tests/test-fopen-safer.c (main): Likewise.
19902         * tests/test-fopen.c (main): Likewise.
19903         * tests/test-fpending.c (main): Likewise.
19904         * tests/test-fpurge.c (main): Likewise.
19905         * tests/test-freading.c (main): Likewise.
19906         * tests/test-fstatat.c (main): Likewise.
19907         * tests/test-fsync.c (main): Likewise.
19908         * tests/test-futimens.c (main): Likewise.
19909         * tests/test-getndelim2.c (main): Likewise.
19910         * tests/test-gettimeofday.c (main): Likewise.
19911         * tests/test-getopt.c (main): Likewise.
19912         * tests/test-i-ring.c (main): Likewise.
19913         * tests/test-inttypes.c (main): Likewise.
19914         * tests/test-link.c (main): Likewise.
19915         * tests/test-lstat.c (main): Likewise.
19916         * tests/test-math.c (main): Likewise.
19917         * tests/test-md5.c (main): Likewise.
19918         * tests/test-memchr2.c (main): Likewise.
19919         * tests/test-memrchr.c (main): Likewise.
19920         * tests/test-mkdir.c (main): Likewise.
19921         * tests/test-mkdirat.c (main): Likewise.
19922         * tests/test-mkfifoat.c (main): Likewise.
19923         * tests/test-open.c (main): Likewise.
19924         * tests/test-openat-safer.c (main): Likewise.
19925         * tests/test-openat.c (main): Likewise.
19926         * tests/test-quotearg.c (main): Likewise.
19927         * tests/test-rawmemchr.c (main): Likewise.
19928         * tests/test-readlink.c (main): Likewise.
19929         * tests/test-remove.c (main): Likewise.
19930         * tests/test-rename.c (main): Likewise.
19931         * tests/test-renameat.c (main): Likewise.
19932         * tests/test-rmdir.c (main): Likewise.
19933         * tests/test-sha1.c (main): Likewise.
19934         * tests/test-signal.c (main): Likewise.
19935         * tests/test-sigaction.c (main): Likewise.
19936         * tests/test-stat.c (main): Likewise.
19937         * tests/test-stat-time.c (main): Likewise.
19938         * tests/test-stddef.c (main): Likewise.
19939         * tests/test-stdint.c (main): Likewise.
19940         * tests/test-stdio.c (main): Likewise.
19941         * tests/test-stdlib.c (main): Likewise.
19942         * tests/test-strchrnul.c (main): Likewise.
19943         * tests/test-strerror.c (main): Likewise.
19944         * tests/test-string.c (main): Likewise.
19945         * tests/test-strtod.c (main): Likewise.
19946         * tests/test-strverscmp.c (main): Likewise.
19947         * tests/test-symlink.c (main): Likewise.
19948         * tests/test-symlinkat.c (main): Likewise.
19949         * tests/test-sys_stat.c (main): Likewise.
19950         * tests/test-sys_time.c (main): Likewise.
19951         * tests/test-time.c (main): Likewise.
19952         * tests/test-unistd.c (main): Likewise.
19953         * tests/test-unlink.c (main): Likewise.
19954         * tests/test-unlinkat.c (main): Likewise.
19955         * tests/test-utimens.c (main): Likewise.
19956         * tests/test-utimensat.c (main): Likewise.
19957         * tests/test-version-etc.c (main): Likewise.
19958         * tests/test-wchar.c (main): Likewise.
19959         * tests/test-wctype.c (main): Likewise.
19960         * tests/test-xprintf-posix.c (main): Likewise.
19961         * tests/test-posixtm.c (main): Likewise.
19962         (STREQ): Delete unused macro.
19963         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
19964         shadowed variables.
19965         * tests/test-memchr.c (main): Likewise.
19966
19967 2009-10-21  Eric Blake  <ebb9@byu.net>
19968
19969         areadlinkat: avoid failure on older glibc
19970         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
19971         rather than mis-comparing 0 against FUNC_RESULT of char*.
19972
19973 2009-10-21  Bruno Haible  <bruno@clisp.org>
19974
19975         * modules/stpncpy (License): Relicense under LGPLv2+.
19976         Reported by David Lutterkort <lutter@redhat.com>.
19977
19978 2009-10-20  Eric Blake  <ebb9@byu.net>
19979
19980         utimensat: work around Solaris 9 bug
19981         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
19982         has trailing slash bugs.
19983         * tests/test-lutimens.h (test_lutimens): Enhance test.
19984         * tests/test-utimens.h (test_utimens): Likewise.
19985         * doc/posix-functions/utime.texi (utime): Enhance documentation.
19986         * doc/posix-functions/utimes.texi (utimes): Likewise.
19987         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19988         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
19989         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
19990         * doc/posix-functions/futimens.texi (futimens): Likewise.
19991
19992         fdutimensat: new module
19993         * modules/fdutimensat: New file.
19994         * lib/fdutimensat.c (fdutimensat): Likewise.
19995         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
19996         * MODULES.html.sh (File system functions): Mention module.
19997         * modules/fdutimensat-tests: New test.
19998         * tests/test-fdutimensat.c: Likewise.
19999
20000         doc: regenerate INSTALL
20001         * doc/INSTALL: Reflect recent autoconf update.
20002         * doc/INSTALL.ISO: Likewise.
20003         * doc/INSTALL.UTF-8: Likewise.
20004
20005 2009-10-20  Pádraig Brady  <P@draigBrady.com>
20006
20007         acl: warn if ACL support is not detected
20008         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
20009
20010 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
20011
20012         * lib/nproc.h: Add extern "C" block for C++.
20013
20014 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
20015             Bruno Haible  <bruno@clisp.org>
20016
20017         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
20018         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
20019         * doc/posix-functions/isalpha.texi: Likewise.
20020         * doc/posix-functions/isblank.texi: Likewise.
20021         * doc/posix-functions/iscntrl.texi: Likewise.
20022         * doc/posix-functions/isdigit.texi: Likewise.
20023         * doc/posix-functions/isgraph.texi: Likewise.
20024         * doc/posix-functions/islower.texi: Likewise.
20025         * doc/posix-functions/isprint.texi: Likewise.
20026         * doc/posix-functions/ispunct.texi: Likewise.
20027         * doc/posix-functions/isspace.texi: Likewise.
20028         * doc/posix-functions/isupper.texi: Likewise.
20029         * doc/posix-functions/isxdigit.texi: Likewise.
20030
20031 2009-10-18  Bruno Haible  <bruno@clisp.org>
20032
20033         Tests for module 'isblank'.
20034         * modules/isblank-tests: New file.
20035         * tests/test-isblank.c: New file.
20036
20037         New module 'isblank'.
20038         * lib/isblank.c: New file.
20039         * m4/isblank.m4: New file.
20040         * modules/isblank: New file.
20041         * doc/posix-functions/isblank.texi: Mention the new module.
20042
20043 2009-10-18  Bruno Haible  <bruno@clisp.org>
20044
20045         New module 'ctype'.
20046         * lib/ctype.in.h: New file.
20047         * m4/ctype.m4: New file.
20048         * modules/ctype: New file.
20049         * doc/posix-headers/ctype.texi: Mention the new module.
20050
20051 2009-10-18  Jim Meyering  <meyering@redhat.com>
20052
20053         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
20054         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
20055         right after its initialization, rather than farther down.
20056         Keeping these in close proximity makes it easier to ensure
20057         that each such variable is initialized.  E.g.,
20058
20059             LIB_CLOCK_GETTIME=
20060             AC_SUBST([LIB_CLOCK_GETTIME])
20061
20062         This change also increments these serial numbers.
20063         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
20064         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20066
20067 2009-10-18  Bruno Haible  <bruno@clisp.org>
20068
20069         Don't let environment variables perturb build.
20070         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
20071         (gl_PREREQ_GETHRXTIME): ... not here.
20072
20073 2009-10-18  Bruno Haible  <bruno@clisp.org>
20074
20075         Avoid symlink attack in localcharset module.
20076         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
20077         (O_NOFOLLOW): Define fallback.
20078         (get_charset_aliases): Don't open the file if it is a symbolic link.
20079         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
20080         gl_FCNTL_H.
20081         (gl_FCNTL_H): Require it.
20082         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
20083         * modules/localcharset (Files): Add m4/fcntl_h.m4.
20084         Reported by Fergal Glynn <fglynn@veracode.com>.
20085
20086 2009-10-18  Bruno Haible  <bruno@clisp.org>
20087
20088         Implement nproc for mingw.
20089         * lib/nproc.c: Include <windows.h>
20090         (num_processors): On native Windows platforms, try GetSystemInfo.
20091
20092 2009-10-18  Bruno Haible  <bruno@clisp.org>
20093
20094         Implement nproc for IRIX.
20095         * lib/nproc.c: Include <sys/sysmp.h>.
20096         (num_processors): On IRIX systems, try sysmp.
20097         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
20098
20099 2009-10-18  Bruno Haible  <bruno@clisp.org>
20100
20101         Implement nproc for HP-UX.
20102         * lib/nproc.c: Include <sys/pstat.h>
20103         (num_processors): On HP-UX systems, try pstat_getdynamic.
20104         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
20105         pstat_getdynamic.
20106
20107 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
20108             Bruno Haible  <bruno@clisp.org>
20109
20110         Implement nproc for NetBSD, OpenBSD.
20111         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
20112         (ARRAY_SIZE): New macro.
20113         (num_processors): On BSD systems, try sysctl of HW_NCPU.
20114         * m4/nproc.m4: New file.
20115         * modules/nproc (Files): Add m4/nproc.m4.
20116         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
20117         (Makefile.am): Instead, augment lib_SOURCES.
20118
20119 2009-10-18  Bruno Haible  <bruno@clisp.org>
20120
20121         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
20122         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
20123         sys/param.h.
20124
20125 2009-10-16  Eric Blake  <ebb9@byu.net>
20126
20127         utimensat: new module
20128         * modules/utimensat: New file.
20129         * lib/utimensat.c (utimensat): Likewise.
20130         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20131         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
20132         so we can work around Linux bugs.
20133         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20134         * modules/sys_stat (Makefile.am): Substitute them.
20135         * lib/sys_stat.in.h (utimensat): Declare it.
20136         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20137         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20138         * modules/utimensat-tests: New test.
20139         * tests/test-utimensat.c: Likewise.
20140
20141         utimens: let lutimens work on non-symlinks
20142         * lib/utimens.c (lutimens): Fall back to utimens rather than
20143         failing with ENOSYS, when file is not a symlink.
20144         (utimens): Reduce redirection.
20145         * tests/test-lutimens.h (test_lutimens): Update test to cover
20146         non-symlinks.
20147         * tests/test-utimens.h (test_utimens): Update test to cover
20148         symlinks.
20149         * tests/test-utimens.c (main): Update caller.
20150
20151         utimens: cache whether utimensat syscall works
20152         * lib/utimens.c (utimensat_works_really): New cache variable.
20153         (fdutimens, lutimens): Use it to avoid failing syscall.
20154
20155         test-stat-time, test-utimens: improve portability
20156         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
20157         ext4 on alpha, and for cygwin.
20158         * tests/test-utimens-common.h: New file.
20159         (nap): Factor delays into single function.
20160         * tests/test-lutimens.h (test_lutimens): Use new header.
20161         * tests/test-futimens.h (test_futimens): Likewise.
20162         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
20163         timestamps to occur from same machine, as was done previously for
20164         test_utimens.
20165         * modules/utimens-tests (Files): Ship new file.
20166         * modules/futimens-tests (Files): Likewise.
20167         Reported in part by Jim Meyering.
20168
20169         sys_stat: sort replacement declarations
20170         * lib/sys_stat.in.h: Sort declarations.
20171         * lib/futimens.c (futimens): Fix typo.
20172
20173 2009-10-15  Jim Meyering  <meyering@redhat.com>
20174
20175         don't let environment settings perturb build
20176         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
20177         could cause a configure-time and/or build-time malfunction.
20178         Typically, a configure-time function-in-library test is performed
20179         via code like this:
20180
20181           LIB_VAR=
20182           AC_SUBST([LIB_VAR])
20183           prefix_saved_LIBS=$LIBS
20184             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
20185                        [test "$ac_cv_search_FUNC" = "none required" ||
20186                         LIB_VAR=$ac_cv_search_FUNC])
20187           LIBS=$prefix_saved_LIBS
20188
20189         However, in each of the files affected by this change, the LIB_VAR=
20190         initialization was omitted.  Thus, when set in the environment, its
20191         value would propagate into generated Makefiles when FUNC is not found
20192         in LIB_NAME.
20193         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
20194         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20196
20197 2009-10-14  Eric Blake  <ebb9@byu.net>
20198
20199         fchdir: avoid infinite recursion in mingw
20200         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
20201         recursing.
20202
20203         test-stat-time: port to mingw
20204         * tests/test-stat-time.c (force_unlink): Return a value.
20205         (test_ctime) [W32]: Fix compilation error.
20206         (nap): Don't call usleep with too large an argument.  Use
20207         force_unlink.
20208         * doc/pastposix-functions/usleep.texi (usleep): Document the
20209         portability issue.
20210
20211 2009-10-13  Jim Meyering  <meyering@redhat.com>
20212
20213         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
20214         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
20215         * modules/pipe-filter-ii: Likewise.
20216         * modules/sys_socket-tests: Likewise.
20217         * modules/tsearch-tests: Likewise.
20218         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
20219         (check): Depend on it.
20220
20221 2009-10-12  Eric Blake  <ebb9@byu.net>
20222
20223         utimens-tests: port to NFS file systems
20224         * tests/test-utimens.h (test_utimens): Refactor utimecmp
20225         comparisons to avoid spurious failures from timestamp drift
20226         between NFS machines.
20227
20228 2009-10-12  Eric Blake  <ebb9@byu.net>
20229
20230         stat-time-tests: minor cleanups
20231         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
20232         * tests/test-stat-time.c (nap): Separate assignment from call.
20233         Suggested by Paolo Bonzini and Bruno Haible.
20234
20235         sys_stat: guarantee struct timespec
20236         * lib/sys_stat.in.h (includes): Always include <time.h>
20237         * modules/sys_stat (Depends-on): Add time.
20238         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
20239         mode_t permission values.
20240         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
20241         get at subsecond timestamps.
20242
20243 2009-10-10  Eric Blake  <ebb9@byu.net>
20244
20245         futimens: new module
20246         * modules/futimens: New file.
20247         * lib/futimens.c (futimens): Likewise.
20248         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
20249         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
20250         we can work around Linux bugs.
20251         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20252         * modules/sys_stat (Makefile.am): Substitute them.
20253         * lib/sys_stat.in.h (futimens): Declare it.
20254         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20255         * doc/posix-functions/futimens.texi (futimens): Likewise.
20256         * modules/futimens-tests: New test.
20257         * tests/test-futimens.c: Likewise.
20258
20259         utimens: introduce fdutimens
20260         * lib/utimens.h (fdutimens): New prototype.
20261         * lib/utimens.c (gl_futimens): Move guts...
20262         (fdutimens): ...to new interface.
20263         * tests/test-utimens.c (do_fdutimens): Use it.
20264
20265         utimens: add UTIME_NOW and UTIME_OMIT support
20266         * lib/utimens.c (validate_timespec, update_timespec): New helper
20267         functions.
20268         (gl_futimens, lutimens): Use them.
20269         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
20270         stdbool, sys_stat.
20271         (Link): Mention resulting library dependency.
20272         * modules/utimecmp (Link): Likewise.
20273         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
20274         (Makefile.am): Pick up library dependency.
20275         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
20276         definition.
20277         * tests/test-sys_stat.c: Test the definitions.
20278         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
20279         * NEWS: Document library dependency.
20280
20281         utimecmp: support symlink timestamps
20282         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
20283         hashing when possible.  Use pathconf when available.
20284         (SYSCALL_RESOLUTION): Recognize tighter resolution.
20285         * modules/utimecmp (Depends-on): Add lstat.
20286
20287         utimens: add lutimens interface
20288         * lib/utimens.c (lutimens): New function.
20289         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
20290         * lib/utimens.h (lutimens): Declare new interface.
20291         * tests/test-utimens.c (main): Enhance test.
20292         * tests/test-lutimens.h (test_lutimens): New file.
20293         * modules/utimens-tests (Files): Distribute it.
20294         (Depends-on): Add symlink.
20295         (configure.ac): Check for usleep.
20296
20297         utimens: validate futimens usage
20298         * lib/utimens.c (gl_futimens): Require valid fd up front, using
20299         fewer syscalls on failure later on.  Avoid compiler warning on
20300         mingw.
20301         * modules/utimens (Depends-on): Add dup2.
20302
20303         utimens: add test
20304         * modules/utimens-tests: New test.
20305         * tests/test-utimens.h: New file.
20306         * tests/test-futimens.h: Likewise.
20307         * tests/test-utimens.c: Likewise.
20308
20309         doc: mention timestamp portability issues
20310         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
20311         instead.
20312         * doc/posix-functions/utime.texi (utime): Likewise.
20313         * doc/posix-functions/utimes.texi (utimes): Likewise.
20314         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
20315         instead.
20316         * doc/posix-functions/futimens.texi (futimens): Mention utimens
20317         module.
20318         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20319         Mention weakness with symlink timestamps.
20320         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
20321         to utimensat/futimens instead.
20322         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
20323
20324         test-dup2: enhance test
20325         * tests/test-dup2.c (main): Also check AT_FDCWD.
20326
20327         test-stat-time: avoid more spurious failures
20328         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
20329         xfs; and avoid race if the two timestamps cross quantization edge.
20330
20331         relocatable: prefer 'file system' over 'filesystem'
20332         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
20333         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
20334         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
20335         * doc/relocatable.texi (Enabling Relocatability): Likewise.
20336         * lib/relocatable.c (compute_curr_prefix): Likewise.
20337
20338 2009-10-10  Jim Meyering  <meyering@redhat.com>
20339
20340         stat-time-tests: check for the usleep function
20341         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
20342
20343 2009-10-10  Bruno Haible  <bruno@clisp.org>
20344
20345         * modules/xnanosleep: Put the Link section after the Include section.
20346
20347 2009-10-09  Eric Blake  <ebb9@byu.net>
20348
20349         dup2: work around FreeBSD 6.1 bug
20350         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
20351         * doc/posix-functions/dup2.texi (dup2): Document it.
20352         Reported by Nelson H. F. Beebe and Jim Meyering.
20353
20354         test-stat-time: port to buggy NFS clients
20355         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
20356         (test_ctime): Also skip test if mtime and ctime are skewed.
20357
20358         maint: prefer 'file system' over 'filesystem'
20359         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20360         * doc/posix-functions/lstat.texi (lstat): Likewise.
20361         * lib/file-has-acl.c (file_has_acl): Likewise.
20362         * lib/fwriteerror.c [TEST]: Likewise.
20363         * tests/test-areadlink.h (test_areadlink): Likewise.
20364         * tests/test-areadlinkat-with-size.c (main): Likewise.
20365         * tests/test-areadlinkat.c (main): Likewise.
20366         * tests/test-canonicalize-lgpl.c (main): Likewise.
20367         * tests/test-canonicalize.c (main): Likewise.
20368         * tests/test-fstatat.c (main): Likewise.
20369         * tests/test-linkat.c (main): Likewise.
20370         * tests/test-lstat.h (test_lstat_func): Likewise.
20371         * tests/test-mkdir.h (test_mkdir): Likewise.
20372         * tests/test-readlink.h (test_readlink): Likewise.
20373         * tests/test-remove.c (main): Likewise.
20374         * tests/test-rename.h (test_rename): Likewise.
20375         * tests/test-renameat.c (main): Likewise.
20376         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20377         * tests/test-symlink.h (test_symlink): Likewise.
20378         * tests/test-symlinkat.c (main): Likewise.
20379         * tests/test-unlink.h (test_unlink_func): Likewise.
20380         * tests/test-unlinkat.c (main): Likewise.
20381
20382         maint: make realtime library usage explicit
20383         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
20384         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
20385         * modules/settime (Link): Likewise.
20386         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
20387
20388         test-stat-time: speed up execution
20389         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
20390         warning on mingw.
20391         (nap): New helper function.
20392         (prepare_test): Use it to reduce sleep time.
20393         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
20394         execution.
20395         * modules/stat-time-tests (configure.ac): Check for usleep.
20396
20397 2009-10-09  Jim Meyering  <meyering@redhat.com>
20398
20399         selinux-h: always use getfilecon wrappers
20400         * lib/getfilecon.c: New file.
20401         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
20402         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
20403         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
20404         (fgetfilecon): Provide a stub.
20405         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
20406         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
20407         file unconditionally.
20408         When <selinux/selinux.h> is found, arrange to use wrappers.
20409         * modules/selinux-h (Files): Add getfilecon.c.
20410         (Makefile.am): Substitute include-next-related bits
20411         into the now-always-generated selinux/selinux.h file.
20412         * doc/glibc-functions/lgetfilecon.texi: New file.
20413         * doc/glibc-functions/fgetfilecon.texi: New file.
20414         * doc/glibc-functions/getfilecon.texi: New file.
20415         * doc/glibc-functions/getfilecon-desc.texi: New file.
20416         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
20417         which to pull in the new files.
20418         * MODULES.html.sh (Misc): Add selinux-h.
20419
20420 2009-10-08  Jim Meyering  <meyering@redhat.com>
20421
20422         unistd: fix comment typo
20423         * lib/unistd.in.h (euidaccess): Fix a comment typo.
20424
20425 2009-10-08  Eric Blake  <ebb9@byu.net>
20426
20427         areadlink: use SIZE_MAX consistently
20428         * modules/areadlink (Depends-on): Add stdint.
20429         * modules/areadlink-with-size (Depends-on): Likewise.
20430         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
20431         gives NULL; drop sys/types, since unistd gives size_t; and add
20432         stdint for SIZE_MAX.
20433         (SIZE_MAX): Rely on headers.
20434         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
20435         and add stdint.
20436         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
20437         (SIZE_MAX): Likewise.
20438         (INITIAL_BUF_SIZE): Turn into enum.
20439         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
20440
20441 2009-10-08  Jim Meyering  <meyering@redhat.com>
20442
20443         areadlinkat: avoid compilation failure
20444         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
20445         Fix typo in comment.
20446
20447 2009-10-07  Eric Blake  <ebb9@byu.net>
20448
20449         areadlinkat-with-size: new module
20450         * modules/areadlinkat-with-size: New module.
20451         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
20452         * lib/areadlink.h (areadlinkat): Declare it.
20453         * MODULES.html.sh (File system functions): Mention it.
20454         * modules/areadlinkat-with-size-tests: New test.
20455         * tests/test-areadlinkat-with-size.c: New file.
20456
20457         xreadlinkat: new module
20458         * modules/xreadlinkat: New module.
20459         * lib/xreadlinkat.c (xreadlinkat): New file.
20460         * lib/xreadlink.h (xreadlinkat): Declare it.
20461         * MODULES.html.sh (File system functions): Mention it.
20462
20463         areadlinkat: new module
20464         * lib/at-func.c (FUNC_FAIL): New define.
20465         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
20466         * modules/areadlinkat: New module.
20467         * lib/linkat.c (areadlinkat): Move...
20468         * lib/areadlinkat.c (areadlinkat): ...to new file.
20469         * lib/areadlink.h (areadlinkat): Declare it.
20470         * modules/linkat (Depends-on): Add areadlinkat.
20471         * MODULES.html.sh (File system functions): Mention it.
20472         * modules/areadlinkat-tests: New test.
20473         * tests/test-areadlinkat.c: New file.
20474
20475         areadlink, areadlink-with-size: add tests
20476         * modules/areadlink-tests: New test.
20477         * modules/areadlink-with-size-tests: Likewise.
20478         * tests/test-areadlink.h: New file.
20479         * tests/test-areadlink.c: Likewise.
20480         * tests/test-areadlink-with-size.c: Likewise.
20481
20482         maint: minor cleanups
20483         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
20484         _UNUSED_PARAMETER_ instead.
20485         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
20486         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
20487         * modules/linkat-tests (Files): Distribute test-link.h.
20488
20489         openat, utimens: whitespace cleanup
20490         * lib/openat.c: Prefer space throughout, rather than mix of 8
20491         spaces vs. tabs.
20492         * lib/at-func.c: Likewise.
20493         * lib/utimens.c: Likewise.
20494
20495         openat: avoid using wrong fd
20496         * lib/openat.c (openat_permissive): Reject user's fd if saving the
20497         working directory chooses same fd.
20498         * lib/at-func.c (AT_FUNC_NAME): Likewise.
20499
20500         mkdir, mkdirat: fix cygwin 1.5.x bug
20501         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
20502         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
20503         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
20504         bug.
20505         (gl_PREREQ_MKDIR): Delete unused macro.
20506         * modules/mkdir (Files): Track file rename.
20507         (configure.ac): Update macro name.
20508         * modules/openat (Depends-on): Add mkdir.
20509         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
20510
20511         mkdir, mkdirat: add tests
20512         * modules/mkdir-tests: New test.
20513         * tests/test-mkdir.h: New file.
20514         * tests/test-mkdir.c: Likewise.
20515         * tests/test-mkdirat.c: Likewise.
20516         * modules/openat-tests (Files): Add new files.
20517         (Makefile.am): Run new test.
20518
20519 2009-10-06  Eric Blake  <ebb9@byu.net>
20520
20521         doc: tweak *at function documentation
20522         * doc/posix-functions/faccessat.texi (faccessat): Mention
20523         known issue with replacement.
20524         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
20525         * doc/posix-functions/linkat.texi (linkat): Likewise.
20526         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20527         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20528         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20529         * doc/posix-functions/renameat.texi (renameat): Likewise.
20530         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20531
20532         openat: fix GNU/Hurd bug in unlinkat
20533         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
20534         broken.
20535         * doc/posix-functions/unlink.texi (unlink): Document this.
20536         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
20537
20538         fdopendir: fix GNU/Hurd bug
20539         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
20540         allowing non-directory fds.
20541         * lib/fdopendir.c (rpl_fdopendir): Work around it.
20542         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20543         * modules/dirent (Makefile.am): Substitute it.
20544         * lib/dirent.in.h (fdopendir): Declare replacement.
20545         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
20546         * tests/test-fdopendir.c (main): Test something other than
20547         /dev/null, since on Hurd that behaves like a directory.
20548
20549         test-symlink: port to GNU/Hurd
20550         * tests/test-symlink.h (test_symlink): Relax expected errno.
20551
20552         doc: tweak more cygwin information
20553         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
20554         now compatible with glibc.
20555         * doc/posix-functions/getopt.texi (getopt): Likewise.
20556
20557         getopt-gnu: add another test
20558         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
20559         guarantee behavior relied on by m4.
20560         * tests/test-getopt.c (main): Use it.
20561         * modules/getopt-posix-tests (Depends-on): Add setenv.
20562         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
20563
20564         getopt: fix compilation on darwin
20565         * lib/getopt.in.h (includes): Leave breadcrumbs during system
20566         include.
20567         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
20568         Reported by Ludovic Courtès.
20569
20570 2009-10-06  Bruno Haible  <bruno@clisp.org>
20571
20572         * modules/size_max (Description): Discourage its use.
20573         Reported by Simon Josefsson.
20574
20575 2009-10-06  Jim Meyering  <meyering@redhat.com>
20576
20577         linkat: avoid compilation failure
20578         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
20579
20580 2009-10-05  Eric Blake  <ebb9@byu.net>
20581
20582         linkat: support Linux 2.6.17
20583         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
20584         linkat on Linux, but allow cache variable override.
20585         * lib/linkat.c (rpl_linkat): Define override.
20586         * modules/linkat (Depends-on): Add symlinkat.
20587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
20588         * modules/unistd (Makefile.am): Substitute it.
20589         * lib/unistd.in.h (linkat): Declare replacement.
20590         Reported by Pádraig Brady.
20591
20592         quotearg: port test to systems with C.UTF-8 locale
20593         * tests/test-quotearg.c (struct result_strings): Add another
20594         member, differentiating between C.ASCII and C.UTF-8 handling.
20595         (compare_strings): Add parameter.
20596         (main): Adjust all callers.
20597
20598         getopt: avoid clash with FreeBSD _getopt_internal
20599         * lib/getopt.in.h (_getopt_internal): Override the name.
20600         * lib/getopt_int.h (includes): Pick up any overrides.
20601         Reported by Reuben Thomas.
20602
20603         hash: allow C89 compilation
20604         * lib/hash.c (check_tuning): Move declaration before statement.
20605         Reported by Reuben Thomas.
20606
20607 2009-10-05  Karl Berry  <karl@gnu.org>
20608
20609         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
20610
20611 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
20612             Bruno Haible  <bruno@clisp.org>
20613
20614         * lib/uname.c (uname): Use a table-driven algorithm to compute
20615         Windows NT versions.
20616
20617 2009-10-04  Bruno Haible  <bruno@clisp.org>
20618
20619         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
20620         program_invocation_short_name.
20621         * modules/progname (configure.ac): Test for presence of
20622         program_invocation_short_name.
20623         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20624
20625 2009-10-04  Bruno Haible  <bruno@clisp.org>
20626
20627         * lib/progname.c (set_program_name): Fix comment.
20628         Reported by Jim Meyering.
20629
20630 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20631             Bruno Haible  <bruno@clisp.org>
20632
20633         * lib/uname.c: Include <string.h>.
20634         (uname): Do only one call to GetVersionEx in the common case.
20635
20636 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20637             Bruno Haible  <bruno@clisp.org>
20638
20639         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
20640         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
20641         (uname): Add support for Windows CE and various non-x86 CPU types.
20642
20643 2009-10-03  Bruno Haible  <bruno@clisp.org>
20644
20645         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
20646         invocation to tests/configure.ac.
20647         Reported by Ian Beckwith <ianb@erislabs.net>.
20648
20649 2009-10-02  Eric Blake  <ebb9@byu.net>
20650
20651         fchdir: avoid compiler warning
20652         * lib/fchdir.c (canonicalize_file_name)
20653         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
20654
20655         test-open: support mingw errno values
20656         * tests/test-open.h (test_open): Relax test.
20657         * tests/test-fopen.h (test_fopen): Likewise.
20658         * tests/test-openat-safer.c (main): Likewise.
20659
20660         open: fix opening directory on mingw
20661         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
20662
20663         test-open: on GNU/Hurd, /dev/null is a directory
20664         * tests/test-fopen.h (main): Rename...
20665         (test_fopen): ...to this.  Use a guaranteed non-directory when
20666         confirming open behavior on trailing slash.
20667         * tests/test-openat-safer.c (main): Likewise.
20668         * tests/test-open.h (main): Likewise....
20669         (test_open): ...to this.
20670         * tests/test-fopen.c (main): Adjust caller.
20671         * tests/test-fopen-safer.c (main): Likewise.
20672         * tests/test-open.c (main): Likewise.
20673         * tests/test-fcntl-safer.c (main): Likewise.
20674         Reported by Samuel Thibault.
20675
20676         rename, fchdir: don't ignore chdir failure
20677         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
20678         * lib/rename.c (rpl_rename) [W32]: Likewise.
20679         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
20680         an empty destination directory if source cannot be renamed,
20681         although there is still possibility for failure.
20682         * doc/posix-functions/rename.texi (rename): Document the race.
20683         Reported by Jim Meyering.
20684
20685         maint: cleanup whitespace in recent commits
20686         * lib/rename.c (rpl_rename): Remove tabs.
20687         * tests/test-link.h (test_link): Likewise.
20688         * lib/fchdir.c (get_name): Likewise.
20689         Reported by Jim Meyering.
20690
20691 2009-10-02  Ben Pfaff  <blp@gnu.org>
20692
20693         relocatable-prog-wrapper: Add missing dependency on
20694         double-slash-root.
20695         * modules/relocatable-prog-wrapper: Add dependency.
20696         Reported by Ian Beckwith <ianb@erislabs.net>.
20697
20698 2009-10-02  Eric Blake  <ebb9@byu.net>
20699
20700         renameat: fix Solaris bugs
20701         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
20702         needed fixing.
20703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
20704         * modules/stdio (Makefile.am): Substitute it.
20705         * lib/stdio.in.h (renameat): Declare replacement.
20706         * lib/renameat.c (rpl_renameat): Implement fix.
20707
20708         renameat: new module
20709         * modules/renameat: New file.
20710         * lib/renameat.c (renameat): Likewise.
20711         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
20712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20713         * modules/stdio (Makefile.am): Substitute them.
20714         * lib/stdio.in.h (renameat): Declare it.
20715         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20716         * doc/posix-functions/renameat.texi (renameat): Likewise.
20717         * modules/renameat-tests: New test.
20718         * tests/test-renameat.c: Likewise.
20719
20720         rename: fix mingw bugs
20721         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
20722         directory overwrite bugs.
20723
20724         rename: fix another cygwin 1.5 bug
20725         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
20726         checks.
20727         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
20728         unnecessary cygwin workarounds.  Also work around bug with moving
20729         full directory onto an empty one.
20730         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
20731
20732         rename-dest-slash: merge into rename module
20733         * modules/rename-dest-slash (Status): Mark obsolete.
20734         (Depends-on): Add rename.
20735         (Files): Let rename do it all.
20736         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
20737         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
20738         * m4/rename-dest-slash.m4: ...so this file can be deleted.
20739         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
20740         * lib/rename.c (rpl_rename): Update comments.
20741
20742         rename: fix cygwin 1.5.x bugs
20743         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
20744         * lib/rename.c (rpl_rename): Work around them.
20745         * modules/rename (Depends-on): Add same-inode.
20746
20747         rename: fix Solaris 10 bug
20748         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20749         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
20750         was the only bug.
20751
20752         rename: fix Solaris 9 bug
20753         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
20754         on non-directory.  Avoid calling exit.
20755         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
20756         strdup.
20757         * modules/rename-tests (Depends-on): Drop lstat.
20758         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20759         (gl_PREREQ_RENAME): Delete unused macro.
20760
20761         rename-dest-slash: fix NetBSD bug
20762         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
20763         links.
20764         * modules/rename-dest-slash (Depends-on): Add same-inode.
20765
20766         rename-tests: new test, exposes several platform bugs
20767         * modules/rename-tests: New file.
20768         * tests/test-rename.h: Likewise.
20769         * tests/test-rename.c: Likewise.
20770         * doc/posix-functions/rename.texi (rename): Improve documentation,
20771         including bugs that will eventually be fixed in gnulib.
20772
20773 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
20774
20775         * lib/uname.c: Include <stdlib.h>
20776         (uname): Assume version info is available.
20777
20778 2009-10-02  Jim Meyering  <meyering@redhat.com>
20779
20780         gnu-web-doc-update: correct --help output
20781         * build-aux/gnu-web-doc-update: Make --help output relevant.
20782
20783         gnu-web-doc-update: add standard options
20784         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
20785
20786         gnu-web-doc-update: New module.
20787         Use this script to automatically update the on-line web documentation
20788         for your GNU project at http://www.gnu.org/software/$pkg/manual/
20789         * modules/gnu-web-doc-update: New file, from coreutils.
20790         * build-aux/gnu-web-doc-update: New script.
20791
20792 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
20793
20794         link: LoadLibrary is not needed.
20795         * lib/link.c: Use GetModuleHandle.
20796
20797 2009-10-01  Eric Blake  <ebb9@byu.net>
20798
20799         getopt: bump serial number
20800         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
20801         change.
20802
20803         tests: tighten link, rmdir, and remove tests
20804         * tests/test-link.h (includes): No need to use <config.h> here.
20805         Clean up if directory hard link was created, otherwise test for
20806         trailing '.'.
20807         * tests/test-linkat.c (main): Simplify.
20808         * tests/test-remove.c (main): Enhance test for trailing '.'.
20809         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20810
20811 2009-10-01  Jim Meyering  <meyering@redhat.com>
20812
20813         maint.mk: requiring "make major" was annoying, for a "minor" release.
20814         What is intended is "stable", to contrast with alpha and beta,
20815         so require "make stable", not "make major".
20816         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
20817         (get_tool_versions): Likewise.
20818         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
20819
20820 2009-09-30  Ben Pfaff  <blp@gnu.org>
20821
20822         Fix broken build of replacement for Windows tmpfile().
20823         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
20824         flags argument added along with the 'mkostemp' module.
20825
20826 2009-09-28  Bruno Haible  <bruno@clisp.org>
20827
20828         Avoid identifier clash with POSIX function 'remove' defined as a macro.
20829         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
20830         to 'remove_elt'.
20831         (gl_list_remove): Update.
20832         * lib/gl_list.c (gl_list_remove): Update.
20833         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
20834         to 'remove_elt'.
20835         (gl_oset_remove): Update.
20836         * lib/gl_list.c (gl_oset_remove): Update.
20837         Reported by Eric Blake.
20838
20839 2009-09-28  Eric Blake  <ebb9@byu.net>
20840
20841         doc: mention yet more cygwin 1.7 status
20842         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
20843         cygwin.
20844         * doc/glibc-functions/execvpe.texi (execvpe): New file.
20845         * doc/gnulib.texi (Glibc unistd.h): Mention it.
20846
20847         argp: fix test failure
20848         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
20849         that are not upper-case.  Pass correct range to tolower.
20850
20851 2009-09-27  Jim Meyering  <meyering@redhat.com>
20852
20853         test-yesno: work around sparc-dash here-document infelicity
20854         Without this change, the literal \177 byte in a here document
20855         would make dash 0.5.5.1-3 access uninitialized memory.
20856         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
20857         Instead, use a marker, "@", and filter through tr to create the desired
20858         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
20859
20860 2009-09-27  Bruno Haible  <bruno@clisp.org>
20861
20862         Disable untested support for new flavours of ACLs on AIX.
20863         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
20864         progress.
20865         * lib/set-mode-acl.c (qset_acl): Likewise.
20866
20867 2008-12-07  Bruno Haible  <bruno@clisp.org>
20868
20869         Add support for new flavours of ACLs on AIX. (Untested.)
20870         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
20871         (file_has_acl): Add support for newer AIX.
20872         * lib/set-mode-acl.c (qset_acl): Likewise.
20873         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
20874         Rainer Tammer <tammer@tammer.net>.
20875
20876 2009-09-26  Eric Blake  <ebb9@byu.net>
20877
20878         argp: fix compilation of getopt
20879         * lib/getopt.in.h (includes): Use different guard than glibc.
20880         Reported by Sergey Poznyakoff.
20881
20882         doc: mention more cygwin 1.7 status
20883         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
20884         bug.
20885         * doc/posix-functions/execl.texi (execl): Likewise.
20886         * doc/posix-functions/execle.texi (execle): Likewise.
20887         * doc/posix-functions/execlp.texi (execlp): Likewise.
20888         * doc/posix-functions/execv.texi (execv): Likewise.
20889         * doc/posix-functions/execve.texi (execve): Likewise.
20890         * doc/posix-functions/execvp.texi (execvp): Likewise.
20891         * doc/glibc-functions/canonicalize_file_name.texi
20892         (canonicalize_file_name): Cygwin 1.7 now provides this.
20893         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
20894         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
20895         on AT_SYMLINK_NOFOLLOW.
20896
20897 2009-09-24  Eric Blake  <ebb9@byu.net>
20898
20899         test-linkat: make test more robust
20900         * tests/test-linkat.c (main): Avoid collision with EEXIST.
20901
20902         getopt: fix inclusion guards for cygwin
20903         * modules/getopt-posix (Depends-on): Add include-next.
20904         (Makefile.am): Substitute more items in replacement header.
20905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
20906         <getopt.h>.
20907         * lib/getopt.in.h (includes): Use split inclusion guard, and
20908         prefer <getopt.h> over include <unistd.h> when one is present.
20909         (option): Also override name of 'struct option'.
20910
20911         same-inode: revert prior change; it is not yet ready
20912         * NEWS: Undo mention of this change.
20913         * lib/same-inode.h (same-inode.h): Undo tri-state change.
20914         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20915         * lib/cycle-check.c (cycle_check): Likewise.
20916         * lib/same.c (same_name): Likewise.
20917         * lib/at-func2.c (at_func2): Likewise.
20918
20919 2009-09-23  Eric Blake  <ebb9@byu.net>
20920
20921         linkat: new module
20922         * modules/linkat: New file.
20923         * lib/at-func2.c (at_func2): Likewise.
20924         * lib/linkat.c (linkat): Likewise.
20925         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20926         * lib/openat-priv.h (at_func2): Add declaration.
20927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20928         * modules/unistd (Makefile.am): Substitute them.
20929         * lib/unistd.in.h (linkat): Declare it.
20930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20931         * doc/posix-functions/linkat.texi (linkat): Likewise.
20932         * doc/posix-functions/link.texi (link): Tweak wording.
20933         * tests/test-link.c (main): Move guts...
20934         * tests/test-link.h (test_link): ...into new file.
20935         * modules/linkat-tests: New test.
20936         * tests/test-linkat.c: Likewise.
20937         * modules/link-tests (Files): Ship new file.
20938         (Depends-on): Add stdbool.
20939
20940         dirname: add library-safe mdir_name
20941         * lib/dirname.h (mdir_name): New prototype.
20942         * lib/dirname.c (dir_name): Move guts...
20943         (mdir_name): ...to new function that avoids xalloc_die.
20944
20945         fchdir: another mingw fix
20946         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
20947         * lib/fchdir.c (get_name): New helper method; skips canonicalize
20948         on mingw (where it has not yet been ported), and make it optional
20949         elsewhere.
20950         (_gl_register_fd): Use it.
20951
20952         same-inode: make SAME_INODE tri-state, to port to mingw
20953         * NEWS: Mention this change.
20954         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
20955         st_ino always being 0.
20956         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20957         * lib/cycle-check.c (cycle_check): Likewise.
20958         * lib/same.c (same_name): Likewise.
20959
20960         lstat: avoid mingw compilation error
20961         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
20962         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
20963         lstat ourselves.
20964         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
20965         was adequate.
20966         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
20967         the checks for lstat.
20968         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
20969
20970         link: fix test failure on Solaris 9
20971         * lib/link.c (rpl_link): Don't assume link will catch bogus
20972         trailing slash on source.
20973
20974         test-symlinkat: enhance test
20975         * tests/test-readlink.c (main): Move guts...
20976         * tests/test-readlink.h (test_readlink): ...into new file.
20977         * tests/test-symlink.c (main): Move guts...
20978         * tests/test-symlink.h (test_symlink): ...into new file.
20979         * tests/test-symlinkat.c (main): Use new files for further
20980         coverage.
20981         (do_symlink, do_readlink): New helper functions.
20982         * modules/symlink-tests (Files): Ship new file.
20983         (Depends-on): Add stdbool.
20984         * modules/readlink-tests (Files): Ship new file.
20985         (Depends-on): Add stdbool.
20986         * modules/symlinkat-tests (Files): Use new files.
20987
20988 2009-09-23  Eric Blake  <ebb9@byu.net>
20989
20990         readlink: document portability issue with symlink length
20991         * doc/posix-functions/lstat.texi (lstat): Mention that some file
20992         systems have bogus st_size on symlinks, and mention the
20993         areadlink-with-size module.
20994         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20995         * doc/posix-functions/readlink.texi (readlink): Mention the
20996         areadlink module, and ERANGE failure.
20997         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20998         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
20999
21000         readlink: fix Solaris 9 bug with trailing slash
21001         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
21002         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
21003         * doc/posix-functions/readlink.texi (readlink): Document this.
21004         * modules/readlink-tests: New test.
21005         * tests/test-readlink.c: Likewise.
21006
21007         readlink: fix cygwin 1.5.x bug with return type
21008         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
21009         * lib/unistd.in.h (readlink): Use ssize_t.
21010         * lib/readlink.c (readlink): Likewise.
21011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21012         * modules/unistd (Makefile.am): Substitute it.
21013         * lib/unistd.in.h (readlink): Declare replacement.
21014         * doc/posix-functions/readlink.texi (readlink): Document this.
21015
21016         symlink: use throughout gnulib
21017         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
21018         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
21019         symlink is not used.
21020         * modules/symlinkat (Depends-on): Add symlink.
21021         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21022         * modules/canonicalize-tests (Depends-on): Likewise.
21023         * modules/lstat-tests (Depends-on): Likewise.
21024         * modules/openat-tests (Depends-on): Likewise.
21025         * modules/remove-tests (Depends-on): Likewise.
21026         * modules/rmdir-tests (Depends-on): Likewise.
21027         * modules/unlink-tests (Depends-on): Likewise.
21028         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
21029         * tests/test-canonicalize.c (symlink): Likewise.
21030         * tests/test-fstatat.c (symlink): Likewise.
21031         * tests/test-lstat.c (symlink): Likewise.
21032         * tests/test-remove.c (symlink): Likewise.
21033         * tests/test-rmdir.c (symlink): Likewise.
21034         * tests/test-unlink.c (symlink): Likewise.
21035         * tests/test-unlinkat.c (symlink): Likewise.
21036
21037         symlink: new module, for Solaris 9 bug
21038         * modules/symlink: New file.
21039         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21040         * lib/symlink.c: Likewise.
21041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21042         * modules/unistd (Makefile.am): Substitute them.
21043         * lib/unistd.in.h (symlink): Declare replacement.
21044         * MODULES.html.sh (File system functions): Mention it.
21045         * doc/posix-functions/symlink.texi (symlink): Likewise.
21046         * modules/symlink-tests: New test.
21047         * tests/test-symlink.c: Likewise.
21048
21049 2009-09-23  Bruno Haible  <bruno@clisp.org>
21050
21051         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
21052         when needed.
21053         Test case: gnulib-tool --import --with-tests atexit inttypes.
21054         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
21055
21056 2009-09-23  Bruno Haible  <bruno@clisp.org>
21057
21058         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
21059         subcommand, not in a subshell.
21060
21061 2009-09-22  Eric Blake  <ebb9@byu.net>
21062
21063         unistd: sort replacement declarations
21064         * lib/unistd.in.h: Sort declarations.
21065
21066         open, openat: minor optimization
21067         * lib/open.c (open): If open succeeded, len is non-zero.
21068         * lib/openat.c (rpl_openat): Likewise.
21069
21070         link-follow: ensure correct result
21071         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
21072         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
21073         distinguish between possible failures.
21074
21075 2009-09-21  Eric Blake  <ebb9@byu.net>
21076
21077         fts: avoid compiler warning
21078         * lib/fts.c (dirent_inode_sort_may_be_useful)
21079         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
21080
21081 2009-09-19  Bruno Haible  <bruno@clisp.org>
21082
21083         * lib/progreloc.c (canonicalize_file_name): New declaration.
21084
21085 2009-09-19  Eric Blake  <ebb9@byu.net>
21086
21087         link: fix quoting
21088         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
21089
21090         openat: fix openat bugs on Solaris 9
21091         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
21092         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
21093         * modules/openat (Depends-on): Add open.
21094         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
21095         * modules/fcntl-h (Makefile.am): Substitute it.
21096         * lib/fcntl.in.h (openat): Declare replacement.
21097         * doc/posix-functions/openat.texi (openat): Document this.
21098
21099         openat: move fstatat and unlinkat into correct files
21100         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
21101         compiled.
21102         * lib/openat.c (fstatat, unlinkat): Move...
21103         * lib/fstatat.c (fstatat): ...into correct files.
21104         * lib/unlinkat.c (unlinkat): Likewise.
21105
21106         openat: fix unlinkat bugs on Solaris 9
21107         * lib/unlinkat.c (unlinkat): New file.
21108         * modules/openat (Depends-on): Add unlink.
21109         (Files): Distribute it.
21110         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
21111         trailing slash behavior is broken.
21112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21113         * modules/unistd (Makefile.am): Substitute it.
21114         * lib/unistd.in.h (unlinkat): Declare replacement.
21115         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
21116
21117         openat: fix fstatat bugs on Solaris 9
21118         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
21119         stat.
21120         * doc/posix-functions/fstatat.texi (fstatat): Document this.
21121
21122         test-unlinkat: enhance test, to expose Solaris 9 bug
21123         * tests/test-unlink.c (main): Factor guts...
21124         * tests/test-unlink.h (test_rmdir_func): ...into new file.
21125         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
21126         * tests/test-rmdir.c (main): Adjust caller.
21127         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
21128         (unlinker): New helper function.
21129         (rmdirat): Enhance check.
21130         * modules/rmdir-tests (Depends-on): Add stdbool.
21131         * modules/unlink-tests (Depends-on): Likewise.
21132         (Files): Add test-unlink.h.
21133         * modules/openat-tests (Files): Likewise.
21134         (Depends-on): Add unlinkdir.
21135
21136         test-fstatat: new test, to expose Solaris 9 bugs
21137         * tests/test-stat.c (main): Factor guts...
21138         * tests/test-stat.h (test_stat_func): ...into new file.
21139         * tests/test-lstat.c (main): Factor guts...
21140         * tests/test-lstat.h (test_lstat_func): ...into new file.
21141         * tests/test-fstatat.c: New file.
21142         * modules/stat-tests (Files): Add test-stat.h.
21143         * modules/lstat-tests (Files): Add test-lstat.h.
21144         (Depends-on): Add stdbool.
21145         * modules/openat-tests (Depends-on): Add pathmax.
21146         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
21147         (Makefile.am): Run new test.
21148
21149         remove: new module, for mingw and Solaris 9 bugs
21150         * modules/remove: New file.
21151         * lib/remove.c: Likewise.
21152         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
21153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21154         * modules/stdio (Makefile.am): Use them.
21155         * lib/stdio.in.h (remove): Declare replacement.
21156         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21157         * doc/posix-functions/remove.texi (remove): Likewise.
21158         * modules/remove-tests: New test.
21159         * tests/test-remove.c: Likewise.
21160
21161         unlink: new module, for Solaris 9 bug
21162         * modules/unlink: New file.
21163         * lib/unlink.c: Likewise.
21164         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21166         * modules/unistd (Makefile.am): Use them.
21167         * lib/unistd.in.h (stat): Declare replacement.
21168         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21169         * doc/posix-functions/unlink.texi (unlink): Likewise.
21170         * modules/unlink-tests: New test.
21171         * tests/test-unlink.c: Likewise.
21172
21173         lstat: fix Solaris 9 bug
21174         * lib/lstat.c (lstat): Also check for trailing slash on
21175         non-symlink, non-directories.  Use stat module to simplify logic.
21176         * doc/posix-functions/lstat.texi (lstat): Document it.
21177         * modules/lstat-tests (Depends-on): Add errno, same-inode.
21178         (configure.ac): Check for symlink.
21179         * tests/test-lstat.c (main): Add more tests.
21180
21181         stat: add as dependency to other modules
21182         * modules/chown (Depends-on): Add stat.
21183         * modules/euidaccess (Depends-on): Likewise.
21184         * modules/fchdir (Depends-on): Likewise.
21185         * modules/isdir (Depends-on): Likewise.
21186         * modules/link (Depends-on): Likewise.
21187         * modules/lstat (Depends-on): Likewise.
21188         * modules/mkdir-p (Depends-on): Likewise.
21189         * modules/modechange (Depends-on): Likewise.
21190         * modules/open (Depends-on): Likewise.
21191         * modules/readlink (Depends-on): Likewise.
21192         * modules/same (Depends-on): Likewise.
21193
21194         stat: fix Solaris 9 bug
21195         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
21196         slash.
21197         * lib/stat.c (rpl_stat): Work around it.
21198         * doc/posix-functions/stat.texi (stat): Update documentation.
21199
21200         stat: new module, for mingw bug
21201         * modules/stat: New file.
21202         * lib/stat.c: Likewise.
21203         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21204         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21205         * modules/sys_stat (Makefile.am): Use them.
21206         * lib/sys_stat.in.h (stat): Declare replacement.
21207         * lib/openat.c (fstatat): Deal with lstat and stat being function
21208         macros.
21209         * modules/openat (Depends-on): Add inline.
21210         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21211         * doc/posix-functions/stat.texi (stat): Likewise.
21212         * modules/stat-tests: New test.
21213         * tests/test-stat.c: Likewise.
21214
21215 2009-09-19  Jim Meyering  <meyering@redhat.com>
21216
21217         syntax-check: detect unnecessary inclusion of canonicalize.h
21218         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
21219
21220 2009-09-19  Eric Blake  <ebb9@byu.net>
21221
21222         canonicalize-lgpl: adjust clients to use correct header
21223         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21224         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
21225         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
21226         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
21227         * lib/progreloc.c (includes): Likewise.
21228
21229 2009-09-19  Jim Meyering  <meyering@redhat.com>
21230
21231         test-posixtm.c: correct a comment
21232         * tests/test-posixtm.c: Correct first-line comment.
21233         Spotted by Eric Blake.
21234
21235 2009-09-16  Jim Meyering  <meyering@redhat.com>
21236
21237         posixtm-tests: make T const-correct; add a test case
21238         * tests/test-posixtm.c (T): Declare const.
21239         Add a test for -(2^31+1).
21240         Remove useless can-succeed-only-in-2002 test.
21241
21242         posixtm-tests: adjust the sole failing test
21243         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
21244         expected output matches what mktime now produces.  Cross-checked via
21245         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
21246
21247         posixtm: move #ifdef'd tests into a new module
21248         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
21249         * tests/test-posixtm.c: ... this new file.
21250         * modules/posixtm-tests: New module.
21251
21252 2009-09-19  Eric Blake  <ebb9@byu.net>
21253
21254         openat: simplify use of at-func.c
21255         * lib/at-func.c (includes): Include prerequisites here, to
21256         simplify requirements on client files.
21257         * lib/openat-priv.h: Add double-inclusion guard.
21258         * lib/faccessat.c (includes): Simplify.
21259         * lib/fchmodat.c (includes): Likewise.
21260         * lib/fchownat.c (includes): Likewise.
21261         * lib/mkdirat.c (includes): Likewise.
21262         * lib/mkfifoat.c (includes): Likewise.
21263         * lib/symlinkat.c (includes): Likewise.
21264
21265         openat: allow return of fd 0
21266         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
21267         * modules/save-cwd (Depends-on): Replace fcntl-safer with
21268         unistd-safer.
21269         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
21270         <fcntl.h>; this module does not leak fds.
21271         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
21272         must be allowed to return 0, leaving openat_safer to add the
21273         safety.
21274         (openat_permissive): Avoid writing to just-opened fd 2 if
21275         restoring the current directory fails.
21276         * lib/openat-die.c (openat_restore_fail): Add comment.
21277         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
21278         (save_cwd): Guarantee safe fd, but without use of open_safer.
21279         * tests/test-openat.c: New test.
21280         * modules/openat-tests (Files, Makefile.am): Distribute and build
21281         new file.
21282
21283         relocatable-prog-wrapper: fix build
21284         * modules/relocatable-prog-wrapper (Files): Update name of
21285         canonicalize m4 file, broken on 2009-09-17.
21286         Reported by emad hajjar <aleppos@hotmail.com>.
21287
21288 2009-09-19  Bruno Haible  <bruno@clisp.org>
21289
21290         * lib/safe-alloc.h: Use the standard header with GPL copyright.
21291         * lib/safe-alloc.c: Likewise.
21292         Reported by Ian Beckwith <ianb@erislabs.net>.
21293
21294 2009-09-18  Bruno Haible  <bruno@clisp.org>
21295
21296         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
21297         Reported by <erobles@sensacd.com.mx>.
21298
21299 2009-09-17  Eric Blake  <ebb9@byu.net>
21300
21301         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
21302         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
21303         slashes when checking if last component is missing.
21304         * tests/test-canonicalize.c (main): Test this.
21305
21306         canonicalize, canonicalize-lgpl: honor // if distinct from /
21307         * modules/canonicalize (Files): Add double-slash-root.m4.
21308         * modules/canonicalize-lgpl (Files): Likewise.
21309         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21310         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
21311         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
21312         fallback definition.
21313         (canonicalize_filename_mode): Use it to protect //.
21314         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
21315         (__realpath): Likewise.
21316         * tests/test-canonicalize.c (main): Test this.
21317         * tests/test-canonicalize-lgpl.c (main): Likewise.
21318         * modules/canonicalize-tests (Depends-on): Add same-inode.
21319         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21320
21321         canonicalize-lgpl: fix glibc bug with trailing slash
21322         * m4/canonicalize-lgpl.m4: Move contents...
21323         * m4/canonicalize.m4: ...here.
21324         (gl_CANONICALIZE_LGPL): Factor realpath check...
21325         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
21326         glibc 2.3.5 bug, fixed 2005-04-27.
21327         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
21328         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
21329         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
21330         * modules/canonicalize-lgpl (Files): Manage file rename.
21331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21332         * modules/stdlib (Makefile.am): Substitute witness.
21333         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
21334         is needed.
21335         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
21336         replacement is required.
21337         * lib/canonicalize.c (canonicalize_file_name): Likewise.
21338         * doc/glibc-functions/canonicalize_file_name.texi
21339         (canonicalize_file_name): Document this.
21340         * doc/posix-functions/realpath.texi (realpath): Likewise.
21341
21342         canonicalize-lgpl: reject non-directory with trailing slash
21343         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
21344         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
21345         catches failures in glibc 2.3.5.
21346         * tests/test-canonicalize.c (main): Likewise.
21347
21348         canonicalize-lgpl: use native realpath if it works
21349         * lib/canonicalize-lgpl.c (realpath): Guard with
21350         FUNC_REALPATH_WORKS.
21351         * lib/stdlib.in.h (realpath): Make declaration optional based on
21352         HAVE_REALPATH.
21353         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
21354         native realpath works.
21355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21356         * modules/stdlib (Makefile.am): Substitute witness.
21357
21358         canonicalize, canonicalize-lgpl: use <stdlib.h>
21359         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
21360         (Include): Mention <stdlib.h>.
21361         (configure.ac): Mention functions we provide.
21362         * modules/canonicalize (configure.ac): Likewise.
21363         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
21364         realpath if canonicalize_file_name is missing.
21365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
21366         * modules/stdlib (Makefile.am): Substitute witnesses.
21367         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
21368         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
21369         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
21370         * NEWS: Document this.
21371         * doc/glibc-functions/canonicalize_file_name.texi
21372         (canonicalize_file_name): Likewise.
21373         * doc/posix-functions/realpath.texi (realpath): Likewise.
21374         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
21375
21376         test-canonicalize: consolidate into single C program
21377         * tests/test-canonicalize.sh: Delete; move setup into...
21378         * tests/test-canonicalize.c (main): ...the program, making it
21379         easier to run in debugger.  Add some tests.
21380         * modules/canonicalize-tests (Files): Remove unused file.
21381         (Depends-on): Add progname.
21382         (configure.ac, Makefile.am): Simplify.
21383
21384         test-canonicalize-lgpl: consolidate into single C program
21385         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
21386         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
21387         easier to run in debugger.  Add some tests.
21388         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
21389         (configure.ac, Makefile.am): Simplify.
21390
21391         canonicalize: avoid resolvepath
21392         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
21393         unnecessary checks.
21394         * lib/canonicalize.c (includes): Simplify.
21395         (canonicalize_file_name): Drop resolvepath implementation.
21396         * modules/canonicalize (Depends-on): Drop filenamecat.
21397
21398         canonicalize: don't lose errno
21399         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
21400         over calls to free.
21401
21402         canonicalize: simplify errno handling
21403         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
21404         assignment.
21405
21406         canonicalize, canonicalize-lgpl: update module dependencies
21407         * modules/canonicalize (Depends-on): Add extensions, lstat,
21408         pathmax, stdlib.
21409         (Files): Drop pathmax.h.
21410         (configure.ac): Adjust macro name.
21411         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
21412         lstat, stdlib, sys_stat.
21413         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
21414         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
21415         extensions.
21416         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
21417         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
21418         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
21419         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
21420         declaration, if available.
21421         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
21422         we can rely on the readlink module.
21423         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
21424         (includes): Use <unistd.h> unconditionally.
21425
21426 2009-09-17  Eric Blake  <ebb9@byu.net>
21427
21428         maint: make Include sections of modules consistent
21429         * modules/alloca: Use only header name; no need to list #include.
21430         * modules/alloca-opt: Likewise.
21431         * modules/arpa_inet: Likewise.
21432         * modules/canon-host: Likewise.
21433         * modules/configmake: Likewise.
21434         * modules/dirent: Likewise.
21435         * modules/eealloc: Likewise.
21436         * modules/environ: Likewise.
21437         * modules/fchdir: Likewise.
21438         * modules/fcntl: Likewise.
21439         * modules/fcntl-h: Likewise.
21440         * modules/gethrxtime: Likewise.
21441         * modules/gettime: Likewise.
21442         * modules/ignore-value: Likewise.
21443         * modules/inet_ntop: Likewise.
21444         * modules/inet_pton: Likewise.
21445         * modules/inttypes: Likewise.
21446         * modules/isnand-nolibm: Likewise.
21447         * modules/isnanf-nolibm: Likewise.
21448         * modules/mbchar: Likewise.
21449         * modules/mbfile: Likewise.
21450         * modules/mbiter: Likewise.
21451         * modules/mbuiter: Likewise.
21452         * modules/netdb: Likewise.
21453         * modules/netinet_in: Likewise.
21454         * modules/nproc: Likewise.
21455         * modules/pagealign_alloc: Likewise.
21456         * modules/poll: Likewise.
21457         * modules/printf-frexp: Likewise.
21458         * modules/pthread: Likewise.
21459         * modules/putenv: Likewise.
21460         * modules/random_r: Likewise.
21461         * modules/relocatable-prog: Likewise.
21462         * modules/search: Likewise.
21463         * modules/select: Likewise.
21464         * modules/selinux-h: Likewise.
21465         * modules/settime: Likewise.
21466         * modules/signal: Likewise.
21467         * modules/size_max: Likewise.
21468         * modules/socklen: Likewise.
21469         * modules/ssize_t: Likewise.
21470         * modules/stdarg: Likewise.
21471         * modules/stdbool: Likewise.
21472         * modules/stddef: Likewise.
21473         * modules/stdint: Likewise.
21474         * modules/stdio: Likewise.
21475         * modules/stdlib: Likewise.
21476         * modules/string: Likewise.
21477         * modules/strings: Likewise.
21478         * modules/sys_file: Likewise.
21479         * modules/sys_ioctl: Likewise.
21480         * modules/sys_select: Likewise.
21481         * modules/sys_socket: Likewise.
21482         * modules/sys_stat: Likewise.
21483         * modules/sys_time: Likewise.
21484         * modules/sys_times: Likewise.
21485         * modules/sys_utsname: Likewise.
21486         * modules/sys_wait: Likewise.
21487         * modules/sysexits: Likewise.
21488         * modules/time: Likewise.
21489         * modules/times: Likewise.
21490         * modules/tmpfile: Likewise.
21491         * modules/trim: Likewise.
21492         * modules/unistd: Likewise.
21493         * modules/wchar: Likewise.
21494         * modules/wctype: Likewise.
21495
21496 2009-09-17  Bruno Haible  <bruno@clisp.org>
21497
21498         Make getdate.y compile on QNX and NetBSD 5 / i386.
21499         * m4/getdate.m4 (gl_GETDATE): Conditionally define
21500         TIME_T_FITS_IN_LONG_INT.
21501         * lib/getdate.y (long_time_t): New type.
21502         (relative_time): Change type of 'seconds' field to long_time_t.
21503         (get_date): Update types of local variables. Check against overflow
21504         during conversion from long_time_t to time_t.
21505         Reported by Matt Kraai <kraai@ftbfs.org>
21506         and Hasso Tepper <hasso@netbsd.org>.
21507
21508 2009-09-17  Bruno Haible  <bruno@clisp.org>
21509
21510         * modules/COPYING: Update copyright years.
21511         * modules/README: Likeiwse.
21512         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
21513         Reported by Ian Beckwith <ianb@erislabs.net>.
21514
21515 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21516
21517         * users.txt: Update references for gnuit package.
21518
21519 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21520
21521         * m4/getdelim.m4: Fix typo in copyright line.
21522
21523 2009-09-17  Bruno Haible  <bruno@clisp.org>
21524
21525         * lib/atoll.c: Use the standard header with GPL copyright.
21526         * lib/argz.in.h: Likewise.
21527         * lib/glob.c: Likewise.
21528         * lib/glob-libc.h: Likewise.
21529         * lib/random_r.c: Likewise.
21530         * lib/siglist.h: Likewise.
21531         * lib/strsignal.c: Likewise.
21532         Reported by Ian Beckwith <ianb@erislabs.net>.
21533
21534 2009-09-17  Eric Blake  <ebb9@byu.net>
21535
21536         rmdir: ensure correct dependency order
21537         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
21538
21539 2009-09-17  Bruno Haible  <bruno@clisp.org>
21540
21541         Disable assertion that fails on NetBSD 5 / i386.
21542         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
21543         Reported by Sam Steingold <sds@gnu.org>
21544         and Hasso Tepper <hasso@netbsd.org>.
21545
21546 2009-09-16  Eric Blake  <ebb9@byu.net>
21547
21548         unlinkdir: port to mingw
21549         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
21550         on which no one can unlink a directory.
21551
21552         stdlib: sort witness names
21553         * modules/stdlib (Makefile.am): Sort replacements.
21554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
21555         * lib/stdlib.in.h: Likewise.
21556
21557         parse-duration-tests: avoid link failure
21558         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
21559         LIBINTL.
21560         Reported by Tom G. Christensen.
21561
21562         openat-tests: ensure unlinkat behaves like rmdir
21563         * tests/test-rmdir.c (main): Factor guts...
21564         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
21565         * modules/rmdir-tests (Files): Ship new file.
21566         * modules/openat-tests: New test.
21567         * tests/test-unlinkat.c: Likewise.
21568
21569         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
21570         * modules/rmdir-errno (Status, Notice): Now obsolete.
21571
21572         rmdir: work around cygwin 1.5.x and mingw bugs
21573         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
21574         * lib/rmdir.c (rmdir): Work around it.
21575         * modules/rmdir (Status, Notice): No longer obsolete.
21576         (Files): Add dos.m4.
21577         (Depends-on): Add unistd.
21578         (configure.ac): Set witnesses.
21579         (License): Relax to LGPLv2+.
21580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
21581         * modules/unistd (Makefile.am): Substitute witnesses.
21582         * lib/unistd.in.h (rmdir): Declare replacement.
21583         * doc/posix-functions/rmdir.texi (rmdir): Document this.
21584         * modules/rmdir-tests: New tests.
21585         * tests/test-rmdir.c: Likewise.
21586
21587 2009-09-15  Eric Blake  <ebb9@byu.net>
21588
21589         fchdir: improve use of replacement functions
21590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
21591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
21592         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
21593         REPLACE_CLOSEDIR.
21594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
21595         * modules/sys_stat (Makefile.am): Substitute correct witness.
21596         * modules/dirent (Makefile.am): Likewise.
21597         * modules/unistd (Makefile.am): Likewise.
21598         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
21599         * lib/unistd.in.h (dup): Likewise.
21600         * lib/sys_stat.in.h (fstat): Likewise.
21601
21602         maint: ignore gnulib-tool temp files
21603         * .gitignore: Ignore files created during gnulib-tool --test.
21604
21605 2009-09-13  Jim Meyering  <meyering@redhat.com>
21606
21607         posixtm: don't reject a time that specify "60" as the number of seconds
21608         * lib/posixtm.c (posixtime): The code to reject invalid dates
21609         would also reject a time specified with the .60 suffix.
21610         But POSIX allows that, in order to accommodate leap seconds.
21611         So don't reject it.
21612         (main): Adjust tests accordingly.
21613         * modules/posixtm (Depends-on): Add stpcpy.
21614
21615 2009-09-11  Jim Meyering  <meyering@redhat.com>
21616
21617         announce-gen: include [$release_type] in emitted Subject:
21618         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
21619         e.g., [stable] in the emitted Subject: line.
21620
21621 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21622
21623         Remove obsolete macros from several modules.
21624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
21625         obsolete Autoconf macros with their modern counterparts.
21626         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
21627         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
21628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21629         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21630         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
21631         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21633         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21634         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21635         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
21636         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21638         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
21639         * m4/sockets.m4 (gl_SOCKETS): Likewise.
21640         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
21641         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
21642         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21643         * m4/time_r.m4 (gl_TIME_R): Likewise.
21644         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21645         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
21646         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21647
21648         Fix copyright header in build-aux scripts.
21649         * build-aux/git-version-gen: Fix copyright header to match GPLv3
21650         recommendation.
21651         * build-aux/ncftpput-ftp: Likewise.
21652         * build-aux/update-copyright: Likewise.
21653
21654 2009-09-09  Eric Blake  <ebb9@byu.net>
21655
21656         test-link: allow Linux choice of errno
21657         * tests/test-link.c (main): Relax test for alternate error.
21658
21659         strndup: fix improper m4 caching
21660         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
21661         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
21662         (gl_PREREQ_STRNDUP): Delete.
21663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
21664         * modules/string (Makefile.am): Substitute it.
21665         * lib/string.in.h (strndup): Modernize prototype.
21666
21667         getcwd: port to mingw
21668         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
21669         different from the POSIX assumptions made throughout the getcwd
21670         module; fortunately, the mingw getcwd does not need replacement.
21671         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
21672         * modules/getcwd-tests: New test.
21673         * tests/test-getcwd.c: Likewise.
21674
21675         link: fix platform bugs
21676         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
21677         * lib/link.c (link): Work around them.  Fix related mingw bug.
21678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
21679         * modules/unistd (Makefile.am): Substitute it.
21680         * lib/unistd.in.h (link): Declare replacement.
21681         * doc/posix-functions/link.texi (link): Document this.
21682         * modules/link (Depends-on): Add strdup-posix, sys_stat.
21683
21684         test-link: consolidate into single C program, test more cases
21685         * tests/test-link.sh: Delete.
21686         * tests/test-link.c: Test more error conditions.  Exposes bugs on
21687         at least Cygwin and Solaris.
21688         * modules/link-tests (Files): Remove unused file.
21689         (Depends-on): Add errno, sys_stat.
21690         (Makefile.am): Simplify.
21691
21692 2009-09-08  Bruno Haible  <bruno@clisp.org>
21693
21694         Work around towlower, towupper bug on mingw.
21695         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
21696         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
21697         * doc/posix-functions/towlower.texi: Mention the mingw bug.
21698         * doc/posix-functions/towupper.texi: Likewise.
21699         Reported by Eric Blake.
21700
21701 2009-09-08  Jim Meyering  <meyering@redhat.com>
21702
21703         build: don't try to run autoheader if we don't use it
21704         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
21705         is not used in configure.ac.
21706
21707 2009-09-08  Eric Blake  <ebb9@byu.net>
21708
21709         euidaccess: fix compilation error
21710         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
21711
21712         rawmemchr: relax license
21713         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
21714         okay.
21715         Reported by Jim Meyering.
21716
21717         mkfifoat: new module
21718         * modules/mkfifoat: New file.
21719         * lib/mkfifoat.c: Likewise.
21720         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
21721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21722         * modules/sys_stat (Makefile.am): Use them.
21723         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
21724         * MODULES.html.sh (File system functions): Mention module.
21725         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21726         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21727         * modules/mkfifoat-tests: New test.
21728         * tests/test-mkfifoat.c: Likewise.
21729
21730         strchrnul: relax license
21731         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
21732         okay.
21733         Reported by Jim Meyering.
21734
21735 2009-09-08  Eric Blake  <ebb9@byu.net>
21736
21737         fstatat: fix compilation on Solaris
21738         * lib/fstatat.c (includes): Add fcntl.h.
21739         Reported by Pádraig Brady.
21740
21741 2009-09-07  Eric Blake  <ebb9@byu.net>
21742
21743         rename: modernize replacement
21744         * modules/rename (Depends-on): Add stdio.
21745         (configure.ac): Declare witness.
21746         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
21747         stdio take care of replacement.
21748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21749         * modules/stdio (Makefile.am): Substitute them.
21750         * lib/stdio.in.h (rename): Declare replacement.
21751         * lib/rename.c (includes): Allow cross-compilation to non-windows
21752         machines.
21753         * doc/posix-functions/rename.texi (rename): Improve
21754         documentation.
21755
21756         stdio: sort witness names
21757         * modules/stdio (Makefile.am): Sort replacements.
21758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21759         * lib/stdio.in.h: Likewise.
21760
21761         getcwd: minor cleanups
21762         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
21763         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
21764
21765         openat: provide more convenience names
21766         * modules/faccessat (configure.ac): Add C witness.
21767         * lib/unistd.in.h (readlinkat): Fix typo.
21768         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
21769         convenience wrappers.
21770         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
21771         wrappers in syntax checks.
21772
21773 2009-09-06  Eric Blake  <ebb9@byu.net>
21774
21775         doc: fix comments in recent patches
21776         * lib/faccessat.c: Mention correct function.
21777         * lib/fchmodat.c: Likewise.
21778         * lib/fchownat.c: Likewise.
21779         * lib/symlinkat.c: Likewise.
21780         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
21781         constants.
21782
21783         faccessat, symlinkat: continue cleanup of previous patch
21784         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
21785         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21786         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
21787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
21788         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
21789         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
21790         set.
21791
21792 2009-09-06  Bruno Haible  <bruno@clisp.org>
21793
21794         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
21795         (fstatat): Declare if GNULIB_FSTATAT is set.
21796         (mkdirat): Declare if GNULIB_MKDIRAT is set.
21797         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
21798         (unlinkat): Declare if GNULIB_UNLINKAT is set.
21799         * modules/fcntl-h (Files): Remove m4/openat.m4.
21800         * modules/sys_stat (Files): Remove m4/openat.m4.
21801         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
21802         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
21803         * modules/unistd (Files): Remove m4/openat.m4.
21804         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
21805         GNULIB_OPENAT.
21806         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
21807         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
21808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21809         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
21810         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
21811         gl_OPENAT_DEFAULTS.
21812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
21813         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
21814         Don't require gl_OPENAT_DEFAULTS.
21815         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
21816         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
21817         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
21818         (gl_OPENAT_DEFAULTS): Remove macro.
21819
21820 2009-09-06  Bruno Haible  <bruno@clisp.org>
21821
21822         * modules/openat (configure.ac): Remove unneeded witness.
21823
21824 2009-09-06  Bruno Haible  <bruno@clisp.org>
21825
21826         Set errno to ENOSYS when a function is entirely unsupported.
21827         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
21828         EOPNOTSUPP.
21829         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21830         * modules/chown (Depends-on): Remove errno.
21831
21832 2009-09-06  Bruno Haible  <bruno@clisp.org>
21833
21834         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
21835
21836 2009-09-06  Bruno Haible  <bruno@clisp.org>
21837
21838         * lib/sys_stat.in.h: Fix preprocessor command indentation.
21839
21840 2009-09-06  Ben Pfaff  <blp@gnu.org>
21841             Bruno Haible  <bruno@clisp.org>
21842
21843         Work around a glibc bug in strtok_r.
21844         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
21845         Undefine if UNDEFINE_STRTOK_R is set.
21846         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
21847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21848         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
21849         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
21850         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
21851         UNDEFINE_STRTOK_R.
21852         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
21853
21854 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21855
21856         exclude: minor fix
21857         * lib/exclude.c: Include wctype.h
21858
21859 2009-09-06  Akim Demaille  <demaille@gostai.com>
21860
21861         bootstrap: improve error message
21862         * build-aux/bootstrap (find_tool): Upon failure, report the list
21863         of candidates.
21864         Honor the initial value of the envvar.
21865
21866 2009-09-05  Eric Blake  <ebb9@byu.net>
21867
21868         symlinkat: new module
21869         * modules/symlinkat: New file.
21870         * lib/symlinkat.c: Likewise.
21871         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21873         * modules/unistd (Makefile.am): Use them.
21874         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
21875         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
21876         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
21877         * MODULES.html.sh (File system functions): Mention module.
21878         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21879         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21880         * modules/symlinkat-tests: New test.
21881         * tests/test-symlinkat.c: Likewise.
21882
21883         test-openat-safer: add more checks
21884         * tests/test-openat-safer.c (main): Check more code paths.
21885
21886 2009-09-05  Jim Meyering  <meyering@redhat.com>
21887
21888         syntax-check: detect unnecessary inclusion of openat.h
21889         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
21890
21891 2009-09-05  Bruno Haible  <bruno@clisp.org>
21892
21893         Support towlower, towupper.
21894         * doc/posix-functions/towlower.texi: Mention module wctype.
21895         * doc/posix-functions/towupper.texi: Likewise.
21896         * lib/wctype.in.h (towlower, towupper): New functions.
21897         * tests/test-wctype.c: Include stdio.h, stdlib.h.
21898         (ASSERT): New macro.
21899         (e): New variable.
21900         (main): Test also towlower, towupper. Test WEOF argument.
21901         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21902
21903 2009-09-05  Bruno Haible  <bruno@clisp.org>
21904
21905         Fix conversion behaviour when the input is invalid.
21906         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
21907         mark occurring in first pass of indirect conversion.
21908         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
21909         input.
21910         Found by clang's static analyzer.
21911
21912 2009-09-05  Bruno Haible  <bruno@clisp.org>
21913
21914         * tests/test-striconveh.c (main): Test indirect conversion on platforms
21915         where direct conversion is possible.
21916
21917 2009-09-04  Eric Blake  <ebb9@byu.net>
21918
21919         openat: fail with ENOENT on empty name
21920         * lib/openat-proc.c (openat_proc_name): Special-case the empty
21921         buffer.
21922
21923         link-follow: fix logic bug in prior patch
21924         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
21925         reversed sense of yes and no in prior patch.  Avoid confusing
21926         compilation failure with desired semantics.
21927
21928         link-follow: accomodate mingw and cross-compilation
21929         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
21930         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
21931         cross-compilation results to -1, to make linkat easier to
21932         implement when cross-compiling.  Trivially support mingw.
21933         * modules/link-follow (configure.ac): Call new name.
21934         * NEWS: Mention this.
21935
21936 2009-09-03  Eric Blake  <ebb9@byu.net>
21937
21938         faccessat: compile replacement
21939         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
21940         needed.
21941
21942         fts: fix compilation error
21943         * lib/fts.c (includes): Re-add "openat.h", for
21944         openat_needs_fchdir.
21945
21946         faccessat: new module
21947         * modules/faccessat: New file.
21948         * lib/faccessat.c: Likewise.
21949         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21951         * modules/unistd (Makefile.am): Use it.
21952         * lib/unistd.in.h (faccessat): Declare it.
21953         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
21954         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
21955         * MODULES.html.sh (File system functions): Mention it.
21956         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
21957         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21958
21959         euidaccess: prefer POSIX over non-standard implementation
21960         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
21961         * lib/euidaccess.c (euidaccess): Use it if available.
21962
21963         openat: make template easier to use
21964         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
21965         AT_FUNC_F2 to be undefined.
21966         (VALIDATE_FLAG): New macro; use it to reject bad flags.
21967         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
21968         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
21969         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
21970         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
21971         Likewise.
21972         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
21973         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
21974         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
21975         Likewise.
21976
21977         openat: declare in POSIX headers
21978         * NEWS: Mention this.
21979         * modules/openat (configure.ac): Declare witnesses.
21980         (Depends-on): Add fcntl-h, sys_stat, unistd.
21981         (Include): Mention correct headers.
21982         * modules/fcntl-h (Depends-on): Add link-warning.
21983         (Files): Add openat.m4.
21984         (Makefile.am): Substitute witnesses.
21985         * modules/sys_stat (Files, Makefile.am): Likewise.
21986         * modules/unistd (Files, Makefile.am): Likewise.
21987         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
21988         (gl_OPENAT_DEFAULTS): New macro.
21989         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
21990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
21991         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
21992         (SYS_STAT_H): Remove unused variable.
21993         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
21994         * lib/fcntl--.h (includes): Remove unneeded header.
21995         * lib/openat-safer.c (includes): Likewise.
21996         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
21997         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
21998         appropriate headers.
21999         (__OPENAT_PREFIX): Delete.
22000         * lib/fcntl.in.h (openat): Provide declaration.
22001         (AT_FDCWD): Fix Solaris bug.
22002         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
22003         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
22004         * lib/fchmodat.c (includes):  Adjust to find declaration.
22005         * lib/fchownat.c (includes): Likewise.
22006         * lib/mkdirat.c (includes): Likewise.
22007         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
22008         still visible.
22009
22010 2009-09-02  Eric Blake  <ebb9@byu.net>
22011
22012         errno: use consistently
22013         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
22014         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
22015         * lib/canonicalize.c (ELOOP): Likewise.
22016         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
22017         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
22018         * lib/lchown.c (EOPNOTSUPP): Likewise.
22019         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
22020         * lib/savewd.c (ESTALE): Likewise.
22021         * lib/settime.c (ENOSYS): Likewise.
22022         * lib/utimens.c (ENOSYS): Likewise.
22023         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
22024         * lib/chdir-safer.c (ELOOP): Likewise.
22025         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
22026         * modules/c-stack (Depends-on): Add errno.
22027         * modules/canonicalize (Depends-on): Likewise.
22028         * modules/chdir-safer (Depends-on): Likewise.
22029         * modules/fdopendir (Depends-on): Likewise.
22030         * modules/inet_ntop (Depends-on): Likewise.
22031         * modules/inet_pton (Depends-on): Likewise.
22032         * modules/lchown (Depends-on): Likewise.
22033         * modules/openat (Depends-on): Likewise.
22034         * modules/savewd (Depends-on): Likewise.
22035         * modules/settime (Depends-on): Likewise.
22036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
22037
22038         fts: avoid leaking fds
22039         * modules/fts (Depends-on): Add cloexec.
22040         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
22041         flag.
22042
22043         fts: make directory fds more robust
22044         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
22045         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
22046
22047         backupfile, chdir-long, fts, savedir: make safer
22048         * lib/backupfile.c (includes): Use "dirent--.h", since
22049         numbered_backup can write to stderr during readdir.
22050         * lib/savedir.c (includes): Likewise.
22051         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
22052         emulation can write to stderr on failure.
22053         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
22054         * lib/getcwd.c: Document why opendir_safer is unused.
22055         * lib/glob.c: Likewise.
22056         * lib/scandir.c: Likewise.
22057         * lib/openat-proc.c: Likewise, for open_safer.
22058         * modules/backupfile (Depends-on): Add dirent-safer.
22059         * modules/savedir (Depends-on): Likewise.
22060         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
22061         * modules/chdir-long (Depends-on): Add openat-safer.
22062
22063         openat-safer: new module
22064         * modules/openat-safer: New file.
22065         * lib/openat-safer.c: Likewise.
22066         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
22067         * lib/fcntl-safer.h (openat_safer): Declare.
22068         * lib/fcntl--.h (openat): Override.
22069         * MODULES.html.sh (File descriptor based I/O): Mention it.
22070         * lib/openat.h: Add double-inclusion guards.
22071         * lib/openat.c (includes): Only include "fcntl-safer.h", not
22072         "fcntl--.h", so we can implement openat.
22073         * modules/openat-safer-tests: New test.
22074         * tests/test-openat-safer.c: New file.
22075
22076         dirent-safer: new module
22077         * modules/dirent-safer: New file.
22078         * lib/dirent--.h: Likewise.
22079         * lib/dirent-safer.h: Likewise.
22080         * lib/opendir-safer.c: Likewise.
22081         * m4/dirent-safer.m4: Likewise.
22082         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
22083         * modules/dirent-safer-tests: New test.
22084         * tests/test-dirent-safer.c: New file.
22085         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
22086
22087         fdopendir: optimize on mingw
22088         * lib/unistd.in.h (_gl_directory_name): New prototype.
22089         * lib/fchdir.c (_gl_directory_name): Implement it.
22090         (fchdir): Use it to simplify implementation.
22091         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
22092         fchdir, when available, to avoid calling [f]chdir().
22093
22094         fdopendir: split into its own module
22095         * lib/openat.c (fdopendir): Move...
22096         * lib/fdopendir.c: ...into new file.
22097         * modules/fdopendir: New module.
22098         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
22099         * modules/openat (Depends-on): Add fdopendir.
22100         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
22101         fdopendir here.
22102         * modules/savedir (Depends-on): Only need fdopendir, not full
22103         openat.
22104         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
22105         * lib/openat.h (fdopendir): Drop prototype.
22106         * lib/dirent.in.h (fdopendir): Provide prototype.
22107         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
22108         * modules/dirent (Makefile.am): Substitute them.
22109         * MODULES.html.sh (File system functions): Mention it.
22110         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
22111         * modules/fdopendir-tests: New file.
22112         * tests/test-fdopendir.c: Likewise.
22113
22114         fchdir: use more consistent macro convention
22115         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
22116         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
22117         REPLACE_FCHDIR, rather than relying on config.h macros.
22118         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
22119         inside a single make-time REPLACE_FCHDIR block, rather than using
22120         the config.h FCHDIR_REPLACEMENT.
22121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
22122         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
22123         Manage fstat replacement.
22124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
22125         REPLACE_FCHDIR.
22126         * modules/sys_stat (Files): Add m4/unistd_h.m4.
22127         (Makefile.am): Substitute REPLACE_FCHDIR.
22128         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
22129         FCHDIR_REPLACEMENT.
22130         * lib/dup-safer.c (dup_safer): Likewise.
22131         * lib/dup2.c (rpl_dup2): Likewise.
22132         * lib/dup3.c (rpl_dup3): Likewise.
22133         * lib/open.c (rpl_open): Likewise.
22134
22135         fchdir: simplify error handling, and support dup3
22136         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
22137         stdbool, malloc-posix, realloc-posix.
22138         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
22139         (ensure_dirs_slot): Return false on allocation failure.
22140         (rpl_dup2): Delete.
22141         (_gl_register_dup): New function.
22142         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
22143         (_gl_register_fd): Close fd on allocation failure.
22144         * lib/fcntl.in.h (_gl_register_fd): Update signature.
22145         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
22146         prototype.
22147         (rpl_dup2_fchdir): Delete prototype.
22148         * lib/open.c (open): Update caller.
22149         * lib/dup2.c (dup2): Track fchdir metadata.
22150         * lib/dup3.c (dup3): Likewise.
22151         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
22152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
22153
22154 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22155
22156         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
22157         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
22158         don't pass arguments to AC_OUTPUT.
22159
22160 2009-09-02  Bruno Haible  <bruno@clisp.org>
22161
22162         * modules/mkdtemp (License): Relicense under LGPLv2+.
22163         Reported by Paolo Bonzini.
22164
22165 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22166
22167         Replace uses of obsolete autoconf macros in Jim's modules.
22168         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
22169         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
22170         can evoke a warning from autoconf when run with -Wobsolete
22171         enabled.  They were declared obsolete for good reasons (see
22172         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
22173         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
22174         should not continue using the deprecated macros.
22175         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
22176         obsolete Autoconf macros with modern counterparts.
22177         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22178         * m4/dos.m4 (gl_AC_DOS): Likewise.
22179         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
22180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22181         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
22182         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
22183         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
22184         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22185         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
22186         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
22187         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22188         Likewise.
22189         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22190         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22191         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
22192         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
22193         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
22194         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22195
22196 2009-09-01  Eric Blake  <ebb9@byu.net>
22197
22198         fchdir: fix off-by-one bug in previous patch
22199         * lib/fchdir.c (rpl_fstat): Use correct bounds.
22200         (_gl_unregister_fd): Delete useless if.
22201
22202 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
22203
22204         maint.mk: sort the list of syntax-check rules
22205         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
22206         easier to get a sense of progress when the rules are run sequentially
22207         and take a long time.
22208
22209 2009-09-01  Simon Josefsson  <simon@josefsson.org>
22210
22211         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
22212         * modules/netinet_in: Likewise.
22213         * modules/sys_file: Likewise.
22214         * modules/sys_ioctl: Likewise.
22215         * modules/sys_select: Likewise.
22216         * modules/sys_socket: Likewise.
22217         * modules/sys_stat: Likewise.
22218         * modules/sys_time: Likewise.
22219         * modules/sys_times: Likewise.
22220         * modules/sys_utsname: Likewise.
22221         * modules/sys_wait: Likewise.
22222
22223 2009-09-01  Jim Meyering  <meyering@redhat.com>
22224
22225         fts: help ensure that return values are not ignored
22226         * lib/fts_.h (__GNUC_PREREQ): Define.
22227         (__attribute_warn_unused_result__): Define.
22228         (fts_children, fts_close, fts_open, fts_read): Declare with
22229         __attribute_warn_unused_result__.
22230
22231         fts: fts_close now fails also when closing a dir file descriptor fails
22232         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
22233         and propagate to caller, along with errno.
22234
22235         announce-gen: correct formatting in --help output
22236         * build-aux/announce-gen (usage): Move the one-line description in
22237         --help output "up", to where it belongs, just after Usage:.
22238
22239 2009-08-31  Eric Blake  <ebb9@byu.net>
22240
22241         fchdir: port to mingw
22242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
22243         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
22244         opened, then use a substitute.
22245         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
22246         replacement.
22247         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
22248         (_gl_register_fd): No need to check stat if open already filters
22249         all directories.
22250         (fchdir): Fix error condition to match POSIX.
22251         * modules/fchdir (Depends-on): Add sys_stat.
22252         * doc/posix-functions/open.texi (open): Document the limitation.
22253         * modules/fchdir-tests: New file.
22254         * tests/test-fchdir.c: Likewise.
22255
22256         canonicalize: allow cross-testing from cygwin to mingw
22257         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
22258         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
22259         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
22260         Likewise.
22261         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
22262         target does not support symlinks.
22263         * tests/test-canonicalize-lgpl.sh: Likewise.
22264
22265         chown: avoid compilation warning on mingw
22266         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
22267         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
22268         mingw.
22269         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22270         * modules/chown (Depends-on): Add errno.
22271
22272 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22273
22274         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
22275         command.
22276
22277 2009-08-31  Jim Meyering  <meyering@redhat.com>
22278
22279         canonicalize: remove useless initialization
22280         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
22281         initialization of local, "end".
22282
22283 2009-08-30  Bruno Haible  <bruno@clisp.org>
22284
22285         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
22286         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
22287         ENOSYS.
22288
22289 2009-08-30  Bruno Haible  <bruno@clisp.org>
22290
22291         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
22292         /usr/xpg4/bin/tr when it exists.
22293         * tests/test-pipe-filter-gi1.sh: Likewise.
22294
22295 2009-08-30  Bruno Haible  <bruno@clisp.org>
22296
22297         Work around deficient /usr/bin/id program on Solaris.
22298         * tests/test-file-has-acl.sh (ID): New variable.
22299         * tests/test-set-mode-acl.sh (ID): Likewise.
22300         * tests/test-copy-acl.sh (ID): Likewise.
22301         * tests/test-copy-file.sh (ID): Likewise.
22302
22303 2009-08-30  Bruno Haible  <bruno@clisp.org>
22304
22305         New module 'xstriconveh'.
22306         * lib/xstriconveh.h: New file.
22307         * lib/xstriconveh.c: New file.
22308         * modules/xstriconveh: New file.
22309
22310 2009-08-30  Bruno Haible  <bruno@clisp.org>
22311
22312         Make it easier to use mem_cd_iconveh.
22313         * lib/striconveh.h (iconveh_t): New type.
22314         (iconveh_open, iconveh_close): New declarations.
22315         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22316         with a single 'const iconveh_t *' argument.
22317         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
22318         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22319         with a single 'const iconveh_t *' argument.
22320         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
22321         * tests/test-striconveh.c (main): Update.
22322         * NEWS: Mention the change.
22323
22324 2009-08-30  Bruno Haible  <bruno@clisp.org>
22325
22326         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
22327         problem.
22328
22329 2009-08-30  Bruno Haible  <bruno@clisp.org>
22330
22331         Work around iconv_open problem on Solaris.
22332         * lib/iconv_open-solaris.gperf: New file.
22333         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
22334         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
22335         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
22336         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
22337         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
22338         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
22339
22340 2009-08-29  Jim Meyering  <meyering@redhat.com>
22341
22342         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
22343         * top/maint.mk (cvs-check): Remove target; it was just an alias
22344         to the better-named vc-diff-check.
22345         (maintainer-distcheck): Remove rule.  It was used only from
22346         the (alpha/beta/major) target, and all of its commands but one
22347         were coreutils-specific.
22348         (vc-dist): Remove rule.
22349         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
22350         Run vc-diff-check, not vc-dist.
22351         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
22352
22353 2009-08-27  Bruno Haible  <bruno@clisp.org>
22354
22355         * tests/test-bitrotate.c (main): Remove test that uses a shift count
22356         of 0.
22357
22358 2009-08-27  Bruno Haible  <bruno@clisp.org>
22359
22360         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
22361         compilers.
22362         * doc/func.texi: Document the SunPRO C bug.
22363
22364 2009-08-27  Bruno Haible  <bruno@clisp.org>
22365
22366         Fix link error on Solaris.
22367         * tests/test-parse-duration.c (xstrdup): Remove function.
22368
22369 2009-08-26  Pádraig Brady  <P@draigbrady.com>
22370
22371         ignore-value: handle pointer types, too
22372         * lib/ignore-value.h (__attribute__): Remove definition.
22373         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
22374         of a more concise and more-often effective "(void) i" statement.
22375         (ignore_ptr): New function to suppress warnings from functions that
22376         return pointers, and to make it explicit that one function doesn't
22377         handle all cases.
22378
22379 2009-08-25  Bruno Haible  <bruno@clisp.org>
22380
22381         dup2: work around a Linux bug.
22382         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
22383         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
22384         * doc/posix-functions/dup2.texi: Mention the Linux bug.
22385         Reported by Simon Josefsson.
22386
22387 2009-08-25  Jim Meyering  <meyering@redhat.com>
22388
22389         libguestfs uses gnulib
22390         * users.txt: Add libguestfs.
22391
22392 2009-08-24  Eric Blake  <ebb9@byu.net>
22393
22394         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
22395         * lib/pipe2.c (includes): Add binary-io.h.
22396         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
22397
22398 2009-08-24  Bruno Haible  <bruno@clisp.org>
22399
22400         Tolerate declared but missing accept4 syscall.
22401         * lib/accept4.c (accept4): Invoke original accept4 function first, if
22402         available.
22403         * lib/sys_socket.in.h (accept4): If the function is already present,
22404         override it.
22405         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
22406         * modules/accept4 (Makefile.am): Compile accept4.c always.
22407         Reported by Paolo Bonzini and Eric Blake.
22408
22409 2009-08-23  Bruno Haible  <bruno@clisp.org>
22410
22411         New module 'accept4'.
22412         * lib/sys_socket.in.h (accept4): New declaration.
22413         * lib/accept4.c: New file.
22414         * m4/accept4.m4: New file.
22415         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22416         GNULIB_ACCEPT4, HAVE_ACCEPT4.
22417         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
22418         HAVE_ACCEPT4.
22419         * modules/accept4: New file.
22420         * doc/glibc-functions/accept4.texi: Mention the new module.
22421
22422 2009-08-24  Jim Meyering  <meyering@redhat.com>
22423
22424         progname: also set global program_invocation_name, when possible
22425         Before this change, a libtool-enabled program that calls glibc's
22426         error function would report the program name as
22427         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
22428         * modules/progname (configure.ac): Check for a declaration of
22429         program_invocation_name.
22430         * lib/progname.c:  Include <errno.h>.
22431         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
22432         Set program_invocation_name.
22433
22434 2009-08-23  Bruno Haible  <bruno@clisp.org>
22435
22436         * lib/dup3.c: Include <string.h>.
22437
22438 2009-08-23  Bruno Haible  <bruno@clisp.org>
22439
22440         * lib/dup3.c (dup3): Test only once whether the system actually exists.
22441         * lib/pipe2.c (pipe2): Likewise.
22442         Suggested by Eric Blake.
22443
22444 2009-08-23  Bruno Haible  <bruno@clisp.org>
22445
22446         Tolerate declared but missing dup3 syscall.
22447         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
22448         * lib/unistd.in.h (dup3): If the function is already present,
22449         override it.
22450         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
22451         * modules/dup3 (Makefile.am): Compile dup3.c always.
22452         Reported by Paolo Bonzini.
22453
22454 2009-08-23  Bruno Haible  <bruno@clisp.org>
22455
22456         Tolerate declared but missing pipe2 syscall.
22457         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
22458         available.
22459         * lib/unistd.in.h (pipe2): If the function is already present,
22460         override it.
22461         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
22462         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
22463         Reported by Paolo Bonzini.
22464
22465 2009-08-23  Bruno Haible  <bruno@clisp.org>
22466
22467         * lib/pipe2.c (pipe2): Move #ifs inside function.
22468
22469 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22470
22471         quotearg: document limitations of quote_these_too
22472         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
22473         those limitations are created.
22474         * lib/quotearg.h (set_char_quoting): Document that digits and
22475         letters that are special after backslash are not permitted.
22476         (quotearg_char): Cross-reference set_char_quoting documentation.
22477
22478 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
22479
22480         quotearg: implement custom_quoting_style
22481         * lib/quotearg.c: (struct quoting_options): Add left_quote and
22482         right_quote fields.
22483         (set_custom_quoting): New public function.
22484         (quotearg_buffer_restyled): Add left_quote and right_quote
22485         arguments, handle them very much like locale quoting, and update
22486         all uses.
22487         (quotearg_n_custom): New public function.
22488         (quotearg_n_custom_mem): New public function.
22489         (quotearg_custom): New public function.
22490         (quotearg_custom_mem): New public function.
22491         * lib/quotearg.h: Prototype and document new public functions.
22492         (enum quoting_style): For escape_quoting_style and
22493         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
22494         ignored even though they're otherwise like c_quoting_style.
22495         Add custom_quoting_style member and document with comparison to
22496         clocale_quoting_style.
22497         * tests/test-quotearg.c (custom_quotes): New array.
22498         (custom_results): New array.
22499         (main): Extend to test custom quoting.
22500
22501 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22502
22503         quotearg: fix right quote escaping when it's in quote_these_too
22504         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
22505         quote, be sure to prepend only one backslash.
22506         * tests/test-quotearg.c (use_quote_double_quotes): New function.
22507         (main): Test it.
22508
22509 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22510
22511         quotearg-tests: test escaping of embedded locale quotes
22512         * tests/test-quotearg.c (struct result_strings): Add member for
22513         new input.
22514         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
22515         (inputs): Add new input.
22516         (results_g): Add expected results.
22517         (flag_results): Likewise.
22518         (locale_results): Likewise.
22519         (compare_strings): Check those.
22520
22521 2009-08-23  Bruno Haible  <bruno@clisp.org>
22522
22523         Tests for module 'dup3'.
22524         * modules/dup3-tests: New file.
22525         * tests/test-dup3.c: New file.
22526
22527         New module 'dup3'.
22528         * lib/unistd.in.h (dup3): New declaration.
22529         * lib/dup3.c: New file.
22530         * m4/dup3.m4: New file.
22531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
22532         HAVE_DUP3.
22533         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
22534         * modules/dup3: New file.
22535         * doc/glibc-functions/dup3.texi: Mention the new module.
22536
22537 2009-08-23  Bruno Haible  <bruno@clisp.org>
22538
22539         Tweak the dup2 test.
22540         * tests/test-dup2.c (main): Create the test file empty. Verify that an
22541         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
22542         the test file is still empty. Fix argument order of lseek.
22543
22544 2009-08-23  Bruno Haible  <bruno@clisp.org>
22545
22546         Avoid test link errors when the modules getopt-gnu, gettext are used.
22547         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
22548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22549
22550 2009-08-23  Bruno Haible  <bruno@clisp.org>
22551
22552         Fix getdtablesize() on mingw.
22553         * lib/getdtablesize.c (getdtablesize): Implement differently.
22554         * lib/unistd.in.h (getdtablesize): Improve comment.
22555
22556 2009-08-23  Bruno Haible  <bruno@clisp.org>
22557
22558         New module 'mkostemp'.
22559         Based on Ulrich Drepper's 2007-08-10 change in glibc.
22560         * lib/stdlib.in.h (mksotemp): New declaration.
22561         * lib/mkostemp.c: New file, from glibc with modifications.
22562         * lib/tempname.h (GT_FILE): Remove outdated comment.
22563         (gen_tempname): Add flags argument.
22564         * lib/tempname.c (__GT_BIGFILE): Remove macro.
22565         (__GT_FILE): Map to 1.
22566         (small_open, large_open): Remove macros.
22567         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
22568         * lib/mkstemp.c (mkstemp): Update.
22569         * lib/mkdtemp.c (mkdtemp): Likewise.
22570         * m4/mkostemp.m4: New file.
22571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
22572         HAVE_MKOSTEMP.
22573         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
22574         HAVE_MKOSTEMP.
22575         * modules/mkostemp: New file, based on modules/mkstemp.
22576         * doc/glibc-functions/mkostemp.texi: Mention the new module.
22577         * NEWS: Mention the change.
22578
22579 2009-08-23  Bruno Haible  <bruno@clisp.org>
22580
22581         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
22582         Reported by Eric Blake.
22583
22584 2009-08-23  Bruno Haible  <bruno@clisp.org>
22585
22586         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
22587         Reported by Eric Blake.
22588
22589 2009-08-23  Bruno Haible  <bruno@clisp.org>
22590
22591         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
22592         * modules/pipe2 (Depends-on): Likewise.
22593
22594 2009-08-23  Eric Blake  <ebb9@byu.net>
22595
22596         fcntl-h: add O_TTY_INIT support
22597         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
22598         * tests/test-fcntl-h.c (o): Test it.
22599         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22600
22601         fcntl-h: rename from fcntl, in preparation for fcntl(2)
22602         * modules/fcntl: Move <fcntl.h> header replacement...
22603         * modules/fcntl-h: ...to new name, so as not to collide with
22604         like-named function.
22605         * tests/test-fcntl.c: Rename...
22606         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
22607         * modules/fcntl-tests: Rename...
22608         * modules/fcntl-h-tests: ...to this.  Update test file name.
22609         * modules/chdir-long (Depends-on): Update clients.
22610         * modules/chdir-safer (Depends-on): Likewise.
22611         * modules/fcntl-safer (Depends-on): Likewise.
22612         * modules/fts (Depends-on): Likewise.
22613         * modules/mkancesdirs (Depends-on): Likewise.
22614         * modules/mkdir-p (Depends-on): Likewise.
22615         * modules/open (Depends-on): Likewise.
22616         * modules/savewd (Depends-on): Likewise.
22617         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
22618         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22619
22620 2009-08-22  Bruno Haible  <bruno@clisp.org>
22621
22622         * modules/binary-io (License): Relicense under LGPL.
22623         * modules/pipe2 (License): Likewise.
22624
22625 2009-08-22  Bruno Haible  <bruno@clisp.org>
22626
22627         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
22628         return value.
22629         * lib/pipe-filter-gi.c (filter_init): Likewise.
22630         Reported by Eric Blake.
22631
22632 2009-08-22  Bruno Haible  <bruno@clisp.org>
22633
22634         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
22635         * modules/pipe (Depends-on): Add pipe2.
22636
22637 2009-08-22  Bruno Haible  <bruno@clisp.org>
22638
22639         Tests for module 'pipe2'.
22640         * modules/pipe2-tests: New file.
22641         * tests/test-pipe2.c: New file.
22642
22643         New module 'pipe2'.
22644         * lib/unistd.in.h (pipe2): New declaration.
22645         * lib/pipe2.c: New file.
22646         * m4/pipe2.m4: New file.
22647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
22648         HAVE_PIPE2.
22649         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
22650         * modules/pipe2: New file.
22651         * doc/glibc-functions/pipe2.texi: Mention the new module.
22652
22653 2009-08-22  Bruno Haible  <bruno@clisp.org>
22654
22655         Reference some new glibc functions.
22656         * doc/glibc-functions/accept4.texi: New file.
22657         * doc/glibc-functions/dup3.texi: New file.
22658         * doc/glibc-functions/mkostemp.texi: New file.
22659         * doc/glibc-functions/pipe2.texi: New file.
22660         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
22661         (Glibc sys/socket.h): Refer to accept4.
22662         (Glibc unistd.h): Refer to dup3, pipe2.
22663         Reported by Eric Blake.
22664
22665 2009-08-22  Jim Meyering  <meyering@redhat.com>
22666             Bruno Haible  <bruno@clisp.org>
22667
22668         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
22669         This makes it so packages using automake-1.11's silent-rules option
22670         can print e.g., a single "GEN    configmake.h" line, rather than
22671         the 30+ statements that perform the job.  If you want to see the
22672         actual commands, you can still run "make V=1".
22673         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
22674         so that make output is abbreviated when those variables are defined
22675         appropriately.
22676         * modules/argz: Likewise.
22677         * modules/arpa_inet: Likewise.
22678         * modules/byteswap: Likewise.
22679         * modules/configmake: Likewise.
22680         * modules/dirent: Likewise.
22681         * modules/errno: Likewise.
22682         * modules/fcntl: Likewise.
22683         * modules/float: Likewise.
22684         * modules/fnmatch: Likewise.
22685         * modules/getopt-posix: Likewise.
22686         * modules/glob: Likewise.
22687         * modules/iconv_open: Likewise.
22688         * modules/inttypes: Likewise.
22689         * modules/localcharset: Likewise.
22690         * modules/locale: Likewise.
22691         * modules/math: Likewise.
22692         * modules/netdb: Likewise.
22693         * modules/netinet_in: Likewise.
22694         * modules/poll: Likewise.
22695         * modules/posix_spawnp-tests: Likewise.
22696         * modules/sched: Likewise.
22697         * modules/search: Likewise.
22698         * modules/selinux-h: Likewise.
22699         * modules/signal: Likewise.
22700         * modules/spawn: Likewise.
22701         * modules/stdarg: Likewise.
22702         * modules/stdbool: Likewise.
22703         * modules/stddef: Likewise.
22704         * modules/stdint: Likewise.
22705         * modules/stdio: Likewise.
22706         * modules/stdlib: Likewise.
22707         * modules/string: Likewise.
22708         * modules/strings: Likewise.
22709         * modules/sys_file: Likewise.
22710         * modules/sys_ioctl: Likewise.
22711         * modules/sys_select: Likewise.
22712         * modules/sys_socket: Likewise.
22713         * modules/sys_stat: Likewise.
22714         * modules/sys_time: Likewise.
22715         * modules/sys_times: Likewise.
22716         * modules/sys_utsname: Likewise.
22717         * modules/sys_wait: Likewise.
22718         * modules/sysexits: Likewise.
22719         * modules/time: Likewise.
22720         * modules/unistd: Likewise.
22721         * modules/wchar: Likewise.
22722         * modules/wctype: Likewise.
22723
22724 2009-08-22  Jim Meyering  <meyering@redhat.com>
22725
22726         announce-gen: detect write failure
22727         * build-aux/announce-gen: Add Coda at end.
22728         Remove equivalent-but-more-verbose block at top.
22729
22730 2009-08-19  Akim Demaille  <demaille@gostai.com>
22731
22732         bootstrap: --help to stdout.
22733         * bootstrap (usage): Don't send --help to stderr.
22734         Use a here doc instead of a long string.
22735
22736 2009-08-21  Eric Blake  <ebb9@byu.net>
22737
22738         test-popen-safer: split from test-popen
22739         * tests/test-popen.c (main): Move...
22740         * tests/test-popen.h: ...into new file.
22741         * tests/test-popen-safer2.c: New file.
22742         * modules/popen-tests (Files): Add test-popen.h.
22743         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
22744         Suggested by Bruno Haible.
22745
22746         test-fcntl-safer: split from test-open
22747         * tests/test-open.c (main): Move...
22748         * tests/test-open.h: ...into new file.
22749         * tests/test-fcntl-safer.c: New file.
22750         * modules/open-tests (Files): Add test-open.h.
22751         * modules/fcntl-safer-tests: New file.
22752         Suggested by Bruno Haible.
22753
22754         test-fopen-safer: split from test-fopen
22755         * tests/test-fopen.c (main): Move...
22756         * tests/test-fopen.h: ...into new file.
22757         * tests/test-fopen-safer.c: New file.
22758         * modules/fopen-tests (Files): Add test-fopen.h.
22759         * modules/fopen-safer-tests: New file.
22760         Suggested by Bruno Haible.
22761
22762 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22763
22764         popen-safer: test O_CLOEXEC at run-time.
22765         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
22766
22767 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22768
22769         fcntl: move more flags to the header
22770         * lib/cloexec.c: Do not define FD_CLOEXEC here.
22771         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
22772         * lib/fcntl.in.h: Do both things here.
22773
22774 2009-08-21  Jim Meyering  <meyering@redhat.com>
22775
22776         consistently remove $@-t before redirecting to it
22777         * modules/argz: Remove $@-t and $@ before redirecting to the former.
22778         * modules/alloca-opt: Likewise.
22779         * modules/byteswap: Likewise.
22780         * modules/fnmatch: Likewise.
22781         * modules/getopt-posix: Likewise.
22782         * modules/glob: Likewise.
22783         * modules/poll: Likewise.
22784         * modules/posix_spawnp-tests: Likewise.
22785         * modules/sys_socket: Likewise.
22786         * modules/sysexits: Likewise.
22787
22788 2009-08-21  Eric Blake  <ebb9@byu.net>
22789
22790         popen: simplify access to original popen
22791         * lib/popen.c (rpl_popen): No need to worry about popen being a
22792         macro.
22793         Reported by Bruno Haible.
22794
22795 2009-08-20  Eric Blake  <ebb9@byu.net>
22796
22797         build: avoid some compiler warnings
22798         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
22799         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
22800         type.
22801         (new_exclude_segment, excluded_file_pattern_p)
22802         (excluded_file_name_p): Reduce scope.
22803         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
22804         old-style declaration.
22805
22806 2009-08-20  Simon Josefsson  <simon@josefsson.org>
22807
22808         * tests/test-exclude1.sh: Handle Windows EOL.
22809         * tests/test-exclude2.sh: Likewise.
22810         * tests/test-exclude3.sh: Likewise.
22811         * tests/test-exclude4.sh: Likewise.
22812         * tests/test-exclude5.sh: Likewise.
22813         * tests/test-exclude6.sh: Likewise.
22814         * tests/test-exclude7.sh: Likewise.
22815
22816 2009-08-19  Akim Demaille  <demaille@gostai.com>
22817
22818         bootstrap: find sha1sum when named gsha1sum.
22819         * bootstrap (find_tool): New.
22820         ($SHA1SUM): New.
22821         Use it.
22822
22823 2009-08-20  Jim Meyering  <meyering@redhat.com>
22824
22825         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
22826         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
22827         expression that converts "." in a file name to "\." in the resulting
22828         regexp.  Start with a dummy statement, so that prior shell variable
22829         definitions are expanded portably.  Reported by Simon Josefsson.
22830
22831 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
22832
22833         Fix polling for writeability of a screen buffer.
22834         * lib/poll.c: Distinguish input and screen buffers for the
22835         Win32 implementation.
22836         * lib/select.c: Likewise.
22837
22838 2009-08-19  Eric Blake  <ebb9@byu.net>
22839
22840         popen-safer: prevent popen from clobbering std descriptors
22841         * modules/popen-safer: New file.
22842         * lib/popen-safer.c: Likewise.
22843         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
22844         * lib/stdio--.h (popen): Provide override.
22845         * lib/stdio-safer.h (popen_safer): Provide declaration.
22846         * tests/test-popen.c (includes): Partially test this.
22847         * modules/popen-safer-tests: New file, for more tests.
22848         * tests/test-popen-safer.c: Likewise.
22849         * MODULES.html.sh (file stream based Input/Output): Mention it.
22850
22851         tests: test some of the *-safer modules
22852         * modules/fopen-safer (Depends-on): Add fopen.
22853         * modules/fcntl-safer (Depends-on): Add fcntl.
22854         * modules/stdlib-safer (Depends-on): Add stdlib.
22855         (configure.ac): Set indicator.
22856         * modules/unistd-safer (configure.ac): Likewise.
22857         * modules/tmpfile-safer (configure.ac): Likewise.
22858         (Depends-on): Add tmpfile.
22859         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
22860         active.
22861         * tests/test-fopen.c (includes): Test safer versions when they are
22862         in use.
22863         * tests/test-open.c (includes): Likewise.
22864
22865         popen: fix cygwin 1.5 bug when stdin closed
22866         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
22867         * modules/popen: New file.
22868         * modules/popen-tests: Likewise.
22869         * tests/test-popen.c: Likewise.
22870         * m4/popen.m4: Likewise.
22871         * lib/popen.c: Likewise.
22872         * lib/stdio.in.h (popen): New declaration.
22873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
22874         * modules/stdio (Makefile.am): Likewise.
22875         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
22876
22877 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
22878
22879         maint.mk: give full control over update-copyright exclusions
22880         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
22881         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
22882         (update-copyright): Don't force inclusion of top-level
22883         ChangeLog.  Don't force exclusion of all COPYING files, but make
22884         them the default exclusion instead.
22885
22886 2009-08-16  Bruno Haible  <bruno@clisp.org>
22887
22888         Fix test failures on Solaris 10.
22889         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
22890         tests when Solaris iconv() is used.
22891         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22892         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22893         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22894         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22895         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22896
22897 2009-08-16  Bruno Haible  <bruno@clisp.org>
22898
22899         Fix test failures on Solaris 10.
22900         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
22901         'tr' program and pass it as first argument.
22902         * tests/test-pipe-filter-gi1.sh: Likewise.
22903         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
22904         program as first argument.
22905         * tests/test-pipe-filter-gi1.c (main): Likewise.
22906
22907 2009-08-16  Eric Blake  <ebb9@byu.net>
22908
22909         fpurge: fix previous commits
22910         * modules/fpurge (Makefile.am): Make replacement conditional,
22911         partially reverting 2007-04-29 change; missed in previous
22912         attempt.
22913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
22914         is missing.
22915
22916 2009-08-16  Bruno Haible  <bruno@clisp.org>
22917
22918         Clarify fpurge's effect on the file position.
22919         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
22920         * tests/test-fpurge.c (main): Make a second pass for checking the file
22921         position.
22922
22923 2009-08-16  Bruno Haible  <bruno@clisp.org>
22924
22925         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
22926         declaration of fpurge is missing.
22927         * tests/test-fpurge.c (main): Check that the file has not more contents
22928         than expected. Close the file before removing it.
22929
22930 2009-08-15  Eric Blake  <ebb9@byu.net>
22931
22932         fpurge: don't wrap working cygwin implementation
22933         * lib/fpurge.c (fpurge): Fix comment typo.
22934         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
22935         1.7 to avoid replacement.
22936         * tests/test-fpurge.c (main): Enhance test.
22937
22938 2009-08-15  Eric Blake  <ebb9@byu.net>
22939         and Jim Meyering  <meyering@redhat.com>
22940
22941         test-update-copyright: skip if perl is insufficient
22942         * tests/test-update-copyright.sh: Failure to run maintainer tool
22943         should not cause testsuite failure on cygwin 1.5.
22944
22945 2009-08-14  Eric Blake  <ebb9@byu.net>
22946
22947         doc: mention more functions added in cygwin 1.7.0
22948         * doc/posix-headers/limits.texi (limits.h): Update for recent
22949         cygwin additions.
22950         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
22951         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
22952         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
22953         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
22954         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
22955
22956 2009-08-14  Eric Blake  <ebb9@byu.net>
22957
22958         maint.mk: simplify update-copyright rule
22959         * top/maint.mk (update-copyright-local): Delete, and document how
22960         to do it in cfg.mk instead.
22961         (update-copyright-exclude-regexp): Delete, and document how to do
22962         it in .x-update-copyright instead.
22963         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
22964         exclude ChangeLog.
22965
22966 2009-08-14  Bruno Haible  <bruno@clisp.org>
22967
22968         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
22969
22970 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22971
22972         maint.mk: support update-copyright-env
22973         * top/maint.mk (update-copyright-env): Define place-holder.
22974         (update-copyright): Expand $(update-copyright-env) before
22975         invoking update-copyright.
22976
22977 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22978
22979         update-copyright: implement forced reformatting
22980         * build-aux/update-copyright: Implement and document
22981         UPDATE_COPYRIGHT_FORCE.
22982         * tests/test-update-copyright.sh: Test it.
22983
22984 2009-08-14  Eric Blake  <ebb9@byu.net>
22985         and Bruno Haible  <bruno@clisp.org>
22986
22987         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
22988         * tests/test-locale.c: Revert previous patch related to NULL.
22989         * tests/test-stdio.c: Likewise.
22990         * tests/test-stdlib.c: Likewise.
22991         * tests/test-string.c: Likewise.
22992         * tests/test-unistd.c: Likewise.
22993         * modules/time-tests (Depends-on): Add verify.
22994         * modules/wchar-tests (Depends-on): Likewise.
22995         * tests/test-time.c: Test for NULL compliance.
22996         * tests/test-wchar.c: Likewise.
22997         * modules/locale (Depends-on): Add stddef.
22998         * modules/stdio (Depends-on): Likewise.
22999         * modules/stdlib (Depends-on): Likewise.
23000         * modules/string (Depends-on): Likewise.
23001         * modules/time (Depends-on): Likewise.
23002         * modules/unistd (Depends-on): Likewise.
23003         * modules/wchar (Depends-on): Likewise.
23004         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
23005         * lib/stdlib.in.h (includes): Likewise.
23006         * lib/string.in.h (includes): Likewise.
23007         * lib/time.in.h (includes): Likewise.
23008         * lib/unistd.in.h (includes): Likewise.
23009         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
23010         replaced.
23011         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23012         * m4/stddef_h.m4: New file.
23013         * modules/stddef: Likewise.
23014         * lib/stddef.in.h: Likewise.
23015         * modules/stddef-tests: Likewise.
23016         * tests/test-stddef.c: Likewise.
23017         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
23018         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
23019         * doc/posix-headers/locale.texi (locale.h): Likewise.
23020         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
23021         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23022         * doc/posix-headers/string.texi (string.h): Likewise.
23023         * doc/posix-headers/time.texi (time.h): Likewise.
23024         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
23025         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
23026
23027 2009-08-14  Eric Blake  <ebb9@byu.net>
23028
23029         doc: improve git diff of texinfo files
23030         * .gitattributes: Add rule for *.texi files, with hint on how to
23031         use it.
23032         Copied from m4, and based on a report by Bruno Haible.
23033
23034 2009-08-14  Bruno Haible  <bruno@clisp.org>
23035
23036         Disable multithread support by default on Cygwin 1.5.x for real.
23037         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
23038
23039 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23040
23041         update-copyright: much ado about intervals
23042         * build-aux/update-copyright: Implement and document
23043         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
23044         of copyright year intervals.
23045         Also, document UPDATE_COPYRIGHT_YEAR.
23046         * tests/test-update-copyright.sh: Test it.
23047
23048         update-copyright: convert 2-digit to 4-digit years
23049         * build-aux/update-copyright: Implement and document.
23050         * tests/test-update-copyright.sh: Update.
23051
23052 2009-08-14  Jim Meyering  <meyering@redhat.com>
23053
23054         test-exclude: avoid coreutils "make check" failure
23055         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
23056         just as in test-argmatch.c.
23057
23058 2009-08-13  Eric Blake  <ebb9@byu.net>
23059
23060         test-dup2: fix bad assumption
23061         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
23062         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
23063
23064         test-version-etc: fix CRLF portability issue
23065         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
23066         recognize \r.
23067         * tests/test-argp-version-etc-1.sh: Likewise.
23068
23069         getopt: update client modules
23070         * modules/argp (Depends-on): Use getopt-gnu.
23071         * modules/git-merge-changelog (Depends-on): Likewise.
23072         * modules/long-options (Depends-on): Likewise.
23073         * modules/xstrtol (Depends-on): Likewise.
23074
23075 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23076
23077         * tests/test-version-etc.sh: Don't fail on different
23078         project/version.  Don't fail on CRLF differences.  Rewrite to use
23079         multiple -e instead of multiple sed forks, suggested by Eric Blake
23080         <ebb9@byu.net>.
23081         * tests/test-argp-version-etc-1.sh: Likewise.
23082
23083 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23084
23085         * tests/test-version-etc.sh: Don't fail on different
23086         project/version.
23087
23088 2009-08-12  Bruno Haible  <bruno@clisp.org>
23089
23090         Tests for modules 'getopt-posix', 'getopt-gnu'.
23091         * modules/getopt-posix-tests: New file.
23092         * tests/test-getopt.c: New file.
23093         * tests/test-getopt.h: New file.
23094         * tests/test-getopt_long.h: New file.
23095
23096         New modules 'getopt-posix', 'getopt-gnu'.
23097         * modules/getopt-gnu: New file, renamed from modules/getopt.
23098         * modules/getopt-posix: New file.
23099         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
23100         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
23101         (gl_GETOPT): Remove macro.
23102         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
23103         Disable the test against BSD systems that declare optreset. Test
23104         against mingw bug. Test against lack of support of optional arguments
23105         on many platforms.
23106         * doc/glibc-headers/getopt.texi: Update module name and list of
23107         relevant platforms.
23108         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
23109         'getopt-gnu' and more portability problems.
23110         * NEWS: Mention the changes.
23111
23112 2009-08-12  Bruno Haible  <bruno@clisp.org>
23113
23114         Ensure that optarg etc. get declared by <unistd.h>.
23115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
23116         AC_USE_SYSTEM_EXTENSIONS.
23117         * modules/getopt (Depends-on): Add 'extensions'.
23118
23119 2009-08-12  Bruno Haible  <bruno@clisp.org>
23120
23121         Avoid test link errors.
23122         * modules/pipe-filter-ii-tests (Makefile.am): Define
23123         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
23124         * modules/pipe-filter-gi-tests (Makefile.am): Define
23125         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
23126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23127
23128 2009-08-12  Bruno Haible  <bruno@clisp.org>
23129
23130         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
23131         gl_GETOPT_SUBSTITUTE before.
23132         (gl_GETOPT): Use it.
23133         * m4/argp.m4 (gl_ARGP): Update.
23134         Reported by Sergey Poznyakoff.
23135
23136         * m4/getopt.m4: Reorder macros.
23137         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
23138         (gl_GETOPT_SUBSTITUTE): Remove macro.
23139
23140 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23141
23142         Minor improvement in gitlog-to-changelog
23143
23144         * build-aux/gitlog-to-changelog: New option `--format' makes
23145         output format string configurable.
23146
23147 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23148
23149         Optimize exclude: use hash tables for non-wildcard patterns.
23150
23151         * lib/exclude.c: Include hash.h and mbuiter.h
23152         (struct exclude_pattern, exclude_segment): New data types.
23153         (struct exclude): Rewrite.
23154         (fnmatch_pattern_has_wildcards): New function.
23155         (new_exclude_segment, free_exclude_segment): New functions.
23156         (excluded_file_pattern_p, excluded_file_name_p): New functions.
23157         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
23158         * lib/exclude.h (is_fnmatch_pattern): New prototype.
23159         * modules/exclude: Depend on hash and mbuiter.
23160
23161         * modules/exclude-tests: New file.
23162         * tests/test-exclude.c: New file.
23163         * tests/test-exclude1.sh: New file.
23164         * tests/test-exclude2.sh: New file.
23165         * tests/test-exclude3.sh: New file.
23166         * tests/test-exclude4.sh: New file.
23167         * tests/test-exclude5.sh: New file.
23168         * tests/test-exclude6.sh: New file.
23169         * tests/test-exclude7.sh: New file.
23170
23171 2009-08-12  Bruno Haible  <bruno@clisp.org>
23172
23173         Ensure that getopt() gets declared by <unistd.h>.
23174         * lib/unistd.in.h: Conditionally include getopt.h.
23175         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
23176         Set GNULIB_UNISTD_H_GETOPT.
23177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23178         GNULIB_UNISTD_H_GETOPT.
23179         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
23180
23181 2009-08-12  Bruno Haible  <bruno@clisp.org>
23182
23183         Clarify logic.
23184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
23185         gl_replace_getopt instead of GETOPT_H.
23186
23187 2009-08-12  Bruno Haible  <bruno@clisp.org>
23188
23189         * m4/getopt.m4: Add comments.
23190
23191 2009-08-12  Bruno Haible  <bruno@clisp.org>
23192
23193         Disable multithread support by default on Cygwin 1.5.x.
23194         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
23195         set gl_use_threads=no if not specified otherwise.
23196
23197 2009-08-11  Bruno Haible  <bruno@clisp.org>
23198
23199         Avoid compilation error on NetBSD 5.0.
23200         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
23201         * tests/test-stdio.c: Likewise.
23202         * tests/test-stdlib.c: Likewise.
23203         * tests/test-string.c: Likewise.
23204         * tests/test-unistd.c: Likewise.
23205         Reported by Greg Troxel <gdt@ir.bbn.com>
23206         at <https://savannah.gnu.org/support/?106973>.
23207
23208 2009-08-11  Bruno Haible  <bruno@clisp.org>
23209
23210         * modules/dup2-tests (Depends-on): Remove close.
23211
23212         Undo 2009-07-19 commit.
23213         * modules/acl-tests (Depends-on): Remove close.
23214         * modules/binary-io-tests (Depends-on): Likewise.
23215         * modules/closein-tests (Depends-on): Likewise.
23216         * modules/flock-tests (Depends-on): Likewise.
23217         * modules/fsync-tests (Depends-on): Likewise.
23218         * modules/lseek-tests (Depends-on): Likewise.
23219         * modules/pipe-tests (Depends-on): Likewise.
23220         * modules/posix_spawn-tests (Depends-on): Likewise.
23221         * modules/posix_spawnp-tests (Depends-on): Likewise.
23222         * modules/stat-time-tests (Depends-on): Likewise.
23223         * modules/yesno-tests (Depends-on): Likewise.
23224
23225 2009-08-10  Bruno Haible  <bruno@clisp.org>
23226
23227         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
23228
23229 2009-08-10  Bruno Haible  <bruno@clisp.org>
23230
23231         Fix a gcc warning.
23232         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
23233
23234 2009-08-10  Bruno Haible  <bruno@clisp.org>
23235
23236         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
23237         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
23238         not only the first time.
23239         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
23240         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
23241         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
23242         is 1, not only the the first time.
23243
23244 2009-08-10  Bruno Haible  <bruno@clisp.org>
23245
23246         Make it possible to use module 'gethostname' without module 'close'.
23247         * lib/unistd.in.h (close): Evoke a link error only if
23248         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23250         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23251         * modules/unistd (Makefile.am): Substitute
23252         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23253         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
23254         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23255         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23256         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23257         * modules/sys_ioctl (Makefile.am): Substitute
23258         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23259         * modules/socket (configure.ac): On native Windows, set
23260         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
23261         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23262         Reported by Sam Steingold <sds@gnu.org>.
23263
23264 2009-08-10  Bruno Haible  <bruno@clisp.org>
23265
23266         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
23267         * modules/ioctl (configure.ac): Likewise.
23268
23269 2009-08-10  Bruno Haible  <bruno@clisp.org>
23270
23271         Avoid collision between gnulib wrapper and libintl wrapper.
23272         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
23273         already defined in intl/printf.c.
23274         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
23275         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
23276
23277 2009-08-09  Bruno Haible  <bruno@clisp.org>
23278
23279         Make <sys/select.h> really self-contained, also on Solaris 10.
23280         * lib/sys_select.in.h: Include <string.h>.
23281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
23282         Solaris 10 problem.
23283         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
23284         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
23285         Reported by Jim Meyering.
23286
23287 2009-08-09  Bruno Haible  <bruno@clisp.org>
23288
23289         Avoid warnings from 'aclocal' that are due to a use of macro name
23290         AM_XGETTEXT_OPTION that is not defined in automake.
23291         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
23292         automake.
23293         * modules/error (configure.ac): Likewise.
23294         * modules/propername (configure.ac): Likewise.
23295         * modules/vasprintf (configure.ac): Likewise.
23296         * modules/verror (configure.ac): Likewise.
23297         * modules/xprintf (configure.ac): Likewise.
23298         * modules/xvasprintf (configure.ac): Likewise.
23299
23300 2009-08-08  Bruno Haible  <bruno@clisp.org>
23301
23302         Avoid compilation error in C++ mode.
23303         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
23304         Reported by Sam Steingold <sds@gnu.org>.
23305
23306 2009-08-08  Bruno Haible  <bruno@clisp.org>
23307
23308         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
23309         for the various Unix platforms.
23310         * doc/posix-headers/limits.texi: Update platforms list regarding
23311         HOST_NAME_MAX.
23312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23313
23314 2009-08-07  Jim Meyering  <meyering@redhat.com>
23315
23316         selinux-at: fix typo in a comment
23317         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
23318         Spotted by Paolo Bonzini.
23319
23320         selinux-at: remove redundant m4 code, add documentation
23321         * modules/selinux-at (configure.ac): Remove redundant code.
23322         LIB_SELINUX is already set via the dependent module, selinux-h.
23323         (Include): Add quotes around selinux-at.h.
23324         * lib/selinux-at.h: Add documentation.
23325         Reported by Bruno Haible in
23326         http://marc.info/?l=gnulib-bug&m=124958988300749
23327
23328 2009-08-07  Bruno Haible  <bruno@clisp.org>
23329
23330         Avoid link error on MacOS X 10.3 and 10.4.
23331         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
23332         on non-ELF systems.
23333         * lib/argp-pv.c (argp_program_version): Likewise.
23334         Reported by Simon Josefsson.
23335
23336 2009-08-07  Simon Josefsson  <simon@josefsson.org>
23337
23338         * tests/test-version-etc.sh: Use $EXEEXT.
23339
23340 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
23341
23342         update-copyright: update documentation to point to maint.mk
23343         * build-aux/update-copyright: Here.
23344
23345 2009-08-06  Jim Meyering  <meyering@redhat.com>
23346
23347         maint.mk: support update-copyright-local
23348         * top/maint.mk (update-copyright-local): Define place-holder.
23349         (update-copyright): Depend on $(update-copyright-local).
23350
23351 2009-08-06  Jim Meyering  <meyering@redhat.com>
23352
23353         selinux-at: new module
23354         Initially written for coreutils, this module will soon be
23355         used by findutils, too.
23356         * MODULES.html.sh [Misc]: Add selinux-at.
23357         * lib/selinux-at.h: New file, from coreutils.
23358         * lib/selinux-at.c: Likewise.
23359         * modules/selinux-at: Likewise.
23360         (License): Change from LGPL to GPL, since it depends
23361         on the GPL'd openat module.
23362
23363         doc: update README
23364         * README: Remove references to cogito.
23365         Remove cvs-repo-updating instructions from 2007.
23366         Don't imply that CVS is better if you have limited disk space.
23367
23368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23369
23370         update-copyright: support C-style comments
23371         * build-aux/update-copyright: Implement and document.
23372         * tests/test-update-copyright.sh: Test.
23373
23374 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23375
23376         update-copyright: support omitted "(C)"
23377         * build-aux/update-copyright: Implement and document.  Also,
23378         allow variable whitespace before "(C)".
23379         * tests/test-update-copyright.sh: Test.
23380
23381 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23382
23383         update-copyright: don't trip on non-FSF copyright statements
23384         * build-aux/update-copyright: Fix so that the first correctly
23385         formatted FSF copyright statement is recognized no matter what
23386         appears before it.  Update documentation.
23387         * tests/test-update-copyright.sh: Test that.
23388
23389 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23390
23391         update-copyright: clean up code a little
23392         * build-aux/update-copyright: Append "_re" to the name of any
23393         variable holding a regular expression.
23394         Replace "old" and "new" with "stmt" in variable names.
23395         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
23396         handled correctly.
23397         Format code more consistently.
23398
23399 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23400
23401         update-copyright-tests: improve portability
23402         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
23403         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
23404
23405 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23406
23407         update-copyright: support @copyright{} and &copy;
23408         * build-aux/update-copyright: Implement and document.
23409         * tests/test-update-copyright.sh: Test.
23410
23411 2009-08-04  Jim Meyering  <meyering@redhat.com>
23412
23413         update-copyright-tests: correctly test EOL=\r\n handling
23414         * tests/test-update-copyright.sh: Put \r at the end of some lines
23415         for the dos-eol tests.  Based on a patch by Joel E. Denny.
23416
23417         maint.mk: make update-copyright exclusion list more configurable
23418         * top/maint.mk (update-copyright): Default to excluding COPYING,
23419         but allow an override, in case someone does want to update that file.
23420
23421         maint.mk: don't update copyright date in COPYING
23422         * top/maint.mk (update-copyright): Exclude COPYING.
23423
23424         maint.mk: add a copyright-updating rule
23425         * top/maint.mk (update-copyright): New rule.
23426         Derived from coreutils/Makefile.am.
23427
23428         update-copyright: rename some variables
23429         * build-aux/update-copyright: Rename a few variables for clarity.
23430         Tweak syntax.  List Joel E. Denny as coauthor.
23431
23432 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23433
23434         update-copyright: fix bug for 2-digit last year and add tests
23435         * build-aux/update-copyright: Fix bug.
23436         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
23437         specified.
23438         * modules/update-copyright-tests: New
23439         * tests/test-update-copyright.sh: New.
23440
23441 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23442
23443         update-copyright: handle leading tabs in line prefix
23444         * build-aux/update-copyright: Count leading tabs as 8 spaces
23445         when computing margin.  This helps with the formatting of
23446         ChangeLogs, for example.
23447         Fix documentation a little.
23448
23449 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23450
23451         update-copyright: support EOL=\r\n
23452         * build-aux/update-copyright: Implement that.
23453
23454 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23455
23456         update-copyright: automatically format copyright statements
23457         * build-aux/update-copyright: Implement that.
23458         Also, be a little more predictable and safer by always failing
23459         when the full copyright format is not perfectly recognized as an
23460         unbroken whole.  Discussed at
23461         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
23462         Rewrite documentation.
23463
23464 2009-08-03  Bruno Haible  <bruno@clisp.org>
23465
23466         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
23467
23468 2009-08-02  Bruno Haible  <bruno@clisp.org>
23469
23470         Tests for module 'uname'.
23471         * modules/uname-tests: New file.
23472         * tests/test-uname.c: New file.
23473
23474         New module 'uname'.
23475         * lib/uname.c: New file.
23476         * m4/uname.m4: New file.
23477         * modules/uname: New file.
23478         * doc/posix-functions/uname.texi: Mention the new module.
23479
23480 2009-08-02  Bruno Haible  <bruno@clisp.org>
23481
23482         Tests for module 'sys_utsname'.
23483         * modules/sys_utsname-tests: New file.
23484         * tests/test-sys_utsname.c: New file.
23485
23486         New module 'sys_utsname'.
23487         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
23488         * m4/sys_utsname_h.m4: New file.
23489         * modules/sys_utsname: New file.
23490         * doc/posix-headers/sys_utsname.texi: Mention the new module.
23491
23492 2009-08-02  Bruno Haible  <bruno@clisp.org>
23493
23494         Implicitly initialize the sockets library.
23495         * lib/gethostname.c: Include sockets.h.
23496         (rpl_gethostname): Invoke gl_sockets_startup.
23497         * lib/socket.c: Include sockets.h.
23498         (rpl_socket): Invoke gl_sockets_startup.
23499         * modules/gethostname (Depends-on): Add sockets.
23500         * modules/socket (Depends-on): Likewise.
23501         * tests/test-poll.c: Don't include sockets.h.
23502         (main): Don't invoke gl_sockets_startup.
23503         * tests/test-select.c: Don't include sockets.h.
23504         (main): Don't invoke gl_sockets_startup.
23505
23506 2009-08-02  Bruno Haible  <bruno@clisp.org>
23507
23508         Allow multiple calls to gl_sockets_startup.
23509         * lib/sockets.c (initialized_sockets_version): New variable.
23510         (gl_sockets_startup): Do nothing if already called for this or a higher
23511         version.
23512         (gl_sockets_cleanup): Reset initialized_sockets_version.
23513
23514 2009-08-03  Simon Josefsson  <simon@josefsson.org>
23515
23516         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
23517         different project/version.
23518
23519 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
23520             Bruno Haible  <bruno@clisp.org>
23521
23522         Tests for module 'pipe-filter-gi'.
23523         * modules/pipe-filter-gi-tests: New file.
23524         * tests/test-pipe-filter-gi1.sh: New file.
23525         * tests/test-pipe-filter-gi1.c: New file.
23526         * tests/test-pipe-filter-gi2.sh: New file.
23527         * tests/test-pipe-filter-gi2-main.c: New file.
23528         * tests/test-pipe-filter-gi2-child.c: New file.
23529
23530         New module 'pipe-filter-gi'.
23531         * lib/pipe-filter-gi.c: New file.
23532         * modules/pipe-filter-gi: New file.
23533
23534 2009-08-02  Bruno Haible  <bruno@clisp.org>
23535             Paolo Bonzini  <bonzini@gnu.org>
23536
23537         Tests for module 'pipe-filter-ii'.
23538         * modules/pipe-filter-ii-tests: New file.
23539         * tests/test-pipe-filter-ii1.sh: New file.
23540         * tests/test-pipe-filter-ii1.c: New file.
23541         * tests/test-pipe-filter-ii2.sh: New file.
23542         * tests/test-pipe-filter-ii2-main.c: New file.
23543         * tests/test-pipe-filter-ii2-child.c: New file.
23544
23545         New module 'pipe-filter-ii'.
23546         * lib/pipe-filter.h: New file.
23547         * lib/pipe-filter-ii.c: New file.
23548         * lib/pipe-filter-aux.h: New file.
23549         * modules/pipe-filter-ii: New file.
23550
23551 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23552
23553         * lib/gc-libgcrypt.c: Change copyright to FSF.
23554         * lib/gc-gnulib.c: Likewise.
23555
23556 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
23557
23558         * lib/gethostname.c: Include limits.h.
23559
23560 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23561             Bruno Haible  <bruno@clisp.org>
23562
23563         Ensure HOST_NAME_MAX as part of the gethostname module.
23564         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
23565         define also HOST_NAME_MAX.
23566         * tests/test-gethostname.c: Include <limits.h>.
23567         (main): Check also HOST_NAME_MAX.
23568         * doc/posix-headers/limits.texi: Document the mingw problem.
23569
23570 2009-08-02  Bruno Haible  <bruno@clisp.org>
23571
23572         * lib/gethostname.c (gethostname): Fix handling of large len argument.
23573         Add comments.
23574
23575 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23576
23577         * lib/gethostname.c: Add Windows wrapper.
23578         * m4/gethostname.m4: Look for gethostname in -lws2_32.
23579         * modules/gethostname: Depend on sys_socket & errno, for also
23580         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
23581         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
23582
23583 2009-07-31  Jim Meyering  <meyering@redhat.com>
23584
23585         getloadavg: fix symbol name in comment
23586         * lib/getloadavg.c: Correct a typo I introduced when adding
23587         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
23588         Matt Kraai spotted the problem.
23589
23590 2009-07-29  Matt Kraai  <mkraai@beckman.com>
23591
23592         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
23593         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
23594         code also if ! defined N_NAME_POINTER.
23595         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
23596         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
23597         but the n_name member is a 12-byte array.
23598
23599 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
23600
23601         update-copyright: generalize comment handling
23602         * build-aux/update-copyright: Handle copyright statements
23603         within more comment styles.
23604         Document usage.
23605         Report any file with an external copyright holder or parse failure.
23606
23607 2009-07-29  Jim Meyering  <meyering@redhat.com>
23608
23609         mktime: correct setting of REPLACE_MKTIME
23610         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
23611
23612         update-copyright: new module
23613         * modules/update-copyright: New file.
23614         * build-aux/update-copyright: New file.
23615         * MODULES.html.sh (maint+release support): Add update-copyright.
23616
23617 2009-07-27  Bruno Haible  <bruno@clisp.org>
23618
23619         Fix compilation error when <ctime> is used and mktime is replaced.
23620         * lib/time.in.h (mktime): New declaration.
23621         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
23622         REPLACE_MKTIME instead of defining mktime in config.h.
23623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
23624         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
23625         Reported by Ross McFarland <rwmcfa1@neces.com>.
23626
23627 2009-07-27  Bruno Haible  <bruno@clisp.org>
23628
23629         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
23630         Reported by Matt Kraai <mkraai@beckman.com>.
23631
23632 2009-07-25  Jim Meyering  <meyering@redhat.com>
23633
23634         maint.mk: avoid warnings about missing files
23635         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
23636         diagnostic when .prev-version does not exist.
23637         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
23638         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
23639         nonexistent cfg.mk.
23640         Suggestions from Simon Josefsson.
23641
23642 2009-07-25  Bruno Haible  <bruno@clisp.org>
23643
23644         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
23645         defined as macros. Needed on QNX 6.4.1.
23646         Reported by Matt Kraai <mkraai@beckman.com>.
23647
23648 2009-07-23  Jim Meyering  <meyering@redhat.com>
23649
23650         maint.mk: invoke "make dist" with a working value of XZ_OPT
23651         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
23652
23653 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
23654
23655         Make fseeko.c compile on QNX.
23656         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
23657
23658 2009-07-22  Peter Simons  <simons@cryp.to>
23659
23660         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
23661         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
23662         * lib/md4.h: Likewise.
23663         * lib/md5.h: Likewise.
23664         * lib/sha1.h: Likewise.
23665         * lib/sha256.h: Likewise.
23666         * lib/sha512.h: Likewise.
23667
23668         tests-sha1: don't assign literal string to 'char *' variable
23669         * tests/test-sha1.c (main): Declare locals with "const" to match
23670         attributes of the right hand side.
23671
23672 2009-07-21  Eric Blake  <ebb9@byu.net>
23673
23674         dup2: fix more mingw problems
23675         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
23676         fd to itself.
23677         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23678         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
23679         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
23680         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
23681         care of mingw bugs.
23682
23683 2009-07-21  Jim Meyering  <meyering@redhat.com>
23684
23685         vc-list-files: avoid failure when /bin/sh is dash
23686         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
23687         On some Debian based systems, /bin/sh is a symlink to dash, and running
23688         this command would omit the "/" following each 'tests' prefix:
23689           dash -x build-aux/vc-list-files -C . tests
23690         That is because bash and dash work differently:
23691           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
23692           bash ok
23693           dash odd
23694
23695 2009-07-21  Eric Blake  <ebb9@byu.net>
23696
23697         dup2-tests: test previous patch
23698         * modules/dup2-tests: New file.
23699         * tests/test-dup2.c: Likewise.
23700         * tests/test-open.c (main): Avoid unspecified behavior.
23701         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
23702         test.
23703
23704         dup2: work around mingw and cygwin 1.5 bug
23705         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
23706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23707         * modules/unistd (Makefile.am): Substitute it.
23708         * lib/unistd.in.h (dup2): Declare the replacement.
23709         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
23710         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
23711         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
23712         * modules/execute (Depends-on): Add dup2.
23713         * modules/fseterr (Depends-on): Likewise.
23714         * modules/pipe (Depends-on): Likewise.
23715         * modules/posix_spawn-internal (Depends-on): Likewise.
23716
23717 2009-07-21  Bruno Haible  <bruno@clisp.org>
23718
23719         * modules/.gitattributes: New file.
23720
23721 2009-07-20  Bruno Haible  <bruno@clisp.org>
23722
23723         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
23724         (main): Use it.
23725
23726 2009-07-20  Eric Blake  <ebb9@byu.net>
23727
23728         test-pipe: make a bit more robust.
23729         * tests/test-pipe.c (myerr): Allow error messages regardless of
23730         what we do to stderr.
23731         (test_pipe): Rearrange to avoid deadlock.
23732         (child_main): Try a larger read, to ensure we avoided deadlock.
23733         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
23734         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
23735         if misused.
23736
23737 2009-07-19  Jim Meyering  <meyering@redhat.com>
23738
23739         fts: avoid false-positive cycle-detection
23740         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
23741         for each new command line argument.
23742
23743 2009-07-19  Bruno Haible  <bruno@clisp.org>
23744
23745         Fix build error on mingw with the modules sys_select and unistd.
23746         * modules/acl-tests (Depends-on): Add close.
23747         * modules/binary-io-tests (Depends-on): Likewise.
23748         * modules/closein-tests (Depends-on): Likewise.
23749         * modules/flock-tests (Depends-on): Likewise.
23750         * modules/fsync-tests (Depends-on): Likewise.
23751         * modules/lseek-tests (Depends-on): Likewise.
23752         * modules/pipe-tests (Depends-on): Likewise.
23753         * modules/posix_spawn-tests (Depends-on): Likewise.
23754         * modules/posix_spawnp-tests (Depends-on): Likewise.
23755         * modules/stat-time-tests (Depends-on): Likewise.
23756         * modules/yesno-tests (Depends-on): Likewise.
23757
23758 2009-07-19  Bruno Haible  <bruno@clisp.org>
23759
23760         Unify conditionals.
23761         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
23762         macros, not at the compiler macros.
23763         * lib/pipe.c: Likewise.
23764         * lib/execute.c: Likewise.
23765         * lib/spawni.c: Likewise.
23766
23767 2009-07-19  Bruno Haible  <bruno@clisp.org>
23768
23769         Fix handling of closed stdin/stdout/stderr on mingw.
23770         * lib/w32spawn.h: Include unistd.h.
23771         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
23772         file descriptor with O_NOINHERIT flag.
23773         (fd_safer_noinherit): New function, based on fd-safer.c.
23774         (dup_safer_noinherit): New function, based on dup-safer.c.
23775         (undup_safer_noinherit): New function.
23776         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
23777         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
23778         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
23779         instead of fd_safer.
23780         * tests/test-pipe.c: Include <windows.h>.
23781         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
23782
23783         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
23784         from main.
23785         (test_pipe): Pass an extra argument for disambiguation.
23786         (main): Invoke parent_main or child_main.
23787
23788         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
23789         consistently.
23790
23791 2009-07-18  Eric Blake  <ebb9@byu.net>
23792
23793         test-pipe: fix mingw build
23794         * tests/test-pipe.c (main): Avoid fcntl on mingw.
23795
23796 2009-07-18  Bruno Haible  <bruno@clisp.org>
23797
23798         * modules/pipe-tests (Makefile.am): Fix typo.
23799
23800 2009-07-18  Eric Blake  <ebb9@byu.net>
23801
23802         error: fix mingw build
23803         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
23804         Reported by Bruno Haible.
23805
23806         error: avoid undefined use of stdout
23807         * lib/error.c (error, error_at_line): Check that fd 1 is open
23808         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
23809         is handling faults and the close_stdout module wants to report the
23810         detection of closed stdout as an error.
23811
23812 2009-07-17  Eric Blake  <ebb9@byu.net>
23813
23814         pipe: be robust in face of closed fds
23815         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
23816         should cause child to misbehave.
23817         * modules/pipe-tests: New module.
23818         * tests/test-pipe.c: New file.
23819         * tests/test-pipe.sh: New file.
23820         Reported by Akim Demaille.
23821
23822 2009-07-14  Bruno Haible  <bruno@clisp.org>
23823
23824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
23825         Reported by anonymous kc.
23826
23827 2009-07-07  Jim Meyering  <meyering@redhat.com>
23828
23829         maint.mk: don't look for translatable strings in *.m4 or *.mk
23830         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
23831         when searching for translatable strings.
23832
23833 2009-07-05  Jim Meyering  <meyering@redhat.com>
23834
23835         remove superfluous parentheses in STREQ definition
23836         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
23837         * lib/getugroups.c (STREQ): Likewise.
23838         * lib/fnmatch.c (STREQ): Likewise.
23839         Spotted by Bruno Haible.
23840
23841 2009-07-04  Jim Meyering  <meyering@redhat.com>
23842
23843         argv-iter: new module
23844         * MODULES.html.sh: Add argv-iter.
23845         * lib/argv-iter.c, lib/argv-iter.h: New files.
23846         * modules/argv-iter: New file.
23847         * modules/argv-iter-tests: New file.
23848         * tests/test-argv-iter.c: Test it.
23849
23850 2009-07-04  Bruno Haible  <bruno@clisp.org>
23851
23852         Fix assertion.
23853         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
23854         contains more exact copies of a given entry than file2, leave the extra
23855         copies unpaired rather than aborting.
23856         Reported by Eric Blake.
23857
23858 2009-07-02  Bruno Haible  <bruno@clisp.org>
23859
23860         Speedup git-merge-changelog for git cherry-pick.
23861         * lib/git-merge-changelog.c (struct entries_mapping): New type.
23862         (entries_mapping_get): New function, extracted from compute_mapping.
23863         (entries_mapping_reverse_get): New function.
23864         (compute_mapping): Add a 'full' argument. Return the result in a
23865         'struct entries_mapping'.
23866         (main): Update. Access the mappings through entries_mapping_get.
23867         Reported by Eric Blake.
23868
23869 2009-07-02  Bruno Haible  <bruno@clisp.org>
23870
23871         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
23872         best_i.
23873
23874 2009-07-02  Bruno Haible  <bruno@clisp.org>
23875
23876         Speed up approximate search for matching ChangeLog entries.
23877         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
23878         argument. Call fstrcmp_bounded instead of fstrcmp.
23879         (compute_mapping, try_split_merged_entry, main): Update callers.
23880
23881 2009-07-02  Bruno Haible  <bruno@clisp.org>
23882
23883         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
23884
23885 2009-06-30  Bruno Haible  <bruno@clisp.org>
23886
23887         Reduce the number of uc_is_cased calls.
23888         * lib/unicase.h (casing_suffix_context_t): Add
23889         'first_char_except_ignorable' field.
23890         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
23891         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
23892         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
23893         Update initializer.
23894         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
23895         case-ignorable characters.
23896         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
23897         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
23898         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
23899         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
23900         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
23901
23902 2009-06-30  Bruno Haible  <bruno@clisp.org>
23903
23904         Tests for module 'unicase/ignorable'.
23905         * modules/unicase/ignorable-tests: New file.
23906         * tests/unicase/test-ignorable.c: New file, generated by
23907         gen-uni-tables.
23908
23909         Tests for module 'unicase/cased'.
23910         * modules/unicase/cased-tests: New file.
23911         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
23912         * tests/unicase/test-predicate-part1.h: New file, derived from
23913         tests/unictype/test-predicate-part1.h.
23914         * tests/unicase/test-predicate-part2.h: New file, same as
23915         tests/unictype/test-predicate-part2.h.
23916
23917         Fix evaluation of "Before C" condition of FINAL_SIGMA.
23918         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
23919         (output_casing_properties): New function.
23920         (main): Call it.
23921         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
23922         * lib/unicase/cased.c: Include unictype/bitmap.h.
23923         (uc_is_cased): Define through a bitmap lookup.
23924         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
23925         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
23926         (uc_is_case_ignorable): Define through a bitmap lookup.
23927         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
23928         lib/unictype/bitmap.h.
23929         (Depends-on): Add inline. Clean up.
23930         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
23931         lib/unictype/bitmap.h.
23932         (Depends-on): Add inline. Clean up.
23933         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
23934         recognition.
23935         * tests/unicase/test-u16-tolower.c (main): Likewise.
23936         * tests/unicase/test-u32-tolower.c (main): Likewise.
23937
23938 2009-06-30  Bruno Haible  <bruno@clisp.org>
23939
23940         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
23941         * lib/unicase/u16-casemap.c: Likewise.
23942         * lib/unicase/u32-casemap.c: Likewise.
23943
23944 2009-06-29  Bruno Haible  <bruno@clisp.org>
23945
23946         Define u32_casefold as a wrapper around u32_ct_casefold.
23947         * lib/unicase/u32-casefold.c: Update.
23948         * modules/unicase/u32-casefold (Depends-on): Add
23949         unicase/u32-ct-casefold, unicase/empty-prefix-context,
23950         unicase/empty-suffix-context. Clean up.
23951
23952         Define u16_casefold as a wrapper around u16_ct_casefold.
23953         * lib/unicase/u16-casefold.c: Update.
23954         * modules/unicase/u16-casefold (Depends-on): Add
23955         unicase/u16-ct-casefold, unicase/empty-prefix-context,
23956         unicase/empty-suffix-context. Clean up.
23957
23958         Define u8_casefold as a wrapper around u8_ct_casefold.
23959         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
23960         * lib/unicase/u8-casefold.c: Update.
23961         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
23962         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23963
23964         Define u32_totitle as a wrapper around u32_ct_totitle.
23965         * lib/unicase/u32-totitle.c: Update.
23966         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
23967         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23968
23969         Define u16_totitle as a wrapper around u16_ct_totitle.
23970         * lib/unicase/u16-totitle.c: Update.
23971         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
23972         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23973
23974         Define u8_totitle as a wrapper around u8_ct_totitle.
23975         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
23976         functions.
23977         (FUNC): Delegate to U_CT_TOTITLE.
23978         * lib/unicase/u8-totitle.c: Update.
23979         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
23980         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23981
23982         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
23983         invocation.
23984         * modules/unicase/u32-tolower (Depends-on): Add
23985         unicase/empty-prefix-context, unicase/empty-suffix-context.
23986
23987         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
23988         invocation.
23989         * modules/unicase/u16-tolower (Depends-on): Add
23990         unicase/empty-prefix-context, unicase/empty-suffix-context.
23991
23992         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
23993         * modules/unicase/u8-tolower (Depends-on): Add
23994         unicase/empty-prefix-context, unicase/empty-suffix-context.
23995
23996         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
23997         invocation.
23998         * modules/unicase/u32-toupper (Depends-on): Add
23999         unicase/empty-prefix-context, unicase/empty-suffix-context.
24000
24001         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
24002         invocation.
24003         * modules/unicase/u16-toupper (Depends-on): Add
24004         unicase/empty-prefix-context, unicase/empty-suffix-context.
24005
24006         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
24007         * modules/unicase/u8-toupper (Depends-on): Add
24008         unicase/empty-prefix-context, unicase/empty-suffix-context.
24009
24010         New module 'unicase/u32-ct-casefold'.
24011         * lib/unicase/u32-ct-casefold.c: New file.
24012         * modules/unicase/u32-ct-casefold: New file.
24013
24014         New module 'unicase/u16-ct-casefold'.
24015         * lib/unicase/u16-ct-casefold.c: New file.
24016         * modules/unicase/u16-ct-casefold: New file.
24017
24018         New module 'unicase/u8-ct-casefold'.
24019         * lib/unicase/u8-ct-casefold.c: New file.
24020         * lib/unicase/u-ct-casefold.h: New file, derived from
24021         lib/unicase/u-casefold.h.
24022         * modules/unicase/u8-ct-casefold: New file.
24023
24024         New module 'unicase/u32-ct-totitle'.
24025         * lib/unicase/u32-ct-totitle.c: New file.
24026         * modules/unicase/u32-ct-totitle: New file.
24027
24028         New module 'unicase/u16-ct-totitle'.
24029         * lib/unicase/u16-ct-totitle.c: New file.
24030         * modules/unicase/u16-ct-totitle: New file.
24031
24032         New module 'unicase/u8-ct-totitle'.
24033         * lib/unicase/u8-ct-totitle.c: New file.
24034         * lib/unicase/u-ct-totitle.h: New file, derived from
24035         lib/unicase/u-totitle.h.
24036         * modules/unicase/u8-ct-totitle: New file.
24037
24038         New module 'unicase/u32-ct-tolower'.
24039         * lib/unicase/u32-ct-tolower.c: New file.
24040         * modules/unicase/u32-ct-tolower: New file.
24041
24042         New module 'unicase/u16-ct-tolower'.
24043         * lib/unicase/u16-ct-tolower.c: New file.
24044         * modules/unicase/u16-ct-tolower: New file.
24045
24046         New module 'unicase/u8-ct-tolower'.
24047         * lib/unicase/u8-ct-tolower.c: New file.
24048         * modules/unicase/u8-ct-tolower: New file.
24049
24050         New module 'unicase/u32-ct-toupper'.
24051         * lib/unicase/u32-ct-toupper.c: New file.
24052         * modules/unicase/u32-ct-toupper: New file.
24053
24054         New module 'unicase/u16-ct-toupper'.
24055         * lib/unicase/u16-ct-toupper.c: New file.
24056         * modules/unicase/u16-ct-toupper: New file.
24057
24058         New module 'unicase/u8-ct-toupper'.
24059         * lib/unicase/u8-ct-toupper.c: New file.
24060         * modules/unicase/u8-ct-toupper: New file.
24061
24062         Add context arguments to u*_casemap functions.
24063         * lib/unicase/unicasemap.h: Include unicase.h.
24064         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
24065         suffix_context arguments.
24066         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
24067         functions.
24068         (FUNC): Add prefix_context and suffix_context arguments. Use
24069         uc_is_cased and uc_is_case_ignorable.
24070         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
24071         * lib/unicase/u16-casemap.c: Likewise.
24072         * lib/unicase/u32-casemap.c: Likewise.
24073         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
24074         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24075         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
24076         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24077         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
24078         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24079
24080         New module 'unicase/u32-suffix-context'.
24081         * lib/unicase/u32-suffix-context.c: New file.
24082         * modules/unicase/u32-suffix-context: New file.
24083
24084         New module 'unicase/u16-suffix-context'.
24085         * lib/unicase/u16-suffix-context.c: New file.
24086         * modules/unicase/u16-suffix-context: New file.
24087
24088         New module 'unicase/u8-suffix-context'.
24089         * lib/unicase/u8-suffix-context.c: New file.
24090         * lib/unicase/u-suffix-context.h: New file.
24091         * modules/unicase/u8-suffix-context: New file.
24092
24093         New module 'unicase/empty-suffix-context'.
24094         * lib/unicase/empty-suffix-context.c: New file.
24095         * modules/unicase/empty-suffix-context: New file.
24096
24097         New module 'unicase/u32-prefix-context'.
24098         * lib/unicase/u32-prefix-context.c: New file.
24099         * modules/unicase/u32-prefix-context: New file.
24100
24101         New module 'unicase/u16-prefix-context'.
24102         * lib/unicase/u16-prefix-context.c: New file.
24103         * modules/unicase/u16-prefix-context: New file.
24104
24105         New module 'unicase/u8-prefix-context'.
24106         * lib/unicase/u8-prefix-context.c: New file.
24107         * lib/unicase/u-prefix-context.h: New file.
24108         * lib/unicase/context.h: New file.
24109         * modules/unicase/u8-prefix-context: New file.
24110
24111         New module 'unicase/empty-prefix-context'.
24112         * lib/unicase/empty-prefix-context.c: New file.
24113         * modules/unicase/empty-prefix-context: New file.
24114
24115         New module 'unicase/ignorable'.
24116         * lib/unicase/ignorable.c: New file.
24117         * modules/unicase/ignorable: New file.
24118
24119         New module 'unicase/cased'.
24120         * lib/unicase/caseprop.h: New file.
24121         * lib/unicase/cased.c: New file.
24122         * modules/unicase/cased: New file.
24123
24124         New functions for case mapping of substrings.
24125         * lib/unicase.h (casing_prefix_context_t): New type.
24126         (unicase_empty_prefix_context): New variable.
24127         (u8_casing_prefix_context, u16_casing_prefix_context,
24128         u32_casing_prefix_context, u8_casing_prefixes_context,
24129         u16_casing_prefixes_context, u32_casing_prefixes_context): New
24130         declarations.
24131         (casing_suffix_context_t): New type.
24132         (unicase_empty_suffix_context): New variable.
24133         (u8_casing_suffix_context, u16_casing_suffix_context,
24134         u32_casing_suffix_context, u8_casing_suffixes_context,
24135         u16_casing_suffixes_context, u32_casing_suffixes_context,
24136         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
24137         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
24138         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
24139         declarations.
24140
24141 2009-06-28  Jim Meyering  <meyering@redhat.com>
24142
24143         boostrap: indent only with spaces
24144         * build-aux/bootstrap: Indent only with spaces, never TABs.
24145
24146         bootstrap: split long lines
24147         * build-aux/bootstrap: Keep line length < 80.
24148
24149         bootstrap: sync from coreutils
24150         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
24151         just as autoreconf does.  Verify a list of prerequisite
24152         package-name,version-number pairs if defined in bootstrap.conf.
24153         Refer to README-prereq, if prerequisites are not satisfied.
24154
24155 2009-06-27  Eric Blake  <ebb9@byu.net>
24156
24157         tests: add test for bogus NULL definition
24158         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
24159         * tests/test-stdlib.c: Likewise.
24160         * tests/test-string.c: Likewise.
24161         * tests/test-locale.c: Likewise.
24162         * tests/test-unistd.c: Likewise.
24163         * modules/stdio-tests (Depends-on): Add verify.
24164         * modules/stdlib-tests (Depends-on): Likewise.
24165         * modules/string-tests (Depends-on): Likewise.
24166         * modules/locale-tests (Depends-on): Likewise.
24167         * modules/unistd-tests (Depends-on): Likewise.
24168
24169 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
24170
24171         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
24172         self-explaining comment.
24173         * m4/selinux-selinux-h: Update serial.
24174         (gl_LIBSELINUX): New macro, adding a warning for missing development
24175         packages to code extracted from...
24176         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
24177         Add warning for missing development packages here, too.
24178
24179 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
24180
24181         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
24182
24183 2009-06-25  Eric Blake  <ebb9@byu.net>
24184
24185         version-etc: fix regression
24186         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
24187         gcc.
24188         (version_etc): Use it, to catch bugs with trailing NULL.
24189         * lib/version-etc.c (version_etc_arn): Delete unused argument.
24190         (version_etc_va): Fix logic bug.
24191         * modules/version-etc-tests: Add test.
24192         * tests/test-version-etc.c: New file.
24193         * tests/test-version-etc.sh: Likewise.
24194
24195 2009-06-25  Sam Steingold  <sds@gnu.org>
24196
24197         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
24198         mbtowc declaration.
24199
24200 2009-06-25  Eric Blake  <ebb9@byu.net>
24201
24202         fpurge: migrate into <stdio.h>
24203         * lib/fpurge.h: Delete...
24204         * lib/stdio.in.h (fpurge): ...and declare here, instead.
24205         * lib/fpurge.c (fpurge): Change declaring header.
24206         * modules/fpurge (Files): Drop deleted file.
24207         (Depends-on): Add stdio.
24208         (configure.ac): Set witness.
24209         * modules/stdio (Makefile.am): Support fpurge macros.
24210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24211         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
24212         * lib/fflush.c: Update client.
24213         * tests/test-fpurge.c: Likewise.
24214         * NEWS: Mention the change.
24215
24216 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24217
24218         * lib/argp-version-etc.c (program_authors): Add const
24219         qualifier.
24220         * lib/version-etc.c: Fix typos in the comments.
24221         * modules/argp-version-etc: Depends on version-etc.
24222
24223 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24224
24225         argp-version-etc: new module.
24226
24227         * lib/argp-version-etc.c: New file.
24228         * lib/argp-version-etc.h: New file.
24229         * modules/argp-version-etc: New file.
24230         * modules/argp-version-etc-tests: New file.
24231         * tests/test-argp-version-etc.c: New test.
24232         * tests/test-argp-version-etc-1.sh: New test.
24233
24234 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24235
24236         Provide additional interfaces and documentation for version-etc
24237         module.
24238
24239         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
24240         interfaces.
24241         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
24242         prototypes.
24243
24244 2009-06-24  Bruno Haible  <bruno@clisp.org>
24245
24246         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
24247         HAVE_LIB${NAME} macro.
24248         Reported by Sam Steingold <sds@gnu.org>.
24249
24250 2009-06-23  Simon Josefsson  <simon@josefsson.org>
24251
24252         * modules/hash-tests (test_hash_LDADD): Link to libintl when
24253         needed.
24254
24255 2009-06-21  Bruno Haible  <bruno@clisp.org>
24256
24257         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
24258         work.
24259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
24260         together with LIB${NAME}, LTLIB${NAME}.
24261         Reported by Sam Steingold <sds@gnu.org>.
24262
24263 2009-06-20  Jim Meyering  <meyering@redhat.com>
24264
24265         tests: make sc_require_test_exit_idiom more generic
24266         * top/maint.mk (Exit_witness_file): New overridable variable.
24267         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
24268         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
24269
24270 2009-06-19  Jim Meyering  <meyering@redhat.com>
24271
24272         hash: reverse order of src/dst parameters in an internal interface
24273         * lib/hash.c (transfer_entries): Reverse order of parameters to
24274         put DST before SRC.  Adjust callers.
24275
24276         tests: test-hash: avoid wholesale duplication
24277         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
24278         Instead, use a loop and add a single conditional.
24279
24280         tests: test-hash: allow seed selection via a command line argument
24281         * tests/test-hash.c (get_seed): New function.
24282         (main): Use it.
24283
24284 2009-06-19  Eric Blake  <ebb9@byu.net>
24285
24286         hash: avoid memory leak on allocation failure
24287         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
24288         failure.  Factor repeated algorithm...
24289         (transfer_entries): ...into new helper routine.
24290         (hash_delete): React to hash_rehash return value.
24291
24292         hash: reduce memory pressure in hash_rehash no-op case
24293         * lib/hash.c (next_prime): Avoid overflow.
24294         (hash_initialize): Factor bucket size computation...
24295         (compute_bucket_size): ...into new helper function.
24296         (hash_rehash): Use new function and open coding to reduce memory
24297         pressure, and avoid a memory leak in USE_OBSTACK code.
24298         Reported by Jim Meyering.
24299
24300 2009-06-18  Eric Blake  <ebb9@byu.net>
24301
24302         hash: make rotation more obvious
24303         * modules/hash (Depends-on): Add bitrotate and stdint.
24304         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
24305         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
24306         (SIZE_MAX): Rely on headers for definition.
24307         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
24308         (raw_hasher): Use rotr_sz.
24309         Suggested by Jim Meyering.
24310
24311         hash: fix memory leak in last patch
24312         * lib/hash.c (hash_rehash): Avoid memory leak.
24313
24314         hash: avoid no-op rehashing
24315         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
24316
24317         hash: provide default callback functions
24318         * lib/hash.c (raw_hasher, raw_comparator): New functions.
24319         (hash_initialize): Use them as defaults.
24320         * tests/test-hash.c (main): Test this.
24321
24322         hash: minor optimization
24323         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
24324         when possible.
24325         (hash_initialize): Document this promise.
24326         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
24327         * tests/test-hash.c (hash_compare_strings): Test this.
24328
24329 2009-06-18  Bruno Haible  <bruno@clisp.org>
24330
24331         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
24332         going to be replaced anyway.
24333
24334 2009-06-18  Bruno Haible  <bruno@clisp.org>
24335
24336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
24337         in one place.
24338         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
24339         be replaced anyway.
24340
24341 2009-06-18  Eric Blake  <ebb9@byu.net>
24342
24343         hash: check for resize before insertion
24344         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
24345         threshold before insertion, so that a pathological hash_rehash
24346         that fills every bucket can still trigger another rehash.
24347
24348 2009-06-18  Jim Meyering  <meyering@redhat.com>
24349
24350         hash-tests: add a loop around the small tests
24351         * tests/test-hash.c (main): Repeat small tests with selected
24352         small initial table sizes.
24353
24354 2009-06-17  Eric Blake  <ebb9@byu.net>
24355
24356         hash: minor cleanups
24357         * lib/hash.h (hash_entry): Make opaque, by moving...
24358         * lib/hash.c (hash_entry): ...here.
24359         (hash_insert): Clarify restrictions on what can be inserted.
24360         (hash_get_next): Clarify when it is safe to remove an element
24361         during traversal.
24362         (check_tuning): Skip verification when tuning is known safe.
24363         (hash_initialize): Clarify restrictions on tuning.
24364
24365 2009-06-17  Jim Meyering  <jim@meyering.net>
24366         and Eric Blake  <ebb9@byu.net>
24367
24368         hash-tests: new module
24369         * modules/hash-tests: New file.
24370         * tests/test-hash.c: New file.
24371
24372 2009-06-17  Eric Blake  <ebb9@byu.net>
24373
24374         strstr-simple: document new module
24375         * MODULES.html.sh: Document new module.
24376
24377         strstr, strcasestr: replace on platforms with broken memchr
24378         * modules/strstr: Split into...
24379         * modules/strstr-simple: ...new module that does not care about
24380         performance, but does care about glibc bug.
24381         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
24382         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
24383         if platform memchr is broken, per Debian bug 521737.
24384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
24385         memchr.
24386         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
24387         * doc/posix-functions/strstr.texi (strstr): Document the fix.
24388         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24389         * modules/mountlist (Depends-on): Add strstr-simple.
24390         * modules/gen-uni-tables (Depends-on): Likewise.
24391         * modules/argz (Depends-on): Add strstr.
24392
24393 2009-06-17  Bruno Haible  <bruno@clisp.org>
24394
24395         * modules/posix_spawn-internal (Depends-on): Add errno.
24396
24397 2009-06-17  Bruno Haible  <bruno@clisp.org>
24398
24399         Define missing ESTALE on Interix 3.5.
24400         * lib/errno.in.h (ESTALE): Assign a value if missing.
24401         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
24402         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
24403         missing.
24404         * doc/posix-headers/errno.texi: Mention the Interix bug.
24405         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
24406
24407 2009-06-15  Eric Blake  <ebb9@byu.net>
24408
24409         memchr, memchr2: add valgrind exception
24410         * lib/memchr.valgrind: New file.
24411         * lib/memchr2.valgrind: New file.
24412         * modules/memchr (Files): Distribute valgrind file.
24413         * modules/memchr2 (Files): Likewise.
24414
24415         docs: memchr is no longer obsolete
24416         * MODULES.html.sh: Move memchr from obsolete to string.h section.
24417         * lib/string.in.h (memchr): Simplify logic.
24418
24419 2009-06-14  Jim Meyering  <meyering@redhat.com>
24420
24421         link-follow: fix the "checking..." message to not mention trailing slash
24422         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
24423         never considered trailing slashes.
24424
24425 2009-06-14  Bruno Haible  <bruno@clisp.org>
24426
24427         * m4/memchr.m4: Mention also the bug on IA-64.
24428         * doc/posix-functions/memchr.texi: Likewise.
24429
24430 2009-06-12  Eric Blake  <ebb9@byu.net>
24431
24432         memchr: detect broken x86_64 and alpha implementations
24433         * modules/memchr-tests (Depends-on): Move mmap detection...
24434         * modules/memchr (Depends-on): ...here.
24435         (configure.ac): Set indicator.
24436         * lib/string.in.h (memchr): Declare replacement.
24437         * modules/string (Makefile.am): Trigger replacement.
24438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24439         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
24440         bugs.
24441         * doc/posix-functions/memchr.texi (memchr): Document the bug.
24442         * modules/getpagesize (License): Relax license.
24443
24444 2009-06-11  Bruno Haible  <bruno@clisp.org>
24445
24446         * lib/idpriv.h: Add more references.
24447
24448 2009-06-08  Bruno Haible  <bruno@clisp.org>
24449
24450         Tests for module 'idpriv-droptemp'.
24451         * modules/idpriv-droptemp-tests: New file.
24452         * tests/test-idpriv-droptemp.sh: New file.
24453         * tests/test-idpriv-droptemp.su.sh: New file.
24454         * tests/test-idpriv-droptemp.c: New file.
24455
24456         New module 'idpriv-droptemp'.
24457         * lib/idpriv-droptemp.c: New file.
24458         * modules/idpriv-droptemp: New file.
24459
24460 2009-06-08  Bruno Haible  <bruno@clisp.org>
24461
24462         Tests for module 'idpriv-drop'.
24463         * modules/idpriv-drop-tests: New file.
24464         * tests/test-idpriv-drop.sh: New file.
24465         * tests/test-idpriv-drop.su.sh: New file.
24466         * tests/test-idpriv-drop.c: New file.
24467
24468         New module 'idpriv-drop'.
24469         * lib/idpriv.h: New file.
24470         * lib-idpriv-drop.c: New file.
24471         * m4/idpriv.m4: New file.
24472         * modules/idpriv-drop: New file.
24473
24474 2009-06-08  Bruno Haible  <bruno@clisp.org>
24475
24476         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
24477         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24478         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24479         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24480         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24481         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24482         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24483
24484 2009-06-08  Eric Blake  <ebb9@byu.net>
24485
24486         test-strstr: use memory fence, when possible
24487         * tests/test-strstr.c (main): Use memory fence, in order to be
24488         more likely to trigger Debian bug 521737.
24489         * modules/strstr-tests (Files): Pull in additional files.
24490
24491         memchr: no longer obsolete, for wider field testing
24492         * modules/memchr (Status, Notice): Delete, this module is no
24493         longer obsolete.
24494         * modules/vasnprintf (Depends-on): Add memchr.
24495
24496 2009-06-07  Jim Meyering  <meyering@redhat.com>
24497
24498         hash: declare some functions with the warn_unused_result attribute
24499         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
24500
24501 2009-06-07  Bruno Haible  <bruno@clisp.org>
24502
24503         * tests/test-alignof.c: Don't test int64_t if it does not exist.
24504         Reported by Eric Blake.
24505
24506 2009-06-06  Eric Blake  <ebb9@byu.net>
24507
24508         test-alignof: fix typo with long double
24509         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
24510         compiler error.
24511
24512 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
24513
24514         Escape non-texinfo { and }s.
24515         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
24516         markup error.
24517
24518 2009-06-04  Jim Meyering  <meyering@redhat.com>
24519
24520         gitlog-to-changelog: don't infloop on an empty commit log
24521         * build-aux/gitlog-to-changelog: Warn about an empty log message.
24522         Reported by Boris Petersen <transacid@centerim.org>.
24523
24524 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
24525
24526         version-etc: extend for packagers
24527         Add three new configure options, intended for packagers:
24528           --with-packager="packager name"
24529           --with-packager-version="packager-specific version"
24530           --with-packager-bug-reports="packager bug reporting"
24531         An example with coreutils:
24532           $ ./configure \
24533             --with-packager=Gentoo \
24534             --with-packager-bug-report=http://bugs.gentoo.org/ \
24535             --with-packager-version="patchset 1.6"
24536           $ ./src/ls --version | head -n2
24537           ls (GNU coreutils) 7.1-dirty
24538           Packaged by Gentoo (patchset 1.6)
24539         Note that the bug reporting info via --help doesn't show up because
24540         coreutils uses its own custom emit_bug_reporting_address() implementation
24541         in src/system.h.  If it didn't, it'd look like:
24542           $ ./src/ls --help | tail -n4
24543           Report bugs to <bug-coreutils@gnu.org>.
24544           Report Gentoo bugs to <http://bugs.gentoo.org/>.
24545           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
24546           General help using GNU software: <http://www.gnu.org/gethelp/>.
24547         * lib/version-etc.c: Print new information, if provided.
24548         * m4/version-etc.m4: New file.
24549         * modules/version-etc (Files): Add m4/version-etc.m4.
24550         (configure.ac): Add gl_VERSION_ETC.
24551
24552 2009-05-31  Bruno Haible  <bruno@clisp.org>
24553
24554         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
24555         and 'int64_t'.
24556         * modules/alignof-tests (Dependencies): Add stdint.
24557         Reported by Eric Blake.
24558
24559 2009-05-31  Bruno Haible  <bruno@clisp.org>
24560
24561         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
24562         restriction due to compiler bugs.
24563         Reported by Eric Blake.
24564
24565 2009-05-31  Simon Josefsson  <simon@josefsson.org>
24566             Bruno Haible  <bruno@clisp.org>
24567
24568         Fix test-alignof failure.
24569         * lib/alignof.h (alignof_slot): New macro.
24570         (alignof_type): New macro, with the same semantics as the previous
24571         'alignof'.
24572         (alignof): Alias to alignof_slot.
24573         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
24574         check that the results are usable as constant expressions.
24575
24576 2009-05-31  Bruno Haible  <bruno@clisp.org>
24577
24578         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
24579         * tests/test-memchr.c (main): Check that memchr does not read past the
24580         first occurrence of the byte.
24581         * tests/test-strstr.c (main): Update comment.
24582         Suggested by Eric Blake.
24583
24584 2009-05-30  Bruno Haible  <bruno@clisp.org>
24585
24586         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
24587         detail how to use dumpbin.
24588         Reported by David Byron <dbyron@dbyron.com>.
24589
24590 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24591
24592         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
24593
24594 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24595
24596         * m4/manywarnings.m4: Add GCC 4.4 warnings.
24597
24598 2009-05-28  Bruno Haible  <bruno@clisp.org>
24599
24600         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
24601         build-aux/ files.
24602
24603 2009-05-28  Simon Josefsson  <simon@josefsson.org>
24604
24605         * gnulib-tool (func_import): Transform license on build-aux/ files too.
24606
24607 2009-05-27  Simon Josefsson  <simon@josefsson.org>
24608
24609         * gnulib-tool (sed_transform_main_lib_file)
24610         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
24611         regexps.
24612
24613 2009-05-26  Simon Josefsson  <simon@josefsson.org>
24614
24615         * tests/test-strstr.c: Add another self-test.
24616         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
24617         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
24618
24619 2009-05-23  Bruno Haible  <bruno@clisp.org>
24620
24621         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
24622         change.
24623
24624 2009-05-21  Bruno Haible  <bruno@clisp.org>
24625
24626         Simplify use of mode_t varargs.
24627         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
24628         uses 'mode_t' or 'int'.
24629         * lib/openat.c (openat): Likewise.
24630         * lib/open-safer.c (open_safer): Likewise.
24631         * m4/mode_t.m4: New file.
24632         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
24633         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
24634         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
24635         * modules/open (Files): Add m4/mode_t.m4.
24636         * modules/openat (Files): Likewise.
24637         * modules/fcntl-safer (Files): Likewise.
24638         Suggested by Eric Blake.
24639
24640 2009-05-21  Pádraig Brady  <P@draigbrady.com>
24641
24642         * doc/glibc-functions/fallocate.texi: New file.
24643         * doc/gnulib.texi: Include it.
24644
24645 2009-05-21  Eric Blake  <ebb9@byu.net>
24646             Bruno Haible  <bruno@clisp.org>
24647
24648         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
24649         invocations.
24650         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24651
24652 2009-05-21  Eric Blake  <ebb9@byu.net>
24653             Bruno Haible  <bruno@clisp.org>
24654
24655         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
24656         include_next. Fix of 2008-11-20 commit.
24657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
24658         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
24659         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
24660         NEXT_MATH_H.
24661         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
24662         instead of NEXT_MATH_H.
24663
24664 2009-05-21  Bruno Haible  <bruno@clisp.org>
24665
24666         Avoid redefinition warnings for SIZE_MAX.
24667         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
24668         Reported by Simon Josefsson.
24669
24670 2009-05-21  Bruno Haible  <bruno@clisp.org>
24671
24672         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
24673         AC_CACHE_VAL.
24674
24675 2009-05-20  Bruno Haible  <bruno@clisp.org>
24676
24677         Make zeroptr.h work on mingw.
24678         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
24679         mprotect.
24680         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
24681         * modules/memchr2-tests (configure.ac): Likewise.
24682         * modules/memcmp-tests (configure.ac): Likewise.
24683         * modules/memmem-tests (configure.ac): Likewise.
24684         * modules/memrchr-tests (configure.ac): Likewise.
24685         Reported by Simon Josefsson.
24686
24687 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24688
24689         * tests/test-glob.c: Include string.h for strcmp prototype.
24690
24691 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24692
24693         * modules/getdelim (Depends-on): Add explicit stdint, although it
24694         was implicitly already pulled in via realloc-posix.
24695         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
24696
24697 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24698
24699         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
24700         G. Christensen" <tgc@jupiterrise.com>.
24701         * m4/sys_socket_h.m4: Check for sa_family_t.
24702         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
24703         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
24704         * tests/test-sys_socket.c: Check that sa_family_t works.
24705
24706 2009-05-18  Eric Blake  <ebb9@byu.net>
24707
24708         maint.mk: allow gnulib_dir in VPATH build
24709         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
24710
24711 2009-05-15  Jim Meyering  <meyering@redhat.com>
24712
24713         maint.mk: Give gnulib_dir a default definition.
24714         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
24715         Thus, most packages no longer need to specify this variable in cfg.mk
24716
24717 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
24718
24719         rename.m4: fix typos that would make non-mingw cross-configure fail
24720         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
24721
24722 2009-05-13  Eric Blake  <ebb9@byu.net>
24723
24724         mmap-anon: avoid out-of-order autoconf expansion
24725         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
24726         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
24727         * modules/memchr-tests (Depends-on): Add extensions.
24728         * modules/memchr2-tests (Depends-on): Add extensions.
24729         * modules/memcmp-tests (Depends-on): Add extensions.
24730         * modules/memmem-tests (Depends-on): Add extensions.
24731         * modules/memrchr-tests (Depends-on): Add extensions.
24732
24733 2009-05-13  Bruno Haible  <bruno@clisp.org>
24734
24735         Make some tests ISO C 99 compliant.
24736         * tests/zerosize-ptr.h: New file.
24737         * tests/test-memchr.c: Include zerosize-ptr.h.
24738         (main): Use a zero-size object pointer instead of NULL.
24739         * tests/test-memchr2.c: Include zerosize-ptr.h.
24740         (main): Use a zero-size object pointer instead of NULL.
24741         * tests/test-memcmp.c: Include zerosize-ptr.h.
24742         (main): Use a zero-size object pointer instead of NULL.
24743         * tests/test-memmem.c: Include zerosize-ptr.h.
24744         (main): Use a zero-size object pointer instead of NULL.
24745         * tests/test-memrchr.c: Include zerosize-ptr.h.
24746         (main): Use a zero-size object pointer instead of NULL.
24747         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
24748         m4/mmap-anon.m4.
24749         (Depends-on): Add getpagesize.
24750         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24751         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
24752         m4/mmap-anon.m4.
24753         (Depends-on): Add getpagesize.
24754         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24755         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
24756         m4/mmap-anon.m4.
24757         (Depends-on): Add getpagesize.
24758         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24759         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
24760         m4/mmap-anon.m4.
24761         (Depends-on): Add getpagesize.
24762         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24763         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
24764         m4/mmap-anon.m4.
24765         (Depends-on): Add getpagesize.
24766         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24767
24768 2009-05-12  Bruno Haible  <bruno@clisp.org>
24769
24770         Tests for module 'alignof'.
24771         * modules/alignof-tests: New file.
24772         * tests/test-alignof.c: New file.
24773
24774 2009-05-12  Bruno Haible  <bruno@clisp.org>
24775
24776         Fix alignof macro.
24777         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
24778         vendor compilers that are always correct.
24779
24780 2009-05-12  Bruno Haible  <bruno@clisp.org>
24781
24782         Make the MAP_ANONYMOUS detection work on HP-UX 11.
24783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
24784         not whether its fully works.
24785
24786 2009-05-12  Bruno Haible  <bruno@clisp.org>
24787
24788         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
24789
24790 2009-05-12  Jim Meyering  <meyering@redhat.com>
24791
24792         * top/maint.mk: Adjust backslash alignment.
24793
24794 2009-05-11  Simon Josefsson  <simon@josefsson.org>
24795
24796         * top/maint.mk: Make $(srcdir)/build-aux configurable.
24797
24798 2009-05-11  Eric Blake  <ebb9@byu.net>
24799
24800         argp: avoid undefined behavior
24801         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
24802         macros.
24803
24804 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24805
24806         * tests/test-vc-list-files-git.sh: Do git config of user.email and
24807         user.name to prevent git commit from complaining.
24808
24809 2009-05-10  Bruno Haible  <bruno@clisp.org>
24810
24811         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
24812         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
24813         it rewrites every file name only once.
24814         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
24815
24816 2009-05-08  Bruno Haible  <bruno@clisp.org>
24817
24818         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
24819         instead of 'max'.
24820
24821 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24822
24823         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
24824         sockaddr_storage test.
24825
24826 2009-05-07  Simon Josefsson  <simon@josefsson.org>
24827
24828         * modules/sys_socket (Makefile.am): Substitute
24829         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
24830         * m4/sys_socket_h.m4: Check for sockaddr_storage.
24831         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
24832         * tests/test-sys_socket.c: Check sockaddr_storage.
24833
24834 2009-05-08  Bruno Haible  <bruno@clisp.org>
24835
24836         New module 'alignof'.
24837         * lib/alignof.h: New file.
24838         * modules/alignof: New file.
24839
24840 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24841             Bruno Haible  <bruno@clisp.org>
24842
24843         Fix test-file-has-acl on FreeBSD.
24844         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
24845         mask is implicitly added.
24846         * tests/test-file-has-acl.c: Include <signal.h>.
24847         (main): Terminate the test after 5 seconds.
24848         * modules/acl-tests (configure.ac): Check for alarm function.
24849
24850 2009-05-04  Bruno Haible  <bruno@clisp.org>
24851
24852         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
24853         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
24854         * modules/errno (configure.ac): Drop AC_REQUIRE.
24855         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
24856         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
24857
24858 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24859
24860         * modules/glob-tests: New module.
24861         * tests/test-glob.c: Add.
24862
24863 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24864
24865         * modules/fnmatch-tests: New module.
24866         * tests/test-fnmatch.c: Add.
24867
24868 2009-05-04  Eric Blake  <ebb9@byu.net>
24869
24870         maint: make the new no-submodule-changes rule VPATH-safe
24871         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
24872
24873 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24874             Bruno Haible  <bruno@clisp.org>
24875
24876         acl: Fix infinite loop on FreeBSD.
24877         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
24878         of return value from acl_get_entry.
24879         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
24880         Likewise.
24881
24882 2009-05-03  Bruno Haible  <bruno@clisp.org>
24883
24884         * lib/acl-internal.h (acl_entries): Clarify return value.
24885         * lib/acl_entries.c (acl_entries): Likewise.
24886
24887 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24888
24889         Bug fix in acl module.
24890         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
24891
24892 2009-05-03  Bruno Haible  <bruno@clisp.org>
24893
24894         Create gperf-generated file in the source dir, not in the build dir.
24895         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
24896         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
24897         * modules/unicase/locale-language (unicase/locale-languages.h):
24898         Likewise.
24899         * modules/unicase/special-casing (unicase/special-casing-table.h):
24900         Likewise.
24901         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
24902         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
24903         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
24904         Reported by Ralf Wildenhues.
24905
24906 2009-05-03  Bruno Haible  <bruno@clisp.org>
24907
24908         * modules/fnmatch (Description, configure.ac): Taken from
24909         fnmatch-posix.
24910         * modules/fnmatch-posix: Turn into a symbolic reference to the
24911         'fnmatch' module, and deprecate.
24912         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
24913
24914 2009-05-03  Bruno Haible  <bruno@clisp.org>
24915
24916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
24917         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
24918         Reported by Ralf Wildenhues.
24919
24920 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24921
24922         * m4/fnmatch.m4: Fix fnmatch re-define.
24923
24924 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24925
24926         priv-set: new module and tests; adapt write-any-file
24927         * lib/priv-set.c: New file.
24928         * lib/priv-set.h: New file.
24929         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
24930         * lib/write-any-file.c: Simplify by using priv-set module.
24931         * m4/priv-set.m4: New file.
24932         * modules/priv-set: New file.
24933         * modules/unlinkdir: Add dependency on priv-set module.
24934         * modules/write-any-file: Likewise.
24935
24936         Tests for module 'priv-set'.
24937         * modules/priv-set-tests: New file.
24938         * tests/test-priv-set.c: New file.
24939
24940 2009-05-03  Jim Meyering  <meyering@redhat.com>
24941             Bruno Haible  <bruno@clisp.org>
24942
24943         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
24944         use the converted UTF-8 variant of the name instead.
24945
24946 2009-05-03  Jim Meyering  <meyering@redhat.com>
24947
24948         tests: tighten some getdate tests
24949         * tests/test-getdate.c (main): Tighten tests: require equality,
24950         not just greater than.  Set TZ envvar to UTC0.
24951
24952 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24953
24954         getdate: correctly interpret "next monday" when run on a Monday
24955         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
24956         that e.g., "next tues" (when run on a tuesday) results in a date
24957         that is one week in the future, and not today's date.
24958         I.e., add a week when the wday is the same as the current one.
24959         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
24960         and earlier by Martin Bernreuther and Jan Minář.
24961         * tests/test-getdate.c (main): Check that "next DAY" is always in
24962         the future and that "last DAY" is always in the past.
24963
24964 2009-05-02  Jim Meyering  <meyering@redhat.com>
24965
24966         build: ensure that a release build fails when a submodule is unclean
24967         * top/maint.mk (no-submodule-changes): New rule.
24968         (alpha beta major): Depend on it.
24969
24970 2009-05-02  Bruno Haible  <bruno@clisp.org>
24971
24972         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
24973         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
24974         shell variable gl_fnmatch_required to detect which variant is
24975         requested.
24976         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
24977         gl_FUNC_FNMATCH_POSIX.
24978         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
24979         exclude fnmatch-posix.
24980
24981 2009-05-02  Bruno Haible  <bruno@clisp.org>
24982
24983         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
24984         * modules/mbsrtowcs (License): Change to LGPLv2+.
24985         * modules/strnlen1 (License): Likewise.
24986         Reported by Simon Josefsson.
24987
24988 2009-05-02  Bruno Haible  <bruno@clisp.org>
24989
24990         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
24991         "cross".
24992         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
24993         gnulib-tool was called with option --source-base=lib.
24994
24995 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24996
24997         Use automake *-local hooks without commands, for extensibility.
24998         * modules/localcharset (Makefile.am): Rename install-exec-local
24999         rule to install-exec-localcharset, and make it a prerequisite of
25000         install-exec-local.  Likewise, rename the uninstall-local rule to
25001         uninstall-localcharset, and make it a prerequisite of the former.
25002
25003 2009-05-01  Bruno Haible  <bruno@clisp.org>
25004
25005         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
25006         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25007         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
25008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
25009         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
25010         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25011         m4/locale-zh.m4, m4/codeset.m4.
25012
25013         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25014         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
25015         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25016         m4/locale-zh.m4.
25017
25018         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
25019         REPLACE_WCRTOMB if mbstate_t must be replaced.
25020         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
25021         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
25022
25023 2009-05-01  Bruno Haible  <bruno@clisp.org>
25024
25025         Avoid compiler warnings when redefining macros defined by <libintl.h>.
25026         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
25027         dngettext, dcngettext, textdomain, bindtextdomain,
25028         bind_textdomain_codeset): Undefine before redefining.
25029
25030 2009-04-30  Bruno Haible  <bruno@clisp.org>
25031
25032         Fix bug introduced on 2009-04-25.
25033         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
25034         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
25035         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
25036         is defined.
25037         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
25038         is defined.
25039         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
25040         is defined.
25041         Reported by Elbert_Pol <elbert.pol@gmail.com>.
25042
25043 2009-04-28  Bruno Haible  <bruno@clisp.org>
25044
25045         Comment tweaks.
25046         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
25047         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
25048         * lib/unicase.h (u*_casexfrm): Likewise.
25049         Reported by Paolo Bonzini.
25050
25051 2009-04-28  Bruno Haible  <bruno@clisp.org>
25052
25053         Fix a compilation error.
25054         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
25055         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25056         Reported by Jim Meyering.
25057
25058 2009-04-27  Bruno Haible  <bruno@clisp.org>
25059
25060         New module 'libunistring'.
25061         * modules/libunistring: New file.
25062         * m4/libunistring.m4: New file.
25063         * MODULES.html.sh (Unicode string functions): Add it.
25064
25065 2009-04-27  Eric Blake  <ebb9@byu.net>
25066
25067         maint.mk: allow package-specific header to provide <config.h>
25068         * top/maint.mk (sc_require_config_h): New variable.
25069         (sc_require_config_h, sc_require_config_h_first): Use it.
25070
25071 2009-04-27  Simon Josefsson  <simon@josefsson.org>
25072
25073         * top/maint.mk (sc_avoid_if_before_free): Except
25074         useless-if-before-free script.
25075
25076 2009-04-27  Eric Blake  <ebb9@byu.net>
25077
25078         maintainer-makefile: depend on all required helper scripts
25079         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
25080         useless-if-before-free.
25081         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
25082         version, rather than assuming gnulib checkout is available.
25083         Reported by Simen Josefsson.
25084
25085 2009-04-26  Bruno Haible  <bruno@clisp.org>
25086
25087         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
25088         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
25089         "../" or "..".
25090
25091 2009-04-26  Bruno Haible  <bruno@clisp.org>
25092
25093         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
25094         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
25095         AC_LIB_HAVE_LINKFLAGS.
25096
25097 2009-04-26  Bruno Haible  <bruno@clisp.org>
25098
25099         Simplify calling convention of u*_conv_from_encoding.
25100         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
25101         u32_conv_from_encoding): Expect a resultbuf argument and return the
25102         result directly as a pointer.
25103         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
25104         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
25105         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
25106         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
25107         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
25108         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25109         Update.
25110         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
25111         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
25112         * lib/vasnprintf.c (VASNPRINTF): Update.
25113         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
25114         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
25115         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
25116         * NEWS: Mention the change.
25117
25118 2009-04-26  Bruno Haible  <bruno@clisp.org>
25119
25120         Simplify calling convention of u*_conv_to_encoding.
25121         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
25122         u32_conv_to_encoding): Expect a resultbuf argument and return the
25123         result directly as a pointer.
25124         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25125         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
25126         freeing scaled_offsets if mem_iconveha failed.
25127         * lib/unicase/u-casexfrm.h (FUNC): Update.
25128         * lib/uninorm/u-normxfrm.h (FUNC): Update.
25129         * lib/vasnprintf.c (VASNPRINTF): Update.
25130         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
25131         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
25132         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
25133         * NEWS: Mention the change.
25134
25135 2009-04-26  Bruno Haible  <bruno@clisp.org>
25136
25137         Avoid test failures on AIX and OSF/1.
25138         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
25139         malloc(0).
25140         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25141         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25142         Likewise.
25143         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
25144         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
25145         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
25146         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
25147         * doc/posix-functions/malloc.texi: Document the portability problem
25148         related to malloc(0).
25149
25150 2009-04-26  Bruno Haible  <bruno@clisp.org>
25151
25152         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
25153         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
25154         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
25155
25156 2009-04-25  Bruno Haible  <bruno@clisp.org>
25157
25158         Avoid link error when creating a namespace clean library.
25159         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
25160         as macro with arguments if already defined as an alias.
25161         * lib/signbitf.c (gl_signbitf): Don't undefine.
25162         * lib/signbitd.c (gl_signbitd): Don't undefine.
25163         * lib/signbitl.c (gl_signbitl): Don't undefine.
25164
25165 2009-04-25  Jim Meyering  <meyering@redhat.com>
25166
25167         vc-list-files: fix another quoting bug
25168         * build-aux/vc-list-files: Avoid sed backslash expansion
25169         of pathological directory names.
25170
25171 2009-04-25  Eric Blake  <ebb9@byu.net>
25172
25173         vc-list-files: fix shell quoting error
25174         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
25175         timestamp.
25176
25177 2009-04-25  Jim Meyering  <meyering@redhat.com>
25178
25179         vc-list-files: restore lost functionality with subdir argument
25180         * build-aux/vc-list-files: When given a non-"." sub-directory
25181         argument, substitute the $dir/ prefix back onto each resulting name.
25182         Otherwise, coreutils' root_tests check would fail.
25183
25184 2009-04-24  Eric Blake  <ebb9@byu.net>
25185
25186         vc-list-files: ignore git symlinks
25187         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
25188         than ls-files, to ignore git symlinks.
25189
25190         maint.mk: import improvements from m4
25191         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
25192         (move_if_change): Delete unused macro.
25193         (news-date-check, vc-diff-check): Support VPATH builds.
25194         (announcement): Likewise.  Split --bootstrap-tools list...
25195         (boostrap-tools): ...into separate list, which can be overridden
25196         in cfg.mk.
25197         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
25198         requiring dependency on useless-if-before-free module.
25199         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
25200         Support VPATH builds.
25201
25202 2009-04-24  Jim Meyering  <meyering@redhat.com>
25203
25204         maint.mk: remove coreutils-specific rules and variables
25205         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
25206         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
25207         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
25208
25209         maint.mk: remove obsolete rule
25210         * top/maint.mk (rel-check): Remove rule.
25211         (WGET, WGETFLAGS): Remove now-unused variables.
25212
25213 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25214
25215         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
25216         consistency.
25217
25218         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
25219         '$(PATH_SEPARATOR)' instead of ':'.
25220
25221 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25222
25223         * lib/getopt1.c (main): Use 'const' for static array.
25224
25225 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25226
25227         * top/maint.mk: Sync with coreutils.
25228         * NEWS: Explain incompatibilities.
25229
25230 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25231             Bruno Haible  <bruno@clisp.org>
25232
25233         Fix cross-compilation results.
25234         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
25235         statement, as third argument of AC_TRY_RUN.
25236         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25237         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25238         Likewise.
25239         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25240         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25241         Likewise.
25242         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25243         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
25244         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
25245
25246 2009-04-20  Bruno Haible  <bruno@clisp.org>
25247
25248         Avoid test failure on mingw.
25249         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
25250
25251 2009-04-20  Bruno Haible  <bruno@clisp.org>
25252
25253         Avoid compilation error on mingw.
25254         * modules/localename-tests (Depends-on): Add locale.
25255
25256 2009-04-19  Bruno Haible  <bruno@clisp.org>
25257
25258         Support for building a shared library on Windows platforms.
25259         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
25260         (main): Test the presence of UNINORM_NFC here.
25261         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
25262         (main): Test the presence of UNINORM_NFD here.
25263         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
25264         (main): Test the presence of UNINORM_NFKC here.
25265         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
25266         (main): Test the presence of UNINORM_NFKD here.
25267
25268 2009-04-19  Bruno Haible  <bruno@clisp.org>
25269
25270         Avoid a compiler warning.
25271         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
25272         Change type of variable 'sequence'.
25273
25274 2009-04-19  Bruno Haible  <bruno@clisp.org>
25275
25276         * modules/configmake (Makefile.am): When the contents of configmake.h
25277         does not change, arrange to preserve its modification time.
25278
25279 2009-04-17  Simon Josefsson  <simon@josefsson.org>
25280
25281         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
25282         gettext domain.
25283
25284 2009-04-16  Jim Meyering  <meyering@redhat.com>
25285
25286         useless-if-before-free: improve conversion code
25287         * build-aux/useless-if-before-free: Adjust code-in-comment to match
25288         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
25289
25290 2009-04-14  Bruno Haible  <bruno@clisp.org>
25291
25292         * modules/fcntl (Depends-on): Add extensions.
25293         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
25294
25295 2009-04-12  Ben Pfaff  <blp@gnu.org>
25296
25297         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
25298         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
25299
25300 2009-03-20  Ben Pfaff  <blp@gnu.org>
25301
25302         Make rename replace existing destinations on Windows.
25303         * m4/rename.m4: Add test for Mingw.
25304         * lib/rename.c: Add rename replacement that uses MoveFileEx with
25305         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
25306         * doc/posix-functions/rename.texi: Document.
25307
25308 2009-04-10  Bruno Haible  <bruno@clisp.org>
25309
25310         New include file "iconveh.h".
25311         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
25312         * lib/striconveh.h: Include it.
25313         (enum iconv_ilseq_handler): Remove definition.
25314         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
25315         striconveh.h.
25316         * lib/striconveha.c: Include striconveh.h.
25317         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
25318         * modules/striconveh (Files): Add lib/iconveh.h.
25319         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
25320         lib/striconveh.h.
25321
25322 2009-04-10  Bruno Haible  <bruno@clisp.org>
25323
25324         * lib/uniconv.h: Update comment.
25325
25326 2009-04-10  Bruno Haible  <bruno@clisp.org>
25327
25328         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
25329         always.
25330         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25331         * lib/unistr/u16-mbtouc-aux.c: Likewise.
25332         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25333         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
25334         "unistring-notinline.h", so that the function gets defined always.
25335         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25336         * lib/unistr/u8-uctomb.c: Likewise.
25337         * lib/unistr/u16-mbtouc.c: Likewise.
25338         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25339         * lib/unistr/u16-uctomb.c: Likewise.
25340         * lib/unistr/u32-mbtouc.c: Likewise.
25341         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25342         * lib/unistr/u32-uctomb.c: Likewise.
25343
25344 2009-04-10  Bruno Haible  <bruno@clisp.org>
25345
25346         Mark 'utime' obsolete.
25347         * modules/utime (Status, Notice): New sections.
25348         Suggested by Jim Meyering.
25349
25350         Fix cross-compile guess for utime test.
25351         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
25352         autoconf.
25353         * doc/posix-functions/utime.texi: Give more precisions.
25354         Reported by Jan <ipif@ymail.com>.
25355
25356 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
25357
25358         filevercmp: correct today's change
25359         * lib/filevercmp.c: Also handle coreutils' test inputs.
25360         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
25361
25362         Fix regression in 'filevercmp' module. Thanks Sven Joachim
25363         for reporting it.
25364         * lib/filevercmp.c: Special handle for "", "." and "..".
25365         * tests/test-filevercmp.c: Enlarge the set suite.
25366
25367 2009-04-07  Jim Meyering  <meyering@redhat.com>
25368
25369         useless-if-before-free: show how to remove braced useless free, too
25370         * build-aux/useless-if-before-free: still only in a comment, though.
25371
25372 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
25373
25374         maint.mk: import changes to syntax-check macros from coreutils
25375         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
25376         Use them in the relevant macros.
25377
25378 2009-04-06  Bruno Haible  <bruno@clisp.org>
25379
25380         Fix unportable use of bit-fields.
25381         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
25382         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
25383         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
25384
25385 2009-04-06  Bruno Haible  <bruno@clisp.org>
25386
25387         Avoid test failures on AIX and OSF/1.
25388         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
25389         that malloc(0) = NULL.
25390         * tests/unicase/test-u8-tolower.c (check): Likewise.
25391         * tests/unicase/test-u8-totitle.c (check): Likewise.
25392         * tests/unicase/test-u8-toupper.c (check): Likewise.
25393         * tests/unicase/test-u16-casefold.c (check): Likewise.
25394         * tests/unicase/test-u16-tolower.c (check): Likewise.
25395         * tests/unicase/test-u16-totitle.c (check): Likewise.
25396         * tests/unicase/test-u16-toupper.c (check): Likewise.
25397         * tests/unicase/test-u32-casefold.c (check): Likewise.
25398         * tests/unicase/test-u32-tolower.c (check): Likewise.
25399         * tests/unicase/test-u32-totitle.c (check): Likewise.
25400         * tests/unicase/test-u32-toupper.c (check): Likewise.
25401         * tests/uninorm/test-u8-nfc.c (check): Likewise.
25402         * tests/uninorm/test-u8-nfd.c (check): Likewise.
25403         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
25404         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
25405         * tests/uninorm/test-u16-nfc.c (check): Likewise.
25406         * tests/uninorm/test-u16-nfd.c (check): Likewise.
25407         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
25408         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
25409         * tests/uninorm/test-u32-nfc.c (check): Likewise.
25410         * tests/uninorm/test-u32-nfd.c (check): Likewise.
25411         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
25412         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
25413
25414 2009-04-05  Bruno Haible  <bruno@clisp.org>
25415
25416         Work around an autoconf limitation.
25417         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
25418         comment line if it would be longer than 3 KB.
25419
25420 2009-04-05  Bruno Haible  <bruno@clisp.org>
25421
25422         Avoid test failure with libiconv-1.13.
25423         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
25424         of the expected test results.
25425
25426 2009-04-05  Bruno Haible  <bruno@clisp.org>
25427
25428         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
25429         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
25430         that it should be installed.
25431
25432 2009-04-05  Bruno Haible  <bruno@clisp.org>
25433
25434         * gnulib-tool: New option --copy-file.
25435         (func_usage): Document it.
25436         (func_dest_tmpfilename): Moved out of func_import.
25437         (func_add_file, func_update_file): New functions, extracted from
25438         func_import.
25439         (func_import): Update.
25440
25441 2009-04-05  Karl Berry  <karl@gnu.org>
25442
25443         * README: prominently mention gnulib-tool.
25444         Rearrange sections so getting the code is near the top.
25445
25446 2009-04-05  Bruno Haible  <bruno@clisp.org>
25447
25448         * lib/unicase.h: Mention u*_cmp2.
25449         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25450         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
25451         * lib/unicase/ulc-casecmp.c: Likewise.
25452         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
25453         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
25454         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
25455         unistr/u8-cmp.
25456         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
25457         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
25458         unistr/u16-cmp.
25459         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
25460         unistr/u32-cmp.
25461
25462         * lib/uninorm.h: Mention u*_cmp2.
25463         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25464         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
25465         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
25466         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
25467         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
25468         unistr/u8-cmp.
25469         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
25470         unistr/u16-cmp.
25471         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
25472         unistr/u32-cmp.
25473
25474         New module 'unistr/u32-cmp2'.
25475         * lib/unistr/u32-cmp2.c: New file.
25476         * modules/unistr/u32-cmp2: New file.
25477
25478         New module 'unistr/u16-cmp2'.
25479         * lib/unistr/u16-cmp2.c: New file.
25480         * modules/unistr/u16-cmp2: New file.
25481
25482         New module 'unistr/u8-cmp2'.
25483         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
25484         * lib/unistr/u8-cmp2.c: New file.
25485         * lib/unistr/u-cmp2.h: New file.
25486         * modules/unistr/u8-cmp2: New file.
25487
25488 2009-04-05  Bruno Haible  <bruno@clisp.org>
25489
25490         * lib/unictype.h (uc_property_is_valid): New macro.
25491         * tests/unictype/test-pr_byname.c (main): Use it.
25492
25493         * lib/unistr.h: Doc fixes.
25494         * lib/uniconv.h: Doc fixes.
25495         * lib/unictype.h: Doc fixes.
25496
25497 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25498
25499         Port coreutils 7.2 to Solaris 8.
25500
25501         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
25502         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
25503         for Solaris 8.  This is a bit of a hack, as it means it's the
25504         caller's responsibility to add -lnsl if needed, but most likely it
25505         won't be needed since only getaddrinfo uses this and getaddrinfo
25506         isn't needed on Solaris 8.
25507
25508         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
25509         problem to Solaris 8 encountered with coreutils 7.2, which
25510         resulted in a message "fnmatch.c:292: warning: passing argument 4
25511         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
25512         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
25513
25514 2009-04-03  Simon Josefsson  <simon@josefsson.org>
25515
25516         * m4/ld-version-script.m4: Add FIXME comment.
25517
25518 2009-04-02  Simon Josefsson  <simon@josefsson.org>
25519
25520         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
25521         SOVERSION variable.
25522
25523 2009-04-02  Bruno Haible  <bruno@clisp.org>
25524
25525         * Makefile (info, html, dvi, pdf): Combine the rules.
25526         Suggested by Jim Meyering.
25527
25528 2009-04-01  Bruno Haible  <bruno@clisp.org>
25529
25530         * Makefile (info, html, dvi, pdf): New targets.
25531         Reported by Reuben Thomas <rrt@sc3d.org>.
25532
25533 2009-04-01  Bruno Haible  <bruno@clisp.org>
25534
25535         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
25536         can be put into PATH.
25537         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
25538
25539 2009-04-01  Bruno Haible  <bruno@clisp.org>
25540
25541         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
25542
25543 2009-04-01  Bruno Haible  <bruno@clisp.org>
25544
25545         Rename module 'visibility'.
25546         * modules/lib-symbol-visibility: Renamed from modules/visibility.
25547         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
25548         * doc/gnulib.texi: Update.
25549         * MODULES.html.sh (Misc): Update.
25550         * NEWS: Mention the change.
25551
25552 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25553
25554         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
25555         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
25556         Eric Blake <ebb9@byu.net> for review.
25557         * MODULES.html.sh: Add lib-msvc-compat.
25558         * doc/gnulib.texi: Link to new section.
25559         * m4/ld-output-def.m4: New file.
25560         * doc/ld-output-def.texi: New file.
25561
25562 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25563
25564         Rename ld-version-script to lib-symbol-versions.  Suggested by
25565         Bruno Haible <bruno@clisp.org>.
25566         * modules/ld-version-script: Renamed to lib-symbol-versions.
25567         * doc/ld-version-script.texi: Fix module name.
25568         * MODULES.html.sh: Add lib-symbol-versions.
25569
25570 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25571
25572         * modules/u64-tests: New file.
25573         * tests/test-u64.c: New file.
25574
25575 2009-03-04  Simon Josefsson  <simon@josefsson.org>
25576
25577         * MODULES.html.sh: Mention u64.
25578         * modules/u64: New module.
25579         * modules/crypto/sha512: Depend on u64 module instead of providing
25580         u64.h.
25581
25582 2009-03-27  Eric Blake  <ebb9@byu.net>
25583
25584         test-strerror: make debugging EAI_SYSTEM easier
25585         * modules/getaddrinfo-tests (Depends-on): Add strerror.
25586         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
25587         failure was EAI_SYSTEM.
25588
25589 2009-03-25  Bruno Haible  <bruno@clisp.org>
25590
25591         Fix a problem with --enable-relocatable on Solaris 7.
25592         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
25593         since 2008-02-24.
25594
25595 2009-03-25  Eric Blake  <ebb9@byu.net>
25596
25597         test-sockets: avoid gcc warning
25598         * tests/test-sockets.c (main): Silence compiler warning.
25599
25600 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25601
25602         New modules nproc, pthread, contributed by Glen Lenker.
25603
25604         * MODULES.html.sh: Add pthread, nproc.
25605         * lib/nproc.c: New file.
25606         * lib/nproc.h: New file.
25607         * lib/pthread.in.h: New file.
25608         * m4/pthread.m4: New file.
25609         * modules/nproc: New file.
25610         * modules/pthread: New file.
25611
25612 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25613
25614         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
25615         New variable.
25616
25617 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
25618
25619         filevercmp: handle simple~ and numbered.~3~ backup suffixes
25620         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
25621         * tests/test-filevercmp.c: Add tests for backup suffixes.
25622
25623 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25624
25625         * modules/stdlib (Depends-on): Add stdint, needed when defining
25626         struct random_data on, for example, HP-UX 10.20.  Reported by
25627         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25628
25629 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25630
25631         * lib/readline.c (readline): Call fflush on stdout after printing
25632         prompt.
25633
25634 2009-03-20  Bruno Haible  <bruno@clisp.org>
25635
25636         Remove dependency from 'close' module to -lws2_32 on native Windows.
25637         * lib/close-hook.h: New file.
25638         * lib/close-hook.c: New file.
25639         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
25640         w32sock.h.
25641         (_gl_close_fd_maybe_socket): Remove function.
25642         (rpl_close): Invoke execute_all_close_hooks instead of
25643         _gl_close_fd_maybe_socket.
25644         * lib/sockets.c: Include close-hook.h, w32sock.h.
25645         (close_fd_maybe_socket): New function, essentially from lib/close.c.
25646         (close_sockets_hook): New variable.
25647         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
25648         (gl_sockets_cleanup): Unregister it.
25649         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
25650         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
25651         * modules/close-hook: New file.
25652         * modules/close (Files): Remove lib/w32sock.h.
25653         (Depends-on): Add close-hook.
25654         (Link): Remove section.
25655         * modules/sockets (Files): Add lib/w32sock.h.
25656         (Depends-on): Add close-hook.
25657         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
25658         invocation.
25659         * NEWS: Mention that LIB_CLOSE is gone.
25660
25661 2009-03-23  Eric Blake  <ebb9@byu.net>
25662
25663         signal-tests: test previous patch
25664         * tests/test-signal.c: New file.
25665         * modules/signal-tests: Likewise.
25666
25667         signal.h: always support 'volatile sig_atomic_t'
25668         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
25669         (gl_SIGNAL_H_DEFAULTS): Add a default.
25670         * modules/signal (Makefile.am): Substitute if needed.
25671         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
25672         users can blindly add volatile.
25673         * doc/posix-headers/signal.texi (signal.h): Document it.
25674         Reported by Matthew Woehlke.
25675
25676 2009-03-23  Jim Meyering  <meyering@redhat.com>
25677
25678         pathmax: PATH_MAX: use pathconf only when available
25679         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
25680         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
25681         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
25682         This avoids a link failure in a PSP cross-compilation environment
25683         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
25684
25685         * lib/vasnprintf.c (divide): Fix typo in comment.
25686
25687 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25688
25689         * gnulib-tool (func_filter_filelist): Fix comment.
25690
25691 2009-03-20  Bruno Haible  <bruno@clisp.org>
25692
25693         Make sockets.h self-contained.
25694         * lib/sockets.c: Include sockets.h first.
25695         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
25696
25697 2009-03-19  Eric Blake  <ebb9@byu.net>
25698
25699         doc: mention more functions added in cygwin 1.7.0
25700         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
25701         addition.
25702         * doc/posix-functions/log2f.texi: Likewise.
25703
25704 2009-03-19  Jim Meyering  <meyering@redhat.com>
25705
25706         fsusage: avoid syntax error due to statement-before-declaration
25707         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
25708         after all declarations.  Reported by Matthew Woehlke in
25709         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
25710
25711 2009-03-18  Eric Blake  <ebb9@byu.net>
25712
25713         build-aux/compile: sync from automake
25714         * build-aux/compile: New file, from automake.
25715         * config/srclist.txt: Mention build-aux/compile.
25716
25717 2009-03-17  Bruno Haible  <bruno@clisp.org>
25718
25719         * lib/git-merge-changelog.c: Fix typo in comment.
25720         Reported by Reuben Thomas <rrt@sc3d.org>.
25721
25722 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
25723
25724         * m4/regex.m4: update and improve help for
25725         --without-included-regex.
25726
25727 2009-03-17  Simon Josefsson  <simon@josefsson.org>
25728
25729         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
25730         failure on missing include files.
25731
25732 2009-03-17  Eric Blake  <ebb9@byu.net>
25733
25734         doc: mention more functions added in cygwin 1.7.0
25735         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
25736         addition.
25737         * doc/posix-functions/fwscanf.texi: Likewise.
25738         * doc/posix-functions/swprintf.texi: Likewise.
25739         * doc/posix-functions/swscanf.texi: Likewise.
25740         * doc/posix-functions/vfwprintf.texi: Likewise.
25741         * doc/posix-functions/vfwscanf.texi: Likewise.
25742         * doc/posix-functions/vswprintf.texi: Likewise.
25743         * doc/posix-functions/vswscanf.texi: Likewise.
25744         * doc/posix-functions/vwprintf.texi: Likewise.
25745         * doc/posix-functions/vwscanf.texi: Likewise.
25746         * doc/posix-functions/wcscasecmp.texi: Likewise.
25747         * doc/posix-functions/wcsdup.texi: Likewise.
25748         * doc/posix-functions/wcsftime.texi: Likewise.
25749         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25750         * doc/posix-functions/wprintf.texi: Likewise.
25751         * doc/posix-functions/wscanf.texi: Likewise.
25752         * doc/glibc-functions/gethostbyname2.texi: Likewise.
25753
25754 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25755
25756         maint.mk: really add $(AM_MAKEFLAGS)
25757         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
25758         was inadvertently omitted in the last commit.
25759         Spotted by Bruno Haible.
25760
25761         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
25762         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
25763         $(AM_MAKEFLAGS)' rather than plain `make'.
25764
25765         gnulib-tool: execute $MAKE not make
25766         * gnulib-tool: Default $MAKE to 'make'.
25767         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
25768         than make.  Initialize $MAKE in the do-autobuild script.
25769
25770         gnulib-tool: use $MAKE not make in generated files
25771         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
25772         make, in generated files.  Initialize $MAKE in the do-autobuild
25773         script.
25774
25775         * top/GNUmakefile (_have-git-version-gen): Fix typo.
25776
25777         GNUmakefile: disable parallelism only for multiple, recursive targets
25778         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
25779         additions in the Makefile.
25780         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
25781         by Automake.
25782         (.NOTPARALLEL): Only disable parallel builds if multiple targets
25783         are listed on the command line and at least one of them is
25784         listed in $(ALL_RECURSIVE_TARGETS).
25785
25786 2009-03-14  Bruno Haible  <bruno@clisp.org>
25787
25788         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
25789         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
25790         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
25791         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
25792         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
25793         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
25794         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
25795         unistr/u8-uctomb.
25796         * modules/unistr/u8-strchr (Depends-on): Likewise.
25797         * modules/unistr/u8-strrchr (Depends-on): Likewise.
25798         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
25799         unistr/u16-uctomb.
25800         * modules/unistr/u16-strchr (Depends-on): Likewise.
25801         * modules/unistr/u16-strrchr (Depends-on): Likewise.
25802
25803 2009-03-12  Bruno Haible  <bruno@clisp.org>
25804
25805         Work around select() bug on Interix 3.5.
25806         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
25807         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
25808         * m4/select.m4: New file.
25809         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
25810         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
25811         * modules/select (Files): Add m4/select.m4.
25812         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
25813         * modules/nanosleep (Depends-on): Add select.
25814         * modules/poll (Depends-on): Likewise.
25815         * doc/posix-functions/select.texi: Mention the Interix bug.
25816         Reported by Markus Duft <mduft@gentoo.org>.
25817
25818         * lib/select.c: Renamed from lib/winsock-select.c.
25819         * modules/select (Files): Add lib/select.c, remove
25820         lib/winsock-select.c.
25821         (configure.ac): Update.
25822
25823 2009-03-12  Jim Meyering  <meyering@redhat.com>
25824
25825         avoid gcc warnings about unused macro definitions
25826         * lib/readtokens.c (STREQ): Remove unused definition.
25827         * lib/xmalloc.c (SIZE_MAX): Likewise.
25828         * lib/openat-die.c (N_): Likewise.
25829         * lib/mountlist.c (SIZE_MAX): Remove definition.
25830         Instead, include <stdint.h>.
25831         * lib/readutmp.c: Likewise.
25832         * modules/readutmp (Depends-on): Add stdint.
25833         * modules/mountlist (Depends-on): Add stdint.
25834         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
25835
25836 2009-03-10  Bruno Haible  <bruno@clisp.org>
25837
25838         Tests for module 'mbmemcasecoll'.
25839         * modules/mbmemcasecoll-tests: New file.
25840         * tests/test-mbmemcasecoll1.sh: New file.
25841         * tests/test-mbmemcasecoll2.sh: New file.
25842         * tests/test-mbmemcasecoll3.sh: New file.
25843         * tests/test-mbmemcasecoll.c: New file.
25844
25845         New module 'mbmemcasecoll'.
25846         * lib/mbmemcasecoll.h: New file.
25847         * lib/mbmemcasecoll.c: New file.
25848         * modules/mbmemcasecoll: New file.
25849
25850         * tests/test-mbmemcasecmp.h: New file, extracted from
25851         tests/test-mbmemcasecmp.c.
25852         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
25853         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
25854         (main): Update.
25855         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
25856
25857 2009-03-09  Bruno Haible  <bruno@clisp.org>
25858
25859         Tests for module 'mbmemcasecmp'.
25860         * modules/mbmemcasecmp-tests: New file.
25861         * tests/test-mbmemcasecmp1.sh: New file.
25862         * tests/test-mbmemcasecmp2.sh: New file.
25863         * tests/test-mbmemcasecmp3.sh: New file.
25864         * tests/test-mbmemcasecmp.c: New file.
25865
25866         New module 'mbmemcasecmp'.
25867         * lib/mbmemcasecmp.h: New file.
25868         * lib/mbmemcasecmp.c: New file.
25869         * modules/mbmemcasecmp: New file.
25870
25871 2009-03-09  Bruno Haible  <bruno@clisp.org>
25872
25873         Tests for module 'unicase/ulc-casecoll'.
25874         * modules/unicase/ulc-casecoll-tests: New file.
25875         * tests/unicase/test-ulc-casecoll1.sh: New file.
25876         * tests/unicase/test-ulc-casecoll2.sh: New file.
25877         * tests/unicase/test-ulc-casecoll.c: New file.
25878
25879         New module 'unicase/ulc-casecoll'.
25880         * lib/unicase.h (ulc_casecoll): New declaration.
25881         * lib/unicase/ulc-casecoll.c: New file.
25882         * modules/unicase/ulc-casecoll: New file.
25883
25884         New module 'unicase/ulc-casexfrm'.
25885         * lib/unicase.h (ulc_casexfrm): New declaration.
25886         * lib/unicase/ulc-casexfrm.c: New file.
25887         * modules/unicase/ulc-casexfrm: New file.
25888
25889 2009-03-09  Bruno Haible  <bruno@clisp.org>
25890
25891         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
25892         invocations.
25893
25894         * m4/mbscasecmp.m4: Remove file.
25895         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
25896         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
25897
25898         * m4/mbscasestr.m4: Remove file.
25899         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
25900         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
25901
25902         * m4/mbschr.m4: Remove file.
25903         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
25904         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
25905
25906         * m4/mbscspn.m4: Remove file.
25907         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
25908         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
25909
25910         * m4/mbslen.m4: Remove file.
25911         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
25912         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
25913
25914         * m4/mbsncasecmp.m4: Remove file.
25915         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
25916         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
25917
25918         * m4/mbsnlen.m4: Remove file.
25919         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
25920         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
25921
25922         * m4/mbspbrk.m4: Remove file.
25923         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
25924         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
25925
25926         * m4/mbspcasecmp.m4: Remove file.
25927         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
25928         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
25929
25930         * m4/mbsrchr.m4: Remove file.
25931         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
25932         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
25933
25934         * m4/mbssep.m4: Remove file.
25935         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
25936         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
25937
25938         * m4/mbsspn.m4: Remove file.
25939         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
25940         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
25941
25942         * m4/mbsstr.m4: Remove file.
25943         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
25944         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
25945
25946         * m4/mbstok_r.m4: Remove file.
25947         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
25948         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
25949
25950         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
25951
25952         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
25953         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
25954
25955         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
25956
25957 2009-03-08  Bruno Haible  <bruno@clisp.org>
25958
25959         Tests for module 'unicase/ulc-casecmp'.
25960         * modules/unicase/ulc-casecmp-tests: New file.
25961         * tests/unicase/test-ulc-casecmp1.sh: New file.
25962         * tests/unicase/test-ulc-casecmp2.sh: New file.
25963         * tests/unicase/test-ulc-casecmp.c: New file.
25964
25965         New module 'unicase/ulc-casecmp'.
25966         * lib/unicase.h (ulc_casecmp): New declaration.
25967         * lib/unicase/ulc-casecmp.c: New file.
25968         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
25969         'const SRC_UNIT *'.
25970         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
25971         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
25972         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
25973         * modules/unicase/ulc-casecmp: New file.
25974
25975         Tests for module 'unicase/u32-is-cased'.
25976         * modules/unicase/u32-is-cased-tests: New file.
25977         * tests/unicase/test-u32-is-cased.c: New file.
25978
25979         Tests for module 'unicase/u16-is-cased'.
25980         * modules/unicase/u16-is-cased-tests: New file.
25981         * tests/unicase/test-u16-is-cased.c: New file.
25982
25983         Tests for module 'unicase/u8-is-cased'.
25984         * modules/unicase/u8-is-cased-tests: New file.
25985         * tests/unicase/test-u8-is-cased.c: New file.
25986         * tests/unicase/test-is-cased.h: New file.
25987
25988         New module 'unicase/u32-is-cased'.
25989         * lib/unicase/u32-is-cased.c: New file.
25990         * modules/unicase/u32-is-cased: New file.
25991
25992         New module 'unicase/u16-is-cased'.
25993         * lib/unicase/u16-is-cased.c: New file.
25994         * modules/unicase/u16-is-cased: New file.
25995
25996         New module 'unicase/u8-is-cased'.
25997         * lib/unicase/u8-is-cased.c: New file.
25998         * lib/unicase/u-is-cased.h: New file.
25999         * modules/unicase/u8-is-cased: New file.
26000
26001         Tests for module 'unicase/u32-is-casefolded'.
26002         * modules/unicase/u32-is-casefolded-tests: New file.
26003         * tests/unicase/test-u32-is-casefolded.c: New file.
26004
26005         Tests for module 'unicase/u16-is-casefolded'.
26006         * modules/unicase/u16-is-casefolded-tests: New file.
26007         * tests/unicase/test-u16-is-casefolded.c: New file.
26008
26009         Tests for module 'unicase/u8-is-casefolded'.
26010         * modules/unicase/u8-is-casefolded-tests: New file.
26011         * tests/unicase/test-u8-is-casefolded.c: New file.
26012         * tests/unicase/test-is-casefolded.h: New file.
26013
26014         New module 'unicase/u32-is-casefolded'.
26015         * lib/unicase/u32-is-casefolded.c: New file.
26016         * modules/unicase/u32-is-casefolded: New file.
26017
26018         New module 'unicase/u16-is-casefolded'.
26019         * lib/unicase/u16-is-casefolded.c: New file.
26020         * modules/unicase/u16-is-casefolded: New file.
26021
26022         New module 'unicase/u8-is-casefolded'.
26023         * lib/unicase/u8-is-casefolded.c: New file.
26024         * modules/unicase/u8-is-casefolded: New file.
26025
26026         Tests for module 'unicase/u32-is-titlecase'.
26027         * modules/unicase/u32-is-titlecase-tests: New file.
26028         * tests/unicase/test-u32-is-titlecase.c: New file.
26029
26030         Tests for module 'unicase/u16-is-titlecase'.
26031         * modules/unicase/u16-is-titlecase-tests: New file.
26032         * tests/unicase/test-u16-is-titlecase.c: New file.
26033
26034         Tests for module 'unicase/u8-is-titlecase'.
26035         * modules/unicase/u8-is-titlecase-tests: New file.
26036         * tests/unicase/test-u8-is-titlecase.c: New file.
26037         * tests/unicase/test-is-titlecase.h: New file.
26038
26039         New module 'unicase/u32-is-titlecase'.
26040         * lib/unicase/u32-is-titlecase.c: New file.
26041         * modules/unicase/u32-is-titlecase: New file.
26042
26043         New module 'unicase/u16-is-titlecase'.
26044         * lib/unicase/u16-is-titlecase.c: New file.
26045         * modules/unicase/u16-is-titlecase: New file.
26046
26047         New module 'unicase/u8-is-titlecase'.
26048         * lib/unicase/u8-is-titlecase.c: New file.
26049         * modules/unicase/u8-is-titlecase: New file.
26050
26051         Tests for module 'unicase/u32-is-lowercase'.
26052         * modules/unicase/u32-is-lowercase-tests: New file.
26053         * tests/unicase/test-u32-is-lowercase.c: New file.
26054
26055         Tests for module 'unicase/u16-is-lowercase'.
26056         * modules/unicase/u16-is-lowercase-tests: New file.
26057         * tests/unicase/test-u16-is-lowercase.c: New file.
26058
26059         Tests for module 'unicase/u8-is-lowercase'.
26060         * modules/unicase/u8-is-lowercase-tests: New file.
26061         * tests/unicase/test-u8-is-lowercase.c: New file.
26062         * tests/unicase/test-is-lowercase.h: New file.
26063
26064         New module 'unicase/u32-is-lowercase'.
26065         * lib/unicase/u32-is-lowercase.c: New file.
26066         * modules/unicase/u32-is-lowercase: New file.
26067
26068         New module 'unicase/u16-is-lowercase'.
26069         * lib/unicase/u16-is-lowercase.c: New file.
26070         * modules/unicase/u16-is-lowercase: New file.
26071
26072         New module 'unicase/u8-is-lowercase'.
26073         * lib/unicase/u8-is-lowercase.c: New file.
26074         * modules/unicase/u8-is-lowercase: New file.
26075
26076         Tests for module 'unicase/u32-is-uppercase'.
26077         * modules/unicase/u32-is-uppercase-tests: New file.
26078         * tests/unicase/test-u32-is-uppercase.c: New file.
26079
26080         Tests for module 'unicase/u16-is-uppercase'.
26081         * modules/unicase/u16-is-uppercase-tests: New file.
26082         * tests/unicase/test-u16-is-uppercase.c: New file.
26083
26084         Tests for module 'unicase/u8-is-uppercase'.
26085         * modules/unicase/u8-is-uppercase-tests: New file.
26086         * tests/unicase/test-u8-is-uppercase.c: New file.
26087         * tests/unicase/test-is-uppercase.h: New file.
26088
26089         New module 'unicase/u32-is-uppercase'.
26090         * lib/unicase/u32-is-uppercase.c: New file.
26091         * modules/unicase/u32-is-uppercase: New file.
26092
26093         New module 'unicase/u16-is-uppercase'.
26094         * lib/unicase/u16-is-uppercase.c: New file.
26095         * modules/unicase/u16-is-uppercase: New file.
26096
26097         New module 'unicase/u8-is-uppercase'.
26098         * lib/unicase/u8-is-uppercase.c: New file.
26099         * modules/unicase/u8-is-uppercase: New file.
26100
26101         New module 'unicase/u32-is-invariant'.
26102         * lib/unicase/u32-is-invariant.c: New file.
26103         * modules/unicase/u32-is-invariant: New file.
26104
26105         New module 'unicase/u16-is-invariant'.
26106         * lib/unicase/u16-is-invariant.c: New file.
26107         * modules/unicase/u16-is-invariant: New file.
26108
26109         New module 'unicase/u8-is-invariant'.
26110         * lib/unicase/u8-is-invariant.c: New file.
26111         * lib/unicase/invariant.h: New file.
26112         * lib/unicase/u-is-invariant.h: New file.
26113         * modules/unicase/u8-is-invariant: New file.
26114
26115         Tests for module 'unicase/u32-casecoll'.
26116         * modules/unicase/u32-casecoll-tests: New file.
26117         * tests/unicase/test-u32-casecoll.c: New file.
26118
26119         Tests for module 'unicase/u16-casecoll'.
26120         * modules/unicase/u16-casecoll-tests: New file.
26121         * tests/unicase/test-u16-casecoll.c: New file.
26122
26123         Tests for module 'unicase/u8-casecoll'.
26124         * modules/unicase/u8-casecoll-tests: New file.
26125         * tests/unicase/test-u8-casecoll.c: New file.
26126
26127         New module 'unicase/u32-casecoll'.
26128         * lib/unicase/u32-casecoll.c: New file.
26129         * modules/unicase/u32-casecoll: New file.
26130
26131         New module 'unicase/u16-casecoll'.
26132         * lib/unicase/u16-casecoll.c: New file.
26133         * modules/unicase/u16-casecoll: New file.
26134
26135         New module 'unicase/u8-casecoll'.
26136         * lib/unicase/u8-casecoll.c: New file.
26137         * lib/unicase/u-casecoll.h: New file.
26138         * modules/unicase/u8-casecoll: New file.
26139
26140         New module 'unicase/u32-casexfrm'.
26141         * lib/unicase/u32-casexfrm.c: New file.
26142         * modules/unicase/u32-casexfrm: New file.
26143
26144         New module 'unicase/u16-casexfrm'.
26145         * lib/unicase/u16-casexfrm.c: New file.
26146         * modules/unicase/u16-casexfrm: New file.
26147
26148         New module 'unicase/u8-casexfrm'.
26149         * lib/unicase/u8-casexfrm.c: New file.
26150         * lib/unicase/u-casexfrm.h: New file.
26151         * modules/unicase/u8-casexfrm: New file.
26152
26153         Tests for module 'unicase/u32-casecmp'.
26154         * modules/unicase/u32-casecmp-tests: New file.
26155         * tests/unicase/test-u32-casecmp.c: New file.
26156
26157         Tests for module 'unicase/u16-casecmp'.
26158         * modules/unicase/u16-casecmp-tests: New file.
26159         * tests/unicase/test-u16-casecmp.c: New file.
26160
26161         Tests for module 'unicase/u8-casecmp'.
26162         * modules/unicase/u8-casecmp-tests: New file.
26163         * tests/unicase/test-u8-casecmp.c: New file.
26164         * tests/unicase/test-casecmp.h: New file.
26165
26166         New module 'unicase/u32-casecmp'.
26167         * lib/unicase/u32-casecmp.c: New file.
26168         * modules/unicase/u32-casecmp: New file.
26169
26170         New module 'unicase/u16-casecmp'.
26171         * lib/unicase/u16-casecmp.c: New file.
26172         * modules/unicase/u16-casecmp: New file.
26173
26174         New module 'unicase/u8-casecmp'.
26175         * lib/unicase/u8-casecmp.c: New file.
26176         * lib/unicase/u-casecmp.h: New file.
26177         * modules/unicase/u8-casecmp: New file.
26178
26179         Tests for module 'unicase/u32-casefold'.
26180         * modules/unicase/u32-casefold-tests: New file.
26181         * tests/unicase/test-u32-casefold.c: New file.
26182
26183         Tests for module 'unicase/u16-casefold'.
26184         * modules/unicase/u16-casefold-tests: New file.
26185         * tests/unicase/test-u16-casefold.c: New file.
26186
26187         Tests for module 'unicase/u8-casefold'.
26188         * modules/unicase/u8-casefold-tests: New file.
26189         * tests/unicase/test-u8-casefold.c: New file.
26190
26191         New module 'unicase/u32-casefold'.
26192         * lib/unicase/u32-casefold.c: New file.
26193         * modules/unicase/u32-casefold: New file.
26194
26195         New module 'unicase/u16-casefold'.
26196         * lib/unicase/u16-casefold.c: New file.
26197         * modules/unicase/u16-casefold: New file.
26198
26199         New module 'unicase/u8-casefold'.
26200         * lib/unicase/u8-casefold.c: New file.
26201         * lib/unicase/u-casefold.h: New file.
26202         * modules/unicase/u8-casefold: New file.
26203
26204         New module 'unicase/tocasefold'.
26205         * lib/unicase/casefold.h: New file.
26206         * lib/unicase/tocasefold.c: New file.
26207         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
26208         * modules/unicase/tocasefold: New file.
26209
26210         Tests for module 'unicase/u32-totitle'.
26211         * modules/unicase/u32-totitle-tests: New file.
26212         * tests/unicase/test-u32-totitle.c: New file.
26213
26214         Tests for module 'unicase/u16-totitle'.
26215         * modules/unicase/u16-totitle-tests: New file.
26216         * tests/unicase/test-u16-totitle.c: New file.
26217
26218         Tests for module 'unicase/u8-totitle'.
26219         * modules/unicase/u8-totitle-tests: New file.
26220         * tests/unicase/test-u8-totitle.c: New file.
26221
26222         New module 'unicase/u32-totitle'.
26223         * lib/unicase/u32-totitle.c: New file.
26224         * modules/unicase/u32-totitle: New file.
26225
26226         New module 'unicase/u16-totitle'.
26227         * lib/unicase/u16-totitle.c: New file.
26228         * modules/unicase/u16-totitle: New file.
26229
26230         New module 'unicase/u8-totitle'.
26231         * lib/unicase/u8-totitle.c: New file.
26232         * lib/unicase/u-totitle.h: New file.
26233         * modules/unicase/u8-totitle: New file.
26234
26235         Tests for module 'unicase/u32-tolower'.
26236         * modules/unicase/u32-tolower-tests: New file.
26237         * tests/unicase/test-u32-tolower.c: New file.
26238
26239         Tests for module 'unicase/u16-tolower'.
26240         * modules/unicase/u16-tolower-tests: New file.
26241         * tests/unicase/test-u16-tolower.c: New file.
26242
26243         Tests for module 'unicase/u8-tolower'.
26244         * modules/unicase/u8-tolower-tests: New file.
26245         * tests/unicase/test-u8-tolower.c: New file.
26246
26247         New module 'unicase/u32-tolower'.
26248         * lib/unicase/u32-tolower.c: New file.
26249         * modules/unicase/u32-tolower: New file.
26250
26251         New module 'unicase/u16-tolower'.
26252         * lib/unicase/u16-tolower.c: New file.
26253         * modules/unicase/u16-tolower: New file.
26254
26255         New module 'unicase/u8-tolower'.
26256         * lib/unicase/u8-tolower.c: New file.
26257         * modules/unicase/u8-tolower: New file.
26258
26259         Tests for module 'unicase/u32-toupper'.
26260         * modules/unicase/u32-toupper-tests: New file.
26261         * tests/unicase/test-u32-toupper.c: New file.
26262
26263         Tests for module 'unicase/u16-toupper'.
26264         * modules/unicase/u16-toupper-tests: New file.
26265         * tests/unicase/test-u16-toupper.c: New file.
26266
26267         Tests for module 'unicase/u8-toupper'.
26268         * modules/unicase/u8-toupper-tests: New file.
26269         * tests/unicase/test-u8-toupper.c: New file.
26270
26271         New module 'unicase/u32-toupper'.
26272         * lib/unicase/u32-toupper.c: New file.
26273         * modules/unicase/u32-toupper: New file.
26274
26275         New module 'unicase/u16-toupper'.
26276         * lib/unicase/u16-toupper.c: New file.
26277         * modules/unicase/u16-toupper: New file.
26278
26279         New module 'unicase/u8-toupper'.
26280         * lib/unicase/u8-toupper.c: New file.
26281         * modules/unicase/u8-toupper: New file.
26282
26283         New module 'unicase/u32-casemap'.
26284         * lib/unicase/u32-casemap.c: New file.
26285         * modules/unicase/u32-casemap: New file.
26286
26287         New module 'unicase/u16-casemap'.
26288         * lib/unicase/u16-casemap.c: New file.
26289         * modules/unicase/u16-casemap: New file.
26290
26291         New module 'unicase/u8-casemap'.
26292         * lib/unicase/unicasemap.h: New file.
26293         * lib/unicase/u8-casemap.c: New file.
26294         * lib/unicase/u-casemap.h: New file.
26295         * modules/unicase/u8-casemap: New file.
26296
26297         New module 'unicase/special-casing'.
26298         * lib/unicase/special-casing.h: New file.
26299         * lib/unicase/special-casing.c: New file.
26300         * lib/unicase/special-casing-table.gperf: New file, generated by
26301         gen-uni-tables.c.
26302         * modules/unicase/special-casing: New file.
26303
26304         Tests for module 'unicase/locale-language'.
26305         * modules/unicase/locale-language-tests: New file.
26306         * tests/unicase/test-locale-language.sh: New file.
26307         * tests/unicase/test-locale-language.c: New file.
26308
26309         New module 'unicase/locale-language'.
26310         * lib/unicase/locale-language.c: New file.
26311         * lib/unicase/locale-languages.gperf: New file.
26312         * modules/unicase/locale-language: New file.
26313
26314         Generate more tables for case conversion and case folding.
26315         * lib/gen-uni-tables.c (SCC_*): New enum items.
26316         (struct special_casing_rule): New type.
26317         (casing_rules, num_casing_rules, allocated_casing_rules): New
26318         variables.
26319         (add_casing_rule, fill_casing_rules): New functions.
26320         (struct casefold_rule): New type.
26321         (casefolding_rules, num_casefolding_rules,
26322         allocated_casefolding_rules): New variables.
26323         (fill_casefolding_rules): New function.
26324         (unicode_casefold): New variable.
26325         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
26326         sort_casing_rules, output_casing_rules): New functions.
26327         (main): Accept to more arguments: SpecialCasing.txt and
26328         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
26329         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
26330         Output mapping for casefolding.
26331
26332         * lib/unicase.h: Include stdbool.h, uninorm.h.
26333         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
26334         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
26335         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
26336         arguments.
26337         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
26338         resultp arguments.
26339         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
26340         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
26341         resultp arguments.
26342         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
26343         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
26344         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
26345         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
26346         declarations.
26347         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
26348
26349 2009-03-08  Bruno Haible  <bruno@clisp.org>
26350
26351         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26352         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
26353         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
26354         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26355
26356 2009-03-07  Bruno Haible  <bruno@clisp.org>
26357
26358         Adjust u*_normcmp, u*_normcoll API.
26359         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26360         u16_normcoll, u32_normcoll): Change failure conventions.
26361         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
26362         errno and return -1.
26363         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26364
26365 2009-03-07  Bruno Haible  <bruno@clisp.org>
26366
26367         Tests for module 'uninorm/u32-normcoll'.
26368         * modules/uninorm/u32-normcoll-tests: New file.
26369         * tests/uninorm/test-u32-normcoll.c: New file.
26370
26371         Tests for module 'uninorm/u16-normcoll'.
26372         * modules/uninorm/u16-normcoll-tests: New file.
26373         * tests/uninorm/test-u16-normcoll.c: New file.
26374
26375         Tests for module 'uninorm/u8-normcoll'.
26376         * modules/uninorm/u8-normcoll-tests: New file.
26377         * tests/uninorm/test-u8-normcoll.c: New file.
26378
26379 2009-03-07  Bruno Haible  <bruno@clisp.org>
26380
26381         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
26382         tests/uninorm/test-u32-normcmp.c.
26383         * tests/uninorm/test-u32-normcmp.c: Include it.
26384         (test_nonascii): New function, extracted from main. Add some more
26385         tests.
26386         (main): Invoke test_ascii and test_nonascii.
26387         * modules/uninorm/u32-normcmp-tests (Files): Add
26388         tests/uninorm/test-u32-normcmp.h.
26389         (Depends-on): Remove uninorm/u32-normcmp.
26390
26391         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
26392         tests/uninorm/test-u16-normcmp.c.
26393         * tests/uninorm/test-u16-normcmp.c: Include it.
26394         (test_nonascii): New function, extracted from main. Add some more
26395         tests.
26396         (main): Invoke test_ascii and test_nonascii.
26397         * modules/uninorm/u16-normcmp-tests (Files): Add
26398         tests/uninorm/test-u16-normcmp.h.
26399         (Depends-on): Remove uninorm/u16-normcmp.
26400
26401         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
26402         tests/uninorm/test-u8-normcmp.c.
26403         * tests/uninorm/test-u8-normcmp.c: Include it.
26404         (test_nonascii): New function, extracted from main. Add some more
26405         tests.
26406         (main): Invoke test_ascii and test_nonascii.
26407         * modules/uninorm/u8-normcmp-tests (Files): Add
26408         tests/uninorm/test-u8-normcmp.h.
26409         (Depends-on): Remove uninorm/u8-normcmp.
26410
26411 2009-03-07  Bruno Haible  <bruno@clisp.org>
26412
26413         New module 'uninorm/u32-normcoll'.
26414         * lib/uninorm/u32-normcoll.c: New file.
26415         * modules/uninorm/u32-normcoll: New file.
26416
26417         New module 'uninorm/u16-normcoll'.
26418         * lib/uninorm/u16-normcoll.c: New file.
26419         * modules/uninorm/u16-normcoll: New file.
26420
26421         New module 'uninorm/u8-normcoll'.
26422         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
26423         declarations.
26424         * lib/uninorm/u8-normcoll.c: New file.
26425         * lib/uninorm/u-normcoll.h: New file.
26426         * modules/uninorm/u8-normcoll: New file.
26427
26428         New module 'uninorm/u32-normxfrm'.
26429         * lib/uninorm/u32-normxfrm.c: New file.
26430         * modules/uninorm/u32-normxfrm: New file.
26431
26432         New module 'uninorm/u16-normxfrm'.
26433         * lib/uninorm/u16-normxfrm.c: New file.
26434         * modules/uninorm/u16-normxfrm: New file.
26435
26436         New module 'uninorm/u8-normxfrm'.
26437         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
26438         declarations.
26439         * lib/uninorm/u8-normxfrm.c: New file.
26440         * lib/uninorm/u-normxfrm.h: New file.
26441         * modules/uninorm/u8-normxfrm: New file.
26442
26443 2009-03-07  Bruno Haible  <bruno@clisp.org>
26444
26445         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
26446         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
26447         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
26448
26449 2009-03-07  Bruno Haible  <bruno@clisp.org>
26450
26451         New module 'memxfrm'.
26452         * lib/memxfrm.h: New file.
26453         * lib/memxfrm.c: New file.
26454         * modules/memxfrm: New file.
26455
26456 2009-03-07  Bruno Haible  <bruno@clisp.org>
26457
26458         New module 'memcmp2'.
26459         * lib/memcmp2.h: New file.
26460         * lib/memcmp2.c: New file.
26461         * modules/memcmp2: New file.
26462
26463 2009-03-07  Bruno Haible  <bruno@clisp.org>
26464
26465         Tests for module 'uninorm/decomposing-form'.
26466         * modules/uninorm/decomposing-form-tests: New file.
26467         * tests/uninorm/test-decomposing-form.c: New file.
26468
26469         New module 'uninorm/decomposing-form'.
26470         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
26471         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
26472         Add 'decomposing_variant' field.
26473         * lib/uninorm/decomposing-form.c: New file.
26474         * lib/uninorm/nfc.c (uninorm_nfc): Update.
26475         * lib/uninorm/nfd.c (uninorm_nfd): Update.
26476         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
26477         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
26478         * modules/uninorm/decomposing-form: New file.
26479         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
26480         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
26481
26482 2009-03-07  Bruno Haible  <bruno@clisp.org>
26483
26484         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
26485         strings.
26486
26487 2009-03-06  Bruno Haible  <bruno@clisp.org>
26488
26489         Tests for module 'uninorm/u32-normcmp'.
26490         * tests/uninorm/test-u32-normcmp.c: New file.
26491         * modules/uninorm/u32-normcmp-tests: New file.
26492
26493         Tests for module 'uninorm/u16-normcmp'.
26494         * tests/uninorm/test-u16-normcmp.c: New file.
26495         * modules/uninorm/u16-normcmp-tests: New file.
26496
26497         Tests for module 'uninorm/u8-normcmp'.
26498         * tests/uninorm/test-u8-normcmp.c: New file.
26499         * modules/uninorm/u8-normcmp-tests: New file.
26500
26501         New module 'uninorm/u32-normcmp'.
26502         * lib/uninorm/u32-normcmp.c: New file.
26503         * modules/uninorm/u32-normcmp: New file.
26504
26505         New module 'uninorm/u16-normcmp'.
26506         * lib/uninorm/u16-normcmp.c: New file.
26507         * modules/uninorm/u16-normcmp: New file.
26508
26509         New module 'uninorm/u8-normcmp'.
26510         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
26511         declarations.
26512         * lib/uninorm/u8-normcmp.c: New file.
26513         * lib/uninorm/u-normcmp.h: New file.
26514         * modules/uninorm/u8-normcmp: New file.
26515
26516 2009-03-06  Bruno Haible  <bruno@clisp.org>
26517
26518         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
26519         Reported by Eric Blake.
26520
26521 2009-03-06  Eric Blake  <ebb9@byu.net>
26522             Bruno Haible  <bruno@clisp.org>
26523
26524         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
26525         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
26526         condition.
26527         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26528         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
26529         condition.
26530         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26531
26532 2009-03-06  Eric Blake  <ebb9@byu.net>
26533
26534         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
26535         to avoid compiler warnings.
26536         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
26537
26538 2009-03-05  Bruno Haible  <bruno@clisp.org>
26539
26540         * tests/test-ftell.c (main): Disable test beyond end of file on
26541         FreeMiNT.
26542         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26543
26544 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
26545
26546         * lib/filevercmp.c: Move hidden files up in ordering.
26547         * tests/test-filevercmp.c: Add tests for hidden files.
26548
26549 2009-03-04  Bruno Haible  <bruno@clisp.org>
26550
26551         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
26552         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
26553         AM_CFLAGS.
26554         Reported by Simon Josefsson.
26555
26556 2009-03-03  Bruno Haible  <bruno@clisp.org>
26557
26558         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
26559         Reported by Simon Josefsson.
26560
26561         * doc/ld-version-script.texi: Update node reference.
26562
26563 2009-03-03  Bruno Haible  <bruno@clisp.org>
26564
26565         * modules/visibility (License): Change to 'unlimited'.
26566         Suggested by Simon Josefsson.
26567
26568 2009-03-03  Jim Meyering  <meyering@redhat.com>
26569
26570         unlinkdir: cannot_unlink_dir may modify process state
26571         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
26572         it's neither thread-safe nor appropriate for use in a library.
26573
26574 2009-03-03  Eric Blake  <ebb9@byu.net>
26575
26576         test-closein: silence test under Darwin
26577         * tests/test-closein.sh: Ignore stderr from cat, since we don't
26578         care if it dies from EPIPE or EBADF.
26579
26580 2009-03-03  Bruno Haible  <bruno@clisp.org>
26581
26582         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
26583         earlier.
26584         * doc/visibility.texi: Fix @node and @section.
26585
26586 2009-03-03  Simon Josefsson  <simon@josefsson.org>
26587
26588         * doc/gnulib.texi: Link to sections for ld version script and
26589         visibility.
26590         * doc/visibility.texi: Add @node and @section.
26591         * modules/ld-version-script: New module.
26592         * m4/ld-version-script.m4: New file.
26593         * doc/ld-version-script.texi: New file.
26594
26595 2009-03-02  David Lutterkort  <lutter@redhat.com>
26596
26597         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
26598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26599
26600 2009-03-02  Bruno Haible  <bruno@clisp.org>
26601
26602         * doc/visibility.texi: Mention libtool's -export-symbols option.
26603
26604 2009-03-02  Jim Meyering  <meyering@redhat.com>
26605
26606         announce-gen: new option: --no-print-checksums
26607         * build-aux/announce-gen (usage): Describe it.
26608         (print_checksums): Print a newline here, not in the [*] footnote.
26609         (main): Honor it.
26610
26611 2009-03-01  Bruno Haible  <bruno@clisp.org>
26612
26613         Use socklen_t in the native Windows replacements prototypes.
26614         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
26615         instead of 'int'.
26616         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26617         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26618         * modules/getsockopt (Depends-on): Add socklen.
26619         * modules/setsockopt (Depends-on): Add socklen.
26620
26621 2009-03-01  Bruno Haible  <bruno@clisp.org>
26622
26623         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
26624         least 4.2.
26625
26626 2009-03-01  Eric Blake  <ebb9@byu.net>
26627             Bruno Haible  <bruno@clisp.org>
26628
26629         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
26630         error messages.
26631         * lib/wait-process.c (wait_subprocess): Omit error message about
26632         deadly signal sent to the child of termsigp != NULL.
26633
26634 2009-03-01  Eric Blake  <ebb9@byu.net>
26635
26636         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
26637
26638 2009-03-01  Bruno Haible  <bruno@clisp.org>
26639
26640         Avoid a gcc warning.
26641         * tests/test-sched.c (b): Make global.
26642         Reported by Eric Blake.
26643
26644 2009-01-19  Martin Lambers  <marlam@marlam.de>
26645
26646         Provide POSIX semantics for socket timeout options on W32.
26647         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
26648         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
26649         * modules/setsockopt: Depend on sys_time module for struct timeval.
26650         * modules/getsockopt: Depend on sys_time module for struct timeval.
26651
26652 2009-03-01  Simon Josefsson  <simon@josefsson.org>
26653
26654         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
26655         __USE_GNU, for consistency with netdb.in.h.
26656         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26657
26658 2009-03-01  Bruno Haible  <bruno@clisp.org>
26659
26660         More support for FreeMiNT.
26661         * lib/fseeko.c (rpl_fseeko): Complete last commit.
26662         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26663
26664 2009-03-01  Bruno Haible  <bruno@clisp.org>
26665
26666         More support for FreeMiNT.
26667         * lib/fpurge.c (fpurge): Correct last commit.
26668         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26669
26670 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26671
26672         Fix unportable awk script in vc-list-files.
26673         * build-aux/vc-list-files: In the replacement awk script, use
26674         substr with a second argument of 1, not zero.
26675         Report by Simon Josefsson.
26676
26677 2009-02-28  Bruno Haible  <bruno@clisp.org>
26678
26679         More support for FreeMiNT.
26680         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
26681         to FreeMiNT today.
26682         * lib/fwriting.c (fwriting): Likewise.
26683         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
26684
26685 2009-02-28  Bruno Haible  <bruno@clisp.org>
26686
26687         * tests/test-freadseek.c (main): Disable test beyond end of file on
26688         FreeMiNT.
26689         * tests/test-ftello.c (main): Likewise.
26690         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26691
26692 2009-02-28  Bruno Haible  <bruno@clisp.org>
26693
26694         Add tentative support for FreeMiNT.
26695         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
26696         * lib/fpurge.c (fpurge): Likewise.
26697         * lib/freadable.c (freadable): Likewise.
26698         * lib/freading.c (freading): Likewise.
26699         * lib/freadptr.c (freadptr): Likewise.
26700         * lib/freadseek.c (freadptrinc): Likewise.
26701         * lib/fseeko.c (rpl_fseeko): Likewise.
26702         * lib/fseterr.c (fseterr): Likewise.
26703         * lib/fwritable.c (fwritable): Likewise.
26704         * lib/fwriting.c (fwriting): Likewise.
26705         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
26706         Hourihane.
26707         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26708
26709 2009-02-28  Bruno Haible  <bruno@clisp.org>
26710
26711         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
26712         SIGCHLD.
26713         Reported by Jim Meyering.
26714
26715 2009-02-28  Bruno Haible  <bruno@clisp.org>
26716
26717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
26718         Mention the results of these tests on various platforms.
26719         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
26720         order.
26721         * doc/posix-functions/printf.texi: Likewise.
26722         * doc/posix-functions/snprintf.texi: Likewise.
26723         * doc/posix-functions/sprintf.texi: Likewise.
26724         * doc/posix-functions/vfprintf.texi: Likewise.
26725         * doc/posix-functions/vprintf.texi: Likewise.
26726         * doc/posix-functions/vsnprintf.texi: Likewise.
26727         * doc/posix-functions/vsprintf.texi: Likewise.
26728         * doc/glibc-functions/obstack_printf.texi: Likewise.
26729         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26730
26731 2009-02-28  Bruno Haible  <bruno@clisp.org>
26732
26733         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
26734         Reported by Loïc Minier <lool@dooz.org>.
26735
26736 2009-02-27  Bruno Haible  <bruno@clisp.org>
26737
26738         * gnulib-tool (func_import): Make the sed expression used to create the
26739         sed script for updating the .gitignore file POSIX compliant.
26740         Reported by Eric Blake.
26741
26742 2009-02-27  Bruno Haible  <bruno@clisp.org>
26743
26744         * gnulib-tool (sed): Don't alias as "sed --posix".
26745         Reported by Eric Blake.
26746
26747 2009-02-27  Bruno Haible  <bruno@clisp.org>
26748
26749         Avoid test link errors.
26750         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
26751         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
26752         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
26753         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
26754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26755
26756 2009-02-27  Bruno Haible  <bruno@clisp.org>
26757
26758         Avoid spurious "(cached)" in configure output.
26759         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
26760         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
26761         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26762         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26763         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26764         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26765         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26766         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26767         Reported by Eric Blake.
26768
26769 2009-02-27  Eric Blake  <ebb9@byu.net>
26770
26771         printf: fix regression in previous patch
26772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
26773
26774 2009-02-27  Bruno Haible  <bruno@clisp.org>
26775
26776         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
26777         value.
26778         * lib/stdint.in.h: Likewise.
26779         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
26780
26781 2009-02-27  Eric Blake  <ebb9@byu.net>
26782
26783         doc: mention more functions added in cygwin 1.7.0
26784         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
26785         addition.
26786         * doc/posix-functions/open_wmemstream.texi: Likewise.
26787         * doc/posix-functions/wcsnlen.texi: Likewise.
26788         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26789         * doc/posix-functions/wcstod.texi: Likewise.
26790         * doc/posix-functions/wcstof.texi: Likewise.
26791         * doc/posix-functions/wcstoimax.texi: Likewise.
26792         * doc/posix-functions/wcstok.texi: Likewise.
26793         * doc/posix-functions/wcstoumax.texi: Likewise.
26794
26795         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
26796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
26797         * doc/posix-functions/fprintf.texi: Update.
26798         * doc/posix-functions/printf.texi: Update.
26799         * doc/posix-functions/snprintf.texi: Update.
26800         * doc/posix-functions/sprintf.texi: Update.
26801         * doc/posix-functions/vfprintf.texi: Update.
26802         * doc/posix-functions/vprintf.texi: Update.
26803         * doc/posix-functions/vsnprintf.texi: Update.
26804         * doc/posix-functions/vsprintf.texi: Update.
26805         * doc/glibc-functions/obstack_printf.texi: Update.
26806         * doc/glibc-functions/obstack_vprintf.texi: Update.
26807
26808 2009-02-26  Eric Blake  <ebb9@byu.net>
26809
26810         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
26811         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
26812         compilation bug by using runtime conversion.
26813         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26814         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
26815         * modules/ceill-tests (Files): Use nan.h.
26816         * modules/floorl-tests (Files): Likewise.
26817         * modules/frexpl-tests (Files): Likewise.
26818         * modules/isnanl-tests (Files): Likewise.
26819         * modules/ldexpl-tests (Files): Likewise.
26820         * modules/roundl-tests (Files): Likewise.
26821         * modules/truncl-tests (Files): Likewise.
26822         * tests/test-ceill.c (main): Use a working NaN.
26823         * tests/test-floorl.c (main): Likewise.
26824         * tests/test-frexpl.c (main): Likewise.
26825         * tests/test-isnan.c (test_long_double): Likewise.
26826         * tests/test-isnanl.h (main): Likewise.
26827         * tests/test-ldexpl.h (main): Likewise.
26828         * tests/test-roundl.h (main): Likewise.
26829         * tests/test-truncl.h (main): Likewise.
26830         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
26831
26832 2009-02-26  Eric Blake  <ebb9@byu.net>
26833             Bruno Haible  <bruno@clisp.org>
26834
26835         Work around a *printf bug with %ls on Solaris.
26836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
26837         precision is specified, sprintf stops converting the wide string
26838         argument when the number of bytes that have been produced by this
26839         conversion equals or exceeds the precision.
26840         * doc/posix-functions/fprintf.texi: Update.
26841         * doc/posix-functions/printf.texi: Update.
26842         * doc/posix-functions/snprintf.texi: Update.
26843         * doc/posix-functions/sprintf.texi: Update.
26844         * doc/posix-functions/vfprintf.texi: Update.
26845         * doc/posix-functions/vprintf.texi: Update.
26846         * doc/posix-functions/vsnprintf.texi: Update.
26847         * doc/posix-functions/vsprintf.texi: Update.
26848         * doc/glibc-functions/obstack_printf.texi: Update.
26849         * doc/glibc-functions/obstack_vprintf.texi: Update.
26850
26851 2009-02-26  Eric Blake  <ebb9@byu.net>
26852
26853         stdlib: favor compiler check of random.h
26854         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
26855         to avoid an ObjC random.h installed by Swarm.
26856
26857 2009-02-26  Bruno Haible  <bruno@clisp.org>
26858
26859         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
26860         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
26861         Reported by Gary V. Vaughan <gary@gnu.org>.
26862
26863 2009-02-26  Bruno Haible  <bruno@clisp.org>
26864
26865         Fix *printf behaviour regarding the %ls directive.
26866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
26867         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
26868         NEED_PRINTF_DIRECTIVE_LS.
26869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
26870         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26872         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
26873         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
26874         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
26875         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26880         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
26881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26884         * doc/posix-functions/fprintf.texi: Update.
26885         * doc/posix-functions/printf.texi: Update.
26886         * doc/posix-functions/snprintf.texi: Update.
26887         * doc/posix-functions/sprintf.texi: Update.
26888         * doc/posix-functions/vfprintf.texi: Update.
26889         * doc/posix-functions/vprintf.texi: Update.
26890         * doc/posix-functions/vsnprintf.texi: Update.
26891         * doc/posix-functions/vsprintf.texi: Update.
26892         * doc/glibc-functions/obstack_printf.texi: Update.
26893         * doc/glibc-functions/obstack_vprintf.texi: Update.
26894         Reported by Eric Blake.
26895
26896 2009-02-25  Bruno Haible  <bruno@clisp.org>
26897
26898         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
26899         with known value.
26900         Reported by Gary V. Vaughan <gary@gnu.org>.
26901
26902 2009-02-25  Bruno Haible  <bruno@clisp.org>
26903
26904         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
26905         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
26906         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
26907         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
26908         Reported by Gary V. Vaughan <gary@gnu.org>.
26909
26910 2009-02-25  Bruno Haible  <bruno@clisp.org>
26911
26912         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
26913         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
26914         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
26915         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
26916         Reported by Gary V. Vaughan <gary@gnu.org>.
26917
26918 2009-02-25  Eric Blake  <ebb9@byu.net>
26919
26920         tests: skip fseek/ftell tests if ungetc is broken
26921         * m4/ungetc.m4: New file.
26922         * modules/fseek-tests: Split test, so ungetc dependency is
26923         separate from rest of test.
26924         * modules/fseeko-tests: Likewise.
26925         * modules/ftell-tests: Likewise.
26926         * modules/ftello-tests: Likewise.
26927         * tests/test-fseek.c (main): Isolate ungetc dependency.
26928         * tests/test-fseeko.c (main): Likewise.
26929         * tests/test-ftell.c (main): Likewise.
26930         * tests/test-ftello.c (main): Likewise.
26931         * tests/test-fseek2.sh: New file.
26932         * tests/test-fseeko2.sh: Likewise.
26933         * tests/test-ftell2.sh: Likewise.
26934         * tests/test-ftello2.sh: Likewise.
26935
26936 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
26937
26938         test-getaddrinfo: fix usage of skip return code 77
26939         * tests/test-gettaddrinfo.c: Return skip code 77 only
26940         for first occurance of skip (4x77 is not 77)
26941
26942 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
26943
26944         strtod: avoid C99 decl-after-statement
26945         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
26946
26947 2009-02-24  Eric Blake  <ebb9@byu.net>
26948
26949         strtod: detect HP-UX 11.31 bug
26950         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
26951         Reported by Gary V. Vaughan.
26952
26953 2009-02-23  Bruno Haible  <bruno@clisp.org>
26954
26955         Fix invalid read past end of memory block.
26956         * lib/vasnprintf.c (DCHAR_SET): Define.
26957         (local_wcslen): Define only when needed.
26958         (local_strnlen, local_wcsnlen): New functions.
26959         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
26960         directives that involve a conversion ourselves.
26961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
26962         wcsnlen, mbrtowc, wcrtomb.
26963         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
26964         * tests/test-vasprintf-posix.c (test_function): Likewise.
26965         * tests/test-snprintf-posix.h (test_function): Likewise.
26966         * tests/test-sprintf-posix.h (test_function): Likewise.
26967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26968
26969 2009-02-22  Bruno Haible  <bruno@clisp.org>
26970
26971         Implement new clarified decomposition of Hangul syllables.
26972         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
26973         of type LTV, return only a pairwise decomposition.
26974         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
26975         Likewise.
26976         * tests/uninorm/test-decomposition.c (main): Updated expected result.
26977         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
26978         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
26979
26980 2009-02-22  Bruno Haible  <bruno@clisp.org>
26981
26982         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
26983         zero-length results and shrink excess allocated memory.
26984         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
26985         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
26986         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
26987         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
26988         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
26989         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
26990         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
26991         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
26992         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
26993         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
26994         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
26995         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
26996
26997 2009-02-21  Bruno Haible  <bruno@clisp.org>
26998
26999         * doc/gnulib.texi: Include safe-alloc.texi earlier.
27000         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
27001         spaces after a period. Put a space between a macro name and its
27002         argument list. Trivial rewordings.
27003         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
27004         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
27005         (main): Return 0 explicitly.
27006
27007 2009-02-21  Bruno Haible  <bruno@clisp.org>
27008
27009         Tests for module 'uninorm/filter'.
27010         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
27011         * modules/uninorm/filter-tests: New file.
27012
27013         New module 'uninorm/filter'.
27014         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
27015         uninorm_filter_flush, uninorm_filter_free): New declarations.
27016         * lib/uninorm/uninorm-filter.c: New file.
27017         * modules/uninorm/filter: New file.
27018
27019 2009-02-21  Bruno Haible  <bruno@clisp.org>
27020
27021         Tests for module 'uninorm/nfkc'.
27022         * tests/uninorm/test-nfkc.c: New file.
27023         * tests/uninorm/test-u8-nfkc.c: New file.
27024         * tests/uninorm/test-u16-nfkc.c: New file.
27025         * tests/uninorm/test-u32-nfkc.c: New file.
27026         * tests/uninorm/test-u32-nfkc-big.sh: New file.
27027         * tests/uninorm/test-u32-nfkc-big.c: New file.
27028         * modules/uninorm/nfkc-tests: New file.
27029
27030         New module 'uninorm/nfkc'.
27031         * lib/uninorm/nfkc.c: New file.
27032         * modules/uninorm/nfkc: New file.
27033
27034         Tests for module 'uninorm/nfkd'.
27035         * tests/uninorm/test-nfkd.c: New file.
27036         * tests/uninorm/test-u8-nfkd.c: New file.
27037         * tests/uninorm/test-u16-nfkd.c: New file.
27038         * tests/uninorm/test-u32-nfkd.c: New file.
27039         * tests/uninorm/test-u32-nfkd-big.sh: New file.
27040         * tests/uninorm/test-u32-nfkd-big.c: New file.
27041         * modules/uninorm/nfkd-tests: New file.
27042
27043         New module 'uninorm/nfkd'.
27044         * lib/uninorm/nfkd.c: New file.
27045         * modules/uninorm/nfkd: New file.
27046
27047         Tests for module 'uninorm/nfc'.
27048         * tests/uninorm/test-nfc.c: New file.
27049         * tests/uninorm/test-u8-nfc.c: New file.
27050         * tests/uninorm/test-u16-nfc.c: New file.
27051         * tests/uninorm/test-u32-nfc.c: New file.
27052         * tests/uninorm/test-u32-nfc-big.sh: New file.
27053         * tests/uninorm/test-u32-nfc-big.c: New file.
27054         * modules/uninorm/nfc-tests: New file.
27055
27056         New module 'uninorm/nfc'.
27057         * lib/uninorm/nfc.c: New file.
27058         * modules/uninorm/nfc: New file.
27059
27060         Tests for module 'uninorm/nfd'.
27061         * tests/uninorm/test-nfd.c: New file.
27062         * tests/uninorm/test-u8-nfd.c: New file.
27063         * tests/uninorm/test-u16-nfd.c: New file.
27064         * tests/uninorm/test-u32-nfd.c: New file.
27065         * tests/uninorm/test-u32-nfd-big.sh: New file.
27066         * tests/uninorm/test-u32-nfd-big.c: New file.
27067         * tests/uninorm/test-u32-normalize-big.h: New file.
27068         * tests/uninorm/test-u32-normalize-big.c: New file.
27069         * tests/uninorm/NormalizationTest.txt: New file, created from
27070         Unicode 5.1.0 NormalizationTest.txt.
27071         * modules/uninorm/nfd-tests: New file.
27072
27073         New module 'uninorm/nfd'.
27074         * lib/uninorm/nfd.c: New file.
27075         * modules/uninorm/nfd: New file.
27076
27077         New module 'uninorm/u32-normalize'.
27078         * lib/uninorm/u32-normalize.c: New file.
27079         * modules/uninorm/u32-normalize: New file.
27080
27081         New module 'uninorm/u16-normalize'.
27082         * lib/uninorm/u16-normalize.c: New file.
27083         * modules/uninorm/u16-normalize: New file.
27084
27085         New module 'uninorm/u8-normalize'.
27086         * lib/uninorm/u8-normalize.c: New file.
27087         * lib/uninorm/normalize-internal.h: New file.
27088         * lib/uninorm/u-normalize-internal.h: New file.
27089         * modules/uninorm/u8-normalize: New file.
27090
27091         New module 'uninorm/decompose-internal'.
27092         * lib/uninorm/decompose-internal.c: New file.
27093         * modules/uninorm/decompose-internal: New file.
27094
27095         Tests for module 'uninorm/composition'.
27096         * tests/uninorm/test-composition.c: New file.
27097         * modules/uninorm/composition-tests: New file.
27098
27099         New module 'uninorm/composition'.
27100         * lib/uninorm/composition.c: New file.
27101         * lib/uninorm/composition-table.gperf: New file, generated by
27102         gen-uni-tables.
27103         * modules/uninorm/composition: New file.
27104
27105         Tests for module 'uninorm/compat-decomposition'.
27106         * tests/uninorm/test-compat-decomposition.c: New file.
27107         * modules/uninorm/compat-decomposition-tests: New file.
27108
27109         New module 'uninorm/compat-decomposition'.
27110         * lib/uninorm/decompose-internal.h: New file.
27111         * lib/uninorm/compat-decomposition.c: New file.
27112         * modules/uninorm/compat-decomposition: New file.
27113
27114         Tests for module 'uninorm/canonical-decomposition'.
27115         * tests/uninorm/test-canonical-decomposition.c: New file.
27116         * modules/uninorm/canonical-decomposition-tests: New file.
27117
27118         New module 'uninorm/canonical-decomposition'.
27119         * lib/uninorm/canonical-decomposition.c: New file.
27120         * modules/uninorm/canonical-decomposition: New file.
27121
27122         Tests for module 'uninorm/decomposition'.
27123         * tests/uninorm/test-decomposition.c: New file.
27124         * modules/uninorm/decomposition-tests: New file.
27125
27126         New module 'uninorm/decomposition'.
27127         * lib/uninorm/decomposition.c: New file.
27128         * modules/uninorm/decomposition: New file.
27129
27130         New module 'uninorm/decomposition-table'.
27131         * lib/uninorm/decomposition-table.h: New file.
27132         * lib/uninorm/decomposition-table.c: New file.
27133         * lib/uninorm/decomposition-table1.h: New file, generated by
27134         gen-uni-tables.
27135         * lib/uninorm/decomposition-table2.h: New file, generated by
27136         gen-uni-tables.
27137         * modules/uninorm/decomposition-table: New file.
27138
27139         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
27140         (UC_DECOMP_*): New enumeration items.
27141         (get_decomposition): New function.
27142         (struct decomp_table): New type.
27143         (output_decomposition, output_decomposition_tables): New functions.
27144         (unicode_composition_exclusions): New variable.
27145         (fill_composition_exclusions, debug_output_composition_tables): New
27146         functions.
27147         (main): Accept one more argument. Invoke fill_composition_exclusions.
27148         Output decomposition and composition tables.
27149
27150         New module 'uninorm/base'.
27151         * lib/uninorm.h: New file.
27152         * lib/unictype.h: Update comment.
27153         * modules/uninorm/base: New file.
27154
27155 2009-02-21  David Lutterkort  <lutter@redhat.com>
27156
27157         Tests for module 'safe-alloc'.
27158         * tests/test-safe-alloc.c: New file.
27159         * modules/safe-alloc-tests: New file.
27160
27161         New module 'safe-alloc'.
27162         * lib/safe-alloc.h: New file.
27163         * lib/safe-alloc.c: New file.
27164         * m4/safe-alloc.m4: New file.
27165         * modules/safe-alloc: New file.
27166         * doc/safe-alloc.texi: New file.
27167         * doc/gnulib.texi: Include it.
27168         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27169         safe-alloc.
27170
27171 2009-02-18  Bruno Haible  <bruno@clisp.org>
27172
27173         Fix link error on non-glibc systems.
27174         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
27175         variable.
27176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27177
27178 2009-02-18  Jim Meyering  <meyering@redhat.com>
27179
27180         fts: avoid used-uninitialized error due to recent change
27181         * lib/fts.c (fts_read): Guard uses of the new member,
27182         parent->fts_n_dirs_remaining, since it's not relevant for
27183         the parent of a directory specified on the command-line.
27184
27185 2009-02-17  James Youngman  <jay@gnu.org>
27186             Bruno Haible  <bruno@clisp.org>
27187
27188         * m4/include_next.m4: Reformulate comment.
27189
27190 2009-02-16  Jim Meyering  <meyering@redhat.com>
27191
27192         fts: add #if guards so that the fts_lgpl module still builds
27193         * lib/fts.c: Guard just-added hash-table-using parts with
27194         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
27195         Reported by Simon Josefsson.
27196
27197 2009-02-15  Bruno Haible  <bruno@clisp.org>
27198
27199         * modules/array-mergesort-tests: New file.
27200         * tests/test-array-mergesort.c: New file.
27201
27202         New module 'array-mergesort'.
27203         * modules/array-mergesort: New file.
27204         * lib/array-mergesort.h: New file.
27205
27206 2009-02-15  Bruno Haible  <bruno@clisp.org>
27207
27208         Fix 2009-02-07 commit.
27209         * lib/gen-uni-tables.c (output_predicate, output_category,
27210         output_combclass, output_bidi_category, output_decimal_digit,
27211         output_digit, output_numeric, output_mirror, output_scripts,
27212         output_ident_category, output_simple_mapping): Fix format directives.
27213         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
27214
27215 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
27216
27217         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
27218         fixes are available from IBM.
27219
27220 2009-02-13  Jim Meyering  <meyering@redhat.com>
27221
27222         fts: arrange not to stat non-directories in more cases
27223         This makes GNU find (when it doesn't need to stat each file)
27224         *much* more efficient at traversing reiserfs file systems.
27225         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
27226         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
27227         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
27228         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
27229         (leaf_optimization_applies): New function.
27230         (LCO_hash, LCO_compare): New helper functions.
27231         (link_count_optimize_ok): New function.
27232         (fts_stat): Initialize new member (if dir).
27233         (fts_read): Decrement parent's fts_n_dirs_remaining count if
27234         we've just stat'ed a directory.  Skip the stat call when possible.
27235         ---
27236         Note this AFS-related exchange:
27237         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
27238         and note find's pioctl call in find/fstype.c.
27239         But that is necessary only if you want to enable the
27240         optimization for AFS, and for now, I don't.
27241
27242         fts: move a function definition "up" (no semantic change)
27243         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
27244         "up" to precede upcoming use of a related function.
27245
27246 2009-02-11  Jim Meyering  <meyering@redhat.com>
27247
27248         fts: correct internal computation of nlinks (optimization-related)
27249         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
27250         whether the current entry is a directory, so don't test it.
27251
27252 2009-02-10  Bruno Haible  <bruno@clisp.org>
27253
27254         Tests for module 'uniwbrk/ulc-wordbreaks'.
27255         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
27256         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
27257         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
27258
27259         Tests for module 'uniwbrk/u32-wordbreaks'.
27260         * modules/uniwbrk/u32-wordbreaks-tests: New file.
27261         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
27262
27263         Tests for module 'uniwbrk/u16-wordbreaks'.
27264         * modules/uniwbrk/u16-wordbreaks-tests: New file.
27265         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
27266
27267         Tests for module 'uniwbrk/u8-wordbreaks'.
27268         * modules/uniwbrk/u8-wordbreaks-tests: New file.
27269         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
27270
27271 2009-02-10  Bruno Haible  <bruno@clisp.org>
27272
27273         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
27274         property.
27275         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
27276         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
27277         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
27278
27279 2009-02-10  Simon Josefsson  <simon@josefsson.org>
27280
27281         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
27282         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
27283
27284 2009-02-10  Bruno Haible  <bruno@clisp.org>
27285
27286         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
27287         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
27288         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
27289         * lib/unilbrk/u8-possible-linebreaks.c: Update.
27290         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
27291         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
27292
27293 2009-02-09  Simon Josefsson  <simon@josefsson.org>
27294
27295         * lib/sockets.h (gl_fd_to_handle): New function.
27296
27297         * tests/test-sockets.c: Call gl_fd_to_handle.
27298
27299 2009-02-09  Bruno Haible  <bruno@clisp.org>
27300
27301         * doc/havelib.texi: Document the conventions on bi-arch systems.
27302
27303 2009-02-08  Bruno Haible  <bruno@clisp.org>
27304
27305         Document the AC_LIB_LINKFLAGS macro.
27306         * doc/havelib.texi: New file, mostly written on 2005-05-24.
27307         * doc/gnulib.texi: Include it.
27308
27309 2009-02-08  Bruno Haible  <bruno@clisp.org>
27310
27311         Fix wrong order of sections, compared to TOC.
27312         * doc/gnulib.texi: Include relocatable-maint.texi after the
27313         "Regular expressions" node, not before.
27314
27315 2009-02-08  Bruno Haible  <bruno@clisp.org>
27316
27317         Tests for module 'unicase/totitle'.
27318         * modules/unicase/totitle-tests: New file.
27319
27320         Tests for module 'unicase/tolower'.
27321         * modules/unicase/tolower-tests: New file.
27322
27323         Tests for module 'unicase/toupper'.
27324         * modules/unicase/toupper-tests: New file.
27325         * tests/unicase/test-mapping-part1.h: New file.
27326         * tests/unicase/test-mapping-part2.h: New file.
27327
27328         New module 'unicase/totitle'.
27329         * modules/unicase/totitle: New file.
27330         * lib/unicase/totitle.c: New file.
27331
27332         New module 'unicase/tolower'.
27333         * modules/unicase/tolower: New file.
27334         * lib/unicase/tolower.c: New file.
27335
27336         New module 'unicase/toupper'.
27337         * modules/unicase/toupper: New file.
27338         * lib/unicase/toupper.c: New file.
27339         * lib/unicase/simple-mapping.h: New file.
27340
27341         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
27342         (mapping_table): New structure.
27343         (output_simple_mapping): New function.
27344         (main): Invoke output_simple_mapping_test and output_simple_mapping.
27345         * modules/gen-uni-tables (Description): Update.
27346         * lib/unicase/toupper.h: New file, automatically generated by
27347         gen-uni-tables.
27348         * lib/unicase/tolower.h: New file, automatically generated by
27349         gen-uni-tables.
27350         * lib/unicase/totitle.h: New file, automatically generated by
27351         gen-uni-tables.
27352         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
27353         gen-uni-tables.
27354         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
27355         gen-uni-tables.
27356         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
27357         gen-uni-tables.
27358
27359         New module 'unicase/base'.
27360         * modules/unicase/base: New file.
27361         * lib/unicase.h: New file.
27362
27363 2009-02-08  Bruno Haible  <bruno@clisp.org>
27364
27365         New module 'uniwbrk/ulc-wordbreaks'.
27366         * modules/uniwbrk/ulc-wordbreaks: New file.
27367         * lib/uniwbrk/ulc-wordbreaks.c: New file.
27368
27369         New module 'uniwbrk/u32-wordbreaks'.
27370         * modules/uniwbrk/u32-wordbreaks: New file.
27371         * lib/uniwbrk/u32-wordbreaks.c: New file.
27372
27373         New module 'uniwbrk/u16-wordbreaks'.
27374         * modules/uniwbrk/u16-wordbreaks: New file.
27375         * lib/uniwbrk/u16-wordbreaks.c: New file.
27376
27377         New module 'uniwbrk/u8-wordbreaks'.
27378         * modules/uniwbrk/u8-wordbreaks: New file.
27379         * lib/uniwbrk/u8-wordbreaks.c: New file.
27380         * lib/uniwbrk/u-wordbreaks.h: New file.
27381
27382         New module 'uniwbrk/table'.
27383         * modules/uniwbrk/table: New file.
27384         * lib/uniwbrk/wbrktable.h: New file.
27385         * lib/uniwbrk/wbrktable.c: New file.
27386
27387         New module 'uniwbrk/wordbreak-property'.
27388         * modules/uniwbrk/wordbreak-property: New file.
27389         * lib/uniwbrk/wordbreak-property.c: New file.
27390
27391         * lib/gen-uni-tables.c (WBP_*): New enum items.
27392         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
27393         (unicode_org_wbp): New variable.
27394         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
27395         New functions.
27396         (wbp_table): New structure.
27397         (output_wbp, output_wbrk_tables): New functions.
27398         (main): Accept additional argument. Invoke fill_org_wbp,
27399         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
27400         output_wbrk_tables.
27401         * modules/gen-uni-tables (Description): Update.
27402         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
27403         gen-uni-tables.
27404
27405         New module 'uniwbrk/base'.
27406         * modules/uniwbrk/base: New file.
27407         * lib/uniwbrk.h: New file.
27408
27409 2009-02-08  Bruno Haible  <bruno@clisp.org>
27410
27411         Update to Unicode 5.1.0.
27412         * lib/gen-uni-tables.c (is_property_alphabetic): Include
27413         U+2185..U+2188.
27414         (is_property_default_ignorable_code_point): Don't include characters
27415         of category Cc or Cs and not-a-characters.
27416         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
27417         U+0D79, U+109E, U+109F, U+A60C.
27418         * lib/unictype/bidi_of.h: Regenerated.
27419         * lib/unictype/blocks.h: Regenerated.
27420         * lib/unictype/categ_C.h: Regenerated.
27421         * lib/unictype/categ_Cf.h: Regenerated.
27422         * lib/unictype/categ_Cn.h: Regenerated.
27423         * lib/unictype/categ_L.h: Regenerated.
27424         * lib/unictype/categ_Ll.h: Regenerated.
27425         * lib/unictype/categ_Lm.h: Regenerated.
27426         * lib/unictype/categ_Lo.h: Regenerated.
27427         * lib/unictype/categ_Lu.h: Regenerated.
27428         * lib/unictype/categ_M.h: Regenerated.
27429         * lib/unictype/categ_Mc.h: Regenerated.
27430         * lib/unictype/categ_Me.h: Regenerated.
27431         * lib/unictype/categ_Mn.h: Regenerated.
27432         * lib/unictype/categ_N.h: Regenerated.
27433         * lib/unictype/categ_Nd.h: Regenerated.
27434         * lib/unictype/categ_Nl.h: Regenerated.
27435         * lib/unictype/categ_No.h: Regenerated.
27436         * lib/unictype/categ_P.h: Regenerated.
27437         * lib/unictype/categ_Pd.h: Regenerated.
27438         * lib/unictype/categ_Pe.h: Regenerated.
27439         * lib/unictype/categ_Pf.h: Regenerated.
27440         * lib/unictype/categ_Pi.h: Regenerated.
27441         * lib/unictype/categ_Po.h: Regenerated.
27442         * lib/unictype/categ_Ps.h: Regenerated.
27443         * lib/unictype/categ_S.h: Regenerated.
27444         * lib/unictype/categ_Sk.h: Regenerated.
27445         * lib/unictype/categ_Sm.h: Regenerated.
27446         * lib/unictype/categ_So.h: Regenerated.
27447         * lib/unictype/categ_of.h: Regenerated.
27448         * lib/unictype/combining.h: Regenerated.
27449         * lib/unictype/ctype_alnum.h: Regenerated.
27450         * lib/unictype/ctype_alpha.h: Regenerated.
27451         * lib/unictype/ctype_graph.h: Regenerated.
27452         * lib/unictype/ctype_lower.h: Regenerated.
27453         * lib/unictype/ctype_print.h: Regenerated.
27454         * lib/unictype/ctype_punct.h: Regenerated.
27455         * lib/unictype/ctype_upper.h: Regenerated.
27456         * lib/unictype/decdigit.h: Regenerated.
27457         * lib/unictype/digit.h: Regenerated.
27458         * lib/unictype/mirror.h: Regenerated.
27459         * lib/unictype/numeric.h: Regenerated.
27460         * lib/unictype/pr_alphabetic.h: Regenerated.
27461         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
27462         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
27463         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
27464         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
27465         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
27466         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
27467         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
27468         * lib/unictype/pr_combining.h: Regenerated.
27469         * lib/unictype/pr_dash.h: Regenerated.
27470         * lib/unictype/pr_decimal_digit.h: Regenerated.
27471         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
27472         * lib/unictype/pr_deprecated.h: Regenerated.
27473         * lib/unictype/pr_diacritic.h: Regenerated.
27474         * lib/unictype/pr_extender.h: Regenerated.
27475         * lib/unictype/pr_format_control.h: Regenerated.
27476         * lib/unictype/pr_grapheme_base.h: Regenerated.
27477         * lib/unictype/pr_grapheme_extend.h: Regenerated.
27478         * lib/unictype/pr_grapheme_link.h: Regenerated.
27479         * lib/unictype/pr_id_continue.h: Regenerated.
27480         * lib/unictype/pr_id_start.h: Regenerated.
27481         * lib/unictype/pr_ideographic.h: Regenerated.
27482         * lib/unictype/pr_ignorable_control.h: Regenerated.
27483         * lib/unictype/pr_lowercase.h: Regenerated.
27484         * lib/unictype/pr_math.h: Regenerated.
27485         * lib/unictype/pr_numeric.h: Regenerated.
27486         * lib/unictype/pr_other_alphabetic.h: Regenerated.
27487         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
27488         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
27489         * lib/unictype/pr_other_id_continue.h: Regenerated.
27490         * lib/unictype/pr_other_lowercase.h: Regenerated.
27491         * lib/unictype/pr_other_math.h: Regenerated.
27492         * lib/unictype/pr_punctuation.h: Regenerated.
27493         * lib/unictype/pr_sentence_terminal.h: Regenerated.
27494         * lib/unictype/pr_soft_dotted.h: Regenerated.
27495         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
27496         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
27497         * lib/unictype/pr_unified_ideograph.h: Regenerated.
27498         * lib/unictype/pr_uppercase.h: Regenerated.
27499         * lib/unictype/pr_xid_continue.h: Regenerated.
27500         * lib/unictype/pr_xid_start.h: Regenerated.
27501         * lib/unictype/pr_zero_width.h: Regenerated.
27502         * lib/unictype/scripts.h: Regenerated.
27503         * lib/unictype/scripts_byname.gperf: Regenerated.
27504         * lib/unictype/sy_java_ident.h: Regenerated.
27505         * lib/unilbrk/lbrkprop1.h: Regenerated.
27506         * lib/unilbrk/lbrkprop2.h: Regenerated.
27507         * tests/unictype/test-categ_C.c: Regenerated.
27508         * tests/unictype/test-categ_Cf.c: Regenerated.
27509         * tests/unictype/test-categ_Cn.c: Regenerated.
27510         * tests/unictype/test-categ_L.c: Regenerated.
27511         * tests/unictype/test-categ_Ll.c: Regenerated.
27512         * tests/unictype/test-categ_Lm.c: Regenerated.
27513         * tests/unictype/test-categ_Lo.c: Regenerated.
27514         * tests/unictype/test-categ_Lu.c: Regenerated.
27515         * tests/unictype/test-categ_M.c: Regenerated.
27516         * tests/unictype/test-categ_Mc.c: Regenerated.
27517         * tests/unictype/test-categ_Me.c: Regenerated.
27518         * tests/unictype/test-categ_Mn.c: Regenerated.
27519         * tests/unictype/test-categ_N.c: Regenerated.
27520         * tests/unictype/test-categ_Nd.c: Regenerated.
27521         * tests/unictype/test-categ_Nl.c: Regenerated.
27522         * tests/unictype/test-categ_No.c: Regenerated.
27523         * tests/unictype/test-categ_P.c: Regenerated.
27524         * tests/unictype/test-categ_Pd.c: Regenerated.
27525         * tests/unictype/test-categ_Pe.c: Regenerated.
27526         * tests/unictype/test-categ_Pf.c: Regenerated.
27527         * tests/unictype/test-categ_Pi.c: Regenerated.
27528         * tests/unictype/test-categ_Po.c: Regenerated.
27529         * tests/unictype/test-categ_Ps.c: Regenerated.
27530         * tests/unictype/test-categ_S.c: Regenerated.
27531         * tests/unictype/test-categ_Sk.c: Regenerated.
27532         * tests/unictype/test-categ_Sm.c: Regenerated.
27533         * tests/unictype/test-categ_So.c: Regenerated.
27534         * tests/unictype/test-ctype_alnum.c: Regenerated.
27535         * tests/unictype/test-ctype_alpha.c: Regenerated.
27536         * tests/unictype/test-ctype_graph.c: Regenerated.
27537         * tests/unictype/test-ctype_lower.c: Regenerated.
27538         * tests/unictype/test-ctype_print.c: Regenerated.
27539         * tests/unictype/test-ctype_punct.c: Regenerated.
27540         * tests/unictype/test-ctype_upper.c: Regenerated.
27541         * tests/unictype/test-decdigit.h: Regenerated.
27542         * tests/unictype/test-digit.h: Regenerated.
27543         * tests/unictype/test-numeric.h: Regenerated.
27544         * tests/unictype/test-pr_alphabetic.c: Regenerated.
27545         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
27546         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
27547         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
27548         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
27549         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
27550         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
27551         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
27552         * tests/unictype/test-pr_combining.c: Regenerated.
27553         * tests/unictype/test-pr_dash.c: Regenerated.
27554         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
27555         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
27556         * tests/unictype/test-pr_deprecated.c: Regenerated.
27557         * tests/unictype/test-pr_diacritic.c: Regenerated.
27558         * tests/unictype/test-pr_extender.c: Regenerated.
27559         * tests/unictype/test-pr_format_control.c: Regenerated.
27560         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
27561         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
27562         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
27563         * tests/unictype/test-pr_id_continue.c: Regenerated.
27564         * tests/unictype/test-pr_id_start.c: Regenerated.
27565         * tests/unictype/test-pr_ideographic.c: Regenerated.
27566         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
27567         * tests/unictype/test-pr_lowercase.c: Regenerated.
27568         * tests/unictype/test-pr_math.c: Regenerated.
27569         * tests/unictype/test-pr_numeric.c: Regenerated.
27570         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
27571         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
27572         Regenerated.
27573         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
27574         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
27575         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
27576         * tests/unictype/test-pr_other_math.c: Regenerated.
27577         * tests/unictype/test-pr_punctuation.c: Regenerated.
27578         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
27579         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
27580         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
27581         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
27582         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
27583         * tests/unictype/test-pr_uppercase.c: Regenerated.
27584         * tests/unictype/test-pr_xid_continue.c: Regenerated.
27585         * tests/unictype/test-pr_xid_start.c: Regenerated.
27586         * tests/unictype/test-pr_zero_width.c: Regenerated.
27587
27588         Update to Unicode 5.1.0.
27589         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
27590         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
27591         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
27592         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
27593         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
27594         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
27595         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
27596         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
27597         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
27598         (nonspacing_table_ind): Update.
27599         * tests/uniwidth/test-uc_width2.sh: Update expected result.
27600
27601         Update to Unicode 5.1.0.
27602         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
27603         code transform.
27604         * lib/uniname/uniname.c (unicode_character_name,
27605         unicode_name_character): Add the range 0x1Fxxx to the code transform.
27606         * lib/uniname/uninames.h: Regenerated.
27607         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
27608
27609 2009-02-07  Bruno Haible  <bruno@clisp.org>
27610
27611         Merge gen-ctype and gen-lbrk into a single program.
27612         * lib/gen-uni-tables.c: New file, incorporating
27613         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
27614         Add directory prefixes to the names of the generated files.
27615         * lib/unictype/gen-ctype.c: Remove file.
27616         * lib/unilbrk/gen-lbrk.c: Remove file.
27617         * modules/gen-uni-tables: New file.
27618         * modules/unictype/gen-ctype: Remove file.
27619         * modules/unilbrk/gen-lbrk: Remove file.
27620
27621 2009-02-07  Bruno Haible  <bruno@clisp.org>
27622
27623         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
27624
27625         New module 'unistr/u32-strcoll'.
27626         * modules/unistr/u32-strcoll: New file.
27627         * lib/unistr/u32-strcoll.c: New file.
27628
27629         New module 'unistr/u16-strcoll'.
27630         * modules/unistr/u16-strcoll: New file.
27631         * lib/unistr/u16-strcoll.c: New file.
27632
27633         New module 'unistr/u8-strcoll'.
27634         * modules/unistr/u8-strcoll: New file.
27635         * lib/unistr/u8-strcoll.c: New file.
27636         * lib/unistr/u-strcoll.h: New file.
27637
27638 2009-02-07  Bruno Haible  <bruno@clisp.org>
27639
27640         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
27641         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27642         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27643         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
27644         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
27645         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
27646
27647 2009-02-07  Bruno Haible  <bruno@clisp.org>
27648
27649         Make 64-bit clean.
27650         * lib/unictype/gen-ctype.c (output_predicate, output_category,
27651         output_combclass, output_bidi_category, output_decimal_digit,
27652         output_digit, output_numeric, output_mirror, output_scripts,
27653         output_ident_category): Use proper width specifier in format strings.
27654
27655 2009-02-07  Bruno Haible  <bruno@clisp.org>
27656
27657         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
27658         failure behaviour.
27659
27660 2009-02-07  Jim Meyering  <meyering@redhat.com>
27661
27662         regex: avoid compilation failure with upcoming gcc-4.4
27663         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
27664         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
27665         "... error: integer overflow in preprocessor expression".
27666
27667 2009-02-05  Ben Pfaff  <blp@gnu.org>
27668
27669         Fix link errors on Windows when close module is used.
27670         * modules/close: Add $(LIB_CLOSE) to Link section.
27671         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
27672         $(LIB_CLOSE) on Windows.
27673
27674 2009-02-05  Jim Meyering  <meyering@redhat.com>
27675
27676         still avoid unused-parameter warnings, but do it cleanly
27677         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
27678         (get_fs_usage): Cast to void instead.
27679         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
27680         (dev_from_mount_options, read_file_system_list): Cast to void.
27681         Prompted by Bruno Haible.
27682
27683 2009-02-04  Jim Meyering  <meyering@redhat.com>
27684
27685         fsusage.c: correct copyright year
27686         * lib/fsusage.c: Reflect year in which the change is pushed into
27687
27688         avoid misc. warnings
27689         * lib/fsusage.c (UNUSED_PARAM): Define.
27690         (get_fs_usage): Mark parameter "disk" as unused.
27691         * lib/getugroups.c (getgrent): Use "void" in prototype.
27692         * lib/mountlist.c: Mark unused parameters.
27693         (read_file_system_list): Declare a local with "const".
27694         * lib/nanosleep.c (getnow): Declare static.
27695         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
27696
27697         dirfd: set errno upon failure
27698         * lib/dirfd.c: Include <errno.h>.
27699         Set errno to ENOTSUP when returning -1.
27700         * modules/dirfd (Depends-on): Add errno.
27701         Suggested by John Kodis <kodis@comcast.net>.
27702
27703 2009-02-01  Bruno Haible  <bruno@clisp.org>
27704
27705         Don't assume sizeof (long) >= sizeof (void *).
27706         * lib/memcmp.c: Include stdint.h.
27707         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
27708         srcp2 to 'const byte *'.
27709         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
27710         types to uintptr_t.
27711         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
27712         * modules/memcmp (Depends-on): Add stdint.
27713         Reported by Ozkan Sezer <sezeroz@gmail.com>.
27714
27715 2009-01-30  Eric Blake  <ebb9@byu.net>
27716
27717         fix more require-before-expand issues
27718         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
27719         expand, AC_PROG_AWK.
27720         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
27721
27722 2009-01-28  Eric Blake  <ebb9@byu.net>
27723
27724         version-etc: use consistent URL formatting
27725         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
27726         Improve formatting.  Use fputs for string without %.
27727
27728 2009-01-28  Jim Meyering  <meyering@redhat.com>
27729
27730         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
27731         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
27732         "underquoted definition of NAME" from autoconf-2.59.
27733
27734 2009-01-28  Bruno Haible  <bruno@clisp.org>
27735
27736         * doc/gnulib.texi: Add "Obsolete modules" to index.
27737
27738 2009-01-28  Jim Meyering  <meyering@redhat.com>
27739
27740         useless-if-before-free: recognize more variants
27741         * build-aux/useless-if-before-free: Also recognize e.g.,
27742         if (NULL != p) free (p);
27743
27744 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
27745
27746         test-getaddrinfo: skip (don't fail) this test when there's no network
27747         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
27748         on the presumption that it means you lack network access.
27749
27750 2009-01-26  Jim Meyering  <meyering@redhat.com>
27751
27752         fflush: avoid warnings on modern systems
27753         * lib/fflush.c (rpl_fflush): Move declarations of locals,
27754         pos and result, into scopes where they're used.
27755
27756 2009-01-26  Eric Blake  <ebb9@byu.net>
27757
27758         Silence warning reintroduced by recent extensions patch.
27759         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
27760         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
27761         autoconf.
27762
27763         Backport improved autoconf semantics of AC_DEFUN_ONCE.
27764         * m4/00gnulib.m4: New file.
27765         * gnulib-tool (func_get_filelist): Always use it.
27766         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
27767         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
27768
27769 2009-01-25  Bruno Haible  <bruno@clisp.org>
27770
27771         Make test-quotearg work on MacOS X and AIX.
27772         * tests/test-quotearg.sh: New file.
27773         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
27774         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
27775         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
27776         include <libintl.h>.
27777         (fake_locale): Remove variable.
27778         (gettext, dgettext, dcgettext): Remove functions.
27779         (main): Instead of setting a fake locale, set a real locale. Call
27780         textdomain and bindtextdomain.
27781         * modules/quotearg-tests (Files): Add the new files.
27782         (Depends-on): Add gettext, setenv, unsetenv.
27783         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27784         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
27785         Augment TESTS_ENVIRONMENT.
27786
27787 2009-01-25  Bruno Haible  <bruno@clisp.org>
27788
27789         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
27790         fr_FR.ISO8859-1 locale on MacOS X.
27791         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
27792         ja_JP.eucJP locale on MacOS X.
27793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
27794         zh_CN.GB18030 locale on MacOS X.
27795
27796 2009-01-25  Bruno Haible  <bruno@clisp.org>
27797
27798         Avoid link errors on MacOS X 10.3.
27799         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
27800         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27801
27802 2009-01-25  Bruno Haible  <bruno@clisp.org>
27803
27804         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27805         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
27806         * modules/pipe (Files): Remove m4/posix_spawn.m4.
27807         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27808         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
27809         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27810         posix_spawnattr_init, posix_spawnattr_setsigmask,
27811         posix_spawnattr_setflags, posix_spawnattr_destroy.
27812
27813         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27814         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
27815         * modules/execute (Files): Remove m4/posix_spawn.m4.
27816         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27817         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27818         posix_spawnattr_init, posix_spawnattr_setsigmask,
27819         posix_spawnattr_setflags, posix_spawnattr_destroy.
27820
27821 2009-01-25  Bruno Haible  <bruno@clisp.org>
27822
27823         * lib/glthread/threadlib.c: Include <stdlib.h>.
27824
27825 2009-01-25  Bruno Haible  <bruno@clisp.org>
27826
27827         * lib/glthread/threadlib.c (dummy): New declaration.
27828
27829 2009-01-25  Bruno Haible  <bruno@clisp.org>
27830
27831         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
27832         multibyte characters also for the GB18030 encoding. Don't crash when
27833         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
27834
27835 2009-01-25  Bruno Haible  <bruno@clisp.org>
27836
27837         Avoid redefining 'struct random_data' on OSF/1 5.1.
27838         * lib/stdlib.in.h: Include <random.h> if it exists.
27839         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
27840         HAVE_RANDOM_H. Include <random.h> when testing whether
27841         'struct random_data' exists.
27842         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
27843
27844 2009-01-25  Bruno Haible  <bruno@clisp.org>
27845
27846         Don't install charset.alias on MacOS X >= 10.3.
27847         * lib/localcharset.c (DARWIN7): New macro.
27848         (get_charset_aliases): Hardcode the result for Darwin7.
27849         * modules/localcharset (install-exec-local): Don't install
27850         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
27851
27852 2009-01-25  Bruno Haible  <bruno@clisp.org>
27853
27854         Don't install charset.alias on mingw and Cygwin.
27855         * modules/localcharset (install-exec-local): Don't install
27856         charset.alias on mingw and Cygwin, if the file does not yet exist.
27857         The result for these platforms is hardcoded in localcharset.c.
27858
27859 2009-01-25  Bruno Haible  <bruno@clisp.org>
27860
27861         Make it possible again to use AC_GNU_SOURCE together with gnulib.
27862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
27863         before requiring AC_USE_SYSTEM_EXTENSIONS.
27864
27865 2009-01-25  Jim Meyering  <meyering@redhat.com>
27866
27867         c-strtod: avoid warnings
27868         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
27869         "assignment discards qualifiers from pointer target type" warnings.
27870
27871 2009-01-24  Bruno Haible  <bruno@clisp.org>
27872
27873         Add support for non-UTF-8 locales on MacOS X.
27874         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
27875         canonical encodings. For Darwin 7 and newer, don't map traditional
27876         encodings to UTF-8.
27877         Reported by Vincent Lefevre <vincent@vinc17.org>
27878         at <http://savannah.gnu.org/bugs/?25235>.
27879
27880 2009-01-24  Bruno Haible  <bruno@clisp.org>
27881
27882         * doc/gnulib.texi (Obsolete modules): New section.
27883         Reported by Mike Frysinger <vapier@gentoo.org>.
27884
27885 2009-01-24  Bruno Haible  <bruno@clisp.org>
27886
27887         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
27888         (%.dvi): New rule.
27889
27890 2009-01-24  Bruno Haible  <bruno@clisp.org>
27891
27892         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
27893         Reported by Eric Blake.
27894
27895 2009-01-24  Bruno Haible  <bruno@clisp.org>
27896
27897         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
27898         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
27899         Reported by Gary V. Vaughan <gary@gnu.org>.
27900
27901 2009-01-24  Bruno Haible  <bruno@clisp.org>
27902
27903         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
27904
27905 2009-01-23  Bruno Haible  <bruno@clisp.org>
27906
27907         Make c-strtod, c-strtold usable in libraries.
27908         * lib/c-strtod.c: Include string.h instead of xalloc.h.
27909         (C_STRTOD): Call strdup instead of xstrdup.
27910         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
27911         * modules/c-strtold (Depends-on): Likewise.
27912         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
27913         * NEWS: Mention the change.
27914         Reported by Michael Gold <mgold@ncf.ca>.
27915
27916 2009-01-23  Jim Meyering  <meyering@redhat.com>
27917
27918         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
27919         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
27920         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
27921
27922 2009-01-23  Simon Josefsson  <simon@josefsson.org>
27923
27924         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
27925         GNU CoreUtils.
27926         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
27927         * modules/version-etc (Description): Update.
27928
27929 2009-01-22  Bruno Haible  <bruno@clisp.org>
27930
27931         Cache the C locale object.
27932         * lib/c-strtod.c (c_locale_cache): New variable.
27933         (c_locale): New function.
27934         (C_STRTOD): Use it, and don't call freelocale.
27935         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
27936         Suggested by Paolo Bonzini.
27937
27938 2009-01-21  Bruno Haible  <bruno@clisp.org>
27939
27940         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
27941         conditions other than overflow.
27942
27943 2009-01-21  Bruno Haible  <bruno@clisp.org>
27944
27945         * lib/c-strtod.c: Include errno.h.
27946         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
27947         value from STRTOD_L and STRTOD.
27948
27949 2009-01-21  Bruno Haible  <bruno@clisp.org>
27950         and Jim Meyering  <meyering@redhat.com>
27951
27952         nanosleep: skip configure test (fail it) for apple universal builds
27953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
27954         universal builds, assume that nanosleep does not work.
27955         * modules/nanosleep (Depends-on): Add multiarch.
27956
27957         mktime: skip configure test (fail it) for apple universal builds
27958         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
27959         universal builds, assume that mktime does not work.
27960         * modules/mktime (Depends-on): Add multiarch.
27961
27962 2009-01-21  Eric Blake  <ebb9@byu.net>
27963
27964         multiarch: avoid expand-before-require warning
27965         * modules/multiarch (configure.ac): Require, rather than expand,
27966         gl_MULTIARCH.
27967         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
27968         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
27969         enforce that all clients require it.  Partial reversion of
27970         2008-12-29 patch.
27971
27972         error: avoid expand-before-require warning
27973         * modules/errno (configure.ac): Require, rather than expand,
27974         gl_HEADER_ERRNO_H.
27975         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
27976         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
27977         enforce that all clients require it.
27978
27979         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
27980         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
27981         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
27982         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
27983
27984 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
27985
27986         Revert:
27987         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27988
27989         regex: do not depend on obsolete modules.
27990         * modules/regex: Remove memcmp and memmove.
27991
27992 2009-01-20  Bruno Haible  <bruno@clisp.org>
27993
27994         Make the 'link' module link on Windows NT 4.
27995         * lib/link.c (_WIN32_WINNT): Don't define.
27996         (CreateHardLinkFuncType): New type.
27997         (CreateHardLinkFunc, initialized): New variables.
27998         (initialize): New function.
27999         (link): Invoke CreateHardLink indirectly through the function pointer.
28000
28001 2009-01-20  Bruno Haible  <bruno@clisp.org>
28002
28003         Fix compilation failure on mingw.
28004         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
28005
28006 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
28007
28008         * doc/c-strtod.texi: Mention a couple of restrictions.
28009
28010 2009-01-20  Jim Meyering  <meyering@redhat.com>
28011
28012         gettimeofday: move more declarations out of functions
28013         * lib/gettimeofday.c: Move extern declarations of tzset and
28014         gmtime out of containing functions.  Prompted by Bruno Haible.
28015
28016 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28017
28018         regex: do not depend on obsolete modules.
28019         * modules/regex: Remove memcmp and memmove.
28020
28021 2009-01-19  Bruno Haible  <bruno@clisp.org>
28022
28023         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28024         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
28025         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28026         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
28027         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
28028
28029 2009-01-19  Bruno Haible  <bruno@clisp.org>
28030
28031         * tests/test-link.c: Include <errno.h>.
28032         (main): Exit with code 77 when a hard link cannot be created due to
28033         the file system.
28034         * tests/test-link.sh: Skip test when a hard link cannot be created due
28035         to the file system.
28036         Suggested by Eric Blake.
28037
28038 2009-01-19  Martin Lambers  <marlam@marlam.de>
28039
28040         * modules/link-tests: New file.
28041         * tests/test-link.sh: New file.
28042         * tests/test-link.c: New file.
28043
28044 2009-01-19  Eric Blake  <ebb9@byu.net>
28045
28046         doc: mention another function added in cygwin 1.7.0
28047         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
28048         Another new function in cygwin 1.7.
28049
28050 2009-01-19  Bruno Haible  <bruno@clisp.org>
28051
28052         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28053         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
28054         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
28055         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28056         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28057         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28059         * m4/md4.m4 (gl_MD4): Likewise.
28060         * m4/md5.m4 (gl_MD5): Likewise.
28061         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
28062         * m4/sha1.m4 (gl_SHA1): Likewise.
28063         * m4/sha256.m4 (gl_SHA256): Likewise.
28064         * m4/sha512.m4 (gl_SHA512): Likewise.
28065
28066 2009-01-19  Bruno Haible  <bruno@clisp.org>
28067
28068         * modules/uniname/uniname-tests (Depends-on): Add progname.
28069         * tests/uniname/test-uninames.c: Include progname.h.
28070         (main): Call set_program_name.
28071
28072         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
28073         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
28074         (main): Call set_program_name.
28075
28076         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
28077         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
28078         (main): Call set_program_name.
28079
28080         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
28081         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
28082         (main): Call set_program_name.
28083
28084         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
28085         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
28086         (main): Call set_program_name.
28087
28088         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
28089         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
28090         (main): Call set_program_name.
28091
28092         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
28093         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
28094         (main): Call set_program_name.
28095
28096         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
28097         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
28098         (main): Call set_program_name.
28099
28100         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
28101         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
28102         (main): Call set_program_name.
28103
28104 2009-01-19  Eric Blake  <ebb9@byu.net>
28105
28106         test-unistd: test previous patch
28107         * tests/test-unistd.c: Test *_FILENO macros.
28108
28109         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
28110         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28111         Guarantee a definition.
28112         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
28113         * modules/unistd-safer (Depends-on): Add dependency on unistd.
28114         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
28115         * lib/dup-safer.c (STDERR_FILENO): Likewise.
28116         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28117         Likewise.
28118         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
28119         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
28120         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28121         Likewise.
28122         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
28123         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
28124         (STDERR_FILENO): Likewise.
28125         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
28126         (STDERR_FILENO): Likewise.
28127         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
28128         (STDERR_FILENO): Likewise.
28129         Reported by Elbert Pol.
28130
28131 2009-01-19  Eric Blake  <ebb9@byu.net>
28132
28133         doc: mention more functions added in cygwin 1.7.0
28134         * doc/posix-functions/abort.texi (abort): Update wording related
28135         to cygwin.
28136         * doc/posix-functions/daylight.texi (daylight): Likewise.
28137         * doc/posix-functions/optarg.texi (optarg): Likewise.
28138         * doc/posix-functions/optarg.texi (opterr): Likewise.
28139         * doc/posix-functions/optarg.texi (optind): Likewise.
28140         * doc/posix-functions/optarg.texi (optopt): Likewise.
28141         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
28142         worked in 1.5.x, and was withdrawn in 1.7.
28143         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
28144         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
28145         cygwin versions.
28146         * doc/posix-functions/perror.texi (perror): Likewise.
28147         * doc/posix-functions/printf.texi (printf): Likewise.
28148         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
28149         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
28150         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
28151         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
28152         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28153         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
28154         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28155         Likewise.
28156         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28157         Likewise.
28158         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
28159         this function.
28160         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
28161         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
28162         Likewise.
28163         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
28164         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
28165         * doc/posix-functions/confstr.texi (confstr): Likewise.
28166         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
28167         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
28168         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
28169         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
28170         * doc/posix-functions/fputws.texi (fputws): Likewise.
28171         * doc/posix-functions/fwide.texi (fwide): Likewise.
28172         * doc/posix-functions/getwc.texi (getwc): Likewise.
28173         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
28174         * doc/posix-functions/putwc.texi (putwc): Likewise.
28175         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
28176         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
28177         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
28178         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
28179         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
28180         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
28181         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
28182         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
28183         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
28184         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
28185         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
28186
28187 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28188
28189         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
28190         * lib/ioctl.c: Include <sys/ioctl.h>.
28191
28192 2009-01-19  Simon Josefsson  <simon@josefsson.org>
28193
28194         * modules/getdate-tests (Depends-on): Add progname.
28195         * tests/test-getdate.c: Use progname module, to avoid link errors
28196         on non-glibc systems.
28197
28198 2009-01-18  Simon Josefsson  <simon@josefsson.org>
28199
28200         * modules/filenamecat-tests (Depends-on): Add progname.
28201         * modules/fstrcmp-tests (Depends-on): Likewise.
28202
28203         * tests/test-filenamecat.c: Use progname module, to avoid link
28204         errors on non-glibc systems.
28205         * tests/test-fstrcmp.c: Likewise.
28206
28207 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28208
28209         gettimeofday: avoid warning: nested extern declaration of 'localtime'
28210         * lib/gettimeofday.c: Move extern declaration out of function.
28211
28212 2009-01-18  Bruno Haible  <bruno@clisp.org>
28213
28214         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
28215         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
28216         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
28217
28218 2009-01-18  Bruno Haible  <bruno@clisp.org>
28219
28220         * lib/strftime.c (MEMPCPY): Remove unused macro.
28221         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
28222
28223 2009-01-18  Martin Lambers  <marlam@marlam.de>
28224
28225         New module 'link'.
28226         * lib/unistd.in.h (link): New declaration.
28227         * lib/link.c: New file.
28228         * m4/link.m4: New file.
28229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
28230         HAVE_LINK.
28231         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
28232         * modules/link: New file.
28233         * doc/posix-functions/link.texi: Mention the new module.
28234
28235 2009-01-18  Bruno Haible  <bruno@clisp.org>
28236
28237         * tests/test-avltree_list.c (main): Call set_program_name.
28238         * tests/test-avltree_oset.c (main): Likewise.
28239         * tests/test-obstack-printf.c: Include progname.h.
28240         (main): Call set_program_name.
28241         * tests/test-quotearg.c: Include progname.h.
28242         (main): Call set_program_name.
28243         * tests/test-xmemdup0.c: Include progname.h.
28244         (main): Call set_program_name.
28245
28246 2009-01-18  Bruno Haible  <bruno@clisp.org>
28247
28248         New module 'alphasort'.
28249         * lib/dirent.in.h (alphasort): New declaration.
28250         * lib/alphasort.c: New file, from glibc with modifications.
28251         * m4/alphasort.m4: New file.
28252         * modules/alphasort: New file.
28253         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
28254         HAVE_ALPHASORT.
28255         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
28256         HAVE_ALPHASORT.
28257         * doc/posix-functions/alphasort.texi: Mention the new module and the
28258         portability problems.
28259
28260 2009-01-18  Bruno Haible  <bruno@clisp.org>
28261
28262         New module 'scandir'.
28263         * lib/dirent.in.h (scandir): New declaration.
28264         * lib/scandir.c: New file, from glibc with modifications.
28265         * m4/scandir.m4: New file.
28266         * modules/scandir: New file.
28267         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
28268         HAVE_SCANDIR.
28269         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
28270         HAVE_SCANDIR.
28271         * doc/posix-functions/scandir.texi: Mention the new module and the
28272         portability problems.
28273
28274 2009-01-17  Bruno Haible  <bruno@clisp.org>
28275
28276         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
28277         Update documentation.
28278         (func_remove_suffix): Escape all dots in the suffix. Update
28279         documentation.
28280         (func_filter_filelist): Update documentation.
28281         Reported by Ralf Wildenhues.
28282
28283 2009-01-17  Bruno Haible  <bruno@clisp.org>
28284
28285         * modules/dprintf-posix-tests: New file.
28286         * tests/test-dprintf-posix.sh: New file.
28287         * tests/test-dprintf-posix.c: New file.
28288
28289         New modules 'dprintf', 'dprintf-posix'.
28290         * lib/stdio.in.h (dprintf): New declaration.
28291         * lib/dprintf.c: New file.
28292         * m4/dprintf.m4: New file.
28293         * m4/dprintf-posix.m4: New file.
28294         * modules/dprintf: New file.
28295         * modules/dprintf-posix: New file.
28296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
28297         HAVE_DPRINTF, REPLACE_DPRINTF.
28298         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
28299         HAVE_DPRINTF, REPLACE_DPRINTF.
28300         * doc/posix-functions/dprintf.texi: Mention the new modules.
28301
28302 2009-01-17  Bruno Haible  <bruno@clisp.org>
28303
28304         * modules/vdprintf-posix-tests: New file.
28305         * tests/test-vdprintf-posix.sh: New file.
28306         * tests/test-vdprintf-posix.c: New file.
28307
28308         New modules 'vdprintf', 'vdprintf-posix'.
28309         * lib/stdio.in.h (vdprintf): New declaration.
28310         * lib/vdprintf.c: New file.
28311         * m4/vdprintf.m4: New file.
28312         * m4/vdprintf-posix.m4: New file.
28313         * modules/vdprintf: New file.
28314         * modules/vdprintf-posix: New file.
28315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
28316         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28317         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
28318         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28319         * doc/posix-functions/vdprintf.texi: Mention the new modules.
28320
28321 2009-01-17  Bruno Haible  <bruno@clisp.org>
28322
28323         Fix replacement of fopen on mingw.
28324         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
28325         mingw.
28326
28327 2009-01-17  Bruno Haible  <bruno@clisp.org>
28328
28329         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
28330         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
28331
28332 2009-01-17  Bruno Haible  <bruno@clisp.org>
28333
28334         Avoid test-fflush2.sh failure on mingw.
28335         * tests/test-fflush2.c: Include binary-io.h.
28336         (main): Put standard input into binary mode.
28337         * modules/fflush-tests (Depends-on): Add binary-io.
28338
28339 2009-01-17  Bruno Haible  <bruno@clisp.org>
28340
28341         * lib/wchar.in.h: In another particular situation, include only the
28342         system's <wchar.h> file.
28343         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
28344         Reported by Albert Chin-A-Young <china@thewrittenword.com>
28345         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
28346
28347 2009-01-17  Bruno Haible  <bruno@clisp.org>
28348
28349         Support for stripping executables in --enable-relocatable.
28350         * build-aux/install-reloc: Expect one more argument, or an environment
28351         variable RELOC_STRIP_PROG. If set, strip the destination program and
28352         its wrapper.
28353         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
28354         RELOC_STRIP_PROG.
28355         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
28356         to set RELOCATABLE_STRIP.
28357         * NEWS: Mention the new Makefile requirement.
28358
28359 2009-01-17  Bruno Haible  <bruno@clisp.org>
28360
28361         * build-aux/install-reloc: Remove debugging information left over by
28362         C compiler on MacOS X.
28363
28364 2009-01-17  Bruno Haible  <bruno@clisp.org>
28365
28366         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
28367         * lib/progreloc.c (find_executable): Fix type of pointer passed to
28368         _NSGetExecutablePath.
28369
28370 2009-01-16  Jim Meyering  <meyering@redhat.com>
28371
28372         strerror: avoid warnings about discarding "const"
28373         * lib/strerror.c (rpl_strerror): Instead of returning a const
28374         string from each and every "case", use a variable, and add a single
28375         cast after the switch.
28376
28377 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
28378
28379         * lib/arpa_inet.in.h: Add extern "C" block for C++.
28380
28381 2009-01-16  Bruno Haible  <bruno@clisp.org>
28382
28383         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
28384         array initializer syntax that also works in C++ mode.
28385         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28386
28387 2009-01-16  Jim Meyering  <meyering@redhat.com>
28388
28389         poll: suppress a warning
28390         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
28391         to ignore "...unsigned expression < 0 is always false" warnings.
28392
28393 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
28394
28395         poll: remove declarations of unused variables
28396         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
28397         sockbuf and optlen.
28398
28399 2009-01-15  Bruno Haible  <bruno@clisp.org>
28400
28401         Make fflush-after-ungetc POSIX compliant on BSD systems.
28402         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
28403         (clear_ungetc_buffer): Implement also for other systems.
28404         (rpl_fflush): On glibc systems, invoke
28405         clear_ungetc_buffer_preserving_position. Otherwise, invoke
28406         clear_ungetc_buffer after fetching the stream's position, not before.
28407
28408 2009-01-15  Bruno Haible  <bruno@clisp.org>
28409
28410         Make fflush-after-ungetc POSIX compliant on glibc systems.
28411         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
28412         after ungetc.
28413         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
28414         (rpl_fflush): On glibc systems, simply call the system's fflush
28415         function after clearing the ungetc buffer.
28416         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
28417         Instead, lseek only to the end of file, then use the system's fseeko
28418         for the rest. On glibc systems, reset the EOF indicator bit.
28419
28420 2009-01-15  Jim Meyering  <meyering@redhat.com>
28421
28422         openmp.m4: revert quote-adding change, for portability to older autoconf
28423         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
28424         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
28425         Simon Josefsson noticed the problem when using autoconf-2.61.
28426
28427 2009-01-15  Bruno Haible  <bruno@clisp.org>
28428
28429         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
28430         * tests/test-fflush2.c (ASSERT): Always fail.
28431         (main): Add two tests for fflush() after ungetc(), taking into account
28432         the Austin Group's clarification.
28433         Suggested by Eric Blake.
28434
28435 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
28436
28437         mktime.m4: remove K&R-style function prototypes
28438         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
28439         for the Sun C++ compiler.
28440
28441 2009-01-14  Bruno Haible  <bruno@clisp.org>
28442
28443         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
28444         while including <wchar.h>.
28445         * lib/wchar.in.h: In two particular situations on HP-UX, include only
28446         the system's <wchar.h> file.
28447         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28448
28449 2009-01-14  Bruno Haible  <bruno@clisp.org>
28450
28451         * m4/csharp.m4: Don't mention gettext on the serial number line.
28452         * m4/csharpexec.m4: Likewise.
28453         * m4/eaccess.m4: Likewise.
28454         * m4/javaexec.m4: Likewise.
28455         * m4/sig_atomic_t.m4: Likewise.
28456         * m4/tmpdir.m4: Likewise.
28457         * m4/intldir.m4: Bump gettext version.
28458         * m4/lib-ld.m4: Likewise.
28459
28460 2009-01-14  Bruno Haible  <bruno@clisp.org>
28461
28462         * lib/progname.c (set_program_name): Add more comments.
28463         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28464
28465 2009-01-14  Simon Josefsson  <simon@josefsson.org>
28466
28467         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
28468         were sys/stat.h does not define it.
28469
28470 2009-01-14  Jim Meyering  <meyering@redhat.com>
28471
28472         many *.m4 files: improve m4 quoting
28473         99% of this change was performed by running the following commands:
28474         git ls-files | grep '\.m4$' | xargs perl -pi \
28475           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
28476           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28477           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28478           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
28479         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
28480         The remainder were to add Copyright dates, increment serial numbers,
28481         undo some changes in comments, exclude m4/intl.m4, and add quotes
28482         around the "1" in ",1" where the unusual spacing prohibited the
28483         above regexps from doing the job.  For more details, see
28484         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
28485         * m4/acl.m4: Modified.
28486         * m4/afs.m4: Likewise.
28487         * m4/alloca.m4: Likewise.
28488         * m4/argp.m4: Likewise.
28489         * m4/argz.m4: Likewise.
28490         * m4/atexit.m4: Likewise.
28491         * m4/bison-i18n.m4: Likewise.
28492         * m4/bison.m4: Likewise.
28493         * m4/byteswap.m4: Likewise.
28494         * m4/c-stack.m4: Likewise.
28495         * m4/c-strtod.m4: Likewise.
28496         * m4/calloc.m4: Likewise.
28497         * m4/canonicalize-lgpl.m4: Likewise.
28498         * m4/chown.m4: Likewise.
28499         * m4/clock_time.m4: Likewise.
28500         * m4/codeset.m4: Likewise.
28501         * m4/copy-file.m4: Likewise.
28502         * m4/csharp.m4: Likewise.
28503         * m4/csharpcomp.m4: Likewise.
28504         * m4/csharpexec.m4: Likewise.
28505         * m4/d-ino.m4: Likewise.
28506         * m4/d-type.m4: Likewise.
28507         * m4/dirfd.m4: Likewise.
28508         * m4/double-slash-root.m4: Likewise.
28509         * m4/eaccess.m4: Likewise.
28510         * m4/eealloc.m4: Likewise.
28511         * m4/environ.m4: Likewise.
28512         * m4/errno_h.m4: Likewise.
28513         * m4/euidaccess.m4: Likewise.
28514         * m4/execute.m4: Likewise.
28515         * m4/fatal-signal.m4: Likewise.
28516         * m4/fchdir.m4: Likewise.
28517         * m4/fcntl_h.m4: Likewise.
28518         * m4/fileblocks.m4: Likewise.
28519         * m4/filenamecat.m4: Likewise.
28520         * m4/findprog.m4: Likewise.
28521         * m4/flexmember.m4: Likewise.
28522         * m4/fnmatch.m4: Likewise.
28523         * m4/fopen.m4: Likewise.
28524         * m4/fpending.m4: Likewise.
28525         * m4/fprintf-posix.m4: Likewise.
28526         * m4/free.m4: Likewise.
28527         * m4/frexp.m4: Likewise.
28528         * m4/frexpl.m4: Likewise.
28529         * m4/fsusage.m4: Likewise.
28530         * m4/ftruncate.m4: Likewise.
28531         * m4/gc-camellia.m4: Likewise.
28532         * m4/gc-random.m4: Likewise.
28533         * m4/gc.m4: Likewise.
28534         * m4/getaddrinfo.m4: Likewise.
28535         * m4/getcwd-abort-bug.m4: Likewise.
28536         * m4/getcwd-path-max.m4: Likewise.
28537         * m4/getdate.m4: Likewise.
28538         * m4/getdomainname.m4: Likewise.
28539         * m4/getgroups.m4: Likewise.
28540         * m4/gethostname.m4: Likewise.
28541         * m4/gethrxtime.m4: Likewise.
28542         * m4/getline.m4: Likewise.
28543         * m4/getloadavg.m4: Likewise.
28544         * m4/getndelim2.m4: Likewise.
28545         * m4/getpass.m4: Likewise.
28546         * m4/gettext.m4: Likewise.
28547         * m4/gettime.m4: Likewise.
28548         * m4/gettimeofday.m4: Likewise.
28549         * m4/gnulib-common.m4: Likewise.
28550         * m4/group-member.m4: Likewise.
28551         * m4/host-os.m4: Likewise.
28552         * m4/iconv.m4: Likewise.
28553         * m4/iconv_open.m4: Likewise.
28554         * m4/inet_ntop.m4: Likewise.
28555         * m4/inet_pton.m4: Likewise.
28556         * m4/inline.m4: Likewise.
28557         * m4/intldir.m4: Likewise.
28558         * m4/intlmacosx.m4: Likewise.
28559         * m4/intmax.m4: Likewise.
28560         * m4/intmax_t.m4: Likewise.
28561         * m4/inttypes.m4: Likewise.
28562         * m4/inttypes_h.m4: Likewise.
28563         * m4/inttypes-pri.m4: Likewise.
28564         * m4/isapipe.m4: Likewise.
28565         * m4/isnand.m4: Likewise.
28566         * m4/isnanf.m4: Likewise.
28567         * m4/isnanl.m4: Likewise.
28568         * m4/javacomp.m4: Likewise.
28569         * m4/javaexec.m4: Likewise.
28570         * m4/jm-winsz1.m4: Likewise.
28571         * m4/jm-winsz2.m4: Likewise.
28572         * m4/lchown.m4: Likewise.
28573         * m4/lcmessage.m4: Likewise.
28574         * m4/ldexpl.m4: Likewise.
28575         * m4/lib-ld.m4: Likewise.
28576         * m4/lib-link.m4: Likewise.
28577         * m4/libsigsegv.m4: Likewise.
28578         * m4/link-follow.m4: Likewise.
28579         * m4/localcharset.m4: Likewise.
28580         * m4/locale-fr.m4: Likewise.
28581         * m4/locale-ja.m4: Likewise.
28582         * m4/locale-tr.m4: Likewise.
28583         * m4/locale-zh.m4: Likewise.
28584         * m4/lock.m4: Likewise.
28585         * m4/longlong.m4: Likewise.
28586         * m4/ls-mntd-fs.m4: Likewise.
28587         * m4/lstat.m4: Likewise.
28588         * m4/malloc.m4: Likewise.
28589         * m4/mathl.m4: Likewise.
28590         * m4/mbrtowc.m4: Likewise.
28591         * m4/mbstate_t.m4: Likewise.
28592         * m4/mbswidth.m4: Likewise.
28593         * m4/memchr.m4: Likewise.
28594         * m4/memcmp.m4: Likewise.
28595         * m4/memcpy.m4: Likewise.
28596         * m4/memmem.m4: Likewise.
28597         * m4/memmove.m4: Likewise.
28598         * m4/mempcpy.m4: Likewise.
28599         * m4/memrchr.m4: Likewise.
28600         * m4/memset.m4: Likewise.
28601         * m4/minmax.m4: Likewise.
28602         * m4/mkdir-slash.m4: Likewise.
28603         * m4/mkdtemp.m4: Likewise.
28604         * m4/mktime.m4: Likewise.
28605         * m4/mmap-anon.m4: Likewise.
28606         * m4/mountlist.m4: Likewise.
28607         * m4/nanosleep.m4: Likewise.
28608         * m4/nls.m4: Likewise.
28609         * m4/nocrash.m4: Likewise.
28610         * m4/open.m4: Likewise.
28611         * m4/openat.m4: Likewise.
28612         * m4/openmp.m4: Likewise.
28613         * m4/pathmax.m4: Likewise.
28614         * m4/perl.m4: Likewise.
28615         * m4/physmem.m4: Likewise.
28616         * m4/pipe.m4: Likewise.
28617         * m4/po.m4: Likewise.
28618         * m4/poll.m4: Likewise.
28619         * m4/posixtm.m4: Likewise.
28620         * m4/posixver.m4: Likewise.
28621         * m4/printf-frexp.m4: Likewise.
28622         * m4/printf-frexpl.m4: Likewise.
28623         * m4/printf-posix.m4: Likewise.
28624         * m4/printf-posix-rpl.m4: Likewise.
28625         * m4/printf.m4: Likewise.
28626         * m4/progtest.m4: Likewise.
28627         * m4/putenv.m4: Likewise.
28628         * m4/readline.m4: Likewise.
28629         * m4/readlink.m4: Likewise.
28630         * m4/readutmp.m4: Likewise.
28631         * m4/realloc.m4: Likewise.
28632         * m4/regex.m4: Likewise.
28633         * m4/relocatable.m4: Likewise.
28634         * m4/relocatable-lib.m4: Likewise.
28635         * m4/rename-dest-slash.m4: Likewise.
28636         * m4/rename.m4: Likewise.
28637         * m4/rmdir-errno.m4: Likewise.
28638         * m4/rmdir.m4: Likewise.
28639         * m4/roundf.m4: Likewise.
28640         * m4/roundl.m4: Likewise.
28641         * m4/rpmatch.m4: Likewise.
28642         * m4/save-cwd.m4: Likewise.
28643         * m4/selinux-selinux-h.m4: Likewise.
28644         * m4/setenv.m4: Likewise.
28645         * m4/settime.m4: Likewise.
28646         * m4/sig2str.m4: Likewise.
28647         * m4/sig_atomic_t.m4: Likewise.
28648         * m4/signalblocking.m4: Likewise.
28649         * m4/signbit.m4: Likewise.
28650         * m4/sigpipe.m4: Likewise.
28651         * m4/sockets.m4: Likewise.
28652         * m4/sockpfaf.m4: Likewise.
28653         * m4/st_dm_mode.m4: Likewise.
28654         * m4/stat-time.m4: Likewise.
28655         * m4/stdbool.m4: Likewise.
28656         * m4/stdint.m4: Likewise.
28657         * m4/stdint_h.m4: Likewise.
28658         * m4/stpcpy.m4: Likewise.
28659         * m4/stpncpy.m4: Likewise.
28660         * m4/strcase.m4: Likewise.
28661         * m4/strchrnul.m4: Likewise.
28662         * m4/strcspn.m4: Likewise.
28663         * m4/strdup.m4: Likewise.
28664         * m4/strftime.m4: Likewise.
28665         * m4/strndup.m4: Likewise.
28666         * m4/strnlen.m4: Likewise.
28667         * m4/strpbrk.m4: Likewise.
28668         * m4/strptime.m4: Likewise.
28669         * m4/strsep.m4: Likewise.
28670         * m4/strtod.m4: Likewise.
28671         * m4/strtoimax.m4: Likewise.
28672         * m4/strtok_r.m4: Likewise.
28673         * m4/strtol.m4: Likewise.
28674         * m4/strtoll.m4: Likewise.
28675         * m4/strtoul.m4: Likewise.
28676         * m4/strtoull.m4: Likewise.
28677         * m4/strtoumax.m4: Likewise.
28678         * m4/strverscmp.m4: Likewise.
28679         * m4/threadlib.m4: Likewise.
28680         * m4/timegm.m4: Likewise.
28681         * m4/tm_gmtoff.m4: Likewise.
28682         * m4/tmpdir.m4: Likewise.
28683         * m4/tmpfile.m4: Likewise.
28684         * m4/tzset.m4: Likewise.
28685         * m4/uintmax_t.m4: Likewise.
28686         * m4/unlinkdir.m4: Likewise.
28687         * m4/unlocked-io.m4: Likewise.
28688         * m4/uptime.m4: Likewise.
28689         * m4/userspec.m4: Likewise.
28690         * m4/utimbuf.m4: Likewise.
28691         * m4/utime.m4: Likewise.
28692         * m4/utimes-null.m4: Likewise.
28693         * m4/utimes.m4: Likewise.
28694         * m4/vararrays.m4: Likewise.
28695         * m4/vasnprintf.m4: Likewise.
28696         * m4/vfprintf-posix.m4: Likewise.
28697         * m4/vprintf-posix.m4: Likewise.
28698         * m4/wait-process.m4: Likewise.
28699         * m4/wchar_t.m4: Likewise.
28700         * m4/wint_t.m4: Likewise.
28701         * m4/write-any-file.m4: Likewise.
28702         * m4/yield.m4: Likewise.
28703
28704 2009-01-13  Bruno Haible  <bruno@clisp.org>
28705
28706         Avoid test-copy-file.sh failures when ACL support insufficient.
28707         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
28708         TESTS_ENVIRONMENT.
28709         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
28710         Reported by Jim Meyering.
28711
28712 2009-01-13  Bruno Haible  <bruno@clisp.org>
28713
28714         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
28715         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
28716         * modules/unistdio/u8-printf-parse (Files): Likewise.
28717         * modules/unistdio/u32-printf-parse (Files): Likewise.
28718         * modules/unistdio/ulc-printf-parse (Files): Likewise.
28719
28720 2009-01-13  Simon Josefsson  <simon@josefsson.org>
28721
28722         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
28723         and m4/inttypes_h.m4 too.
28724
28725 2009-01-12  Eric Blake  <ebb9@byu.net>
28726
28727         tests: IRIX 6.2 cc can't compile -0.0 into .data
28728         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
28729         rather than at compile-time.
28730         * tests/test-floorl.c (minus_zero): Likewise.
28731         * tests/test-frexpl.c (minus_zero): Likewise.
28732         * tests/test-isnan.c (minus_zerol): Likewise.
28733         * tests/test-isnanl.h (minus_zero): Likewise.
28734         * tests/test-ldexpl.c (minus_zero): Likewise.
28735         * tests/test-roundl.c (minus_zero): Likewise.
28736         * tests/test-signbit.c (minus_zerol): Likewise.
28737         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28738         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28739         * tests/test-truncl.c (minus_zero): Likewise.
28740         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28741         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28742         Reported by Tom G. Christensen and Nelson H. F. Beebe.
28743
28744 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28745
28746         regex: fix glibc bug 9697
28747         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
28748         handling.
28749
28750 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28751
28752         regex: fix glibc bug 697
28753         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
28754         being NULL also if there are no backreferences.
28755
28756 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28757
28758         regex: merge glibc changes
28759         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
28760         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
28761         re_string_skip_chars, re_string_reconstruct): Likewise.
28762         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
28763
28764 2009-01-07  Jim Meyering  <meyering@redhat.com>
28765
28766         poll: filter through cppi
28767         * lib/poll.c: Indent cpp directives to reflect nesting.
28768
28769 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
28770
28771         poll: don't return uninitialized
28772         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
28773
28774 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
28775
28776         avoid compile failure on AIX 6.1
28777         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
28778         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
28779
28780 2009-01-04  Jim Meyering  <meyering@redhat.com>
28781
28782         remove duplicate inclusion of <stdio.h>
28783         * tests/test-fprintf-posix.c: Likewise.
28784         * tests/test-printf-posix.c: Likewise.
28785         * tests/test-snprintf-posix.c: Likewise.
28786         * tests/test-sprintf-posix.c: Likewise.
28787         * tests/test-vasprintf-posix.c: Likewise.
28788         * tests/test-vfprintf-posix.c: Likewise.
28789         * tests/test-vprintf-posix.c: Likewise.
28790         * tests/test-vsnprintf-posix.c: Likewise.
28791         * tests/test-vsprintf-posix.c: Likewise.
28792
28793 2009-01-03  Jim Meyering  <meyering@redhat.com>
28794
28795         gnulib-tool: fix sed-based filtering
28796         * gnulib-tool (func_filter_filelist): Remove extra backslash
28797         in sed_fff_filter definition.
28798
28799 2009-01-02  Jim Meyering  <meyering@redhat.com>
28800
28801         strftime: avoid compilation failure on Solaris 2.6
28802         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
28803         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
28804         Don't #define mbrlen or mbsinit, since now they're guaranteed to
28805         be available.  Reported by Tom G. Christensen.  Details in
28806         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
28807
28808 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28809             Bruno Haible  <bruno@clisp.org>
28810
28811         Speed up gnulib-tool by doing more string processing through shell
28812         built-ins.
28813         * gnulib-tool (fast_func_append): New variable.
28814         (func_remove_prefix, func_remove_suffix): New functions.
28815         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
28816         (func_filter_filelist): New function.
28817         (func_get_dependencies): Use func_remove_suffix instead of sed.
28818         (func_get_automake_snippet): Use func_filter_filelist instead of a
28819         subshell and sed invocation.
28820
28821 2009-01-01  Bruno Haible  <bruno@clisp.org>
28822
28823         Fix a security bug.
28824         * gnulib-tool (func_import, import, update): Don't allow the characters
28825         '"', '$', '`', '\' in macro arguments that become part of commands that
28826         are evaluated.
28827
28828 2009-01-01  Bruno Haible  <bruno@clisp.org>
28829
28830         * gnulib-tool (func_reset_sigpipe): Add more comments.
28831
28832 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28833
28834         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
28835         func_emit_tests_Makefile_am, func_import): Abort loops early if we
28836         already know the answer.
28837
28838 2009-01-01  Jim Meyering  <meyering@redhat.com>
28839
28840         * lib/version-etc.c (version_etc_va): Update copyright year.
28841
28842 2008-12-30  Bruno Haible  <bruno@clisp.org>
28843
28844         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
28845         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
28846         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
28847
28848 2008-12-29  Eric Blake  <ebb9@byu.net>
28849
28850         multiarch: avoid autoconf AC_REQUIRE bug
28851         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
28852         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
28853         2.63 and older.
28854         Reported by Bruno Haible, and analyzed in
28855         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
28856
28857 2008-12-29  Bruno Haible  <bruno@clisp.org>
28858
28859         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
28860         files in subdirectories correctly.
28861         Reported by Ralf Wildenhues.
28862
28863 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28864
28865         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
28866         rather than 'join FILE -', for Solaris join.
28867
28868 2008-12-29  Bruno Haible  <bruno@clisp.org>
28869
28870         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
28871         quoting.
28872         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28873         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28874         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28875         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
28876         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28877         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28878         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28879         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28880         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28881         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28882         * m4/nls.m4 (AM_NLS): Likewise.
28883         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
28884         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28885         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28886         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28887         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28888         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28889         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
28890         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28891         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28892         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28893         * m4/xsize.m4 (gl_XSIZE): Likewise.
28894         Suggested by Jim Meyering.
28895
28896 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28897
28898         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
28899         * lib/parse-duration.c: use a switch instead of cascading if's.
28900
28901 2008-12-29  Eric Blake  <ebb9@byu.net>
28902
28903         wchar.h: supply WEOF on Irix 5.3
28904         * lib/wchar.in.h (wint_t): Also supply WEOF.
28905         * lib/wctype.in.h (wint_t): Likewise.
28906         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
28907         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
28908         Reported by Tom G. Christensen.
28909
28910 2008-12-26  Bruno Haible  <bruno@clisp.org>
28911
28912         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
28913         i486, i586, i686.
28914
28915 2008-12-26  Bruno Haible  <bruno@clisp.org>
28916
28917         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
28918
28919 2008-12-26  Bruno Haible  <bruno@clisp.org>
28920
28921         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
28922         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
28923         not __STDC_CONSTANT_MACROS.
28924         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28925
28926 2008-12-25  Bruno Haible  <bruno@clisp.org>
28927
28928         Add support for universal builds to vasnprintf.
28929         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
28930         universal builds, guess no.
28931         * modules/vasnprintf-posix (Depends-on): Add multiarch.
28932         * modules/vasprintf-posix (Depends-on): Likewise.
28933         * modules/fprintf-posix (Depends-on): Likewise.
28934         * modules/vfprintf-posix (Depends-on): Likewise.
28935         * modules/snprintf-posix (Depends-on): Likewise.
28936         * modules/vsnprintf-posix (Depends-on): Likewise.
28937         * modules/sprintf-posix (Depends-on): Likewise.
28938         * modules/vsprintf-posix (Depends-on): Likewise.
28939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28946
28947         Add support for universal builds to <inttypes.h>.
28948         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
28949         _SCNu64_PREFIX): In Apple
28950         universal builds, define directly, using _LP64.
28951         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
28952         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
28953         * modules/inttypes (Depends-on): Add multiarch.
28954         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28955
28956         Add support for universal builds to <stdint.h>.
28957         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
28958         universal builds, define directly, using _LP64.
28959         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
28960         Apple universal builds, don't test for the size and suffix of ptrdiff_t
28961         and size_t.
28962         * modules/stdint (Depends-on): Add multiarch.
28963         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28964
28965         New module 'multiarch'.
28966         * modules/multiarch: New file.
28967         * m4/multiarch.m4: New file.
28968
28969 2008-12-25  Bruno Haible  <bruno@clisp.org>
28970
28971         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
28972
28973 2008-12-25  Bruno Haible  <bruno@clisp.org>
28974
28975         * modules/btowc (License): Relicense under LGPLv2+.
28976         * modules/mbsinit (License): Likewise.
28977         * modules/mbrtowc (License): Likewise.
28978         * modules/wcrtomb (License): Likewise.
28979         * modules/streq (License): Likewise.
28980         Reported by David Lutterkort <lutter@redhat.com>.
28981
28982 2008-12-23  Bruno Haible  <bruno@clisp.org>
28983
28984         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
28985
28986 2008-12-23  Bruno Haible  <bruno@clisp.org>
28987
28988         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
28989         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
28990         GETADDRINFO_LIB, not in LIBS.
28991         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
28992         * modules/canon-host (Link): Likewise.
28993         * NEWS: Mention the change.
28994         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
28995         GETADDRINFO_LIB.
28996
28997 2008-12-22  Bruno Haible  <bruno@clisp.org>
28998
28999         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
29000         * doc/posix-functions/iswalpha_l.texi: Likewise.
29001         * doc/posix-functions/iswblank_l.texi: Likewise.
29002         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29003         * doc/posix-functions/iswctype_l.texi: Likewise.
29004         * doc/posix-functions/iswdigit_l.texi: Likewise.
29005         * doc/posix-functions/iswgraph_l.texi: Likewise.
29006         * doc/posix-functions/iswlower_l.texi: Likewise.
29007         * doc/posix-functions/iswprint_l.texi: Likewise.
29008         * doc/posix-functions/iswpunct_l.texi: Likewise.
29009         * doc/posix-functions/iswspace_l.texi: Likewise.
29010         * doc/posix-functions/iswupper_l.texi: Likewise.
29011         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29012         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
29013         * doc/posix-functions/open_wmemstream.texi: Likewise.
29014         * doc/posix-functions/swscanf.texi: Likewise.
29015         * doc/posix-functions/towctrans_l.texi: Likewise.
29016         * doc/posix-functions/towlower.texi: Likewise.
29017         * doc/posix-functions/towlower_l.texi: Likewise.
29018         * doc/posix-functions/towupper.texi: Likewise.
29019         * doc/posix-functions/towupper_l.texi: Likewise.
29020         * doc/posix-functions/vfwprintf.texi: Likewise.
29021         * doc/posix-functions/vfwscanf.texi: Likewise.
29022         * doc/posix-functions/vswscanf.texi: Likewise.
29023         * doc/posix-functions/vwprintf.texi: Likewise.
29024         * doc/posix-functions/vwscanf.texi: Likewise.
29025         * doc/posix-functions/wcpcpy.texi: Likewise.
29026         * doc/posix-functions/wcpncpy.texi: Likewise.
29027         * doc/posix-functions/wcscasecmp.texi: Likewise.
29028         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
29029         * doc/posix-functions/wcscoll_l.texi: Likewise.
29030         * doc/posix-functions/wcsdup.texi: Likewise.
29031         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29032         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
29033         * doc/posix-functions/wcsnlen.texi: Likewise.
29034         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29035         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29036         * doc/posix-functions/wctrans_l.texi: Likewise.
29037         * doc/posix-functions/wctype_l.texi: Likewise.
29038         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
29039         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
29040         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
29041         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
29042         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
29043         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
29044         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
29045         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
29046         * doc/glibc-functions/wcschrnul.texi: Likewise.
29047         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29048         * doc/glibc-functions/wcstod_l.texi: Likewise.
29049         * doc/glibc-functions/wcstof_l.texi: Likewise.
29050         * doc/glibc-functions/wcstol_l.texi: Likewise.
29051         * doc/glibc-functions/wcstold_l.texi: Likewise.
29052         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29053         * doc/glibc-functions/wcstoq.texi: Likewise.
29054         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29055         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29056         * doc/glibc-functions/wcstouq.texi: Likewise.
29057         * doc/glibc-functions/wmempcpy.texi: Likewise.
29058
29059 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
29060             Eric Blake  <ebb9@byu.net>
29061             Paolo Bonzini  <bonzini@gnu.org>
29062             Bruno Haible  <bruno@clisp.org>
29063
29064         Make c-stack work on Haiku.
29065         * lib/c-stack.c (SA_ONSTACK): Define fallback.
29066         (c_stack_action): Use SA_ONSTACK flag.
29067
29068 2008-12-22  Bruno Haible  <bruno@clisp.org>
29069
29070         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
29071
29072 2008-12-22  Bruno Haible  <bruno@clisp.org>
29073
29074         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
29075         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
29076         being overridden.
29077         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
29078         New macros.
29079         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
29080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
29081         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
29082         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
29083
29084 2008-12-22  Bruno Haible  <bruno@clisp.org>
29085
29086         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
29087         from test code.
29088
29089 2008-12-22  Eric Blake  <ebb9@byu.net>
29090
29091         Avoid gcc warnings on cygwin.
29092         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
29093         Avoid unused variable.
29094         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
29095         Likewise.
29096
29097 2008-12-22  Bruno Haible  <bruno@clisp.org>
29098
29099         Remove HAVE_MBRTOWC conditionals.
29100         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
29101         (mbscasecmp): Assume mbrtowc function.
29102         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
29103         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
29104         * lib/mbschr.c: Include mbuiter.h unconditionally.
29105         (mbschr): Assume mbrtowc function.
29106         * lib/mbscspn.c: Include mbuiter.h unconditionally.
29107         (mbscspn): Assume mbrtowc function.
29108         * lib/mbslen.c: Include mbuiter.h unconditionally.
29109         (mbslen): Assume mbrtowc function.
29110         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
29111         (mbsncasecmp): Assume mbrtowc function.
29112         * lib/mbsnlen.c: Include mbiter.h unconditionally.
29113         (mbsnlen): Assume mbrtowc function.
29114         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
29115         (mbspbrk): Assume mbrtowc function.
29116         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
29117         (mbspcasecmp): Assume mbrtowc function.
29118         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
29119         (mbsrchr): Assume mbrtowc function.
29120         * lib/mbssep.c: Include mbuiter.h unconditionally.
29121         (mbssep): Assume mbrtowc function.
29122         * lib/mbsspn.c: Include mbuiter.h unconditionally.
29123         (mbsspn): Assume mbrtowc function.
29124         * lib/mbsstr.c: Include mbuiter.h unconditionally.
29125         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
29126         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
29127         (mbstok_r): Assume mbrtowc function.
29128         * lib/propername.c: Include mbuiter.h unconditionally.
29129         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
29130         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
29131         (trim2): Assume mbrtowc function.
29132         * lib/mbswidth.c (mbsinit): Remove fallback definition.
29133         (mbsnwidth): Assume mbrtowc function.
29134         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
29135         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
29136         fallback definitions.
29137         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
29138
29139 2008-12-22  Bruno Haible  <bruno@clisp.org>
29140
29141         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
29142
29143 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
29144
29145         * modules/regex: Request emulations for the mb*/wc* functions we need.
29146         * m4/regex.m4: Don't look for those functions here.
29147         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
29148
29149 2008-12-22  Bruno Haible  <bruno@clisp.org>
29150
29151         * modules/fnmatch (Depends-on): Remove duplicated dependency.
29152
29153 2008-12-21  Bruno Haible  <bruno@clisp.org>
29154
29155         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
29156         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
29157         (Include): Remove conditionalization.
29158         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
29159         (Include): Remove conditionalization.
29160         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
29161         (Include): Remove conditionalization.
29162         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
29163         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29164         * NEWS: Mention the change.
29165         Reported by Alan Hourihane <alanh@fairlite.co.uk>
29166         via Sergey Poznyakoff <gray@gnu.org.ua>.
29167
29168 2008-12-21  Bruno Haible  <bruno@clisp.org>
29169
29170         * MODULES.html.sh (Extended multibyte and wide character utilities
29171         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
29172         wcrtomb, wcsrtombs.
29173         (Support for systems lacking POSIX:2008): Add accept, bind, close,
29174         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
29175         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
29176         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
29177
29178 2008-12-21  Bruno Haible  <bruno@clisp.org>
29179
29180         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
29181
29182 2008-12-21  Bruno Haible  <bruno@clisp.org>
29183
29184         * modules/wcsnrtombs-tests: New file.
29185         * tests/test-wcsnrtombs1.sh: New file.
29186         * tests/test-wcsnrtombs2.sh: New file.
29187         * tests/test-wcsnrtombs3.sh: New file.
29188         * tests/test-wcsnrtombs4.sh: New file.
29189         * tests/test-wcsnrtombs.c: New file.
29190
29191         New module 'wcsnrtombs'.
29192         * lib/wchar.in.h (wcsnrtombs): New declaration.
29193         * lib/wcsnrtombs.c: New file.
29194         * lib/wcsrtombs-state.c: New file.
29195         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
29196         (internal_state): Remove variable.
29197         * m4/wcsnrtombs.m4: New file.
29198         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
29199         compilation units.
29200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
29201         HAVE_WCSNRTOMBS.
29202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
29203         HAVE_WCSNRTOMBS.
29204         * modules/wcsnrtombs: New file.
29205         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
29206         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
29207
29208 2008-12-21  Bruno Haible  <bruno@clisp.org>
29209
29210         * modules/wcsrtombs-tests: New file.
29211         * tests/test-wcsrtombs1.sh: New file.
29212         * tests/test-wcsrtombs2.sh: New file.
29213         * tests/test-wcsrtombs3.sh: New file.
29214         * tests/test-wcsrtombs4.sh: New file.
29215         * tests/test-wcsrtombs.c: New file.
29216
29217         New module 'wcsrtombs'.
29218         * lib/wchar.in.h (wcsrtombs): New declaration.
29219         * lib/wcsrtombs.c: New file.
29220         * m4/wcsrtombs.m4: New file.
29221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
29222         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
29224         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29225         * modules/wcsrtombs: New file.
29226         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
29227         bugs.
29228
29229 2008-12-21  Bruno Haible  <bruno@clisp.org>
29230
29231         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
29232         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
29233         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
29234         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
29235         if not correct.
29236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
29237         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
29238         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29239         m4/locale-zh.m4, m4/codeset.m4.
29240         * doc/posix-functions/wcrtomb.texi: Document the bug.
29241
29242 2008-12-21  Bruno Haible  <bruno@clisp.org>
29243
29244         Work around a btowc() bug on IRIX 6.5.
29245         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
29246         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
29247         REPLACE_WTOBC if not.
29248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
29249         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
29250         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
29251
29252 2008-12-21  Bruno Haible  <bruno@clisp.org>
29253
29254         * modules/wcrtomb-tests: New file.
29255         * tests/test-wcrtomb.sh: New file.
29256         * tests/test-wcrtomb.c: New file.
29257
29258         New module 'wcrtomb'.
29259         * lib/wchar.in.h (wcrtomb): New declaration.
29260         * lib/wcrtomb.c: New file.
29261         * m4/wcrtomb.m4: New file.
29262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
29263         HAVE_WCRTOMB.
29264         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
29265         HAVE_WCRTOMB.
29266         * modules/wcrtomb: New file.
29267         * doc/posix-functions/wcrtomb.texi: Mention the new module.
29268
29269 2008-12-21  Bruno Haible  <bruno@clisp.org>
29270
29271         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
29272         * modules/mbsrtowcs (Files): Likewise.
29273         * modules/wctob (Files): Likewise.
29274         * modules/c-strcase-tests (Files): Likewise.
29275         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29276         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29277         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29278         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29279         * modules/vasnprintf-posix-tests (Files): Likewise.
29280
29281 2008-12-21  William Pursell  <bill.pursell@gmail.com>
29282
29283         gitlog-to-changelog: pass all command-line arguments to git-log
29284         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
29285         it is sometimes convenient to filter the commits in various ways.
29286         gitlog-to-changelog only allows --since to specify a start date,
29287         but git-log itself supports many other filtering mechanisms.
29288         At the moment, I want to filter by branch name.  Rather than
29289         adding a --branch option to gitlog-to-changelog, it seems more
29290         flexible to simply pass all options directly to git-log and let
29291         git do the work.  Notice that this effectively makes --since a
29292         redundant option for gitlog-to-changelog, but removing it would
29293         require current usage to change since calls would then require
29294         an additional '--'.
29295
29296 2008-12-21  Bruno Haible  <bruno@clisp.org>
29297
29298         * modules/mbsnrtowcs-tests: New file.
29299         * tests/test-mbsnrtowcs1.sh: New file.
29300         * tests/test-mbsnrtowcs2.sh: New file.
29301         * tests/test-mbsnrtowcs3.sh: New file.
29302         * tests/test-mbsnrtowcs4.sh: New file.
29303         * tests/test-mbsnrtowcs.c: New file.
29304
29305         New module 'mbsnrtowcs'.
29306         * lib/wchar.in.h (mbsnrtowcs): New declaration.
29307         * lib/mbsnrtowcs.c: New file.
29308         * lib/mbsrtowcs-state.c: New file.
29309         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
29310         (internal_state): Remove variable.
29311         * m4/mbsnrtowcs.m4: New file.
29312         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
29313         compilation units.
29314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
29315         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29316         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
29317         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29318         * modules/mbsnrtowcs: New file.
29319         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
29320         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
29321         portability problem.
29322
29323 2008-12-21  Bruno Haible  <bruno@clisp.org>
29324
29325         Work around mbsrtowcs bug.
29326         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
29327         (gl_FUNC_MBSRTOWCS): Invoke it.
29328         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29329         m4/locale-zh.m4.
29330         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
29331
29332 2008-12-21  Bruno Haible  <bruno@clisp.org>
29333
29334         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
29335
29336 2008-12-21  Bruno Haible  <bruno@clisp.org>
29337
29338         Update doc for AIX.
29339         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
29340         16-bit wchar_t type.
29341         * doc/posix-functions/btowc.texi: Likewise.
29342         * doc/posix-functions/fgetwc.texi: Likewise.
29343         * doc/posix-functions/fgetws.texi: Likewise.
29344         * doc/posix-functions/fputwc.texi: Likewise.
29345         * doc/posix-functions/fputws.texi: Likewise.
29346         * doc/posix-functions/fwide.texi: Likewise.
29347         * doc/posix-functions/fwprintf.texi: Likewise.
29348         * doc/posix-functions/fwscanf.texi: Likewise.
29349         * doc/posix-functions/getwchar.texi: Likewise.
29350         * doc/posix-functions/getwc.texi: Likewise.
29351         * doc/posix-functions/iswalnum.texi: Likewise.
29352         * doc/posix-functions/iswalpha.texi: Likewise.
29353         * doc/posix-functions/iswblank.texi: Likewise.
29354         * doc/posix-functions/iswcntrl.texi: Likewise.
29355         * doc/posix-functions/iswctype.texi: Likewise.
29356         * doc/posix-functions/iswdigit.texi: Likewise.
29357         * doc/posix-functions/iswgraph.texi: Likewise.
29358         * doc/posix-functions/iswlower.texi: Likewise.
29359         * doc/posix-functions/iswprint.texi: Likewise.
29360         * doc/posix-functions/iswpunct.texi: Likewise.
29361         * doc/posix-functions/iswspace.texi: Likewise.
29362         * doc/posix-functions/iswupper.texi: Likewise.
29363         * doc/posix-functions/iswxdigit.texi: Likewise.
29364         * doc/posix-functions/mbrtowc.texi: Likewise.
29365         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29366         * doc/posix-functions/mbstowcs.texi: Likewise.
29367         * doc/posix-functions/mbtowc.texi: Likewise.
29368         * doc/posix-functions/putwchar.texi: Likewise.
29369         * doc/posix-functions/putwc.texi: Likewise.
29370         * doc/posix-functions/swprintf.texi: Likewise.
29371         * doc/posix-functions/tolower.texi: Likewise.
29372         * doc/posix-functions/toupper.texi: Likewise.
29373         * doc/posix-functions/towctrans.texi: Likewise.
29374         * doc/posix-functions/ungetwc.texi: Likewise.
29375         * doc/posix-functions/vswprintf.texi: Likewise.
29376         * doc/posix-functions/wcrtomb.texi: Likewise.
29377         * doc/posix-functions/wcscat.texi: Likewise.
29378         * doc/posix-functions/wcschr.texi: Likewise.
29379         * doc/posix-functions/wcscmp.texi: Likewise.
29380         * doc/posix-functions/wcscoll.texi: Likewise.
29381         * doc/posix-functions/wcscpy.texi: Likewise.
29382         * doc/posix-functions/wcscspn.texi: Likewise.
29383         * doc/posix-functions/wcsftime.texi: Likewise.
29384         * doc/posix-functions/wcslen.texi: Likewise.
29385         * doc/posix-functions/wcsncat.texi: Likewise.
29386         * doc/posix-functions/wcsncmp.texi: Likewise.
29387         * doc/posix-functions/wcsncpy.texi: Likewise.
29388         * doc/posix-functions/wcspbrk.texi: Likewise.
29389         * doc/posix-functions/wcsrchr.texi: Likewise.
29390         * doc/posix-functions/wcsrtombs.texi: Likewise.
29391         * doc/posix-functions/wcsspn.texi: Likewise.
29392         * doc/posix-functions/wcsstr.texi: Likewise.
29393         * doc/posix-functions/wcstod.texi: Likewise.
29394         * doc/posix-functions/wcstof.texi: Likewise.
29395         * doc/posix-functions/wcstoimax.texi: Likewise.
29396         * doc/posix-functions/wcstok.texi: Likewise.
29397         * doc/posix-functions/wcstold.texi: Likewise.
29398         * doc/posix-functions/wcstoll.texi: Likewise.
29399         * doc/posix-functions/wcstol.texi: Likewise.
29400         * doc/posix-functions/wcstombs.texi: Likewise.
29401         * doc/posix-functions/wcstoull.texi: Likewise.
29402         * doc/posix-functions/wcstoul.texi: Likewise.
29403         * doc/posix-functions/wcstoumax.texi: Likewise.
29404         * doc/posix-functions/wcswidth.texi: Likewise.
29405         * doc/posix-functions/wcsxfrm.texi: Likewise.
29406         * doc/posix-functions/wctob.texi: Likewise.
29407         * doc/posix-functions/wctomb.texi: Likewise.
29408         * doc/posix-functions/wctrans.texi: Likewise.
29409         * doc/posix-functions/wctype.texi: Likewise.
29410         * doc/posix-functions/wcwidth.texi: Likewise.
29411         * doc/posix-functions/wmemchr.texi: Likewise.
29412         * doc/posix-functions/wmemcmp.texi: Likewise.
29413         * doc/posix-functions/wmemcpy.texi: Likewise.
29414         * doc/posix-functions/wmemmove.texi: Likewise.
29415         * doc/posix-functions/wmemset.texi: Likewise.
29416         * doc/posix-functions/wprintf.texi: Likewise.
29417         * doc/posix-functions/wscanf.texi: Likewise.
29418
29419 2008-12-21  Bruno Haible  <bruno@clisp.org>
29420
29421         Update doc for HP-UX 11.11.
29422         * doc/posix-functions/btowc.texi: Clarify that the function is missing
29423         in HP-UX version 11.00, not in all versions of HP-UX 11.
29424         * doc/posix-functions/fwide.texi: Likewise.
29425         * doc/posix-functions/fwprintf.texi: Likewise.
29426         * doc/posix-functions/fwscanf.texi: Likewise.
29427         * doc/posix-functions/inet_ntop.texi: Likewise.
29428         * doc/posix-functions/inet_pton.texi: Likewise.
29429         * doc/posix-functions/mbrlen.texi: Likewise.
29430         * doc/posix-functions/mbrtowc.texi: Likewise.
29431         * doc/posix-functions/mbsinit.texi: Likewise.
29432         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29433         * doc/posix-functions/swprintf.texi: Likewise.
29434         * doc/posix-functions/swscanf.texi: Likewise.
29435         * doc/posix-functions/towctrans.texi: Likewise.
29436         * doc/posix-functions/vfwprintf.texi: Likewise.
29437         * doc/posix-functions/vswprintf.texi: Likewise.
29438         * doc/posix-functions/vwprintf.texi: Likewise.
29439         * doc/posix-functions/wcrtomb.texi: Likewise.
29440         * doc/posix-functions/wcsrtombs.texi: Likewise.
29441         * doc/posix-functions/wcsstr.texi: Likewise.
29442         * doc/posix-functions/wctob.texi: Likewise.
29443         * doc/posix-functions/wctrans.texi: Likewise.
29444         * doc/posix-functions/wmemchr.texi: Likewise.
29445         * doc/posix-functions/wmemcmp.texi: Likewise.
29446         * doc/posix-functions/wmemcpy.texi: Likewise.
29447         * doc/posix-functions/wmemmove.texi: Likewise.
29448         * doc/posix-functions/wmemset.texi: Likewise.
29449         * doc/posix-functions/wprintf.texi: Likewise.
29450         * doc/posix-functions/wscanf.texi: Likewise.
29451
29452 2008-12-21  Bruno Haible  <bruno@clisp.org>
29453
29454         Work around a portability problem.
29455         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
29456         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
29457
29458 2008-12-20  Bruno Haible  <bruno@clisp.org>
29459
29460         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
29461         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
29462         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
29463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
29464         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
29465
29466         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
29467         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
29468         set.
29469         (GNULIB_defined_mbstate_t): New macro.
29470         (mbsinit): Redefine if REPLACE_MBSINIT is set.
29471         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
29472         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
29473         reuses the system's mbrtowc function but works around the bugs.
29474         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
29475         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
29476         macros.
29477         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
29478         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
29479         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
29480         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
29481         REPLACE_MBSINIT if mbsinit needs to be overridden.
29482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
29483         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29484         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
29485         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29486         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29487         m4/locale-zh.m4.
29488         (Depends): Add mbsinit.
29489         * modules/mbsinit (Depends): Add mbrtowc.
29490         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
29491
29492 2008-12-20  Bruno Haible  <bruno@clisp.org>
29493
29494         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
29495         so that there are no conversion errors on AIX.
29496         * tests/test-mbsrtowcs.c (main): LIkewise.
29497
29498 2008-12-20  Bruno Haible  <bruno@clisp.org>
29499
29500         Work around wctob bug on Solaris <= 9.
29501         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
29502         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
29503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
29504         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
29505         * modules/wctob (Files): Add m4/locale-fr.m4.
29506         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
29507
29508 2008-12-20  Bruno Haible  <bruno@clisp.org>
29509
29510         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
29511         /dev/null.
29512         * tests/test-select-in.sh: Likewise.
29513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29514
29515 2008-12-20  Bruno Haible  <bruno@clisp.org>
29516
29517         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
29518         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
29519         Cygwin 1.5.x.
29520
29521 2008-12-20  Bruno Haible  <bruno@clisp.org>
29522
29523         Ensure mbstate_t is defined on HP-UX 11.11.
29524         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
29525         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
29526         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
29527         AC_USE_SYSTEM_EXTENSIONS.
29528         * modules/fnmatch (Depends-on): Add extensions.
29529         * modules/mbrlen (Depends-on): Likewise.
29530         * modules/mbrtowc (Depends-on): Likewise.
29531         * modules/mbsinit (Depends-on): Likewise.
29532         * modules/mbsrtowcs (Depends-on): Likewise.
29533         * modules/mbswidth (Depends-on): Likewise.
29534         * modules/quotearg (Depends-on): Likewise.
29535         * modules/strftime (Depends-on): Likewise.
29536
29537 2008-12-20  Bruno Haible  <bruno@clisp.org>
29538
29539         Ensure wctob is declared on IRIX 6.5.
29540         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
29541         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
29542         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
29543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
29544         of HAVE_WCTOB.
29545         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
29546         HAVE_WCTOB.
29547         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
29548
29549 2008-12-19  Bruno Haible  <bruno@clisp.org>
29550
29551         * modules/mbsrtowcs-tests: New file.
29552         * tests/test-mbsrtowcs1.sh: New file.
29553         * tests/test-mbsrtowcs2.sh: New file.
29554         * tests/test-mbsrtowcs3.sh: New file.
29555         * tests/test-mbsrtowcs4.sh: New file.
29556         * tests/test-mbsrtowcs.c: New file.
29557
29558         New module 'mbsrtowcs'.
29559         * lib/wchar.in.h (mbsrtowcs): New declaration.
29560         * lib/mbsrtowcs.c: New file.
29561         * m4/mbsrtowcs.m4: New file.
29562         * modules/mbsrtowcs: New file.
29563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
29564         HAVE_MBSRTOWCS.
29565         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
29566         HAVE_MBSRTOWCS.
29567         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
29568
29569 2008-12-19  Bruno Haible  <bruno@clisp.org>
29570
29571         New module 'mbrlen'.
29572         * lib/wchar.in.h (mbrlen): New declaration.
29573         * lib/mbrlen.c: New file.
29574         * m4/mbrlen.m4: New file.
29575         * modules/mbrlen: New file.
29576         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
29577         HAVE_MBRLEN.
29578         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
29579         HAVE_MBRLEN.
29580         * doc/posix-functions/mbrlen.texi: Document the new module.
29581
29582 2008-12-19  Bruno Haible  <bruno@clisp.org>
29583
29584         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
29585         * modules/mbrtowc (Depends-on): Add verify.
29586         Suggested by Paul Eggert.
29587
29588 2008-12-18  Bruno Haible  <bruno@clisp.org>
29589
29590         * modules/mbsinit-tests: New file.
29591         * tests/test-mbsinit.sh: New file.
29592         * tests/test-mbsinit.c: New file.
29593
29594 2008-12-18  Bruno Haible  <bruno@clisp.org>
29595
29596         * modules/mbrtowc-tests: New file.
29597         * tests/test-mbrtowc1.sh: New file.
29598         * tests/test-mbrtowc2.sh: New file.
29599         * tests/test-mbrtowc3.sh: New file.
29600         * tests/test-mbrtowc4.sh: New file.
29601         * tests/test-mbrtowc.c: New file.
29602
29603         New module 'mbrtowc'.
29604         * lib/wchar.in.h (mbstate_t): Override when the system does not have
29605         mbsinit and mbrtowc.
29606         (mbrtowc): New declaration.
29607         * lib/mbrtowc.c: New file.
29608         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
29609         * modules/mbrtowc: New file.
29610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
29611         HAVE_MBRTOWC.
29612         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
29613         HAVE_MBRTOWC.
29614         * doc/posix-functions/mbrtowc.texi: Document the new module.
29615
29616 2008-12-18  Bruno Haible  <bruno@clisp.org>
29617
29618         New module 'wctob'.
29619         * lib/wchar.in.h (wctob): New declaration.
29620         * lib/wctob.c: New file.
29621         * m4/wctob.m4: New file.
29622         * modules/wctob: New file.
29623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
29624         HAVE_WCTOB.
29625         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
29626         * doc/posix-functions/wctob.texi: Document the new module.
29627
29628 2008-12-18  Bruno Haible  <bruno@clisp.org>
29629
29630         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
29631         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
29632
29633 2008-12-18  Simon Josefsson  <simon@josefsson.org>
29634
29635         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
29636         G. Christensen" <tgc@jupiterrise.com>.
29637
29638         * lib/flock.c: Need to include errno.h.  Reported by "Tom
29639         G. Christensen" <tgc@jupiterrise.com>.
29640
29641         * lib/flock.c: Need to include string.h.  Reported by "Tom
29642         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
29643         <ebb9@byu.net>.
29644
29645 2008-12-18  Bruno Haible  <bruno@clisp.org>
29646
29647         * m4/locale-ja.m4: New file, from GNU gettext.
29648
29649 2008-12-17  Bruno Haible  <bruno@clisp.org>
29650
29651         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
29652         Suggested by Eric Blake.
29653
29654 2008-12-17  Bruno Haible  <bruno@clisp.org>
29655
29656         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
29657
29658 2008-12-17  Bruno Haible  <bruno@clisp.org>
29659
29660         * lib/mbsinit.c: Include verify.h. Verify an assumption.
29661         * modules/mbsinit (Depends-on): Add verify.
29662         Suggested by Paul Eggert.
29663
29664 2008-12-17  Bruno Haible  <bruno@clisp.org>
29665
29666         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
29667         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
29668         gl_FUNC_MBRTOWC.
29669         * m4/mbiter.m4 (gl_MBITER): LIkewise.
29670         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
29671         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
29672         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
29673         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
29674         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
29675         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
29676         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
29677         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
29678         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
29679         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
29680         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
29681         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
29682         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
29683         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
29684         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29685         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
29686         * modules/trim (configure.ac): Likewise.
29687
29688 2008-12-17  Bruno Haible  <bruno@clisp.org>
29689
29690         * modules/btowc-tests: New file.
29691         * tests/test-btowc1.sh: New file.
29692         * tests/test-btowc2.sh: New file.
29693         * tests/test-btowc.c: New file.
29694
29695         New module 'btowc'.
29696         * lib/wchar.in.h (btowc): New declaration.
29697         * lib/btowc.c: New file.
29698         * m4/btowc.m4: New file.
29699         * modules/btowc: New file.
29700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
29701         HAVE_BTOWC.
29702         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
29703         * doc/posix-functions/btowc.texi: Document the new module.
29704
29705 2008-12-17  Bruno Haible  <bruno@clisp.org>
29706
29707         New module 'mbsinit'.
29708         * lib/wchar.in.h (mbsinit): New declaration.
29709         * lib/mbsinit.c: New file.
29710         * m4/mbsinit.m4: New file.
29711         * modules/mbsinit: New file.
29712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
29713         HAVE_MBSINIT.
29714         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
29715         HAVE_MBSINIT.
29716         * doc/posix-functions/mbsinit.texi: Document the new module.
29717
29718 2008-12-16  Bruno Haible  <bruno@clisp.org>
29719
29720         * lib/unistd.in.h: Add comment.
29721         * tests/test-environ.c: Don't include <stdlib.h>.
29722
29723 2008-12-16  Bruno Haible  <bruno@clisp.org>
29724
29725         * lib/parse-duration.h (parse_duration): Document return value
29726         convention.
29727         * lib/parse-duration.c: Include specification header first. Add
29728         comments.
29729         (_): Remove macro.
29730         (parse_year_month_day, parse_hour_minute_second): Move side effects
29731         outside of strchr call.
29732         (parse_non_iso8601): Move side effects outside of isspace call.
29733         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
29734         call.
29735
29736 2008-12-16  Bruno Haible  <bruno@clisp.org>
29737
29738         * tests/test-parse-duration.sh: Produce no output when the test
29739         succeeds.
29740
29741 2008-12-16  Bruno Haible  <bruno@clisp.org>
29742
29743         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
29744         expressions.
29745
29746 2008-12-15  Bruno Haible  <bruno@clisp.org>
29747
29748         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
29749         * doc/glibc-functions/flistxattr.texi: Likewise.
29750         * doc/glibc-functions/fopencookie.texi: Likewise.
29751         * doc/glibc-functions/fremovexattr.texi: Likewise.
29752         * doc/glibc-functions/fsetxattr.texi: Likewise.
29753         * doc/glibc-functions/getxattr.texi: Likewise.
29754         * doc/glibc-functions/lgetxattr.texi: Likewise.
29755         * doc/glibc-functions/listxattr.texi: Likewise.
29756         * doc/glibc-functions/llistxattr.texi: Likewise.
29757         * doc/glibc-functions/lremovexattr.texi: Likewise.
29758         * doc/glibc-functions/lsetxattr.texi: Likewise.
29759         * doc/glibc-functions/removexattr.texi: Likewise.
29760         * doc/glibc-functions/setxattr.texi: Likewise.
29761         * doc/posix-functions/open_memstream.texi: Likewise.
29762
29763 2008-12-15  Eric Blake  <ebb9@byu.net>
29764
29765         Update doc for cygwin 1.7.
29766         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
29767         functions.
29768         * doc/posix-functions/fchmodat.texi: Likewise.
29769         * doc/posix-functions/fchownat.texi: Likewise.
29770         * doc/posix-functions/fdopendir.texi: Likewise.
29771         * doc/posix-functions/fmemopen.texi: Likewise.
29772         * doc/posix-functions/freeaddrinfo.texi: Likewise.
29773         * doc/posix-functions/fstatat.texi: Likewise.
29774         * doc/posix-functions/futimens.texi: Likewise.
29775         * doc/posix-functions/gai_strerror.texi: Likewise.
29776         * doc/posix-functions/getaddrinfo.texi: Likewise.
29777         * doc/posix-functions/getnameinfo.texi: Likewise.
29778         * doc/posix-functions/if_freenameindex.texi: Likewise.
29779         * doc/posix-functions/if_indextoname.texi: Likewise.
29780         * doc/posix-functions/if_nameindex.texi: Likewise.
29781         * doc/posix-functions/if_nametoindex.texi: Likewise.
29782         * doc/posix-functions/insque.texi: Likewise.
29783         * doc/posix-functions/linkat.texi: Likewise.
29784         * doc/posix-functions/llrint.texi: Likewise.
29785         * doc/posix-functions/llrintf.texi: Likewise.
29786         * doc/posix-functions/llrintl.texi: Likewise.
29787         * doc/posix-functions/lockf.texi: Likewise.
29788         * doc/posix-functions/lrintl.texi: Likewise.
29789         * doc/posix-functions/mkdirat.texi: Likewise.
29790         * doc/posix-functions/mkfifoat.texi: Likewise.
29791         * doc/posix-functions/mknodat.texi: Likewise.
29792         * doc/posix-functions/mq_close.texi: Likewise.
29793         * doc/posix-functions/mq_getattr.texi: Likewise.
29794         * doc/posix-functions/mq_notify.texi: Likewise.
29795         * doc/posix-functions/mq_open.texi: Likewise.
29796         * doc/posix-functions/mq_receive.texi: Likewise.
29797         * doc/posix-functions/mq_send.texi: Likewise.
29798         * doc/posix-functions/mq_setattr.texi: Likewise.
29799         * doc/posix-functions/mq_timedreceive.texi: Likewise.
29800         * doc/posix-functions/mq_timedsend.texi: Likewise.
29801         * doc/posix-functions/mq_unlink.texi: Likewise.
29802         * doc/posix-functions/open_memstream.texi: Likewise.
29803         * doc/posix-functions/openat.texi: Likewise.
29804         * doc/posix-functions/posix_fadvise.texi: Likewise.
29805         * doc/posix-functions/posix_fallocate.texi: Likewise.
29806         * doc/posix-functions/posix_madvise.texi: Likewise.
29807         * doc/posix-functions/posix_memalign.texi: Likewise.
29808         * doc/posix-functions/posix_openpt.texi: Likewise.
29809         * doc/posix-functions/readlinkat.texi: Likewise.
29810         * doc/posix-functions/remque.texi: Likewise.
29811         * doc/posix-functions/renameat.texi: Likewise.
29812         * doc/posix-functions/rintl.texi: Likewise.
29813         * doc/posix-functions/sem_unlink.texi: Likewise.
29814         * doc/posix-functions/shm_open.texi: Likewise.
29815         * doc/posix-functions/shm_unlink.texi: Likewise.
29816         * doc/posix-functions/signgam.texi: Likewise.
29817         * doc/posix-functions/sigset.texi: Likewise.
29818         * doc/posix-functions/stpcpy.texi: Likewise.
29819         * doc/posix-functions/stpncpy.texi: Likewise.
29820         * doc/posix-functions/strerror.texi: Likewise.
29821         * doc/posix-functions/strtod.texi: Likewise.
29822         * doc/posix-functions/symlinkat.texi: Likewise.
29823         * doc/posix-functions/unlinkat.texi: Likewise.
29824         * doc/posix-functions/utimensat.texi: Likewise.
29825         * doc/glibc-functions/bindresvport.texi: Likewise.
29826         * doc/glibc-functions/dn_expand.texi: Likewise.
29827         * doc/glibc-functions/exp10.texi: Likewise.
29828         * doc/glibc-functions/exp10f.texi: Likewise.
29829         * doc/glibc-functions/fgetxattr.texi: Likewise.
29830         * doc/glibc-functions/flistxattr.texi: Likewise.
29831         * doc/glibc-functions/fopencookie.texi: Likewise.
29832         * doc/glibc-functions/freeifaddrs.texi: Likewise.
29833         * doc/glibc-functions/fremovexattr.texi: Likewise.
29834         * doc/glibc-functions/fsetxattr.texi: Likewise.
29835         * doc/glibc-functions/getifaddrs.texi: Likewise.
29836         * doc/glibc-functions/getxattr.texi: Likewise.
29837         * doc/glibc-functions/lgetxattr.texi: Likewise.
29838         * doc/glibc-functions/listxattr.texi: Likewise.
29839         * doc/glibc-functions/llistxattr.texi: Likewise.
29840         * doc/glibc-functions/lremovexattr.texi: Likewise.
29841         * doc/glibc-functions/lsetxattr.texi: Likewise.
29842         * doc/glibc-functions/pow10.texi: Likewise.
29843         * doc/glibc-functions/pow10f.texi: Likewise.
29844         * doc/glibc-functions/rcmd_af.texi: Likewise.
29845         * doc/glibc-functions/removexattr.texi: Likewise.
29846         * doc/glibc-functions/res_init.texi: Likewise.
29847         * doc/glibc-functions/res_mkquery.texi: Likewise.
29848         * doc/glibc-functions/res_query.texi: Likewise.
29849         * doc/glibc-functions/res_querydomain.texi: Likewise.
29850         * doc/glibc-functions/res_send.texi: Likewise.
29851         * doc/glibc-functions/rresvport_af.texi: Likewise.
29852         * doc/glibc-functions/setxattr.texi: Likewise.
29853         * doc/glibc-functions/strcasestr.texi: Likewise.
29854
29855 2008-12-15  Bruno Haible  <bruno@clisp.org>
29856
29857         Fix compilation error on OSF/1 4.0.
29858         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
29859         <sys/time.h>, simply delegate to the system header.
29860         Reported by Daniel Richard G. <oss@teragram.com>.
29861
29862 2008-12-15  Bruno Haible  <bruno@clisp.org>
29863
29864         * doc/posix-functions/openat.texi: Mention the 'openat' module.
29865         * doc/posix-functions/fchmodat.texi: Likewise.
29866         * doc/posix-functions/fchownat.texi: Likewise.
29867         * doc/posix-functions/fdopendir.texi: Likewise.
29868         * doc/posix-functions/fstatat.texi: Likewise.
29869         * doc/posix-functions/mkdirat.texi: Likewise.
29870         * doc/posix-functions/unlinkat.texi: Likewise.
29871
29872 2008-12-14  Bruno Haible  <bruno@clisp.org>
29873
29874         Update doc for POSIX:2008.
29875         * doc/posix-functions/faccessat.texi: New file.
29876         * doc/posix-functions/fchmodat.texi: New file.
29877         * doc/posix-functions/fchownat.texi: New file.
29878         * doc/posix-functions/fdopendir.texi: New file.
29879         * doc/posix-functions/fstatat.texi: New file.
29880         * doc/posix-functions/futimens.texi: New file.
29881         * doc/posix-functions/linkat.texi: New file.
29882         * doc/posix-functions/mkdirat.texi: New file.
29883         * doc/posix-functions/mkfifoat.texi: New file.
29884         * doc/posix-functions/mknodat.texi: New file.
29885         * doc/posix-functions/open_wmemstream.texi: New file.
29886         * doc/posix-functions/openat.texi: New file.
29887         * doc/posix-functions/psiginfo.texi: New file.
29888         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
29889         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
29890         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
29891         * doc/posix-functions/readlinkat.texi: New file.
29892         * doc/posix-functions/renameat.texi: New file.
29893         * doc/posix-functions/strerror_l.texi: New file.
29894         * doc/posix-functions/symlinkat.texi: New file.
29895         * doc/posix-functions/unlinkat.texi: New file.
29896         * doc/posix-functions/utimensat.texi: New file.
29897         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29898
29899 2008-12-14  Bruno Haible  <bruno@clisp.org>
29900
29901         Update doc for POSIX:2008.
29902         * doc/posix-functions/alphasort.texi: Renamed from
29903         doc/glibc-functions/alphasort.texi.
29904         * doc/posix-functions/dirfd.texi: Renamed from
29905         doc/glibc-functions/dirfd.texi.
29906         * doc/posix-functions/dprintf.texi: Renamed from
29907         doc/glibc-functions/dprintf.texi.
29908         * doc/posix-functions/duplocale.texi: Renamed from
29909         doc/glibc-functions/duplocale.texi.
29910         * doc/posix-functions/fexecve.texi: Renamed from
29911         doc/glibc-functions/fexecve.texi.
29912         * doc/posix-functions/fmemopen.texi: Renamed from
29913         doc/glibc-functions/fmemopen.texi.
29914         * doc/posix-functions/freelocale.texi: Renamed from
29915         doc/glibc-functions/freelocale.texi.
29916         * doc/posix-functions/getdate_err.texi: Renamed from
29917         doc/glibc-functions/getdate_err.texi.
29918         * doc/posix-functions/isalnum_l.texi: Renamed from
29919         doc/glibc-functions/isalnum_l.texi.
29920         * doc/posix-functions/isalpha_l.texi: Renamed from
29921         doc/glibc-functions/isalpha_l.texi.
29922         * doc/posix-functions/isblank_l.texi: Renamed from
29923         doc/glibc-functions/isblank_l.texi.
29924         * doc/posix-functions/iscntrl_l.texi: Renamed from
29925         doc/glibc-functions/iscntrl_l.texi.
29926         * doc/posix-functions/isdigit_l.texi: Renamed from
29927         doc/glibc-functions/isdigit_l.texi.
29928         * doc/posix-functions/isgraph_l.texi: Renamed from
29929         doc/glibc-functions/isgraph_l.texi.
29930         * doc/posix-functions/islower_l.texi: Renamed from
29931         doc/glibc-functions/islower_l.texi.
29932         * doc/posix-functions/isprint_l.texi: Renamed from
29933         doc/glibc-functions/isprint_l.texi.
29934         * doc/posix-functions/ispunct_l.texi: Renamed from
29935         doc/glibc-functions/ispunct_l.texi.
29936         * doc/posix-functions/isspace_l.texi: Renamed from
29937         doc/glibc-functions/isspace_l.texi.
29938         * doc/posix-functions/isupper_l.texi: Renamed from
29939         doc/glibc-functions/isupper_l.texi.
29940         * doc/posix-functions/iswalnum_l.texi: Renamed from
29941         doc/glibc-functions/iswalnum_l.texi.
29942         * doc/posix-functions/iswalpha_l.texi: Renamed from
29943         doc/glibc-functions/iswalpha_l.texi.
29944         * doc/posix-functions/iswblank_l.texi: Renamed from
29945         doc/glibc-functions/iswblank_l.texi.
29946         * doc/posix-functions/iswcntrl_l.texi: Renamed from
29947         doc/glibc-functions/iswcntrl_l.texi.
29948         * doc/posix-functions/iswctype_l.texi: Renamed from
29949         doc/glibc-functions/iswctype_l.texi.
29950         * doc/posix-functions/iswdigit_l.texi: Renamed from
29951         doc/glibc-functions/iswdigit_l.texi.
29952         * doc/posix-functions/iswgraph_l.texi: Renamed from
29953         doc/glibc-functions/iswgraph_l.texi.
29954         * doc/posix-functions/iswlower_l.texi: Renamed from
29955         doc/glibc-functions/iswlower_l.texi.
29956         * doc/posix-functions/iswprint_l.texi: Renamed from
29957         doc/glibc-functions/iswprint_l.texi.
29958         * doc/posix-functions/iswpunct_l.texi: Renamed from
29959         doc/glibc-functions/iswpunct_l.texi.
29960         * doc/posix-functions/iswspace_l.texi: Renamed from
29961         doc/glibc-functions/iswspace_l.texi.
29962         * doc/posix-functions/iswupper_l.texi: Renamed from
29963         doc/glibc-functions/iswupper_l.texi.
29964         * doc/posix-functions/iswxdigit_l.texi: Renamed from
29965         doc/glibc-functions/iswxdigit_l.texi.
29966         * doc/posix-functions/isxdigit_l.texi: Renamed from
29967         doc/glibc-functions/isxdigit_l.texi.
29968         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
29969         doc/glibc-functions/mbsnrtowcs.texi.
29970         * doc/posix-functions/mkdtemp.texi: Renamed from
29971         doc/glibc-functions/mkdtemp.texi.
29972         * doc/posix-functions/newlocale.texi: Renamed from
29973         doc/glibc-functions/newlocale.texi.
29974         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
29975         doc/glibc-functions/nl_langinfo_l.texi.
29976         * doc/posix-functions/open_memstream.texi: Renamed from
29977         doc/glibc-functions/open_memstream.texi.
29978         * doc/posix-functions/opterr.texi: Renamed from
29979         doc/glibc-functions/opterr.texi.
29980         * doc/posix-functions/optind.texi: Renamed from
29981         doc/glibc-functions/optind.texi.
29982         * doc/posix-functions/optopt.texi: Renamed from
29983         doc/glibc-functions/optopt.texi.
29984         * doc/posix-functions/psignal.texi: Renamed from
29985         doc/glibc-functions/psignal.texi.
29986         * doc/posix-functions/scandir.texi: Renamed from
29987         doc/glibc-functions/scandir.texi.
29988         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
29989         doc/glibc-functions/sched_get_priority_min.texi.
29990         * doc/posix-functions/signgam.texi: Renamed from
29991         doc/glibc-functions/signgam.texi.
29992         * doc/posix-functions/stpcpy.texi: Renamed from
29993         doc/glibc-functions/stpcpy.texi.
29994         * doc/posix-functions/stpncpy.texi: Renamed from
29995         doc/glibc-functions/stpncpy.texi.
29996         * doc/posix-functions/strcasecmp_l.texi: Renamed from
29997         doc/glibc-functions/strcasecmp_l.texi.
29998         * doc/posix-functions/strcoll_l.texi: Renamed from
29999         doc/glibc-functions/strcoll_l.texi.
30000         * doc/posix-functions/strfmon_l.texi: Renamed from
30001         doc/glibc-functions/strfmon_l.texi.
30002         * doc/posix-functions/strftime_l.texi: Renamed from
30003         doc/glibc-functions/strftime_l.texi.
30004         * doc/posix-functions/strncasecmp_l.texi: Renamed from
30005         doc/glibc-functions/strncasecmp_l.texi.
30006         * doc/posix-functions/strndup.texi: Renamed from
30007         doc/glibc-functions/strndup.texi.
30008         * doc/posix-functions/strnlen.texi: Renamed from
30009         doc/glibc-functions/strnlen.texi.
30010         * doc/posix-functions/strsignal.texi: Renamed from
30011         doc/glibc-functions/strsignal.texi.
30012         * doc/posix-functions/strxfrm_l.texi: Renamed from
30013         doc/glibc-functions/strxfrm_l.texi.
30014         * doc/posix-functions/timer_gettime.texi: Renamed from
30015         doc/glibc-functions/timer_gettime.texi.
30016         * doc/posix-functions/tolower_l.texi: Renamed from
30017         doc/glibc-functions/tolower_l.texi.
30018         * doc/posix-functions/toupper_l.texi: Renamed from
30019         doc/glibc-functions/toupper_l.texi.
30020         * doc/posix-functions/towctrans_l.texi: Renamed from
30021         doc/glibc-functions/towctrans_l.texi.
30022         * doc/posix-functions/towlower_l.texi: Renamed from
30023         doc/glibc-functions/towlower_l.texi.
30024         * doc/posix-functions/towupper_l.texi: Renamed from
30025         doc/glibc-functions/towupper_l.texi.
30026         * doc/posix-functions/uselocale.texi: Renamed from
30027         doc/glibc-functions/uselocale.texi.
30028         * doc/posix-functions/vdprintf.texi: Renamed from
30029         doc/glibc-functions/vdprintf.texi.
30030         * doc/posix-functions/wcpcpy.texi:
30031         Renamed from doc/glibc-functions/wcpcpy.texi.
30032         * doc/posix-functions/wcpncpy.texi: Renamed from
30033         doc/glibc-functions/wcpncpy.texi.
30034         * doc/posix-functions/wcscasecmp.texi: Renamed from
30035         doc/glibc-functions/wcscasecmp.texi.
30036         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
30037         doc/glibc-functions/wcscasecmp_l.texi.
30038         * doc/posix-functions/wcscoll_l.texi: Renamed from
30039         doc/glibc-functions/wcscoll_l.texi.
30040         * doc/posix-functions/wcsdup.texi: Renamed from
30041         doc/glibc-functions/wcsdup.texi.
30042         * doc/posix-functions/wcsncasecmp.texi: Renamed from
30043         doc/glibc-functions/wcsncasecmp.texi.
30044         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
30045         doc/glibc-functions/wcsncasecmp_l.texi.
30046         * doc/posix-functions/wcsnlen.texi: Renamed from
30047         doc/glibc-functions/wcsnlen.texi.
30048         * doc/posix-functions/wcsnrtombs.texi: Renamed from
30049         doc/glibc-functions/wcsnrtombs.texi.
30050         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
30051         doc/glibc-functions/wcsxfrm_l.texi.
30052         * doc/posix-functions/wctrans_l.texi: Renamed from
30053         doc/glibc-functions/wctrans_l.texi.
30054         * doc/posix-functions/wctype_l.texi: Renamed from
30055         doc/glibc-functions/wctype_l.texi.
30056         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30057         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
30058         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
30059         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
30060         these subsections.
30061         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
30062         Remove sections.
30063
30064 2008-12-14  Bruno Haible  <bruno@clisp.org>
30065
30066         Update doc for POSIX:2008.
30067         * doc/posix-functions/*.texi: Update URL of POSIX specification.
30068
30069 2008-12-14  Bruno Haible  <bruno@clisp.org>
30070
30071         Update doc for POSIX:2008.
30072         * doc/pastposix-functions/bcmp.texi: Renamed from
30073         doc/posix-functions/bcmp.texi.
30074         * doc/pastposix-functions/bcopy.texi: Renamed from
30075         doc/posix-functions/bcopy.texi.
30076         * doc/pastposix-functions/bsd_signal.texi: Renamed from
30077         doc/posix-functions/bsd_signal.texi.
30078         * doc/pastposix-functions/bzero.texi: Renamed from
30079         doc/posix-functions/bzero.texi.
30080         * doc/pastposix-functions/ecvt.texi: Renamed from
30081         doc/posix-functions/ecvt.texi.
30082         * doc/pastposix-functions/fcvt.texi: Renamed from
30083         doc/posix-functions/fcvt.texi.
30084         * doc/pastposix-functions/ftime.texi: Renamed from
30085         doc/posix-functions/ftime.texi.
30086         * doc/pastposix-functions/gcvt.texi: Renamed from
30087         doc/posix-functions/gcvt.texi.
30088         * doc/pastposix-functions/getcontext.texi: Renamed from
30089         doc/posix-functions/getcontext.texi.
30090         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
30091         doc/posix-functions/gethostbyaddr.texi.
30092         * doc/pastposix-functions/gethostbyname.texi: Renamed from
30093         doc/posix-functions/gethostbyname.texi.
30094         * doc/pastposix-functions/getwd.texi: Renamed from
30095         doc/posix-functions/getwd.texi.
30096         * doc/pastposix-functions/h_errno.texi: Renamed from
30097         doc/posix-functions/h_errno.texi.
30098         * doc/pastposix-functions/index.texi: Renamed from
30099         doc/posix-functions/index.texi.
30100         * doc/pastposix-functions/makecontext.texi: Renamed from
30101         doc/posix-functions/makecontext.texi.
30102         * doc/pastposix-functions/mktemp.texi: Renamed from
30103         doc/posix-functions/mktemp.texi.
30104         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
30105         doc/posix-functions/pthread_attr_getstackaddr.texi.
30106         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
30107         doc/posix-functions/pthread_attr_setstackaddr.texi.
30108         * doc/pastposix-functions/rindex.texi: Renamed from
30109         doc/posix-functions/rindex.texi.
30110         * doc/pastposix-functions/scalb.texi: Renamed from
30111         doc/posix-functions/scalb.texi.
30112         * doc/pastposix-functions/setcontext.texi: Renamed from
30113         doc/posix-functions/setcontext.texi.
30114         * doc/pastposix-functions/swapcontext.texi: Renamed from
30115         doc/posix-functions/swapcontext.texi.
30116         * doc/pastposix-functions/ualarm.texi: Renamed from
30117         doc/posix-functions/ualarm.texi.
30118         * doc/pastposix-functions/usleep.texi: Renamed from
30119         doc/posix-functions/usleep.texi.
30120         * doc/pastposix-functions/vfork.texi: Renamed from
30121         doc/posix-functions/vfork.texi.
30122         * doc/pastposix-functions/wcswcs.texi: Renamed from
30123         doc/posix-functions/wcswcs.texi.
30124         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
30125         (Function Substitutes): Update.
30126
30127 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30128
30129         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
30130         m4/strerror.m4.
30131
30132 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30133             Bruno Haible  <bruno@clisp.org>
30134
30135         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
30136
30137 2008-12-13  Bruno Haible  <bruno@clisp.org>
30138
30139         * modules/strtoull (Depends-on): Remove unistd.
30140
30141 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30142
30143         * modules/strtoull (Depends-on): Add stdlib.
30144
30145 2008-12-11  Simon Josefsson  <simon@josefsson.org>
30146
30147         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
30148
30149 2008-12-10  Jim Meyering  <meyering@redhat.com>
30150
30151         gl_ASSERT: don't say assertions are disabled when they're not
30152         * m4/assert.m4 (gl_ASSERT): Do not make configure report
30153         "checking whether to enable assertions... no", when they are in
30154         fact enabled.  This is solely a bug in the output of configure.
30155         In spite of saying "no", NDEBUG was not defined in that case.
30156         Also, as noted by Eric Blake, leave assertions enabled upon
30157         --enable-assert=INVALID.
30158
30159 2008-12-10  Bruno Haible  <bruno@clisp.org>
30160
30161         Change MODULES.html to refer to POSIX:2008 where possible.
30162         * MODULES.html.sh (POSIX2008_URL): New variable.
30163         (posix_headers): Remove sys/timeb, ucontext.
30164         (posix2001_headers): New variable.
30165         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
30166         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
30167         index, makecontext, mktemp, pthread_attr_getstackaddr,
30168         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
30169         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
30170         (posix2001_functions): New variable.
30171         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
30172         otherwise.
30173
30174 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30175
30176         add missing include to parse-duration.c
30177         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
30178         * modules/parse-duration (Depends-on): Add xalloc.
30179
30180         fix sed script reading maint.mk
30181         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
30182         (syntax-check-rules): Use it.
30183
30184 2008-12-09  Bruno Haible  <bruno@clisp.org>
30185
30186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
30187         MacOS X 10.4/PowerPC.
30188         Reported by Simon Josefsson.
30189
30190 2008-12-08  Jim Meyering  <meyering@redhat.com>
30191
30192         work around mingw's lack of some S_IF definitions
30193         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
30194         Reported by Simon Josefsson.
30195
30196 2008-12-08  Bruno Haible  <bruno@clisp.org>
30197
30198         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
30199         applied to variables. Needed on MacOS X 10.4/PowerPC.
30200         Reported by Simon Josefsson.
30201
30202 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
30203         and Eric Blake  <ebb9@byu.net>
30204
30205         assert: honor --enable-assert
30206         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
30207         order to honor --enable-assert, rather than treating it as a
30208         synonym for --disable-assert.
30209
30210 2008-12-08  Jim Meyering  <meyering@redhat.com>
30211
30212         * lib/posixtm.c: Remove now-useless declaration of mktime.
30213
30214         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
30215
30216 2008-12-07  Bruno Haible  <bruno@clisp.org>
30217
30218         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
30219         test_once): Mark functions as static.
30220         * tests/test-tls.c (test_tls): Likewise.
30221
30222 2008-12-07  Bruno Haible  <bruno@clisp.org>
30223
30224         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
30225         iconv_register_autodetect.
30226
30227 2008-12-07  Jim Meyering  <meyering@redhat.com>
30228
30229         posixtm.c: avoid a warning
30230         * lib/posixtm.c (posixtime): Don't initialize tm0.
30231         It's no longer needed to placate gcc4's -Wuninitialized,
30232         and the attempt to placate would elicit a new warning.
30233
30234         unicodeio.c: mark unused parameters
30235         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30236         (fallback_failure_callback): Likewise.
30237
30238 2008-12-07  Bruno Haible  <bruno@clisp.org>
30239
30240         * gnulib-tool (func_create_testdir): When building the tests
30241         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
30242         Reported by Simon Josefsson.
30243
30244 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30245
30246         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
30247
30248 2008-12-06  Bruno Haible  <bruno@clisp.org>
30249
30250         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
30251         Suggested by Eric Blake.
30252
30253 2008-12-06  Bruno Haible  <bruno@clisp.org>
30254
30255         Fix a c-stack test failure on MacOS X.
30256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
30257         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
30258         handler for SIGBUS as well.
30259         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
30260         install a signal handler for SIGBUS as well.
30261         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
30262
30263 2008-12-06  Bruno Haible  <bruno@clisp.org>
30264
30265         Advocacy documentation.
30266         * doc/gnulib-intro.texi (Benefits): New section.
30267         * doc/gnulib.texi: Update.
30268
30269 2008-12-06  Bruno Haible  <bruno@clisp.org>
30270
30271         Document the 'manywarnings' module.
30272         * doc/manywarnings.texi: New file.
30273         * doc/gnulib.texi: Include it.
30274
30275 2008-12-05  Eric Blake  <ebb9@byu.net>
30276
30277         tests: silence some gcc warnings
30278         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
30279         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
30280         type mismatches.
30281
30282 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30283             Bruno Haible  <bruno@clisp.org>
30284
30285         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
30286
30287 2008-11-29  Jim Meyering  <meyering@redhat.com>
30288
30289         unicodeio.c: mark unused parameters
30290         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30291         (fallback_failure_callback): Likewise.
30292
30293         fts: fix a thinko
30294         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
30295         (set_stat_type): Return S_IF*-valued "type" directly.
30296         Prompted by James Youngman's spotting a related bug.
30297         Confirmed by further testing through find.
30298
30299         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
30300         * lib/fts.c (D_TYPE): Define.
30301         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
30302         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
30303         (s_ifmt_shift_bits): New function.
30304         (set_stat_type): New function.
30305         (fts_build): When not calling fts_stat, call set_stat_type
30306         to propagate dirent.d_type info to fts_read caller.
30307         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
30308         fts_statp->st_mode type information may be valid.
30309
30310 2008-11-28  Simon Josefsson  <simon@josefsson.org>
30311
30312         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
30313         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
30314         <sds@gnu.org>.
30315
30316 2008-11-20  Bruno Haible  <bruno@clisp.org>
30317
30318         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
30319         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
30320         INCLUDE_NEXT.
30321         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
30322         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
30323         * modules/math (Makefile.am): Substitute
30324         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
30325         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30326
30327 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30328             Bruno Haible  <bruno@clisp.org>
30329
30330         * lib/stdint.in.h: Define all type macros so that their expansion is
30331         a single typedef'ed token. Fixes a compilation failure in Boost which
30332         does "using ::int8_t;".
30333
30334 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30335
30336         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
30337         gl_MANYWARN_ALL_GCC.
30338         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
30339         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
30340         * modules/manywarnings: New file.
30341         * MODULES.html.sh: Mention manywarnings module.
30342
30343 2008-11-18  Bruno Haible  <bruno@clisp.org>
30344
30345         * doc/gnulib-tool.texi (Unit tests): New section.
30346
30347 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30348
30349         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
30350         paths like 'lib/po/foo.po'.
30351
30352 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30353
30354         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
30355         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
30356
30357 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30358
30359         * m4/warnings.m4: Use CPPFLAGS to really check whether the
30360         parameter works.
30361
30362 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30363
30364         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
30365
30366 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30367
30368         * modules/parse-duration-tests: New file.
30369         * tests/test-parse-duration.sh: New file.
30370         * tests/test-parse-duration.c: New file.
30371
30372         New module 'parse-duration'.
30373         * lib/parse-duration.h: New file.
30374         * lib/parse-duration.c: New file.
30375         * modules/parse-duration: New file.
30376
30377 2008-11-17  Bruno Haible  <bruno@clisp.org>
30378
30379         * tests/test-select-out.sh: Comment out the first pipe test.
30380         Reported by Simon Josefsson.
30381
30382 2008-11-17  Bruno Haible  <bruno@clisp.org>
30383
30384         * modules/getaddrinfo (Depends-on): Add servent, hostent.
30385         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
30386         gl_HOSTENT.
30387
30388 2008-11-17  Bruno Haible  <bruno@clisp.org>
30389
30390         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
30391         -lnetwork and -lnet. Needed for Haiku and BeOS.
30392
30393 2008-11-16  Bruno Haible  <bruno@clisp.org>
30394
30395         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
30396
30397 2008-11-16  Bruno Haible  <bruno@clisp.org>
30398
30399         Avoid test failure on Haiku.
30400         * tests/test-fsync.c: Include <errno.h>.
30401         (main): Don't require that fsync (0) fails.
30402
30403 2008-11-15  Bruno Haible  <bruno@clisp.org>
30404
30405         New module 'hostent'.
30406         * modules/hostent: New file.
30407         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
30408
30409 2008-11-15  Bruno Haible  <bruno@clisp.org>
30410
30411         New module 'servent'.
30412         * modules/servent: New file.
30413         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
30414
30415 2008-11-15  Bruno Haible  <bruno@clisp.org>
30416
30417         Avoid generating same test program with two different rules.
30418         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
30419         test-frexp to test-frexp-nolibm.
30420         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
30421         test-frexpl to test-frexpl-nolibm.
30422
30423 2008-11-15  Bruno Haible  <bruno@clisp.org>
30424
30425         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
30426         $(FREXPL_LIBM).
30427
30428 2008-11-15  Bruno Haible  <bruno@clisp.org>
30429
30430         * lib/netdb.in.h: Activate the definitions also when the system's
30431         <netdb.h> has 'struct addrinfo'.
30432         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
30433         EAI_OVERFLOW or AI_NUMERICSERV.
30434         * doc/posix-headers/netdb.texi: Document the problem.
30435
30436 2008-11-15  Bruno Haible  <bruno@clisp.org>
30437
30438         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
30439
30440         Make the 'sched' module work on platforms where <sched.h> exists but
30441         is incomplete (such as Haiku).
30442         * lib/sched.in.h; Include the system's <sched.h> if it exists.
30443         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
30444         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
30445         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
30446         HAVE_STRUCT_SCHED_PARAM.
30447         * modules/sched (Depends-on): Add include_next.
30448         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
30449         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
30450         * doc/posix-headers/sched.texi: Document the issue.
30451
30452 2008-11-13  Jim Meyering  <meyering@redhat.com>
30453
30454         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
30455         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
30456         test would fail due to the difference in the Report bugs to ...
30457         line.  The expected address is empty, "<>", while the actual
30458         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
30459
30460 2008-11-12  Bruno Haible  <bruno@clisp.org>
30461
30462         lstat: don't compile lstat.c on systems lacking lstat
30463         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
30464         which don't have lstat; this is handled by lib/sys_stat.in.h already.
30465         Reported by Daniel P. Berrange via Jim Meyering.
30466
30467 2008-11-12  Jim Meyering  <meyering@redhat.com>
30468
30469         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
30470
30471 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30472
30473         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
30474         instead.
30475
30476 2008-11-12  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/unicodeio.c: Include unistr.h.
30479         (utf8_wctomb): Remove function.
30480         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
30481
30482 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30483
30484         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
30485         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
30486         <bruno@clisp.org>.
30487         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
30488
30489 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30490
30491         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
30492         * doc/gnulib.texi: Add section for warnings.
30493
30494 2008-11-11  Bruno Haible  <bruno@clisp.org>
30495
30496         * lib/sockets.h: Add a comment.
30497
30498 2008-11-11  Karl Berry  <karl@gnu.org>
30499
30500         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
30501
30502 2008-11-11  Eric Blake  <ebb9@byu.net>
30503
30504         fdl.texi: avoid git symlinks
30505         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
30506
30507 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30508
30509         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
30510
30511 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30512
30513         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
30514         (gl_WARN_ADD): Substitute $2 if literal.
30515
30516 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30517
30518         * m4/warning.m4: Remove.
30519
30520 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30521
30522         * m4/warnings.m4: Almost complete rewrite. :-)
30523
30524 2008-11-10  Simon Josefsson  <simon@josefsson.org>
30525
30526         * modules/warnings: New module.
30527         * m4/warnings.m4: New file.
30528         * MODULES.html.sh: Mention warnings module.
30529         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
30530         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30531
30532 2008-11-10  Eric Blake  <ebb9@byu.net>
30533
30534         fdl.texi: make a symlink to the latest version
30535         * doc/standards.texi: Revert today's earlier change.
30536         * doc/fdl-1.2.texi: Rename from old fdl.texi...
30537         * doc/fdl.texi: ...and replace this with a symlink to the newer
30538         fdl-1.3.texi.
30539
30540 2008-11-10  Bruno Haible  <bruno@clisp.org>
30541
30542         * tests/test-select-fd.c (main): Accept the result file name as fourth
30543         argument.
30544         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
30545         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
30546
30547 2008-11-10  Bruno Haible  <bruno@clisp.org>
30548
30549         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
30550         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
30551         as autoconf-substituted macros.
30552         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
30553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
30554         gl_NETDB_H_DEFAULTS. Set these variables.
30555         * modules/netdb (Makefile.am): Substitute these variables.
30556
30557 2008-11-10  Eric Blake  <ebb9@byu.net>
30558
30559         standards.texi: include correct file for FDL 1.3
30560         * doc/standards.texi (GNU Free Documentation License): Change
30561         include file to pull in FDL 1.3, not 1.2.
30562
30563         fdl.texi: revert accidental change to license
30564         * doc/fdl.texi: This is FDL 1.2, not 1.3.
30565
30566 2008-11-10  Bruno Haible  <bruno@clisp.org>
30567
30568         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
30569         cross-compiling guesses also when the native compile gives no result.
30570
30571 2008-11-10  Bruno Haible  <bruno@clisp.org>
30572
30573         * lib/spawni.c (__spawni): Force variable into the stack.
30574
30575 2008-11-10  Bruno Haible  <bruno@clisp.org>
30576
30577         Add support for Haiku.
30578         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
30579         glibc and BeOS, but also on Haiku.
30580         * lib/fpurge.c (fpurge): Likewise.
30581         * lib/freadable.c (freadable): Likewise.
30582         * lib/freadahead.c (freadahead): Likewise.
30583         * lib/freading.c (freading): Likewise.
30584         * lib/freadptr.c (freadptr): Likewise.
30585         * lib/freadseek.c (freadptrinc): Likewise.
30586         * lib/fseeko.c (rpl_fseeko): Likewise.
30587         * lib/fseterr.c (fseterr): Likewise.
30588         * lib/fwritable.c (fwritable): Likewise.
30589         * lib/fwriting.c (fwriting): Likewise.
30590         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
30591
30592 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30593
30594         * lib/config.charset: Treat Haiku like BeOS.
30595
30596 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30597
30598         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
30599         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
30600
30601 2008-11-08  Bruno Haible  <bruno@clisp.org>
30602
30603         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
30604         AC_CACHE_CHECK.
30605
30606 2008-11-08  Bruno Haible  <bruno@clisp.org>
30607
30608         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
30609
30610 2008-11-08  Bruno Haible  <bruno@clisp.org>
30611
30612         * tests/test-select-fd.c: New file.
30613         * tests/test-select-in.sh: New file.
30614         * tests/test-select-out.sh: New file.
30615         * tests/test-select-stdin.c: New file.
30616         * modules/select-tests (Files): Add the new files.
30617         (Depends-on): Add gettimeofday.
30618         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
30619         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
30620         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
30621
30622 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
30623             Bruno Haible  <bruno@clisp.org>
30624
30625         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
30626
30627 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
30628
30629         * build-aux/pmccabe2html: Added support for C++ source files.
30630
30631 2008-11-05  Ben Pfaff  <blp@gnu.org>
30632
30633         Fix lib/close.c build on Windows.
30634         * modules/close (Files): Add lib/w32sock.h.
30635
30636 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
30637
30638         Accept Bison's NEWS format.
30639         * build-aux/announce-gen (print_news_deltas): Tweak
30640         $re_prefix.
30641
30642 2008-11-04  Bruno Haible  <bruno@clisp.org>
30643
30644         * modules/random_r (Maintainer): Add glibc.
30645
30646 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30647
30648         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
30649         by karl@freefriends.org (Karl Berry).
30650         * doc/alloca.texi: Likewise.
30651         * doc/c-ctype.texi: Likewise.
30652         * doc/c-strcase.texi: Likewise.
30653         * doc/c-strcaseeq.texi: Likewise.
30654         * doc/c-strcasestr.texi: Likewise.
30655         * doc/c-strstr.texi: Likewise.
30656         * doc/c-strtod.texi: Likewise.
30657         * doc/c-strtold.texi: Likewise.
30658         * doc/ctime.texi: Likewise.
30659         * doc/error.texi: Likewise.
30660         * doc/fdl.texi: Likewise.
30661         * doc/gcd.texi: Likewise.
30662         * doc/getdate.texi: Likewise.
30663         * doc/gnulib-intro.texi: Likewise.
30664         * doc/gnulib-tool.texi: Likewise.
30665         * doc/gnulib.texi: Likewise.
30666         * doc/inet_ntoa.texi: Likewise.
30667         * doc/maintain.texi: Likewise.
30668         * doc/make-stds.texi: Likewise.
30669         * doc/quote.texi: Likewise.
30670         * doc/regexprops-generic.texi: Likewise.
30671         * doc/standards.texi: Likewise.
30672         * doc/verify.texi: Likewise.
30673         * doc/visibility.texi: Likewise.
30674         * doc/gnulib.texi (GNU Free Documentation License): Include
30675         fdl-1.3.texi instead of fdl.texi.
30676
30677 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30678
30679         * doc/fdl-1.3.texi: New file, from
30680         <http://www.gnu.org/licenses/fdl-1.3.texi>.
30681         * modules/fdl-1.3: Add.
30682         * MODULES.html.sh: Add fdl-1.3.
30683
30684 2008-11-03  Bruno Haible  <bruno@clisp.org>
30685
30686         Make determination of absolute name of header file work with AIX xlc.
30687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
30688         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
30689         preprocessing.
30690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30691         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30692
30693 2008-11-03  Simon Josefsson  <simon@josefsson.org>
30694
30695         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
30696         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
30697         <ludo@gnu.org>.
30698
30699 2008-11-02  Bruno Haible  <bruno@clisp.org>
30700
30701         Mark 'strpbrk' obsolete.
30702         * modules/strpbrk (Status, Notice): New sections.
30703         * modules/strtok_r (Depends-on): Add strpbrk.
30704
30705 2008-11-02  Bruno Haible  <bruno@clisp.org>
30706
30707         Mark 'strdup' obsolete.
30708         * modules/strdup (Status, Notice): New sections.
30709         * modules/findprog (Depends-on): Add strdup.
30710         * modules/getaddrinfo (Depends-on): Likewise.
30711         * modules/localename (Depends-on): Likewise.
30712         * modules/relocatable-lib (Depends-on): Likewise.
30713         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
30714         * modules/relocatable-prog (Depends-on): Likewise.
30715         * modules/trim (Depends-on): Likewise.
30716         * modules/unictype/gen-ctype (Depends-on): Likewise.
30717         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30718
30719 2008-11-02  Bruno Haible  <bruno@clisp.org>
30720
30721         Mark 'strcspn' obsolete.
30722         * modules/strcspn (Status, Notice): New sections.
30723
30724 2008-11-02  Bruno Haible  <bruno@clisp.org>
30725
30726         Mark 'rmdir' obsolete.
30727         * modules/rmdir (Status, Notice): New sections.
30728         * modules/clean-temp (Depends-on): Add rmdir.
30729         * modules/openat (Depends-on): Likewise.
30730
30731 2008-11-02  Bruno Haible  <bruno@clisp.org>
30732
30733         Mark 'raise' obsolete.
30734         * modules/raise (Status, Notice): New sections.
30735         (Include): Specify <signal.h>.
30736         * modules/stdio (Depends-on): Add raise.
30737         * modules/write (Depends-on): Likewise.
30738
30739 2008-11-02  Bruno Haible  <bruno@clisp.org>
30740
30741         Mark 'memset' obsolete.
30742         * modules/memset (Status, Notice): New sections.
30743
30744 2008-11-02  Bruno Haible  <bruno@clisp.org>
30745
30746         Mark 'memmove' obsolete.
30747         * modules/memmove (Status, Notice): New sections.
30748         * modules/argp (Depends-on): Add memmove.
30749         * modules/argz (Depends-on): Likewise.
30750         * modules/canonicalize (Depends-on): Likewise.
30751         * modules/canonicalize-lgpl (Depends-on): Likewise.
30752         * modules/fts (Depends-on): Likewise.
30753         * modules/getcwd (Depends-on): Likewise.
30754         * modules/human (Depends-on): Likewise.
30755         * modules/regex (Depends-on): Likewise.
30756         * modules/striconveh (Depends-on): Likewise.
30757         * modules/trim (Depends-on): Likewise.
30758         * modules/unistr/u8-move (Depends-on): Likewise.
30759         * modules/unistr/u16-move (Depends-on): Likewise.
30760         * modules/unistr/u32-move (Depends-on): Likewise.
30761
30762 2008-11-02  Bruno Haible  <bruno@clisp.org>
30763
30764         Mark 'memcpy' obsolete.
30765         * modules/memcpy (Status, Notice): New sections.
30766
30767 2008-11-02  Bruno Haible  <bruno@clisp.org>
30768
30769         Mark 'memcmp' obsolete.
30770         * modules/memcmp (Status, Notice): New sections.
30771         * modules/argmatch (Depends-on): Add memchr.
30772         * modules/backupfile (Depends-on): Likewise.
30773         * modules/c-strcasestr (Depends-on): Likewise.
30774         * modules/crypto/des (Depends-on): Likewise.
30775         * modules/csharpcomp (Depends-on): Likewise.
30776         * modules/fnmatch (Depends-on): Likewise.
30777         * modules/git-merge-changelog (Depends-on): Likewise.
30778         * modules/isnand (Depends-on): Likewise.
30779         * modules/isnand-nolibm (Depends-on): Likewise.
30780         * modules/isnanf (Depends-on): Likewise.
30781         * modules/isnanf-nolibm (Depends-on): Likewise.
30782         * modules/isnanl (Depends-on): Likewise.
30783         * modules/isnanl-nolibm (Depends-on): Likewise.
30784         * modules/mbchar (Depends-on): Likewise.
30785         * modules/memcoll (Depends-on): Likewise.
30786         * modules/quotearg (Depends-on): Likewise.
30787         * modules/regex (Depends-on): Likewise.
30788         * modules/relocatable-prog (Depends-on): Likewise.
30789         * modules/same (Depends-on): Likewise.
30790         * modules/signbit (Depends-on): Likewise.
30791         * modules/strcasestr-simple (Depends-on): Likewise.
30792         * modules/unictype/gen-ctype (Depends-on): Likewise.
30793         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30794         * modules/uniname/uniname (Depends-on): Likewise.
30795         * modules/unistr/u8-cmp (Depends-on): Likewise.
30796
30797 2008-11-02  Bruno Haible  <bruno@clisp.org>
30798
30799         Mark 'memchr' obsolete.
30800         * modules/memchr (Status, Notice): New sections.
30801         * modules/argp (Depends-on): Add memchr.
30802         * modules/base64 (Depends-on): Likewise.
30803         * modules/c-strcasestr (Depends-on): Likewise.
30804         * modules/chdir-long (Depends-on): Likewise.
30805         * modules/fnmatch (Depends-on): Likewise.
30806         * modules/getsubopt (Depends-on): Likewise.
30807         * modules/git-merge-changelog (Depends-on): Likewise.
30808         * modules/glob (Depends-on): Likewise.
30809         * modules/strcasestr-simple (Depends-on): Likewise.
30810         * modules/strnlen (Depends-on): Likewise.
30811
30812 2008-11-02  Bruno Haible  <bruno@clisp.org>
30813
30814         Mark 'atexit' obsolete.
30815         * modules/atexit (Status, Notice): New sections.
30816         * modules/chdir-long (Depends-on): Add atexit.
30817         * modules/wait-process (Depends-on): Likewise.
30818
30819 2008-11-02  Bruno Haible  <bruno@clisp.org>
30820
30821         * gnulib-tool: New option --with-obsolete.
30822         (func_usage): Document it.
30823         (func_modules_transitive_closure): Drop obsolete dependencies if
30824         incobsolete is not true.
30825         (func_import): Read and save the incobsolete variable to the cache.
30826
30827 2008-11-02  Bruno Haible  <bruno@clisp.org>
30828
30829         * modules/TEMPLATE-EXTENDED: New field 'Status'.
30830         * gnulib-tool: New option --extract-status.
30831         (func_usage): Document it.
30832         (sed_extract_prog): Recognize it.
30833         (func_get_status): New function.
30834
30835 2008-10-30  Simon Josefsson  <simon@josefsson.org>
30836
30837         * modules/sockets (License): Change from LGPL to LGPLv2+.
30838
30839 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30840
30841         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
30842
30843 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30844
30845         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30846         Mention times and sys_times.
30847         * modules/sys_times, modules/sys_times-tests: New modules.
30848         * modules/times, modules/times-tests: Likewise
30849         * m4/sys_times_h.m4: New file.
30850         * lib/sys_times.in.h: Likewise
30851         * lib/times.c: Likewise.
30852         * tests/test-sys_times.c: Likewise.
30853         * tests/test-times.c: Likewise.
30854         * doc/posix-headers/sys_times.texi: Update.
30855         * doc/posix-functions/times.texi: Update.
30856
30857 2008-10-28  Jim Meyering  <meyering@redhat.com>
30858
30859         * modules/tempname (Depends-on): Add lstat.
30860
30861         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
30862
30863 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30864
30865         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
30866         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
30867         using idiom used elsewhere in gnulib.
30868
30869 2008-10-27  Jim Meyering  <meyering@redhat.com>
30870
30871         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
30872
30873 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30874
30875         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
30876         TESTS_ENVIRONMENT, for shell scripts that needs to call built
30877         programs.
30878         * tests/test-argp-2.sh: Use $EXEEXT when needed.
30879
30880 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30881
30882         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
30883
30884 2008-10-27  Bruno Haible  <bruno@clisp.org>
30885
30886         * tests/test-lstat.c: Include <stdio.h>.
30887
30888 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30889
30890         * modules/lstat-tests: New module.
30891         * tests/test-lstat.c: New file.
30892
30893 2008-10-26  Jim Meyering  <meyering@redhat.com>
30894
30895         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
30896
30897 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30898             Bruno Haible  <bruno@clisp.org>
30899
30900         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
30901         * modules/configmake (Include): Add a note that the include must come
30902         after all system headers.
30903         * lib/javaversion.c: Include configmake.h after all other includes.
30904
30905 2008-10-26  Bruno Haible  <bruno@clisp.org>
30906
30907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
30908         HAVE_STRUCT_RANDOM_DATA to 1.
30909         (gl_STDLIB_H): Simplify.
30910
30911 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30912
30913         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
30914         substitute HAVE_STRUCT_RANDOM_DATA.
30915         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
30916         random_data.
30917         * modules/stdlib (Makefile.am): Substitute
30918         HAVE_STRUCT_RANDOM_DATA.
30919
30920 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30921
30922         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
30923         * doc/gnulib-intro.texi (Copyright): Likewise.
30924
30925 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30926
30927         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
30928         findings.
30929
30930 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
30931             Bruno Haible  <bruno@clisp.org>
30932
30933         * lib/unistd.in.h: Include <winsock2.h>.
30934         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
30935         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
30936         Provide dummy declarations.
30937         (gethostname): Override.
30938         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
30939         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
30940         gl_PREREQ_SYS_H_WINSOCK2.
30941         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
30942         * doc/posix-functions/gethostname.texi: More details.
30943
30944 2008-10-25  Bruno Haible  <bruno@clisp.org>
30945
30946         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30947         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
30948         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
30949
30950         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
30951         here ...
30952         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
30953         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
30954         gl_UNISTD_H_DEFAULTS.
30955
30956 2008-10-25  Eric Blake  <ebb9@byu.net>
30957
30958         signbit: avoid spurious compiler failure
30959         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
30960         declarations inside function.
30961
30962 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30963             Bruno Haible  <bruno@clisp.org>
30964
30965         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
30966         * modules/random_r (Depends-on): Add stdint.
30967
30968 2008-10-24  Bruno Haible  <bruno@clisp.org>
30969
30970         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
30971         Eggert.
30972         * modules/strerror (License): Likewise.
30973
30974 2008-10-24  Jim Meyering  <meyering@redhat.com>
30975
30976         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
30977         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
30978
30979 2008-10-24  Eric Blake  <ebb9@byu.net>
30980
30981         getgroups: fix compilation when getgroups is available
30982         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
30983         but with <config.h> override of getgroups disabled.
30984
30985 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30986
30987         * doc/gnulib.texi (Header files): Add note about C++ problems.
30988         Explained by Bruno Haible <bruno@clisp.org>.
30989
30990 2008-10-23  Bruno Haible  <bruno@clisp.org>
30991
30992         Define a dummy SA_NODEFER macro on Interix.
30993         * lib/signal.in.h (SA_NODEFER): Define fallback.
30994         Reported by Aleksey Cheusov <cheusov@tut.by> via
30995         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
30996
30997 2008-10-23  Bruno Haible  <bruno@clisp.org>
30998
30999         * modules/freadahead (License): Change to LGPLv2+.
31000         Suggested by Simon Josefsson.
31001
31002 2008-10-23  Jim Meyering  <meyering@redhat.com>
31003
31004         random_r: new module
31005         * modules/random_r: New file.
31006         * m4/random_r.m4: New file.
31007         * lib/random_r.c: New file, from glibc.
31008         * modules/random_r-tests: New file.
31009         * tests/test-random_r.c: New file.
31010         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
31011          Declare.
31012         (RAND_MAX): Define.
31013         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
31014         * modules/stdlib: Substitute them, too.
31015         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
31016         * doc/glibc-functions/initstate_r.texi: Mention the new module.
31017         * doc/glibc-functions/random_r.texi: Likewise.
31018         * doc/glibc-functions/setstate_r.texi: Likewise.
31019         * doc/glibc-functions/srandom_r.texi: Likewise.
31020         * config/srclist.txt: Mention it.
31021
31022 2008-10-23  David Lutterkort  <lutter@redhat.com>
31023
31024         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
31025         link requirement
31026
31027 2008-10-23  Jim Meyering  <meyering@redhat.com>
31028
31029         selinux-h: mark parameters of stub functions as intentionally unused
31030         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
31031         * lib/se-context.in.h: Likewise.
31032
31033 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31034
31035         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
31036
31037 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31038
31039         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
31040
31041 2008-10-22  Eric Blake  <ebb9@byu.net>
31042
31043         glthread/thread: avoid compiler warning
31044         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
31045         Add unreachable abort to silence compiler.
31046
31047 2008-10-22  Eric Blake  <ebb9@byu.net>
31048
31049         netdb: also supply struct addrinfo for cygwin 1.5.x
31050         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
31051         older cygwin.
31052         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
31053         cygwin.
31054         * doc/posix-headers/netdb.texi (netdb.h): Document this.
31055
31056 2008-10-22  Bruno Haible  <bruno@clisp.org>
31057
31058         * users.txt: Update entry about pspp.
31059
31060 2008-10-21  Bruno Haible  <bruno@clisp.org>
31061
31062         Simplification.
31063         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
31064         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
31065
31066         Simplification.
31067         * lib/ioctl.c (ioctl): Don't undefine.
31068         * lib/socket.c (socket): Don't undefine.
31069
31070         Remove unused module indicator macros.
31071         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
31072         GNULIB_$1 as a C macro.
31073
31074         * doc/posix-functions/close.texi: Undo last change.
31075         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
31076         Windows platforms.
31077
31078 2008-10-21  Bruno Haible  <bruno@clisp.org>
31079
31080         Add gethostname() declaration to <unistd.h>.
31081         * lib/unistd.in.h (gethostname): New declaration.
31082         * lib/gethostname.c: Include <unistd.h>.
31083         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
31084         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
31085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
31086         and HAVE_GETHOSTNAME.
31087         * modules/gethostname (Depends-on): Add unistd.
31088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31089         (Include): Specify <unistd.h>.
31090         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
31091         HAVE_GETHOSTNAME.
31092         * tests/test-gethostname.c: Include <unistd.h> first.
31093
31094 2008-10-21  Bruno Haible  <bruno@clisp.org>
31095
31096         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
31097         * modules/select-tests (Depends-on): Likewise.
31098         Reported by Simon Josefsson.
31099
31100 2008-10-21  Simon Josefsson  <simon@josefsson.org>
31101
31102         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
31103         * lib/accept.c: New file, based on winsock.c.
31104         * lib/bind.c: New file, based on winsock.c.
31105         * lib/connect.c: New file, based on winsock.c.
31106         * lib/getpeername.c: New file, based on winsock.c.
31107         * lib/getsockname.c: New file, based on winsock.c.
31108         * lib/getsockopt.c: New file, based on winsock.c.
31109         * lib/ioctl.c: New file, based on winsock.c.
31110         * lib/listen.c: New file, based on winsock.c.
31111         * lib/recv.c: New file, based on winsock.c.
31112         * lib/recvfrom.c: New file, based on winsock.c.
31113         * lib/send.c: New file, based on winsock.c.
31114         * lib/sendto.c: New file, based on winsock.c.
31115         * lib/setsockopt.c: New file, based on winsock.c.
31116         * lib/shutdown.c: New file, based on winsock.c.
31117         * lib/socket.c: New file, based on winsock.c.
31118         * lib/w32sock.h: New file, based on winsock.c.
31119         * lib/winsock.c: Remove file.
31120         * modules/accept: Likewise.
31121         * modules/bind: Likewise.
31122         * modules/connect: Likewise.
31123         * modules/getpeername: Likewise.
31124         * modules/getsockname: Likewise.
31125         * modules/getsockopt: Likewise.
31126         * modules/ioctl: Likewise.
31127         * modules/listen: Likewise.
31128         * modules/recv: Likewise.
31129         * modules/recvfrom: Likewise.
31130         * modules/send: Likewise.
31131         * modules/sendto: Likewise.
31132         * modules/setsockopt: Likewise.
31133         * modules/shutdown: Likewise.
31134         * modules/socket: Use socket.c instead of winsock.c.
31135         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
31136         * doc/posix-functions/accept.texi: Doc fix.
31137         * doc/posix-functions/bind.texi: Doc fix.
31138         * doc/posix-functions/close.texi: Doc fix.
31139         * doc/posix-functions/connect.texi: Doc fix.
31140         * doc/posix-functions/getpeername.texi: Doc fix.
31141         * doc/posix-functions/getsockname.texi: Doc fix.
31142         * doc/posix-functions/getsockopt.texi: Doc fix.
31143         * doc/posix-functions/ioctl.texi: Doc fix.
31144         * doc/posix-functions/listen.texi: Doc fix.
31145         * doc/posix-functions/recv.texi: Doc fix.
31146         * doc/posix-functions/recvfrom.texi: Doc fix.
31147         * doc/posix-functions/send.texi: Doc fix.
31148         * doc/posix-functions/sendto.texi: Doc fix.
31149         * doc/posix-functions/setsockopt.texi: Doc fix.
31150         * doc/posix-functions/shutdown.texi: Doc fix.
31151         * doc/posix-functions/socket.texi: Doc fix.
31152
31153 2008-10-20  Bruno Haible  <bruno@clisp.org>
31154
31155         Take into account the role of SIGABRT_COMPAT on Windows 2008.
31156         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
31157         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
31158         as an alias for SIGABRT.
31159         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
31160         (sigaction): Map it to SIGABRT.
31161         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
31162
31163 2008-10-20  Bruno Haible  <bruno@clisp.org>
31164
31165         * lib/fts.c: Don't include lstat.h.
31166         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
31167
31168         Move the lstat() declaration to <sys/stat.h>.
31169         * lib/lstat.h: Remove file.
31170         * lib/sys_stat.in.h: Add special invocation convention.
31171         (lstat): New declaration.
31172         * lib/lstat.c (orig_lstat): New function.
31173         (rpl_lstat): Use orig_lstat instead of lstat.
31174         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
31175         AC_C_INLINE. Set REPLACE_LSTAT.
31176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
31177         and REPLACE_LSTAT.
31178         * modules/lstat (Files): Remove lib/lstat.h.
31179         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31180         (Include): Specify <sys/stat.h> instead of lstat.h.
31181         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
31182         REPLACE_LSTAT.
31183         * NEWS: Mention the change.
31184
31185 2008-10-20  Bruno Haible  <bruno@clisp.org>
31186
31187         * modules/posix_spawn-tests: New file.
31188         * tests/test-posix_spawn3.c: New file.
31189
31190 2008-10-20  Bruno Haible  <bruno@clisp.org>
31191
31192         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
31193         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31194         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
31195         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31196         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
31197
31198 2008-10-20  Bruno Haible  <bruno@clisp.org>
31199
31200         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
31201         of posix_spawn on AIX 5.3.
31202
31203 2008-10-20  Bruno Haible  <bruno@clisp.org>
31204
31205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
31206
31207 2008-10-20  Bruno Haible  <bruno@clisp.org>
31208
31209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
31210         of AC_LANG_PROGRAM.
31211
31212 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31213
31214         * lib/netdb.in.h: Don't define GNU specific constants until they
31215         are supported or needed.  Reported by Bruno Haible
31216         <bruno@clisp.org>.
31217
31218 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31219
31220         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
31221
31222 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31223
31224         * lib/getaddrinfo.h: Remove file.
31225         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
31226         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
31227         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
31228         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
31229         * modules/netdb: Substitute GNULIB_GETADDRINFO.
31230         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
31231         * tests/test-getaddrinfo.c: Likewise.
31232         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
31233         * NEWS: Mention change.
31234
31235 2008-10-19  Bruno Haible  <bruno@clisp.org>
31236
31237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
31238
31239 2008-10-19  Bruno Haible  <bruno@clisp.org>
31240
31241         * lib/wait-process.c: Include simply <sys/wait.h>.
31242         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
31243         WIFSTOPPED): Remove fallback definitions.
31244         * modules/wait-process (Depends-on): Add sys_wait.
31245
31246         New module 'sys_wait'.
31247         * modules/sys_wait: New file.
31248         * lib/sys_wait.in.h: New file, partially copied from
31249         lib/wait-process.c.
31250         * m4/sys_wait_h.m4: New file.
31251         * doc/posix-headers/sys_wait.texi: Mention the new module.
31252
31253 2008-10-19  Bruno Haible  <bruno@clisp.org>
31254
31255         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
31256
31257 2008-10-19  Bruno Haible  <bruno@clisp.org>
31258
31259         Assume that waitpid() fills an 'int' status, not a 'union wait'.
31260         * lib/wait-process.c (WAIT_T): Remove type.
31261         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
31262         (wait_subprocess): Update.
31263
31264 2008-10-19  Bruno Haible  <bruno@clisp.org>
31265
31266         New module 'atoll'.
31267         * modules/atoll: New file.
31268         * lib/stdlib.in.h (atoll): New declaration.
31269         * lib/atoll.c: New file, from glibc with modifications.
31270         * m4/atoll.m4: New file.
31271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
31272         HAVE_ATOLL.
31273         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
31274         * doc/posix-functions/atoll.texi: Mention the new module.
31275
31276 2008-10-19  Bruno Haible  <bruno@clisp.org>
31277
31278         Add strtoull() declaration to <stdlib.h>.
31279         * lib/stdlib.in.h (strtoull): New declaration.
31280         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31281         Set HAVE_STRTOULL.
31282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
31283         HAVE_STRTOULL.
31284         * modules/strtoull (Depends-on): Add stdlib.
31285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31286         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
31287         HAVE_STRTOULL.
31288
31289 2008-10-19  Bruno Haible  <bruno@clisp.org>
31290
31291         Add strtoll() declaration to <stdlib.h>.
31292         * lib/stdlib.in.h (strtoll): New declaration.
31293         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31294         Set HAVE_STRTOLL.
31295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
31296         HAVE_STRTOLL.
31297         * modules/strtoll (Depends-on): Add stdlib.
31298         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31299         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
31300
31301 2008-10-19  Bruno Haible  <bruno@clisp.org>
31302
31303         * modules/bcopy (Depends-on): Add strings.
31304         (Include): Specify <strings.h>.
31305
31306 2008-10-19  Bruno Haible  <bruno@clisp.org>
31307
31308         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
31309
31310 2008-10-19  Bruno Haible  <bruno@clisp.org>
31311
31312         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
31313         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
31314         mingw.
31315
31316 2008-10-19  Bruno Haible  <bruno@clisp.org>
31317
31318         * lib/atanl.c: Don't include isnanl.h.
31319         * lib/cosl.c: Likewise.
31320         * lib/ldexpl.c: Likewise.
31321         * lib/logl.c: Likewise.
31322         * lib/sinl.c: Likewise.
31323         * lib/sqrtl.c: Likewise.
31324         * lib/tanl.c: Likewise.
31325
31326         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
31327         * lib/isnanf.h: Remove file.
31328         * lib/isnand.h: Remove file.
31329         * lib/isnanl.h: Remove file.
31330         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
31331         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
31332         macros.
31333         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
31334         HAVE_ISNANF, don't define it as a C macro.
31335         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
31336         HAVE_ISNAND, don't define it as a C macro.
31337         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
31338         HAVE_ISNANL, don't define it as a C macro.
31339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
31340         HAVE_ISNAN[FDL].
31341         * modules/isnanf (Files): Remove lib/isnanf.h.
31342         (Depends-on): Add math.
31343         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31344         (Include): Specify <math.h> instead of isnanf.h.
31345         * modules/isnand (Files): Remove lib/isnand.h.
31346         (Depends-on): Add math.
31347         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31348         (Include): Specify <math.h> instead of isnand.h.
31349         * modules/isnanl (Files): Remove lib/isnanl.h.
31350         (Depends-on): Add math.
31351         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31352         (Include): Specify <math.h> instead of isnanl.h.
31353         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
31354         HAVE_ISNAN[FDL].
31355         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
31356         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
31357         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
31358         * NEWS: Mention the change.
31359
31360 2008-10-18  Bruno Haible  <bruno@clisp.org>
31361
31362         Add getusershell(), setusershell(), endusershell() declarations to
31363         <unistd.h>.
31364         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
31365         declarations.
31366         * lib/getusershell.c: Include unistd.h.
31367         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
31368         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31369         HAVE_GETUSERSHELL.
31370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
31371         and HAVE_GETUSERSHELL.
31372         * modules/getusershell (Depends-on): Add unistd, extensions.
31373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31374         (Include): Specify <unistd.h>.
31375         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
31376         HAVE_GETUSERSHELL.
31377
31378 2008-10-18  Bruno Haible  <bruno@clisp.org>
31379
31380         Add a getloadavg() declaration to <stdlib.h>.
31381         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
31382         getloadavg declaration.
31383         (getloadavg): New declaration.
31384         * lib/getloadavg.c: Include <stdlib.h> first.
31385         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
31386         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
31387         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
31388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
31389         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31390         * modules/getloadavg (Depends-on): Add stdlib, extensions.
31391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31392         (Include): Specify <stdlib.h>.
31393         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
31394         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31395
31396 2008-10-18  Bruno Haible  <bruno@clisp.org>
31397
31398         * lib/dirchownmod.c: Don't include lchmod.h.
31399
31400         Move the lchmod() declaration to <sys/stat.h>.
31401         * lib/lchmod.h: Remove file.
31402         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
31403         (lchmod): New declaration, moved here from lib/lchown.h.
31404         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
31405         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
31406         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
31407         and HAVE_LCHMOD.
31408         * modules/lchmod (Files): Remove lib/lchmod.h.
31409         (Depends-on): Add sys_stat, extensions.
31410         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31411         (Include): Specify <sys/stat.h> instead of lchmod.h.
31412         * modules/sys_stat (Depends-on): Add link-warning.
31413         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
31414         definition of GL_LINK_WARNING.
31415         * NEWS: Mention the change.
31416
31417 2008-10-18  Bruno Haible  <bruno@clisp.org>
31418
31419         * lib/fchdir.c: Don't include dirfd.h.
31420         * lib/fts.c: Likewise.
31421         * lib/getcwd.c: Likewise.
31422         * lib/glob.c: Likewise.
31423
31424         Move the dirfd() declaration to <dirent.h>.
31425         * lib/dirfd.h: Remove file.
31426         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
31427         (dirfd): New declaration.
31428         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
31429         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
31430         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
31431         HAVE_DECL_DIRFD.
31432         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
31433         HAVE_DECL_DIRFD.
31434         * modules/dirfd (Files): Remove lib/dirfd.h.
31435         (Depends-on): Add dirent, extensions.
31436         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
31437         (Include): Specify <dirent.h> instead of dirfd.h.
31438         * modules/dirent (Depends-on): Add link-warning.
31439         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
31440         definition of GL_LINK_WARNING.
31441         * NEWS: Mention the change.
31442
31443 2008-10-18  Bruno Haible  <bruno@clisp.org>
31444
31445         Move the euidaccess() declaration to <unistd.h>.
31446         * lib/euidaccess.h: Remove file.
31447         * lib/unistd.in.h (euidaccess): New declaration.
31448         * lib/euidaccess.c: Don't include euidaccess.h.
31449         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
31450         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
31451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
31452         and HAVE_EUIDACCESS.
31453         * modules/euidaccess (Files): Remove lib/euidaccess.h.
31454         (Depends-on): Add unistd.
31455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31456         (Include): Specify <unistd.h> instead of euidaccess.h.
31457         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
31458         HAVE_EUIDACCESS.
31459         * NEWS: Mention the change.
31460
31461 2008-10-18  Bruno Haible  <bruno@clisp.org>
31462
31463         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
31464
31465         Move the getdomainname() declaration to <unistd.h>.
31466         * lib/getdomainname.h: Remove file.
31467         * lib/unistd.in.h (getdomainname): New declaration.
31468         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
31469         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
31470         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31471         HAVE_GETDOMAINNAME.
31472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31473         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
31474         * modules/getdomainname (Files): Remove lib/getdomainname.h.
31475         (Depends-on): Add unistd, extensions.
31476         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31477         (Includes): Specify <unistd.h> instead of getdomainname.h.
31478         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
31479         HAVE_GETDOMAINNAME.
31480         * NEWS: Mention the change.
31481
31482 2008-10-18  Bruno Haible  <bruno@clisp.org>
31483
31484         * modules/dirent: New file.
31485         * m4/dirent_h.m4: New file.
31486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
31487         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
31488         * modules/fchdir (Files): Remove lib/dirent.in.h.
31489         (Depends-on): Add dirent.
31490         (Makefile.am): Move rules to modules/dirent.
31491         * doc/posix-headers/dirent.texi: Mention the new module.
31492
31493 2008-10-18  Bruno Haible  <bruno@clisp.org>
31494
31495         Avoid -Wunused-parameter warnings in public gnulib header files.
31496         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
31497         macro.
31498         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
31499
31500 2008-10-18  Bruno Haible  <bruno@clisp.org>
31501
31502         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
31503         * doc/glibc-functions/error.texi: Mention the module 'error'.
31504         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
31505         * doc/glibc-functions/getdomainname.texi: Mention the module
31506         'getdomainname'.
31507         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
31508         * doc/glibc-functions/getpagesize.texi: Mention the module
31509         'getpagesize'.
31510         * doc/glibc-functions/getusershell.texi: Mention the module
31511         'getusershell'.
31512         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
31513         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
31514         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
31515         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
31516         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
31517         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
31518         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
31519         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
31520         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
31521         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
31522         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
31523         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
31524         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
31525         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
31526
31527 2008-10-17  Bruno Haible  <bruno@clisp.org>
31528
31529         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
31530         HP-UX and IRIX, use -0.0L.
31531         * tests/test-ceill.c (minus_zero): Likewise.
31532         * tests/test-floorl.c (minus_zero): Likewise.
31533         * tests/test-frexpl.c (minus_zero): Likewise.
31534         * tests/test-isnan.c (minus_zerol): Likewise.
31535         * tests/test-isnanl.h (minus_zero): Likewise.
31536         * tests/test-ldexpl.c (minus_zero): Likewise.
31537         * tests/test-roundl.c (minus_zero): Likewise.
31538         * tests/test-signbit.c (minus_zerol): Likewise.
31539         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31540         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31541         * tests/test-truncl.c (minus_zero): Likewise.
31542         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31543         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31544         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
31545         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31546
31547 2008-10-17  Bruno Haible  <bruno@clisp.org>
31548
31549         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
31550         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
31551         that it gets activated only for gcc >= 3.0.
31552         * lib/dirent.in.h: Likewise.
31553         * lib/errno.in.h: Likewise.
31554         * lib/fcntl.in.h: Likewise.
31555         * lib/float.in.h: Likewise.
31556         * lib/iconv.in.h: Likewise.
31557         * lib/inttypes.in.h: Likewise.
31558         * lib/locale.in.h: Likewise.
31559         * lib/math.in.h: Likewise.
31560         * lib/netdb.in.h: Likewise.
31561         * lib/netinet_in.in.h: Likewise.
31562         * lib/search.in.h: Likewise.
31563         * lib/signal.in.h: Likewise.
31564         * lib/spawn.in.h: Likewise.
31565         * lib/stdarg.in.h: Likewise.
31566         * lib/stdint.in.h: Likewise.
31567         * lib/stdio.in.h: Likewise.
31568         * lib/stdlib.in.h: Likewise.
31569         * lib/string.in.h: Likewise.
31570         * lib/strings.in.h: Likewise.
31571         * lib/sys_file.in.h: Likewise.
31572         * lib/sys_ioctl.in.h: Likewise.
31573         * lib/sys_select.in.h: Likewise.
31574         * lib/sys_socket.in.h: Likewise.
31575         * lib/sys_stat.in.h: Likewise.
31576         * lib/sys_time.in.h: Likewise.
31577         * lib/sysexits.in.h: Likewise.
31578         * lib/time.in.h: Likewise.
31579         * lib/unistd.in.h: Likewise.
31580         * lib/wchar.in.h: Likewise.
31581         * lib/wctype.in.h: Likewise.
31582         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31583
31584 2008-10-17  Jim Meyering  <meyering@redhat.com>
31585
31586         ignore-value: don't depend on inline module
31587         * modules/ignore-value (Depends-on): Remove 'inline'.
31588         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
31589         Suggestion from Bruno Haible.
31590
31591 2008-10-17  Bruno Haible  <bruno@clisp.org>
31592
31593         New implementation of condition variables for Win32.
31594         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
31595         (gl_linked_waitqueue_t): New type.
31596         (gl_cond_t): Use it.
31597         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
31598         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
31599         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
31600         (glthread_cond_init_func, glthread_cond_wait_func,
31601         glthread_cond_timedwait_func, glthread_cond_signal_func,
31602         glthread_cond_broadcast_func, glthread_cond_destroy_func):
31603         Reimplemented on the basis of gl_linked_waitqueue_t.
31604         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
31605         gl_waitqueue_t.
31606         (gl_rwlock_t): Update.
31607         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
31608
31609 2008-10-17  Simon Josefsson  <simon@josefsson.org>
31610
31611         * modules/recvfrom (Depends-on): Add dependency on getpeername.
31612         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31613
31614 2008-10-17  Jim Meyering  <meyering@redhat.com>
31615
31616         ignore-value: new module
31617         * modules/ignore-value: New file.
31618         * lib/ignore-value.h: New file.
31619         * MODULES.html.sh (Compiler warning management): New section,
31620         just for this module.  More to come.
31621
31622 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31623
31624         open-safer.c: avoid 'signed and unsigned in conditional...' warning
31625         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
31626         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
31627
31628 2008-10-16  Jim Meyering  <meyering@redhat.com>
31629
31630         openat-die.c: avoid 'no previous prototype' warning
31631         * lib/openat-die.c: Include "openat.h".
31632         Reported by Reuben Thomas <rrt@sc3d.org>.
31633
31634 2008-10-16  Simon Josefsson  <simon@josefsson.org>
31635
31636         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
31637         * lib/netdb.in.h: Fix typo.
31638         Reported by Bruno Haible  <bruno@clisp.org>
31639
31640         * lib/netdb.in.h: Include sys/socket.h for platforms without
31641         netdb.h, to get structures like hostent on MinGW.
31642         * modules/netdb (Depends-on): Add sys_socket.
31643
31644 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31645
31646         * modules/netdb, modules/netdb-tests: New file.
31647         * m4/netdb_h.m4: New file.
31648         * lib/netdb.in.h: Add, currently just an empty file pending
31649         definitions.
31650         * tests/test-netdb.c: New file.
31651         * doc/posix-headers/netdb.texi: Mention that we replace it if
31652         needed.
31653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31654         netdb.
31655
31656 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31657
31658         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
31659         with code.
31660
31661 2008-10-13  Bruno Haible  <bruno@clisp.org>
31662
31663         * lib/glthread/cond.c (glthread_cond_wait_func,
31664         glthread_cond_timedwait_func): Add a comment.
31665
31666 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31667
31668         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
31669         * tests/test-select.c: Likewise,
31670
31671 2008-10-13  Bruno Haible  <bruno@clisp.org>
31672
31673         * lib/glthread/cond.c (glthread_cond_wait_func,
31674         glthread_cond_timedwait_func): Fix variable name.
31675         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31676
31677 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
31678
31679         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
31680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
31681         struct sockaddr.sa_len.
31682         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
31683
31684 2008-10-13  Simon Josefsson  <simon@josefsson.org>
31685
31686         * build-aux/pmccabe2html: Add css and css_url parameters.
31687
31688 2008-10-12  Bruno Haible  <bruno@clisp.org>
31689
31690         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
31691         calling aclx_get.
31692         Reported by Rainer Tammer <tammer@tammer.net>.
31693
31694 2008-10-12  Bruno Haible  <bruno@clisp.org>
31695
31696         Use msvcrt aware primitives for creation/termination of Win32 threads.
31697         * lib/glthread/thread.c: Include <process.h>.
31698         (glthread_create_func): Use _beginthreadex instead of CreateThread.
31699         (wrapper_func): Update signature.
31700         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
31701
31702 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31703             Bruno Haible  <bruno@clisp.org>
31704
31705         Provide a Win32 implementation of the 'cond' module.
31706         * lib/glthread/cond.h [USE_WIN32]: New implementation.
31707         * lib/glthread/cond.c (glthread_cond_init_func,
31708         glthread_cond_wait_func, glthread_cond_timedwait_func,
31709         glthread_cond_signal_func, glthread_cond_broadcast_func,
31710         glthread_cond_destroy_func) [USE_WIN32]: New functions.
31711         * modules/cond (Dependencies): Add gettimeofday.
31712
31713 2008-10-11  Bruno Haible  <bruno@clisp.org>
31714
31715         Make sleep work on older versions of mingw.
31716         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
31717         only whether it exists.
31718         * doc/posix-functions/sleep.texi: Mention the problem with older
31719         versions of mingw.
31720
31721 2008-10-11  Bruno Haible  <bruno@clisp.org>
31722
31723         New module 'shutdown'.
31724         * modules/shutdown: New file.
31725         * lib/sys_socket.in.h (shutdown): New declaration.
31726         * lib/winsock.c (shutdown): New function.
31727         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31728         GNULIB_SHUTDOWN.
31729         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
31730         * doc/posix-functions/shutdown.texi: Document the new module.
31731
31732 2008-10-11  Jim Meyering  <meyering@redhat.com>
31733
31734         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
31735
31736 2008-10-11  Bruno Haible  <bruno@clisp.org>
31737
31738         New module 'fclose'.
31739         * modules/fclose: New file.
31740         * lib/stdio.in.h (fclose): New declaration.
31741         * lib/fclose.c: New file.
31742         * m4/fclose.m4: New file.
31743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
31744         REPLACE_FCLOSE.
31745         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
31746         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
31747         REPLACE_FCLOSE.
31748         * modules/close (Depends-on): fclose.
31749         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
31750
31751 2008-10-11  Bruno Haible  <bruno@clisp.org>
31752
31753         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
31754         set errno and don't call _close.
31755
31756 2008-10-10  Bruno Haible  <bruno@clisp.org>
31757
31758         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
31759         ACL, not afterwards. Fixes test failure on Cygwin.
31760
31761 2008-10-09  Ben Pfaff  <blp@gnu.org>
31762
31763         * build-aux/announce-gen: Fix gnulib version related part of usage
31764         message.  Die with a useful error message if no tarballs are
31765         found.
31766
31767 2008-10-10  Jim Meyering  <meyering@redhat.com>
31768
31769         bootstrap: use git's --depth=N option only if it's supported
31770         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
31771         recognize the --depth option.  Reported by Pádraig Brady.
31772
31773 2008-10-09  Bruno Haible  <bruno@clisp.org>
31774
31775         New module 'ioctl'.
31776         * modules/ioctl: New file.
31777         * lib/sys_socket.in.h (ioctl): Remove declaration.
31778         * lib/winsock.c: Include <sys/ioctl.h>.
31779         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
31780         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31781         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
31782         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
31783         * doc/posix-functions/ioctl.texi: Mention the new module.
31784
31785 2008-10-09  Bruno Haible  <bruno@clisp.org>
31786
31787         New module 'sys_ioctl'.
31788         * lib/sys_ioctl.in.h: New file.
31789         * m4/sys_ioctl_h.m4: New file.
31790         * modules/sys_ioctl: New file.
31791         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
31792
31793 2008-10-09  Bruno Haible  <bruno@clisp.org>
31794
31795         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
31796         * lib/winsock.c: Include <stdarg.h>.
31797         (rpl_ioctl): Change to second argument 'int' and then varargs.
31798
31799 2008-10-09  Bruno Haible  <bruno@clisp.org>
31800
31801         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
31802         when the sys_socket module is present and the system has <winsock2.h>.
31803
31804 2008-10-09  Bruno Haible  <bruno@clisp.org>
31805
31806         * doc/posix-functions/close.texi: Mention module 'close' instead of
31807         module 'sys_socket'.
31808
31809 2008-10-09  Bruno Haible  <bruno@clisp.org>
31810
31811         * doc/glibc-headers/sys_ioctl.texi: New file.
31812         * doc/gnulib.texi: Include it.
31813
31814 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31815             Bruno Haible  <bruno@clisp.org>
31816
31817         Combine the two replacements of 'close'.
31818         * lib/sys_socket.in.h (close): Define to a reminder to include
31819         <unistd.h>.
31820         (_gl_close_fd_maybe_socket): New declaration.
31821         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
31822         * lib/winsock.c (close): Remove undefinition.
31823         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
31824         needed for the gnulib module 'close'.
31825         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
31826         define to an error symbol or to a warning, if suitable.
31827         * lib/close.c: Include <sys/socket.h>.
31828         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
31829         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
31830         UNISTD_H_HAVE_WINSOCK2_H.
31831         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
31832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31833         UNISTD_H_HAVE_WINSOCK2_H.
31834         * modules/sys_socket (Files): Add m4/unistd_h.m4.
31835         (configure.ac): Set a module indicator.
31836         (Makefile.am): Substitute GNULIB_CLOSE.
31837         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
31838         * modules/poll-tests (Depends-on): Add close.
31839         * modules/select-tests (Depends-on): Likewise.
31840
31841 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31842             Bruno Haible  <bruno@clisp.org>
31843
31844         New module 'close'.
31845         * modules/close: New file.
31846         * lib/unistd.in.h (close): Move declaration out of the
31847         FCHDIR_REPLACEMENT scope.
31848         (_gl_unregister_fd): New declaration.
31849         * lib/close.c: New file.
31850         * lib/fchdir.c (rpl_close): Remove function.
31851         * m4/close.m4: New file.
31852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31853         close.
31854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
31855         REPLACE_CLOSE.
31856         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
31857         REPLACE_CLOSE.
31858         * modules/fchdir (Depends-on): Add close.
31859
31860 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31861             Bruno Haible  <bruno@clisp.org>
31862
31863         * lib/fcntl.in.h (open): Simplify conditionals.
31864         (_gl_register_fd): New declaration.
31865         * lib/fchdir.c (rpl_open): Remove function.
31866         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
31867         also.
31868         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
31869         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31870         open.
31871
31872 2008-10-09  Jim Meyering  <meyering@redhat.com>
31873
31874         GNUmakefile: use the more name-space-friendly "_version"
31875         * top/GNUmakefile (_dummy): Update.
31876         (_version): Rename from "version".
31877
31878 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31879             Bruno Haible  <bruno@clisp.org>
31880
31881         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
31882         rpl_close.
31883         (_gl_register_fd): New function, extracted from rpl_open.
31884         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
31885         (rpl_open, rpl_opendir): Use _gl_register_fd.
31886
31887 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31888
31889         Fix organization of 'open' replacement.
31890         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
31891         (gl_FUNC_OPEN): Use it.
31892         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
31893
31894 2008-10-08  Bruno Haible  <bruno@clisp.org>
31895
31896         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
31897
31898 2008-10-08  Simon Josefsson  <simon@josefsson.org>
31899
31900         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
31901         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
31902         listen).
31903
31904 2008-10-08  Eric Blake  <ebb9@byu.net>
31905
31906         GNUmakefile: add 'make version' target
31907         * top/GNUmakefile (_curr-ver): Split version update rules...
31908         (version): ...into a target.
31909
31910 2008-10-07  Bruno Haible  <bruno@clisp.org>
31911
31912         Use a more portable replacement expression for -0.0L.
31913         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
31914         instead of -0.0L. Fix m4 quotation.
31915
31916         * tests/test-signbit.c: Include <float.h>.
31917         (minus_zero): New variable.
31918         (test_signbitl): Use minus_zero instead of -zero.
31919         * modules/signbit-tests (Depends-on): Add float.
31920
31921         * tests/test-ceill.c: Include <float.h>.
31922         (zero): Remove variable.
31923         (minus_zero): New variable.
31924         (main): Use minus_zero instead of -zero.
31925         * modules/ceill-tests (Depends-on): Add float.
31926
31927         * tests/test-floorl.c: Include <float.h>.
31928         (zero): Remove variable.
31929         (minus_zero): New variable.
31930         (main): Use minus_zero instead of -zero.
31931         * modules/floorl-tests (Depends-on): Add float.
31932
31933         * tests/test-roundl.c: Include <float.h>.
31934         (zero): Remove variable.
31935         (minus_zero): New variable.
31936         (main): Use minus_zero instead of -zero.
31937         * modules/roundl-tests (Depends-on): Add float.
31938
31939         * tests/test-truncl.c: Include <float.h>.
31940         (zero): Remove variable.
31941         (minus_zero): New variable.
31942         (main): Use minus_zero instead of -zero.
31943         * modules/truncl-tests (Depends-on): Add float.
31944
31945         * tests/test-frexpl.c (zero): Remove variable.
31946         (minus_zero): New variable.
31947         (main): Use minus_zero instead of -zero.
31948         * modules/frexpl-tests (Depends-on): Add float.
31949
31950         * tests/test-isnan.c (zerol): Remove variable.
31951         (minus_zerol): New variable.
31952         (test_long_double): Use minus_zerol instead of -zerol.
31953         * modules/isnan-tests (Depends-on): Add float.
31954
31955         * tests/test-isnanl.h (zero): Remove variable.
31956         (minus_zero): New variable.
31957         (main): Use minus_zero instead of -zero.
31958         * modules/isnanl-nolibm-tests (Depends-on): Add float.
31959         * modules/isnanl-tests (Depends-on): Add float.
31960
31961         * tests/test-ldexpl.c (zero): Remove variable.
31962         (minus_zero): New variable.
31963         (main): Use minus_zero instead of -zero.
31964         * modules/ldexpl-tests (Depends-on): Add float.
31965
31966         * tests/test-snprintf-posix.h (zerol): Remove variable.
31967         (minus_zerol): New variable.
31968         (test_function): Use minus_zerol instead of -zerol.
31969         * modules/snprintf-posix-tests (Depends-on): Add float.
31970         * modules/vsnprintf-posix-tests (Depends-on): Add float.
31971
31972         * tests/test-sprintf-posix.h (zerol): Remove variable.
31973         (minus_zerol): New variable.
31974         (test_function): Use minus_zerol instead of -zerol.
31975         * modules/sprintf-posix-tests (Depends-on): Add float.
31976         * modules/vsprintf-posix-tests (Depends-on): Add float.
31977
31978         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
31979         (minus_zerol): New variable.
31980         (test_function): Use minus_zerol instead of -zerol.
31981         * modules/vasnprintf-posix-tests (Depends-on): Add float.
31982
31983         * tests/test-vasprintf-posix.c (zerol): Remove variable.
31984         (minus_zerol): New variable.
31985         (test_function): Use minus_zerol instead of -zerol.
31986         * modules/vasprintf-posix-tests (Depends-on): Add float.
31987
31988 2008-10-07  Simon Josefsson  <simon@josefsson.org>
31989
31990         * MODULES.html.sh (Support for building documentation): Mention
31991         pmccabe2html.  Sort entries.
31992
31993         Add pmccabe2html module, from gnupdf.
31994         * build-aux/pmccabe.css: New file.
31995         * build-aux/pmccabe2html: New file.
31996         * m4/pmccabe2html.m4: New file.
31997         * modules/pmccabe2html: New file.
31998
31999 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
32000
32001         flock: new module
32002         * MODULES.html.sh: Add to list of modules.
32003         * lib/flock.c: flock implementation for Windows and Unix systems
32004         which have fcntl.
32005         * doc/glibc-functions/flock.texi: Update documentation.
32006         * lib/sys_file.in.h: <sys/file.h> header file.
32007         * m4/flock.m4: M4 macros.
32008         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
32009         * modules/flock: flock module.
32010         * modules/flock-tests: flock tests module.
32011         * modules/sys_file: sys/file.h module.
32012         * tests/test-flock.c: test suite for flock.
32013
32014 2008-10-06  Jim Meyering  <meyering@redhat.com>
32015
32016         bootstrap: check for LT_INIT more portably still ;-)
32017         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
32018         Spotted by Bruno Haible.
32019
32020 2008-10-06  Eric Blake  <ebb9@byu.net>
32021
32022         test-signbit: avoid tripping Irix cc bug on -0.0L
32023         * tests/test-signbit.c (minus_zerol): Delete, and replace with
32024         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
32025         entire testsuite consistent and avoids an Irix 6.2 bug.
32026
32027 2008-10-05  Bruno Haible  <bruno@clisp.org>
32028             Jim Meyering  <jim@meyering.net>
32029
32030         Add an option for ignoring EPIPE during close_stdout.
32031         * lib/closeout.h: Include <stdbool.h>.
32032         (close_stdout_set_ignore_EPIPE): New declaration.
32033         * lib/closeout.c: Include <stdbool.h>.
32034         (ignore_EPIPE): New variable.
32035         (close_stdout_set_ignore_EPIPE): New function.
32036         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
32037         * lib/close-stream.c (close_stream): Mention the possible EPIPE
32038         failure.
32039         * modules/closeout (Depends-on): Add stdbool.
32040
32041 2008-10-05  Bruno Haible  <bruno@clisp.org>
32042
32043         * modules/accept: New file.
32044         * modules/bind: New file.
32045         * modules/connect: New file.
32046         * modules/getpeername: New file.
32047         * modules/getsockname: New file.
32048         * modules/getsockopt: New file.
32049         * modules/listen: New file.
32050         * modules/recv: New file.
32051         * modules/recvfrom: New file.
32052         * modules/send: New file.
32053         * modules/sendto: New file.
32054         * modules/setsockopt: New file.
32055         * modules/socket: New file.
32056         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
32057         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32058         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
32059         the particular module is requested. Add a link warning when the
32060         particular module is not requested.
32061         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
32062         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
32063         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
32064         the particular module is requested.
32065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
32066         gl_SYS_SOCKET_H_DEFAULTS): New macros.
32067         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
32068         * modules/sys_socket (Depends-on): Add link-warning.
32069         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
32070         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
32071         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
32072         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
32073         GL_LINK_WARNING.
32074         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
32075         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
32076         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
32077         * doc/posix-functions/getpeername.texi: Mention the new module
32078         'getpeername'.
32079         * doc/posix-functions/getsockname.texi: Mention the new module
32080         'getsockname'.
32081         * doc/posix-functions/getsockopt.texi: Mention the new module
32082         'getsockopt'.
32083         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
32084         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
32085         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
32086         * doc/posix-functions/send.texi: Mention the new module 'send'.
32087         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
32088         * doc/posix-functions/setsockopt.texi: Mention the new module
32089         'setsockopt'.
32090         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
32091         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
32092         listen, connect, accept.
32093         * modules/select-tests (Depends-on): Likewise.
32094
32095 2008-10-05  Bruno Haible  <bruno@clisp.org>
32096
32097         * lib/winsock.c (strerror): Remove unused #undef.
32098         (rpl_close): Remove unused local variable.
32099
32100         * modules/sys_socket (Depends-on); Add errno.
32101
32102 2008-10-05  Bruno Haible  <bruno@clisp.org>
32103
32104         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
32105         (select): Add a link warning when the 'select' module is not used.
32106         * modules/sys_select (Depends-on): Add link-warning.
32107         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
32108         Suggested by Paolo Bonzini.
32109
32110 2008-10-05  Jim Meyering  <meyering@redhat.com>
32111
32112         bootstrap: check for LT_INIT more portably
32113         * build-aux/bootstrap: Avoid using grep -E, since it's not
32114         portable enough.  Suggestion from Bruno Haible.
32115
32116 2008-10-05  Bruno Haible  <bruno@clisp.org>
32117
32118         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
32119         as being fixed by gnulib.
32120
32121 2008-10-05  Bruno Haible  <bruno@clisp.org>
32122
32123         * modules/select-tests: New file, mostly copied from
32124         modules/sys_select-tests.
32125         * tests/test-select.c: New file, mostly copied from
32126         tests/test-sys_select.c.
32127         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
32128         * modules/sys_select-tests (Depends-on): Remove all dependencies.
32129         (Makefile.am): Remove test_sys_select_LDADD.
32130
32131         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
32132         to an undefined symbol, for an error message.
32133         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
32134         (gl_SYS_SELECT_H_DEFAULTS): New macro.
32135         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
32136         winsock-select.c here.
32137         * modules/sys_select (Files): Remove lib/winsock-select.c.
32138         (Depends-on): Remove alloca.
32139         (Makefile.am): Substitute GNULIB_SELECT.
32140         * modules/select: New file.
32141         * doc/posix-functions/select.texi: Update.
32142
32143 2008-10-05  Bruno Haible  <bruno@clisp.org>
32144
32145         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
32146         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
32147         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
32148         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
32149         getdtablesize.
32150         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
32151         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
32152
32153 2008-10-05  Bruno Haible  <bruno@clisp.org>
32154
32155         * modules/getdtablesize-tests: New file.
32156         * tests/test-getdtablesize.c: New file.
32157
32158         New module 'getdtablesize'.
32159         * lib/unistd.in.h (getdtablesize): New declaration.
32160         * lib/getdtablesize.c: New file.
32161         * m4/getdtablesize.m4: New file.
32162         * modules/getdtablesize: New file.
32163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32164         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
32165         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
32166         HAVE_GETDTABLESIZE.
32167         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
32168
32169 2008-10-05  Bruno Haible  <bruno@clisp.org>
32170
32171         * modules/sched (Makefile.am): Fix typo.
32172         Reported by Simon Josefsson.
32173
32174 2008-10-05  Jim Meyering  <meyering@redhat.com>
32175
32176         bootstrap: check for LT_INIT, too
32177         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
32178         are deprecated.  Suggestion from Ralf Wildenhues.
32179
32180 2008-10-05  Bruno Haible  <bruno@clisp.org>
32181
32182         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
32183         overriding them by ours.
32184         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
32185
32186 2008-10-05  Jim Meyering  <meyering@redhat.com>
32187
32188         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
32189         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
32190         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
32191
32192 2008-10-04  Bruno Haible  <bruno@clisp.org>
32193
32194         * modules/dup2 (License): Change to LGPLv2+.
32195         * modules/sleep (License): Likewise.
32196         * modules/perror (License): Likewise.
32197         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
32198         Blake.
32199         * modules/signal (License): Likewise.
32200         * modules/sigprocmask (License): Likewise.
32201         * modules/raise (License): Change to LGPLv2+, with approval by Jim
32202         Meyering.
32203
32204 2008-10-04  Bruno Haible  <bruno@clisp.org>
32205
32206         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
32207         Reported by Rainer Tammer <tammer@tammer.net>.
32208
32209 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
32210             Bruno Haible  <bruno@clisp.org>
32211
32212         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
32213         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
32214         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
32215
32216 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
32217
32218         filevercmp: new module
32219         * lib/filevercmp.h: New function filevercmp comparing version strings.
32220         * lib/filevercmp.c: Implementation of filevercmp function.
32221         * modules/filevercmp: Module metadata.
32222         * tests/test-filevercmp.c: Unit test for new module.
32223         * modules/filevercmp-tests: Unit test metadata.
32224         * MODULES.html.sh: Add filevercmp module.
32225
32226 2008-10-03  Bruno Haible  <bruno@clisp.org>
32227
32228         * lib/c-ctype.h: Add comment.
32229         Reported by Jim Meyering.
32230
32231 2008-10-02  Bruno Haible  <bruno@clisp.org>
32232
32233         * modules/posix_spawn-internal (Depends-on): Add 'open'.
32234
32235 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32236
32237         * build-aux/bootstrap: Allow renaming bootstrap, and change the
32238         name of bootstrap.conf accordingly.
32239
32240 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32241
32242         * build-aux/bootstrap: Install git-merge-changelog configuration
32243         items into .gitconfig if needed.
32244
32245 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32246
32247         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
32248         git repository, and initialize/update it accordingly.
32249
32250 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
32251
32252         * modules/fsync-tests: New file.
32253         * tests/test-fsync.c: New file.
32254
32255         New module 'fsync'.
32256         * lib/fsync.c: New file.
32257         * m4/fsync.m4: New file.
32258         * modules/fsync: New file.
32259         * lib/unistd.in.h (fsync): New declaration.
32260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
32261         GNULIB_FSYNC and HAVE_FSYNC.
32262         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
32263         * MODULES.html.sh (posix_functions): Add fsync.
32264         * doc/posix-functions/fsync.texi: Mention the new module.
32265
32266 2008-10-02  Jim Meyering  <meyering@redhat.com>
32267
32268         fts.c: sync with similar code from coreutils' remove.c
32269         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
32270         Guard also with "#if defined __linux__", since for now at least,
32271         this code is Linux-kernel-specific.
32272
32273 2008-10-02  Jim Meyering  <meyering@redhat.com>
32274
32275         fts: bug fixes
32276         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
32277         Include <sys/vfs.h>, not <sys/statfs.h>.
32278
32279         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
32280         Include <sys/vfs.h>, not <sys/statfs.h>.
32281
32282 2008-10-01  Bruno Haible  <bruno@clisp.org>
32283
32284         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
32285         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
32286         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
32287         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
32288         * doc/posix-functions/posix_spawnp.texi: Likewise.
32289         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
32290         whether posix_spawn actually works.
32291         * m4/pipe.m4 (gl_PIPE): Likewise.
32292         * modules/execute (Files): Add m4/posix_spawn.m4.
32293         * modules/pipe (Files): Add m4/posix_spawn.m4.
32294         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
32295
32296 2008-10-01  Jim Meyering  <meyering@redhat.com>
32297
32298         remove trailing spaces
32299         * NEWS: Likewise.
32300         * lib/poll.c (poll): Likewise.
32301         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
32302         * lib/winsock.c (rpl_close): Likewise.
32303         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
32304         * modules/yield: Likewise.
32305         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
32306         * tests/test-sys_select.c (connect_to_socket): Likewise.
32307
32308         fts.c: adjust a new interface to be more generally useful
32309         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
32310         (fts_build): Adjust caller.
32311
32312 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32313
32314         * modules/cond-tests: New file.
32315         * tests/test-cond.c: New file.
32316
32317 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32318             Bruno Haible  <bruno@clisp.org>
32319
32320         * modules/cond (Dependencies): Add errno, time.
32321         * lib/glthread/cond.h: Include <time.h>.
32322         (gl_cond_define, gl_cond_define_initialized): Use the same definition
32323         across platforms.
32324
32325 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32326             Bruno Haible  <bruno@clisp.org>
32327
32328         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
32329
32330 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32331             Bruno Haible  <bruno@clisp.org>
32332
32333         * modules/tls-tests (Depends-on): Add thread, yield.
32334         (configure.ac): Remove all checks.
32335         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
32336         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32337         gl_thread_self): Remove definitions. Include glthread/thread.h and
32338         glthread/yield.h instead.
32339         (test_tls): Pass an additional NULL argument to gl_thread_join.
32340
32341 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32342             Bruno Haible  <bruno@clisp.org>
32343
32344         * modules/lock-tests (Depends-on): Add thread, yield.
32345         (configure.ac): Remove all checks.
32346         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
32347         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32348         gl_thread_self): Remove definitions. Include glthread/thread.h and
32349         glthread/yield.h instead.
32350         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
32351         additional NULL argument to gl_thread_join.
32352
32353 2008-09-30  Bruno Haible  <bruno@clisp.org>
32354
32355         Fix the Win32 implementation of the 'thread' module.
32356         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
32357         pointer type.
32358         (gl_thread_self): Invoke gl_thread_self_func.
32359         (gl_thread_self_func): New declaration.
32360         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
32361         (do_init_self_key, init_self_key): New functions.
32362         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
32363         Remove some fields.
32364         (running_threads, running_lock): Remove variables.
32365         (get_current_thread_handle): New function.
32366         (gl_thread_self_func, wrapper_func, glthread_create_func,
32367         glthread_join_func, gl_thread_exit_func): Largely rewritten and
32368         simplified.
32369
32370 2008-09-30  Bruno Haible  <bruno@clisp.org>
32371
32372         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
32373         files.
32374
32375 2008-09-30  Jim Meyering  <meyering@redhat.com>
32376
32377         fts.m4: correct the test for statfs.f_type
32378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
32379         when checking for statfs.f_type.
32380
32381 2008-09-15  Simon Josefsson  <simon@josefsson.org>
32382
32383         tests: avoid some compiler warnings
32384         * tests/test-memchr.c (main): Pass NULL indirectly.
32385         * tests/test-getdate.c (main): Remove unused variable 'ret'.
32386
32387 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
32388
32389         getdate.y: disallow countable dayshifts like "4 yesterday ago"
32390         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
32391         exactly specified dayshifts.
32392         (dayshift): New rule.
32393         (rel): Add dayshift.
32394         (relative_time_table) [tomorrow, yesterday, today, now]:
32395         Use tDAY_SHIFT in place of tDAY_UNIT.
32396         * tests/test-getdate.c: Add tests for now-disallowed countable
32397         dayshifts, e.g., "4 yesterday ago".
32398
32399 2008-09-29  Bruno Haible  <bruno@clisp.org>
32400
32401         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
32402         * tests/test-posix_spawn1.in.sh: Renamed from
32403         tests/test-posix_spawn.in.sh.
32404         * tests/test-posix_spawn2.c: New file.
32405         * tests/test-posix_spawn2.in.sh: New file.
32406         * modules/posix_spawnp-tests (Files): Update.
32407         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
32408
32409 2008-09-29  Bruno Haible  <bruno@clisp.org>
32410
32411         Propagate effects of putenv/setenv/unsetenv to child processes.
32412         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
32413         * lib/pipe.c (create_pipe): Likewise.
32414
32415 2008-09-29  Bruno Haible  <bruno@clisp.org>
32416
32417         Enable use of shell scripts as executables in mingw.
32418         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
32419         run the program as a shell script.
32420         * lib/pipe.c (create_pipe): Likewise.
32421         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
32422         resulting array.
32423
32424 2008-09-29  Eric Blake  <ebb9@byu.net>
32425
32426         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
32427
32428 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
32429
32430         * doc/posix-functions/accept.texi: Update mingw problems.
32431         * doc/posix-functions/bind.texi: Update mingw problems.
32432         * doc/posix-functions/close.texi: Update mingw problems.
32433         * doc/posix-functions/connect.texi: Update mingw problems.
32434         * doc/posix-functions/getpeername.texi: Update mingw problems.
32435         * doc/posix-functions/getsockname.texi: Update mingw problems.
32436         * doc/posix-functions/getsockopt.texi: Update mingw problems.
32437         * doc/posix-functions/ioctl.texi: Update mingw problems.
32438         * doc/posix-functions/listen.texi: Update mingw problems.
32439         * doc/posix-functions/recv.texi: Update mingw problems.
32440         * doc/posix-functions/recvfrom.texi: Update mingw problems.
32441         * doc/posix-functions/select.texi: Update mingw problems.
32442         * doc/posix-functions/send.texi: Update mingw problems.
32443         * doc/posix-functions/sendto.texi: Update mingw problems.
32444         * doc/posix-functions/setsockopt.texi: Update mingw problems.
32445         * doc/posix-functions/socket.texi: Update mingw problems.
32446
32447 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
32448             Bruno Haible  <bruno@clisp.org>
32449
32450         * lib/sys_select.in.h: Include sys/time.h.
32451         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
32452         * modules/sys_select: Depend on sys_time.
32453         * tests/test-sys_select.c: Test that sys/select.h defines struct
32454         timeval fully.
32455
32456 2008-09-29  Bruno Haible  <bruno@clisp.org>
32457
32458         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
32459         * lib/sys_select.in.h: Likewise.
32460
32461 2008-09-29  Bruno Haible  <bruno@clisp.org>
32462
32463         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
32464
32465 2008-09-29  Bruno Haible  <bruno@clisp.org>
32466
32467         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
32468         Set LIBSOCKET instead of augmenting LIBS.
32469         * modules/sockets (Link): New section.
32470         * modules/sockets-tests (test_sockets_LDADD): New variable.
32471         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
32472         * modules/poll-tests (test_poll_LDADD): New variable.
32473         * NEWS: Document the change.
32474
32475 2008-09-29  Bruno Haible  <bruno@clisp.org>
32476
32477         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
32478         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
32479         ARPA_INET_H directly.
32480         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32481
32482 2008-09-28  Bruno Haible  <bruno@clisp.org>
32483
32484         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
32485         from gl_HEADER_SYS_SOCKET.
32486         (gl_HEADER_SYS_SOCKET): Invoke it.
32487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32488
32489 2008-09-28  Bruno Haible  <bruno@clisp.org>
32490
32491         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
32492         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
32493         Needed on OSF/1 4.0.
32494
32495 2008-09-28  Bruno Haible  <bruno@clisp.org>
32496
32497         Override open more carefully.
32498         * lib/open.c (orig_open): New function.
32499         (rpl_open): Use orig_open instead of open.
32500         * lib/fcntl.in.h: Add special invocation convention.
32501         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
32502         (gl_FUNC_OPEN): Invoke it.
32503
32504         Override freopen more carefully.
32505         * lib/freopen.c (orig_freopen): New function.
32506         (rpl_freopen): Use orig_freopen instead of freopen.
32507         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
32508         (gl_FUNC_FREOPEN): Invoke it.
32509
32510         Override fopen more carefully.
32511         * lib/fopen.c (orig_fopen): New function.
32512         (rpl_fopen): Use orig_fopen instead of fopen.
32513         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
32514         (gl_FUNC_FOPEN): Invoke it.
32515         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
32516
32517 2008-09-28  Bruno Haible  <bruno@clisp.org>
32518
32519         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
32520         SIGPIPE.
32521
32522 2008-09-28  Bruno Haible  <bruno@clisp.org>
32523
32524         * tests/test-sigaction.c (handler, main): Disable the check whether
32525         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
32526         glibc systems with LinuxThreads.
32527
32528 2008-09-28  Bruno Haible  <bruno@clisp.org>
32529
32530         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
32531
32532         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
32533         with AIX xlc.
32534         * lib/fcntl.in.h (open): Likewise.
32535         Reported by Rainer Tammer <tammer@tammer.net>.
32536
32537 2008-09-28  Bruno Haible  <bruno@clisp.org>
32538
32539         * modules/posix_spawnp-tests: New file.
32540         * tests/test-posix_spawn.c: New file.
32541         * tests/test-posix_spawn.in.sh: New file.
32542
32543         New module 'posix_spawnp'.
32544         * modules/posix_spawnp: New file.
32545         * lib/spawnp.c: New file, from GNU libc with modifications.
32546         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
32547
32548         New module 'posix_spawn'.
32549         * modules/posix_spawn: New file.
32550         * lib/spawn.c: New file, from GNU libc with modifications.
32551         * doc/posix-functions/posix_spawn.texi: Mention the new module.
32552
32553         New module 'posix_spawnattr_destroy'.
32554         * modules/posix_spawnattr_destroy: New file.
32555         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
32556         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
32557         module.
32558
32559         New module 'posix_spawnattr_setsigmask'.
32560         * modules/posix_spawnattr_setsigmask: New file.
32561         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
32562         modifications.
32563         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
32564         new module.
32565
32566         New module 'posix_spawnattr_getsigmask'.
32567         * modules/posix_spawnattr_getsigmask: New file.
32568         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
32569         modifications.
32570         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
32571         new module.
32572
32573         New module 'posix_spawnattr_setsigdefault'.
32574         * modules/posix_spawnattr_setsigdefault: New file.
32575         * lib/spawnattr_setdefault.c: New file, from GNU libc with
32576         modifications.
32577         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
32578         new module.
32579
32580         New module 'posix_spawnattr_getsigdefault'.
32581         * modules/posix_spawnattr_getsigdefault: New file.
32582         * lib/spawnattr_getdefault.c: New file, from GNU libc with
32583         modifications.
32584         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
32585         new module.
32586
32587         New module 'posix_spawnattr_setschedpolicy'.
32588         * modules/posix_spawnattr_setschedpolicy: New file.
32589         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
32590         modifications.
32591         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
32592         new module.
32593
32594         New module 'posix_spawnattr_getschedpolicy'.
32595         * modules/posix_spawnattr_getschedpolicy: New file.
32596         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
32597         modifications.
32598         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
32599         new module.
32600
32601         New module 'posix_spawnattr_setschedparam'.
32602         * modules/posix_spawnattr_setschedparam: New file.
32603         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
32604         modifications.
32605         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
32606         new module.
32607
32608         New module 'posix_spawnattr_getschedparam'.
32609         * modules/posix_spawnattr_getschedparam: New file.
32610         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
32611         modifications.
32612         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
32613         new module.
32614
32615         New module 'posix_spawnattr_setpgroup'.
32616         * modules/posix_spawnattr_setpgroup: New file.
32617         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
32618         modifications.
32619         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
32620         module.
32621
32622         New module 'posix_spawnattr_getpgroup'.
32623         * modules/posix_spawnattr_getpgroup: New file.
32624         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
32625         modifications.
32626         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
32627         module.
32628
32629         New module 'posix_spawnattr_setflags'.
32630         * modules/posix_spawnattr_setflags: New file.
32631         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
32632         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
32633         module.
32634
32635         New module 'posix_spawnattr_getflags'.
32636         * modules/posix_spawnattr_getflags: New file.
32637         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
32638         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
32639         module.
32640
32641         New module 'posix_spawnattr_init'.
32642         * modules/posix_spawnattr_init: New file.
32643         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
32644         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
32645         module.
32646
32647         New module 'posix_spawn_file_actions_destroy'.
32648         * modules/posix_spawn_file_actions_destroy: New file.
32649         * lib/spawn_faction_destroy.c: New file, from GNU libc with
32650         modifications.
32651         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
32652         the new module.
32653
32654         New module 'posix_spawn_file_actions_addopen'.
32655         * modules/posix_spawn_file_actions_addopen: New file.
32656         * lib/spawn_faction_addopen.c: New file, from GNU libc with
32657         modifications.
32658         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32659         the new module.
32660
32661         New module 'posix_spawn_file_actions_adddup2'.
32662         * modules/posix_spawn_file_actions_adddup2: New file.
32663         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
32664         modifications.
32665         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32666         the new module.
32667
32668         New module 'posix_spawn_file_actions_addclose'.
32669         * modules/posix_spawn_file_actions_addclose: New file.
32670         * lib/spawn_faction_addclose.c: New file, from GNU libc with
32671         modifications.
32672         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32673         the new module.
32674
32675         New module 'posix_spawn_file_actions_init'.
32676         * modules/posix_spawn_file_actions_init: New file.
32677         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
32678         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
32679         new module.
32680
32681         New module 'posix_spawn-internal'.
32682         * modules/posix_spawn-internal: New file.
32683         * lib/spawn_int.h: New file, from GNU libc with modifications.
32684         * lib/spawni.c: New file, from GNU libc with modifications.
32685         * m4/posix_spawn.m4: New file.
32686
32687         New module 'spawn'.
32688         * modules/spawn: New file.
32689         * lib/spawn.in.h: New file, from GNU libc with modifications.
32690         * m4/spawn_h.m4: New file.
32691         * doc/posix-headers/spawn.texi: Mention the new module.
32692
32693 2008-09-28  Bruno Haible  <bruno@clisp.org>
32694
32695         * modules/sched-tests: New file.
32696         * tests/test-sched.c: New file.
32697
32698         New module 'sched'.
32699         * modules/sched: New file.
32700         * lib/sched.in.h: New file.
32701         * m4/sched_h.m4: New file.
32702         * doc/posix-headers/sched.texi: Mention the new module.
32703
32704 2008-09-27  Eric Blake  <ebb9@byu.net>
32705
32706         Fix previous patch, and tweak references to $0.
32707         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
32708         (func_version, func_gnulib_dir): Don't call this program
32709         gnulib-tool.
32710         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
32711         with using $0 in function.
32712         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
32713         (func_fatal_error): Reuse the name the user invoked us with.
32714
32715 2008-09-27  Bruno Haible  <bruno@clisp.org>
32716
32717         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
32718         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
32719         (gl_ICONV_H): Not here.
32720         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32721         instead of assigning ICONV_H directly.
32722
32723         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
32724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
32725         WCHAR_H directly.
32726
32727 2008-09-27  Bruno Haible  <bruno@clisp.org>
32728
32729         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
32730         * modules/arpa_inet (Depends-on): Add link-warning.
32731         (Makefile.am): Insert the definition of GL_LINK-WARNING.
32732         * modules/unistd (Makefile.am): Likewise.
32733
32734 2008-09-26  Bruno Haible  <bruno@clisp.org>
32735
32736         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
32737         variables.
32738         (func_version): Essentially copied from gnulib-tool.
32739         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
32740         func_readlink): Copied from gnulib-tool.
32741
32742 2008-09-26  Bruno Haible  <bruno@clisp.org>
32743
32744         * gnulib-tool (func_version): Change directory to $gnulib_dir before
32745         invoking git-version-gen.
32746
32747 2008-09-26  Bruno Haible  <bruno@clisp.org>
32748
32749         * posix-modules: Update to directory names changed on 2008-01-19.
32750         Remove commas in output before splitting into words. No more need to
32751         avoid 'ftruncate' since 2007-02-19.
32752
32753 2008-09-26  Bruno Haible  <bruno@clisp.org>
32754
32755         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
32756
32757 2008-09-26  Bruno Haible  <bruno@clisp.org>
32758
32759         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
32760         * modules/fwriteerror (Depends-on): Add errno.
32761
32762 2008-09-26  Bruno Haible  <bruno@clisp.org>
32763
32764         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
32765         * tests/test-vc-list-files-cvs.sh: Likewise.
32766
32767 2008-09-26  Bruno Haible  <bruno@clisp.org>
32768
32769         * doc/posix-headers/sys_resource.texi: Reorder items.
32770
32771 2008-09-26  Jim Meyering  <meyering@redhat.com>
32772
32773         fts: tweak inode comparison function
32774         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
32775         inode numbers, as documented.
32776
32777         fts: sort dirent entries on inode number before traversing
32778         This avoids a quadratic, seek-related performance penalty when
32779         operating on a directory containing many entries (measurable at 10k;
32780         3.5 hours at 2 million entries with a cold cache) on certain types
32781         of file systems, including ext3 and ext4, but not tmpfs.
32782         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
32783         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
32784         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32785         (fs_handles_readdir_ordered_dirents_efficiently): New function.
32786         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
32787         (fts_build): Set the stat.st_ino member from D_INO.
32788         If it is likely to be useful, sort dirent entries on inode number.
32789
32790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
32791         and the struct statfs.f_type member.
32792         * modules/fts (Depends-on): Add d-ino.
32793
32794 2008-09-26  Bruno Haible  <bruno@clisp.org>
32795
32796         * modules/sigpipe-die (Depends-on): Add sigpipe.
32797
32798         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
32799         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
32800         and GNULIB_STDIO_H_SIGPIPE are set.
32801         * lib/stdio-write.c: New file.
32802         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
32803         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32804         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32805         REPLACE_STDIO_WRITE_FUNCS.
32806         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
32807         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32808         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32809         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32810         * modules/stdio (Files): Add lib/stdio-write.c.
32811         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
32812         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32813         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32814         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32815         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
32816         REPLACE_FPRINTF_POSIX.
32817         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
32818         REPLACE_PRINTF_POSIX.
32819         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
32820         REPLACE_VFPRINTF_POSIX.
32821         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
32822         REPLACE_VPRINTF_POSIX.
32823         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
32824         SIGPIPE issue.
32825         * doc/posix-functions/fputc.texi: Likewise.
32826         * doc/posix-functions/fputs.texi: Likewise.
32827         * doc/posix-functions/fwrite.texi: Likewise.
32828         * doc/posix-functions/printf.texi: Likewise.
32829         * doc/posix-functions/putc.texi: Likewise.
32830         * doc/posix-functions/putchar.texi: Likewise.
32831         * doc/posix-functions/puts.texi: Likewise.
32832         * doc/posix-functions/vfprintf.texi: Likewise.
32833         * doc/posix-functions/vprintf.texi: Likewise.
32834
32835         * modules/safe-write (Depends-on): Add write.
32836
32837         * modules/sigpipe-tests: New file.
32838         * tests/test-sigpipe.c: New file.
32839         * tests/test-sigpipe.sh: New file.
32840
32841         * modules/write: New file.
32842         * lib/unistd.in.h: Include <sys/types.h>.
32843         (write): New declaration.
32844         * lib/write.c: New file.
32845         * m4/write.m4: New file.
32846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32847         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
32848         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
32849         GNULIB_WRITE, REPLACE_WRITE.
32850         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
32851         and the SIGPIPE issue.
32852
32853         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
32854         (raise): New declaration.
32855         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
32856         (ext_signal): New function.
32857         (rpl_raise): New function.
32858         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32859         GNULIB_SIGNAL_H_SIGPIPE.
32860         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
32861         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
32862
32863         * modules/sigpipe: New file.
32864         * m4/sigpipe.m4: New file.
32865
32866 2008-09-25  Derek Price  <derek@ximbiot.com>
32867             Bruno Haible  <bruno@clisp.org>
32868
32869         * gnulib-tool (func_import): Report all license incompatibilities, not
32870         just the first one.
32871
32872 2008-09-25  Bruno Haible  <bruno@clisp.org>
32873
32874         * gnulib-tool (func_import): When computing the edits, consider not
32875         only the Makefile.ams that exist but also those that will be generated.
32876
32877 2008-09-25  Simon Josefsson  <simon@josefsson.org>
32878
32879         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
32880         fixes gnulib-tool --test warning about duplicate dependency.
32881
32882 2008-09-25  Bruno Haible  <bruno@clisp.org>
32883
32884         * gnulib-tool: Don't ask the user to perform edits in the generated
32885         Makefile.ams.
32886         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
32887         apply to the Makefile.am being generated.
32888         (func_emit_tests_Makefile_am): Execute edits that apply to the
32889         Makefile.am being generated.
32890         (func_import): Setup list of Makefile.am edits before emitting the
32891         Makefile.ams, not at the end.
32892         (func_create_testdir): Update.
32893         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32894
32895 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32896
32897         * gnulib-tool (func_import): Store the --tests-base option in the
32898         comment in gnulib-cache.m4.
32899
32900 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
32901
32902         * NEWS: Document increased portability that sys_select now provides.
32903
32904         * lib/sys_select.in.h: Install select wrapper.
32905         * lib/sys_socket.in.h: Use more descriptive name when there is no
32906         select wrapper.
32907         * lib/winsock-select.c: New.
32908         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
32909         Require gl_HEADER_SYS_SOCKET.
32910         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
32911         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
32912         * tests/test-sys_select.c: Add functional tests.
32913
32914 2008-09-24  Eric Blake  <ebb9@byu.net>
32915
32916         open, fopen: close fd leak in last patch
32917         * lib/open.c (rpl_open): Close fd before returning error.
32918         * lib/fopen.c (rpl_fopen): Close fd before returning error.
32919         * doc/posix-functions/open.texi (open): Document that Irix also
32920         has the bug.
32921         * doc/posix-functions/fopen.texi (fopen): Likewise.
32922         Reported by Paolo Bonzini.
32923
32924 2008-09-24  Bruno Haible  <bruno@clisp.org>
32925
32926         Ensure that a filename ending in a slash cannot be used to access a
32927         non-directory.
32928         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
32929         to check whether it's really a directory.
32930         * lib/fopen.c: Include fcntl.h, unistd.h.
32931         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
32932         and fdopen().
32933         * modules/fopen (Depends-on): Add unistd.
32934         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
32935         * tests/test-fopen.c (main): Likewise.
32936         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
32937         * doc/posix-functions/fopen.texi: Likewise.
32938         Reported by Eric Blake.
32939
32940 2008-09-23  Eric Blake  <ebb9@byu.net>
32941
32942         c-stack: avoid compiler optimizations when provoking overflow
32943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
32944         recursion harder to optimize, to ensure a stack overflow occurs.
32945         * tests/test-c-stack.c (recurse): Likewise.
32946         Borrowed from libsigsegv.
32947
32948         c-stack: work around Irix sigaltstack bug
32949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
32950         whether sigaltstack uses wrong end of stack_t (copied in part from
32951         libsigsegv).
32952         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
32953         Irix bug, without requiring an over-allocation.
32954         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
32955         bug.
32956
32957         fopen: document mingw bug on directories
32958         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
32959         not allowing a stream visiting a directory, even though reading
32960         from such a stream is not portable.
32961
32962 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32963
32964         * lib/poll.c: Rewrite.
32965         * modules/poll: Depend on alloca.
32966
32967 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32968
32969         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
32970         instead define prototypes for a full set of wrappers.  Ensure
32971         that Cygwin does not use the compatibility code, which is only
32972         for MinGW.
32973         * lib/winsock.c: New.
32974         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
32975         * modules/sys_socket: Add lib/winsock.c.
32976
32977         * modules/poll-tests: Add errno and perror.
32978         * tests/test-poll.c: Use ioctl, not ioctlsocket.
32979
32980 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32981
32982         * tests/test-poll.c: Downgrade minimum needed Winsock version.
32983
32984 2008-09-23  Bruno Haible  <bruno@clisp.org>
32985
32986         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
32987         * doc/glibc-functions/*: Likewise.
32988
32989 2008-09-23  Simon Josefsson  <simon@josefsson.org>
32990
32991         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
32992         success.
32993
32994 2008-09-22  Eric Blake  <ebb9@byu.net>
32995             Bruno Haible  <bruno@clisp.org>
32996
32997         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
32998         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
32999         supply %A but mishandle pseudo-NaN.
33000         Reported by Simon Josefsson.
33001
33002 2008-09-21  Bruno Haible  <bruno@clisp.org>
33003
33004         * tests/test-lock.c (main): Tweak skip message.
33005         * tests/test-tls.c (main): Likewise.
33006
33007 2008-09-21  Bruno Haible  <bruno@clisp.org>
33008
33009         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
33010         whether 'struct sigaction' has sa_sigaction here...
33011         (gl_PREREQ_SIG_HANDLER_H): ... not here.
33012         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
33013
33014 2008-09-21  Bruno Haible  <bruno@clisp.org>
33015
33016         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
33017         section.
33018         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
33019         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
33020         the new section.
33021         (Support for obsolete systems lacking POSIX:2001): New section.
33022         (String handling <string.h>): Move strdup to the new section.
33023         Suggested by Simon Josefsson and Paolo Bonzini.
33024
33025 2008-09-21  Bruno Haible  <bruno@clisp.org>
33026
33027         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
33028         exponents in %e and %g results on 'long double'. Needed for mingw's
33029         improved *printf functions.
33030         * tests/test-vasprintf-posix.c (test_function): Likewise.
33031         * tests/test-snprintf-posix.h (test_function): Likewise.
33032         * tests/test-sprintf-posix.h (test_function): Likewise.
33033         Reported by Eric Blake.
33034
33035 2008-09-21  Bruno Haible  <bruno@clisp.org>
33036
33037         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
33038         * tests/test-sprintf-posix.h (test_function): Likewise.
33039
33040 2008-09-21  Bruno Haible  <bruno@clisp.org>
33041
33042         * modules/getpass (Depends-on): Add strdup-posix.
33043
33044         New module 'strdup-posix'.
33045         * modules/strdup-posix: New file.
33046         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
33047         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
33048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33049         REPLACE_STRDUP.
33050         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
33051         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
33052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33053         strdup-posix.
33054
33055         * modules/strdup (Depends-on): Remove malloc-posix.
33056
33057 2008-09-20  Bruno Haible  <bruno@clisp.org>
33058
33059         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
33060         Wildenhues.
33061
33062 2008-09-20  Bruno Haible  <bruno@clisp.org>
33063
33064         Ensure that wint_t gets defined on IRIX 5.3.
33065         * lib/wchar.in.h (wint_t): Define if not defined by the system.
33066         * lib/wctype.in.h (wint_t): Likewise.
33067         (__wctype_wint_t): Remove type.
33068         (isw*): Use wint_t instead of __wctype_wint_t.
33069         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
33070         * modules/wchar (Files): Add m4/wint_t.m4.
33071         (Makefile.am): Substitute HAVE_WINT_T.
33072         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
33073         * tests/test-wctype.c: Check that wint_t is defined.
33074         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
33075         * doc/posix-headers/wctype.texi: Likewise.
33076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33077
33078 2008-09-18  Bruno Haible  <bruno@clisp.org>
33079
33080         * gnulib-tool (func_exit): Update comment.
33081
33082 2008-09-18  Simon Josefsson  <simon@josefsson.org>
33083
33084         * modules/getaddrinfo (Depends-on): Remove strdup, this module
33085         assumes strdup exists and does not depend on strdup to return
33086         ENOMEM on out of memory conditions.
33087
33088 2008-09-18  Bruno Haible  <bruno@clisp.org>
33089
33090         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
33091         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
33092         digits for the exponent.
33093
33094 2008-09-18  Jim Meyering  <meyering@redhat.com>
33095             Bruno Haible  <bruno@clisp.org>
33096
33097         * lib/vasnprintf.c (decimal_point_char): Define also if
33098         NEED_PRINTF_INFINITE_LONG_DOUBLE.
33099
33100 2008-09-16  Bruno Haible  <bruno@clisp.org>
33101         and Eric Blake  <ebb9@byu.net>
33102
33103         vasnprintf: support Irix 5.3
33104         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
33105         that mishandle long double infinity.
33106         Reported by Tom G. Christensen.
33107
33108 2008-09-16  Bruno Haible  <bruno@clisp.org>
33109
33110         * doc/glibc-functions/scandir.texi: Mention the function is missing on
33111         Solaris 9.
33112         * doc/glibc-functions/alphasort.texi: Likewise.
33113         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
33114
33115 2008-09-16  Jim Meyering  <meyering@redhat.com>
33116
33117         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
33118         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
33119         a umask modification leak out of a subshell.  Otherwise, the
33120         opensolaris /bin/sh would be accepted and thus cause unwarranted
33121         failures in the coreutils test suite.
33122
33123 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
33124
33125         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
33126         to succeed.
33127
33128 2008-09-16  Jim Meyering  <meyering@redhat.com>
33129
33130         avoid spurious test failure when library is built without ACL support
33131         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
33132         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
33133         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
33134         * tests/test-copy-acl.sh: Likewise.
33135
33136 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33137
33138         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
33139         based on character occurrence counts.
33140
33141 2008-09-15  Eric Blake  <ebb9@byu.net>
33142
33143         tests: avoid some compiler warnings
33144         * tests/test-memchr.c (main): Pass NULL indirectly.
33145         * tests/test-closein.c (main): Avoid unused variable.
33146
33147 2008-09-15  Bruno Haible  <bruno@clisp.org>
33148
33149         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
33150         are missing on OpenBSD 4.0 individually.
33151         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33152
33153 2008-09-15  Bruno Haible  <bruno@clisp.org>
33154
33155         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
33156         * doc/posix-functions/strerror.texi: Mention also Cygwin.
33157         * doc/posix-functions/perror.texi: Likewise.
33158         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
33159         is missing.
33160         Reported by Eric Blake.
33161
33162         * lib/errno.in.h: Use replacement values >= 2000.
33163         Reported by Eric Blake.
33164
33165 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33166
33167         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
33168         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
33169         limit.
33170         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
33171         compareseq was aborted.
33172
33173 2008-09-14  Bruno Haible  <bruno@clisp.org>
33174
33175         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
33176         yvec_edit_count.
33177         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
33178         (fstrcmp_bounded): Simplify result computation accordingly.
33179
33180 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33181
33182         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
33183         (fstrcmp): Define in terms of fstrcmp_bounded.
33184         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
33185         lower_bound argument.
33186         Return quickly if the result is certainly < lower_bound.
33187         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
33188
33189 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33190
33191         * lib/diffseq.h (EARLY_ABORT): New macro.
33192         (compareseq): Change return type to bool. Return true when EARLY_ABORT
33193         evaluates to true.
33194
33195 2008-09-14  Bruno Haible  <bruno@clisp.org>
33196
33197         * modules/perror-tests: New file.
33198         * tests/test-perror.sh: New file.
33199         * tests/test-perror.c: New file.
33200
33201         New module 'perror'.
33202         * lib/stdio.in.h (perror): New declaration.
33203         * lib/perror.c: New file.
33204         * m4/perror.m4: New file.
33205         * modules/perror: New file.
33206         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
33207         * doc/posix-functions/perror.texi: Mention the perror module.
33208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
33209         REPLACE_PERROR.
33210         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
33211         REPLACE_PERROR.
33212
33213 2008-09-14  Bruno Haible  <bruno@clisp.org>
33214
33215         * modules/stdio (Makefile.am): Reorder to match the order in
33216         lib/stdio.in.h.
33217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33218
33219 2008-09-13  Bruno Haible  <bruno@clisp.org>
33220
33221         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
33222
33223 2008-09-13  Bruno Haible  <bruno@clisp.org>
33224
33225         Extend strerror to cover the added errno values.
33226         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
33227         (rpl_strerror): Provide error messages for the added errno values and
33228         for the WSA* values.
33229         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
33230         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
33231         strerror.
33232         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
33233         * modules/strerror (Depends-on): Add errno.
33234         * doc/posix-functions/strerror.texi: Document the change.
33235         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
33236         and EOVERFLOW.
33237
33238 2008-09-13  Bruno Haible  <bruno@clisp.org>
33239
33240         * modules/EOVERFLOW: Remove file.
33241         * m4/eoverflow.m4: Remove file.
33242         * modules/EOVERFLOW-tests: Remove file.
33243         * tests/test-EOVERFLOW.c: Remove file.
33244         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
33245         * modules/ftell (Depends-on): Likewise.
33246         * modules/getdelim (Depends-on): Likewise.
33247         * modules/getugroups (Depends-on): Likewise.
33248         * modules/poll (Depends-on): Likewise.
33249         * modules/snprintf (Depends-on): Likewise.
33250         * modules/sprintf-posix (Depends-on): Likewise.
33251         * modules/vasnprintf (Depends-on): Likewise.
33252         * modules/vasprintf (Depends-on): Likewise.
33253         * modules/vfprintf-posix (Depends-on): Likewise.
33254         * modules/vsnprintf (Depends-on): Likewise.
33255         * modules/vsprintf-posix (Depends-on): Likewise.
33256         * modules/xvasprintf (Depends-on): Likewise.
33257         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33258         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
33259         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
33260         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
33261         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33262         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
33263         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
33264         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
33265         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33266         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
33267         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
33268         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
33269         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33270         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
33271         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
33272         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
33273         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33274         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
33275         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
33276         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
33277         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33278         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
33279         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
33280         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
33281         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
33282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33283         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
33284         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
33285         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
33286         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
33287         * MODULES.html.sh: Remove EOVERFLOW.
33288         * NEWS: Mention the change.
33289
33290 2008-09-13  Bruno Haible  <bruno@clisp.org>
33291
33292         * modules/errno-tests: New file.
33293         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
33294
33295         * lib/errno.in.h: New file.
33296         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
33297         * modules/errno: New file.
33298         * doc/posix-headers/errno.texi: Update documentation.
33299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
33300
33301 2008-09-13  Bruno Haible  <bruno@clisp.org>
33302
33303         * tests/test-poll.c: Use #if for native Windows, rather than testing
33304         __MSVCRT__.
33305
33306 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33307             Bruno Haible  <bruno@clisp.org>
33308
33309         * lib/glob.c: Don't include <pwd.h> on native Windows.
33310         (WINDOWS32): New macro.
33311         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
33312
33313 2008-09-13  Bruno Haible  <bruno@clisp.org>
33314
33315         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
33316         (ETIMEDOUT): Remove macro.
33317         (glthread_cond_timedwait_multithreaded): New declaration.
33318         (glthread_cond_timedwait): Use it.
33319         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
33320         (glthread_cond_timedwait_multithreaded): New function.
33321
33322 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33323
33324         * modules/poll-tests: Do not check for io.h.
33325         * tests/test-poll.c: Check for __MSVCRT__ instead.
33326
33327 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33328
33329         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
33330         * modules/poll-tests: Add inet_pton, stdbool, sockets.
33331         * tests/test-poll.c: Use them.  Use _pipe on Windows.
33332
33333 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33334
33335         * modules/poll-tests: New.
33336         * tests/test-poll.c: New.
33337
33338 2008-09-12  Eric Blake  <ebb9@byu.net>
33339
33340         frexp: test for NetBSD failure on -0.0
33341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
33342         not all, bugs from NetBSD 3.0 have been fixed.
33343         * doc/posix-functions/frexp.texi (frexp): Document bug.
33344         Reported by Thomas Klausner.
33345
33346         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
33347         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
33348         literal -0.0.
33349         Reported by Jonathan C. Patschke <jp@centtech.com>.
33350
33351 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33352
33353         * lib/glthread/cond.h: Use dummy implementation also if
33354         USE_WIN32_THREADS.
33355
33356 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33357
33358         * modules/fnmatch-posix (License): Change to LGPLv2+.
33359         * modules/fnmatch-gnu (License): Likewise.
33360
33361 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33362
33363         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
33364
33365 2008-09-11  Jim Meyering  <meyering@redhat.com>
33366
33367         * users.txt: Add gtk-vnc.
33368
33369 2008-09-08  Simon Josefsson  <simon@josefsson.org>
33370
33371         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
33372         rotate amounts.
33373
33374         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
33375         required for 16-bit and 8-bit rotates.
33376         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
33377         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
33378         UINT8_MAX instead of hard-coded constants.
33379         Suggested by Paul Eggert.
33380
33381 2008-09-07  Bruno Haible  <bruno@clisp.org>
33382
33383         * tests/test-striconveh.c (main): Check behaviour when converting from
33384         UTF-7.
33385
33386         Make striconveh work better with stateful encodings.
33387         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
33388         that iconv does not increment the inptr when returning -1/EINVAL.
33389
33390 2008-09-07  Bruno Haible  <bruno@clisp.org>
33391
33392         * build-aux/config.rpath: Update according to libtool-2.2.6.
33393         * build-aux/config.libpath: Likewise.
33394
33395 2008-09-06  Bruno Haible  <bruno@clisp.org>
33396
33397         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
33398         * lib/freadptr.c (freadptr): Likewise.
33399         * lib/freadseek.c (freadptrinc): Likewise.
33400         Reported by Simon Josefsson.
33401
33402 2008-09-06  Bruno Haible  <bruno@clisp.org>
33403
33404         * modules/freadptr (License): Change to LGPLv2+.
33405         * modules/freadseek (License): Likewise.
33406         Suggested by Eric Blake.
33407
33408         * modules/memchr2 (License): Change to LGPLv2+.
33409         Approved by Eric Blake.
33410
33411 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33412             Bruno Haible  <bruno@clisp.org>
33413
33414         Make gnulib-tool work with native 'sed' on AIX.
33415         * gnulib-tool (sed_noop): New variable.
33416         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
33417         func_add_or_update, func_create_testdir): Use it to initialize sed
33418         script variables.
33419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33420
33421 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
33422             Bruno Haible  <bruno@clisp.org>
33423
33424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
33425         also works after #include directives.
33426
33427 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
33428
33429         getdate.y: reject an out-of-range timezone value
33430         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
33431         the range [-24...+24].  When specified with only one or two digits,
33432         * tests/test-getdate.c: Tests for the fix.
33433         * doc/getdate.texi: Document this change.
33434
33435 2008-09-03  Bruno Haible  <bruno@clisp.org>
33436
33437         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
33438
33439 2008-09-02  Simon Josefsson  <simon@josefsson.org>
33440
33441         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
33442         <bruce.korb@gmail.com> with ideas from Ben Pfaff
33443         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
33444         Blake <ebb9@byu.net>.
33445
33446         * tests/test-bitrotate.c: Add more test vectors.
33447
33448 2008-09-02  Eric Blake  <ebb9@byu.net>
33449
33450         vasnprintf-posix: handle large precision via %.*d
33451         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
33452         when handling it ourselves.
33453         * tests/test-vasnprintf-posix.c (test_function): Add test.
33454         * tests/test-snprintf-posix.h (test_function): Likewise.
33455         * tests/test-sprintf-posix.h (test_function): Likewise.
33456         * tests/test-vasprintf-posix.c (test_function): Likewise.
33457         Reported by Alain Guibert.
33458
33459 2008-09-01  Eric Blake  <ebb9@byu.net>
33460
33461         c-stack: make configure-time check more robust
33462         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
33463         successful sigaction call.
33464         Reported by Tom G. Christensen.
33465
33466 2008-09-01  Bruno Haible  <bruno@clisp.org>
33467
33468         New module 'findprog-lgpl'.
33469         * modules/findprog-lgpl: New file.
33470         * lib/findprog-lgpl.c: New file.
33471         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
33472         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
33473         to decide whether to use strdup or xstrdup, concatenated_filename or
33474         xconcatenated_filename.
33475
33476 2008-09-01  Bruno Haible  <bruno@clisp.org>
33477
33478         Split module 'concat-filename' into 'concat-filename' (LGPL) and
33479         'xconcat-filename' (GPL).
33480         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
33481         (License): Change to LGPLv2+.
33482         * modules/xconcat-filename: New file.
33483         * lib/concat-filename.h (concatenated_filename): Change specification.
33484         (xconcatenated_filename): New declaration.
33485         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
33486         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
33487         memory situations.
33488         * lib/xconcat-filename.c: New file.
33489         * NEWS: Mention the change.
33490         * lib/findprog.c: Include concat-filename.h, not filename.h.
33491         (find_in_path): Use xconcatenated_filename instead of
33492         concatenated_filename.
33493         * lib/javacomp.c: Include concat-filename.h, not filename.h.
33494         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
33495         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
33496         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
33497         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
33498         instead of concatenated_filename.
33499         * lib/javaexec.c: Include concat-filename.h, not filename.h.
33500         (execute_java_class): Use xconcatenated_filename instead of
33501         concatenated_filename.
33502         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
33503         * modules/javacomp (Depends-on): Likewise.
33504         * modules/javaexec (Depends-on): Likewise.
33505
33506 2008-09-01  Bruno Haible  <bruno@clisp.org>
33507
33508         Split module 'filename' into 'filename' and 'concat-filename'.
33509         * modules/filename: Keep only lib/filename.h.
33510         (License): Change to LGPLv2+.
33511         * modules/concat-filename: New file, extracted from modules/filename.
33512         * lib/filename.h (concatenated_filename): Remove declaration.
33513         * lib/concat-filename.h: New file, extracted from lib/filename.h.
33514         * lib/concat-filename.c: Include concat-filename.h.
33515         * NEWS: Mention the change.
33516
33517 2008-09-01  Simon Josefsson  <simon@josefsson.org>
33518
33519         * lib/bitrotate.h (rotl8, rotr8): Add.
33520
33521         * modules/bitrotate (configure.ac): Need
33522         AC_REQUIRE([AC_C_INLINE]).
33523         (Description): Mention stdint.h.  Reported by Bruno Haible
33524         <bruno@clisp.org>.
33525
33526         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
33527         Paolo Bonzini <bonzini@gnu.org>.
33528
33529 2008-08-31  Bruno Haible  <bruno@clisp.org>
33530
33531         Assume Solaris specific bi-arch conventions on Solaris systems.
33532         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
33533         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
33534         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
33535         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
33536         like acl_libdirstem.
33537         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
33538         acl_libdirstem.
33539         * NEWS: Mention the change.
33540         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
33541
33542 2008-08-31  Jim Meyering  <meyering@redhat.com>
33543
33544         * lib/strftime.h: Add comments describing the two added arguments.
33545
33546         remove duplicate #include directives
33547         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
33548         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
33549
33550 2008-08-31  Bruno Haible  <bruno@clisp.org>
33551
33552         New module 'sigpipe-die'.
33553         * modules/sigpipe-die: New file.
33554         * lib/sigpipe-die.h: New file.
33555         * lib/sigpipe-die.c: New file.
33556         * MODULES.html.sh (Signal handling): Add sigpipe-die.
33557
33558 2008-08-31  Bruno Haible  <bruno@clisp.org>
33559
33560         Don't override previously installed signal handlers.
33561         * lib/fatal-signal.c (saved_sigactions): New variable.
33562         (uninstall_handlers): Reset the signal to the saved handler, not
33563         to SIG_DFL (except when ignored).
33564         (install_handlers): Save the previous handlers.
33565
33566 2008-08-30  Bruno Haible  <bruno@clisp.org>
33567
33568         * gnulib-tool (func_reset_sigpipe): New function.
33569         (func_get_automake_snippet, func_modules_transitive_closure,
33570         func_import): Invoke it before a join command that reads from stdin,
33571         to avoid "echo: write error: Broken pipe" error messages on stderr.
33572         Reported by Sam Steingold <sds@gnu.org>.
33573
33574 2008-08-30  Bruno Haible  <bruno@clisp.org>
33575
33576         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
33577         Code copied from m4/open.m4.
33578         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
33579         access and the filename ends in a slash. Code copied from lib/open.c.
33580         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
33581         * tests/test-fopen.c (main): Check against bug with trailing slash.
33582
33583 2008-08-29  Bruno Haible  <bruno@clisp.org>
33584
33585         Avoid some "gcc -pedantic" warnings.
33586         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
33587         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
33588         * lib/dirent.in.h: Likewise.
33589         * lib/fcntl.in.h: Likewise.
33590         * lib/float.in.h: Likewise.
33591         * lib/iconv.in.h: Likewise.
33592         * lib/inttypes.in.h: Likewise.
33593         * lib/locale.in.h: Likewise.
33594         * lib/math.in.h: Likewise.
33595         * lib/netinet_in.in.h: Likewise.
33596         * lib/search.in.h: Likewise.
33597         * lib/signal.in.h: Likewise.
33598         * lib/stdarg.in.h: Likewise.
33599         * lib/stdint.in.h: Likewise.
33600         * lib/stdio.in.h: Likewise.
33601         * lib/stdlib.in.h: Likewise.
33602         * lib/string.in.h: Likewise.
33603         * lib/strings.in.h: Likewise.
33604         * lib/sys_select.in.h: Likewise.
33605         * lib/sys_socket.in.h: Likewise.
33606         * lib/sys_stat.in.h: Likewise.
33607         * lib/sys_time.in.h: Likewise.
33608         * lib/sysexits.in.h: Likewise.
33609         * lib/time.in.h: Likewise.
33610         * lib/unistd.in.h: Likewise.
33611         * lib/wchar.in.h: Likewise.
33612         * lib/wctype.in.h: Likewise.
33613         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
33614         * modules/fchdir (Makefile.am): Likewise.
33615         * modules/fcntl (Makefile.am): Likewise.
33616         * modules/float (Makefile.am): Likewise.
33617         * modules/iconv_open (Makefile.am): Likewise.
33618         * modules/inttypes (Makefile.am): Likewise.
33619         * modules/locale (Makefile.am): Likewise.
33620         * modules/math (Makefile.am): Likewise.
33621         * modules/netinet_in (Makefile.am): Likewise.
33622         * modules/search (Makefile.am): Likewise.
33623         * modules/signal (Makefile.am): Likewise.
33624         * modules/stdarg (Makefile.am): Likewise.
33625         * modules/stdint (Makefile.am): Likewise.
33626         * modules/stdio (Makefile.am): Likewise.
33627         * modules/stdlib (Makefile.am): Likewise.
33628         * modules/string (Makefile.am): Likewise.
33629         * modules/strings (Makefile.am): Likewise.
33630         * modules/sys_select (Makefile.am): Likewise.
33631         * modules/sys_socket (Makefile.am): Likewise.
33632         * modules/sys_stat (Makefile.am): Likewise.
33633         * modules/sys_time (Makefile.am): Likewise.
33634         * modules/sysexits (Makefile.am): Likewise.
33635         * modules/time (Makefile.am): Likewise.
33636         * modules/unistd (Makefile.am): Likewise.
33637         * modules/wchar (Makefile.am): Likewise.
33638         * modules/wctype (Makefile.am): Likewise.
33639         Reported by Reuben Thomas <rrt@sc3d.org>.
33640
33641 2008-08-29  Bruno Haible  <bruno@clisp.org>
33642
33643         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
33644         any more.
33645
33646 2008-08-29  Simon Josefsson  <simon@josefsson.org>
33647
33648         * MODULES.html.sh (Misc): Add bitrotate.
33649
33650         * modules/bitrotate: New file.
33651
33652         * lib/bitrotate.h: New file.
33653
33654         * modules/bitrotate-tests: New file.
33655
33656         * tests/test-bitrotate.c: New file.
33657
33658         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
33659         on the bitrotate module.
33660
33661         * lib/arctwo.c: Use new bitrotate module.
33662
33663 2008-08-29  Jim Meyering  <meyering@redhat.com>
33664
33665         bootstrap: merge changes from coreutils
33666         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
33667         of copied files.  Remove a kludge, now that this is fixed.
33668         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
33669         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
33670         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
33671
33672 2008-08-29  Bruno Haible  <bruno@clisp.org>
33673
33674         * MODULES.html.sh: Remove --cvs-urls option.
33675
33676 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
33677
33678         maint.mk: adjust to file name change
33679         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
33680
33681 2008-08-28  Jim Meyering  <meyering@redhat.com>
33682
33683         * modules/getndelim2 (License): Relicense to LGPLv2+.
33684         Approved by Richard Stallman for the version of 1995, and by
33685         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
33686
33687 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
33688
33689         * lib/getdelim.c (flockfile, funlockfile): Make all of them
33690         dummy if one is not available.  Do not touch them if
33691         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
33692         (getc_maybe_unlocked): New.
33693         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
33694
33695 2008-08-26  Eric Blake  <ebb9@byu.net>
33696
33697         doc/INSTALL: resync from autoconf
33698         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
33699         (INSTALL_PRELUDE): Delete; this is done more efficiently by
33700         moving...
33701         * install.texi [!autoconf]: ...here.  Resync from autoconf.
33702         * INSTALL: Regenerate.
33703         * INSTALL.ISO: New file.
33704         * INSTALL.UTF-8: Likewise.
33705
33706 2008-08-26  Jim Meyering  <meyering@redhat.com>
33707
33708         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
33709         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
33710         these definitions conditional, so that they may be overridden, too.
33711
33712 2008-08-26  Bruno Haible  <bruno@clisp.org>
33713
33714         Generate INSTALL file variants with prettier quotes.
33715         * doc/Makefile (INSTALL_PRELUDE): New macro.
33716         (INSTALL): Use it.
33717         (INSTALL.ISO, INSTALL.UTF-8): New rules.
33718
33719 2008-08-26  Bruno Haible  <bruno@clisp.org>
33720
33721         Run makeinfo in an English locale.
33722         * doc/Makefile (MAKEINFO): New variable.
33723
33724 2008-08-26  Bruno Haible  <bruno@clisp.org>
33725
33726         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
33727         Suggested by Eric Blake.
33728
33729 2008-08-25  Bruno Haible  <bruno@clisp.org>
33730
33731         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
33732
33733 2008-08-25  Eric Blake  <ebb9@byu.net>
33734
33735         c-stack: test that stack overflow can be caught
33736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
33737         that platform allows handling stack overflow; at least OS/2 EMX
33738         has sigaltstack, but crashes before transferring control to
33739         handler on stack overflow.
33740         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
33741         check for HAVE_STACK_OVERFLOW_HANDLING.
33742         Reported by Elbert Pol.
33743
33744 2008-08-25  Bruno Haible  <bruno@clisp.org>
33745
33746         * doc/posix-functions/strftime.texi: Fix description of strftime
33747         module.
33748
33749 2008-08-24  Bruno Haible  <bruno@clisp.org>
33750
33751         * tests/uniwidth/test-uc_width2.c: New file.
33752         * tests/uniwidth/test-uc_width2.sh: New file.
33753         * modules/uniwidth/width-tests (Files): Add the new files.
33754         (TESTS): Add uniwidth/test-uc_width2.sh.
33755         (TESTS_ENVIRONMENT): New variable.
33756         (check_PROGRAMS): Add test-uc_width2.
33757         (test_uc_width2_SOURCES): New variable.
33758
33759         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
33760         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
33761         not 0x00AB.
33762         Reported by Alexander V. Lukyanov <lav@netis.ru>.
33763
33764 2008-08-22  Eric Blake  <ebb9@byu.net>
33765
33766         test-lock, test-tls: mention why a test is skipped
33767         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
33768         skipped.
33769         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
33770
33771         count-one-bits: relax license
33772         * modules/count-one-bits (License): Relicense to LGPLv2+.
33773         Suggested by Ludovic Courtès, approved by Ben Pfaff.
33774
33775 2008-08-22  Andreas Schwab  <schwab@suse.de>
33776
33777         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33778         Remove spurious space in assignment.
33779
33780 2008-08-21  Simon Josefsson  <simon@josefsson.org>
33781
33782         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
33783         Paul Eggert <eggert@CS.UCLA.EDU>.
33784
33785 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
33786
33787         * modules/gettext: Add m4/threadlib.m4.
33788
33789 2008-08-19  Eric Blake  <ebb9@byu.net>
33790
33791         test-c-stack: fix compilation failure on FreeBSD 5.0
33792         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
33793         headers before <sys/resource.h>.
33794         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
33795         the bug.
33796         Reported by Nelson H. F. Beebe.
33797
33798         strverscmp: migrate from "strverscmp.h" to <string.h>
33799         * modules/string (Makefile.am): Add new hooks.
33800         * modules/strverscmp (Files): Remove strverscmp.h.
33801         (Depends-on): Add string.
33802         (configure.ac): Add indicator.
33803         (Include): Mention new header.
33804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
33805         defaults.
33806         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
33807         results.
33808         * lib/strverscmp.h: Delete.
33809         * lib/string.in.h (strverscmp): Provide declaration, when needed.
33810         * tests/test-strverscmp.c (includes): Adjust client.
33811         * lib/check-version.c (includes): Likewise.
33812         * NEWS: Document the change.
33813
33814         strverscmp: add unit test
33815         * modules/strverscmp-tests: New file.
33816         * tests/test-strverscmp.c: Likewise.
33817
33818 2008-08-19  Simon Josefsson  <simon@josefsson.org>
33819
33820         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
33821         regarding Windows crypto stuff, from Mono.
33822
33823 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
33824
33825         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
33826         if present, for intel RND.  Return error on failures.
33827
33828 2008-08-18  Ben Pfaff  <blp@gnu.org>
33829
33830         gitlog-to-changelog: give better diagnostic for failed pipe-open
33831         * build-aux/gitlog-to-changelog: Improve error message: suggest
33832         that the version of Git may be too old.
33833
33834 2008-08-18  Simon Josefsson  <simon@josefsson.org>
33835
33836         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
33837         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
33838
33839 2008-08-18  Bruno Haible  <bruno@clisp.org>
33840
33841         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
33842         pthread_in_use().
33843
33844 2008-08-18  Bruno Haible  <bruno@clisp.org>
33845
33846         * lib/glthread/threadlib.c: Include <pthread.h>.
33847
33848 2008-08-18  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
33851         glthread_recursive_lock_* macros.
33852         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
33853         Fix syntax error.
33854
33855 2008-08-18  Bruno Haible  <bruno@clisp.org>
33856
33857         * lib/glthread/thread.c: Avoid forcing a context switch right after
33858         thread creation.
33859
33860 2008-08-17  Bruno Haible  <bruno@clisp.org>
33861
33862         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
33863         * lib/glthread/thread.h: Provide Win32 specific implementation.
33864         * modules/thread (Files): Add lib/glthread/thread.c.
33865         (Depends-on): Add lock.
33866         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
33867
33868 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33869
33870         New module 'yield'.
33871         * modules/yield: New file.
33872         * lib/glthread/yield.h: New file.
33873         * m4/yield.m4: New file.
33874         * MODULES.html.sh (Multithreading): Add yield.
33875
33876 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33877
33878         New module 'thread'.
33879         * modules/thread: New file.
33880         * lib/glthread/thread.h: New file.
33881         * m4/thread.m4: New file.
33882         * MODULES.html.sh (Multithreading): Add thread.
33883
33884 2008-08-17  Bruno Haible  <bruno@clisp.org>
33885
33886         * lib/glthread/lock.h: Include <stdlib.h> always.
33887         * lib/glthread/tls.h: Likewise.
33888         * lib/glthread/cond.h: Likewise.
33889
33890 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33891
33892         New module 'cond'.
33893         * modules/cond: New file.
33894         * lib/glthread/cond.h: New file.
33895         * lib/glthread/cond.c: New file.
33896         * m4/cond.m4: New file.
33897         * MODULES.html.sh (Multithreading): Add cond.
33898
33899 2008-08-16  Eric Blake  <ebb9@byu.net>
33900
33901         c-stack: fix regression on Irix 5.3 from 2008-06-21
33902         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
33903         sa_sigaction...
33904         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
33905         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
33906         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
33907         * modules/signal (Makefile.am): Use the value.
33908         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
33909         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
33910         * doc/posix-headers/signal.texi (signal.h): Document this
33911         portability issue.
33912         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
33913         Reported by Tom G. Christensen.
33914
33915 2008-08-17  Bruno Haible  <bruno@clisp.org>
33916
33917         New module 'threadlib'.
33918         * modules/threadlib: New file.
33919         * lib/glthread/threadlib.c: New file, extracted from
33920         lib/glthread/lock.c.
33921         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
33922         functions.
33923         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
33924         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
33925         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
33926         macros.
33927         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
33928         (gl_DISABLE_THREADS): Remove macro.
33929         * modules/lock (Files): Remove build-aux/config.rpath.
33930         (Depends-on): Remove havelib. Add threadlib.
33931         (configure.ac-early): Remove section.
33932         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
33933         * modules/tls (Depends-on): Remove lock. Add threadlib.
33934         (Link): New section, copied from threadlib.
33935         * MODULES.html.sh (Multithreading): Add threadlib.
33936
33937 2008-08-14  Bruno Haible  <bruno@clisp.org>
33938
33939         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
33940         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
33941         glthread_rwlock_unlock, glthread_rwlock_destroy,
33942         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
33943         glthread_recursive_lock_destroy): Define as macros always.
33944         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
33945         glthread_lock_lock.
33946         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
33947         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
33948         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
33949         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
33950         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
33951         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
33952         (glthread_recursive_lock_lock_func): Renamed from
33953         glthread_recursive_lock_lock.
33954         (glthread_recursive_lock_unlock_func): Renamed from
33955         glthread_recursive_lock_unlock.
33956         (glthread_recursive_lock_destroy_func): Renamed from
33957         glthread_recursive_lock_destroy.
33958
33959 2008-08-14  Bruno Haible  <bruno@clisp.org>
33960
33961         * lib/glthread/lock.h: Renamed from lib/lock.h.
33962         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
33963         * lib/glthread/tls.h: Renamed from lib/tls.h.
33964         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
33965         * lib/fstrcmp.c: Update includes.
33966         * lib/strsignal.c: Update includes.
33967         * modules/lock (Files, Makefile.am): Update.
33968         (Include): Change to "glthread/lock.h".
33969         * modules/tls (Files, Makefile.am): Update.
33970         (Include): Change to "glthread/tls.h".
33971         * tests/test-lock.c: Update includes.
33972         * tests/test-tls.c: Update includes.
33973         * NEWS: Mention the renamed header files.
33974
33975 2008-08-11  Jim Meyering  <meyering@redhat.com>
33976
33977         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
33978
33979 2008-08-11  Eric Blake  <ebb9@byu.net>
33980
33981         test-c-stack: avoid C99-ism
33982         * tests/test-c-stack.c (main): Fix whitespace, move declaration
33983         before statement.
33984         Reported by Alain Guibert.
33985
33986 2008-08-10  Jim Meyering  <meyering@redhat.com>
33987
33988         ensure that return value of uinttostr et al are not ignored
33989         * lib/inttostr.h (__GNUC_PREREQ): Define.
33990         (__attribute_warn_unused_result__): Define.
33991         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
33992
33993 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
33994
33995         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
33996         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
33997
33998 2008-08-07  Jim Meyering  <meyering@redhat.com>
33999
34000         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
34001
34002         * modules/mkstemp (License): Relicense under LGPLv2+.
34003         * modules/tempname (License): Likewise.
34004
34005 2008-08-06  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/poll.c (poll): Further micro-optimization.
34008
34009 2008-08-06  Jim Meyering  <meyering@redhat.com>
34010
34011         inet_pton.c: use locale-independent tolower
34012         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
34013         (inet_pton6): Use c_tolower rather than tolower.
34014         * modules/inet_pton (Depends-on): Add c-ctype.
34015
34016 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
34017
34018         * lib/poll.c (poll): Avoid division when timeout is 0, cache
34019         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
34020
34021 2008-08-06  Jim Meyering  <meyering@redhat.com>
34022
34023         * modules/inet_pton (License): Relicense under LGPLv2+.
34024
34025 2008-08-03  Bruno Haible  <bruno@clisp.org>
34026
34027         Additional non-aborting API for lock and tls.
34028         * lib/lock.h: Include <errno.h>.
34029         (glthread_lock_init): New macro/function.
34030         (gl_lock_init): Define as wrapper around glthread_lock_init.
34031         (glthread_lock_lock): New macro/function.
34032         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
34033         (glthread_lock_unlock): New macro/function.
34034         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
34035         (glthread_lock_destroy): New macro/function.
34036         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
34037         (glthread_rwlock_init): New macro/function.
34038         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
34039         (glthread_rwlock_rdlock): New macro/function.
34040         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
34041         (glthread_rwlock_wrlock): New macro/function.
34042         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
34043         (glthread_rwlock_unlock): New macro/function.
34044         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
34045         (glthread_rwlock_destroy): New macro/function.
34046         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
34047         (glthread_recursive_lock_init): New macro/function.
34048         (gl_recursive_lock_init): Define as wrapper around
34049         glthread_recursive_lock_init.
34050         (glthread_recursive_lock_lock): New macro/function.
34051         (gl_recursive_lock_lock): Define as wrapper around
34052         glthread_recursive_lock_lock.
34053         (glthread_recursive_lock_unlock): New macro/function.
34054         (gl_recursive_lock_unlock): Define as wrapper around
34055         glthread_recursive_lock_unlock.
34056         (glthread_recursive_lock_destroy): New macro/function.
34057         (gl_recursive_lock_destroy): Define as wrapper around
34058         glthread_recursive_lock_destroy.
34059         (glthread_once): New macro/function.
34060         (gl_once): Define as wrapper around glthread_once.
34061         Update function declarations.
34062         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
34063         glthread_rwlock_init. Return error code.
34064         (glthread_rwlock_rdlock_multithreaded): Renamed from
34065         glthread_rwlock_rdlock. Return error code.
34066         (glthread_rwlock_wrlock_multithreaded): Renamed from
34067         glthread_rwlock_wrlock. Return error code.
34068         (glthread_rwlock_unlock_multithreaded): Renamed from
34069         glthread_rwlock_unlock. Return error code.
34070         (glthread_rwlock_destroy_multithreaded): Renamed from
34071         glthread_rwlock_destroy. Return error code.
34072         (glthread_recursive_lock_init_multithreaded): Renamed from
34073         glthread_recursive_lock_init. Return error code.
34074         (glthread_recursive_lock_lock_multithreaded): Renamed from
34075         glthread_recursive_lock_lock. Return error code.
34076         (glthread_recursive_lock_unlock_multithreaded): Renamed from
34077         glthread_recursive_lock_unlock. Return error code.
34078         (glthread_recursive_lock_destroy_multithreaded): Renamed from
34079         glthread_recursive_lock_destroy. Return error code.
34080         (glthread_once_call): Make static.
34081         (glthread_once_multithreaded): Renamed from glthread_once.
34082         * lib/tls.h: Include <errno.h>.
34083         (glthread_tls_key_init): New macro/function.
34084         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
34085         (glthread_tls_set): New macro/function.
34086         (gl_tls_set): Define as wrapper around glthread_tls_set.
34087         (glthread_tls_key_destroy): New macro/function.
34088         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
34089         Update function declarations.
34090         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
34091         glthread_tls_get.
34092         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34093
34094 2008-08-04  Eric Blake  <ebb9@byu.net>
34095
34096         gnumakefile: use space, not TAB, outside of targets
34097         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
34098
34099 2008-08-02  Jim Meyering  <meyering@redhat.com>
34100
34101         getdate.y: avoid locale-dependent date parsing failure
34102         In Turkish locales, getdate would fail to recognize keywords
34103         containing a lowercase "i".  The solution is not to rely on
34104         locale-sensitive case-conversion.
34105         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
34106         (lookup_word): Use c_toupper in place of toupper.
34107         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
34108         Reported by Vefa Bicakci <bicave@superonline.com> in
34109         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
34110         * modules/getdate (Depends-on): Add c-ctype.
34111
34112 2008-08-02  Bruno Haible  <bruno@clisp.org>
34113
34114         * gnulib-tool (func_import): When updating or creating a .gitignore
34115         file, prepend each added line with a slash, and ignore leading slashes
34116         from the existing lines.
34117         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34118
34119 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34120
34121         Portability fix for GNU make 3.79.1.
34122         * top/GNUmakefile: Avoid 'else COND', which older GNU make
34123         versions do not understand.
34124
34125 2008-08-01  Bruno Haible  <bruno@clisp.org>
34126
34127         Work around bug of HP-UX 10.20 cc with -0.0 literal.
34128         * tests/test-isnanf.h (zero): New variable.
34129         (main): Avoid literal -0.0f.
34130         * tests/test-isnand.h (zero): New variable.
34131         (main): Avoid literal -0.0.
34132         * tests/test-isnanl.h (zero): New variable.
34133         (main): Avoid literal -0.0L.
34134         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
34135         (test_float, test_double, test_long_double): Avoid literals -0.0f,
34136         -0.0, -0.0L.
34137         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
34138         (test_signbitd): Avoid literal -0.0.
34139         (test_signbitl): Avoid literal -0.0L.
34140         * tests/test-ceilf1.c (zero): New variable.
34141         (main): Avoid literal -0.0f.
34142         * tests/test-ceill.c (zero): New variable.
34143         (main): Avoid literal -0.0L.
34144         * tests/test-floorf1.c (zero): New variable.
34145         (main): Avoid literal -0.0f.
34146         * tests/test-floorl.c (zero): New variable.
34147         (main): Avoid literal -0.0L.
34148         * tests/test-roundf1.c (zero): New variable.
34149         (main): Avoid literal -0.0f.
34150         * tests/test-round1.c (zero): New variable.
34151         (main): Avoid literal -0.0.
34152         * tests/test-roundl.c (zero): New variable.
34153         (main): Avoid literal -0.0L.
34154         * tests/test-truncf1.c (zero): New variable.
34155         (main): Avoid literal -0.0f.
34156         * tests/test-trunc1.c (zero): New variable.
34157         (main): Avoid literal -0.0.
34158         * tests/test-truncl.c (zero): New variable.
34159         (main): Avoid literal -0.0L.
34160         * tests/test-frexp.c (zero): New variable.
34161         (main): Avoid literal -0.0.
34162         * tests/test-frexpl.c (zero): New variable.
34163         (main): Avoid literal -0.0L.
34164         * tests/test-ldexpl.c (zero): New variable.
34165         (main): Avoid literal -0.0L.
34166         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34167         (zerod, zerol): New variables.
34168         (test_function): Avoid literals -0.0, -0.0L.
34169         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34170         (zerod, zerol): New variables.
34171         (test_function): Avoid literals -0.0, -0.0L.
34172         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34173         (zerod, zerol): New variables.
34174         (test_function): Avoid literals -0.0, -0.0L.
34175         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34176         (zerod, zerol): New variables.
34177         (test_function): Avoid literals -0.0, -0.0L.
34178         * tests/test-strtod.c (zero): New variable.
34179         (main): Avoid literal -0.0.
34180         Reported by Jonathan C. Patschke <jp@centtech.com>.
34181
34182 2008-07-31  Jim Meyering  <meyering@redhat.com>
34183
34184         sha256.h: correct definition of SHA224_DIGEST_SIZE
34185         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
34186         Reported by Paulie Pena IV <paulie4@gmail.com>.
34187         Define as 224 / 8, rather than as a literal.
34188         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
34189         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
34190         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
34191
34192 2008-07-31  Bruno Haible  <bruno@clisp.org>
34193
34194         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
34195         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
34196         Reported by Jonathan Patschke <jp@centtech.com>.
34197
34198 2008-07-31  Bruno Haible  <bruno@clisp.org>
34199
34200         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
34201         Reported by Paolo Bonzini <bonzini@gnu.org>.
34202
34203 2008-07-30  Eric Blake  <ebb9@byu.net>
34204
34205         test-strtod: allow compilation without -lm
34206         * tests/test-strtod.c (main): Avoid link dependence on fabs.
34207         Reported by Dennis Clarke <blastwave@gmail.com>.
34208
34209 2008-07-28  Jim Meyering  <meyering@redhat.com>
34210
34211         bootstrap: work also when there are no .po files in po/
34212         * build-aux/bootstrap (update_po_files): Complete the change
34213         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
34214
34215 2008-07-27  Jim Meyering  <meyering@redhat.com>
34216
34217         * users.txt: Add zile.
34218
34219 2008-07-26  Ben Pfaff  <blp@gnu.org>
34220
34221         Add missing dependencies on new m4/exponent[fdl].m4 files.
34222         * modules/isnanf-nolibm: Add m4/exponentf.m4.
34223         * modules/isnand-nolibm: Add m4/exponentd.m4.
34224         * modules/isnanl-nolibm: Add m4/exponentl.m4.
34225         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
34226         m4/isnan[fdl].m4, because the macros actually used moved.
34227         Reported by Jim Meyering.
34228
34229 2008-07-14  Ben Pfaff  <blp@gnu.org>
34230
34231         Add isinf module.
34232         * lib/isinf.c: New file.
34233         * lib/math.in.h: Define isinf macro if we have decided to replace
34234         it.
34235         * m4/isinf.m4: New file.
34236         * m4/math_h.m4: Initialize and substitute variables for isinf
34237         module.
34238         * modules/isinf: New file.
34239         * modules/isinf-tests: New file.
34240         * modules/math: Add substitutions for new module.
34241         * tests/test-isinf.c: New file.
34242         * doc/posix-functions/isinf.texi: Mention new module.
34243         * MODULES.html.sh: Mention new module.
34244
34245 2008-07-14  Ben Pfaff  <blp@gnu.org>
34246
34247         Factor out some macros for use by additional modules.
34248         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
34249         exponentf.m4.
34250         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
34251         exponentd.m4.
34252         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
34253         file exponentl.m4.
34254         * m4/exponentf.m4: New file.
34255         * m4/exponentd.m4: New file.
34256         * m4/exponentl.m4: New file.
34257         * modules/isnanf: Use new file m4/exponentf.m4.
34258         * modules/isnand: Use new file m4/exponentd.m4.
34259         * modules/isnanl: Use new file m4/exponentl.m4.
34260
34261 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
34262
34263         mktime.c: normalize tp->tm_isdst value to -1/0/1.
34264         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
34265         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
34266         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
34267
34268         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
34269         readlink on platforms without PATH_MAX.
34270
34271 2008-07-21  Eric Blake  <ebb9@byu.net>
34272
34273         Warn, not fail, on stale version.
34274         * top/GNUmakefile (_curr-ver): Tone down previous patch.
34275
34276         Don't allow installation with stale devel version number.
34277         * top/GNUmakefile (_is-install-target): New macro.
34278         (_curr-ver): Forbid installation with stale version number.
34279
34280 2008-07-20  Bruno Haible  <bruno@clisp.org>
34281
34282         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
34283         TESTS_ENVIRONMENT.
34284         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
34285
34286 2008-07-20  Bruno Haible  <bruno@clisp.org>
34287
34288         * lib/c-stack.h (c_stack_action): Add documentation.
34289         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
34290
34291 2008-07-20  Bruno Haible  <bruno@clisp.org>
34292
34293         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
34294         * modules/readlink (License): Likewise.
34295
34296 2008-07-17  Eric Blake  <ebb9@byu.net>
34297
34298         * modules/c-stack (Link): Fix typo.
34299
34300         Make c-stack use libsigsegv, when available.
34301         * modules/c-stack (Depends-on): Add libsigsegv.
34302         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
34303         needed.
34304         * lib/c-stack.c (SIGSTKSZ): Define fallback.
34305         (segv_handler, overflow_handler, c_stack_action)
34306         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
34307         implementation when libsigsegv is available, but only when using
34308         the library is necessary.
34309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
34310         comment, explaining why XSI check fails on Linux.
34311         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
34312         * tests/test-c-stack2.sh: Tweak skip message.
34313         * NEWS: Document new link-time requirements.
34314
34315 2008-07-16  Eric Blake  <ebb9@byu.net>
34316
34317         c-stack: Expose false positives when not using libsigsegv.
34318         * modules/c-stack-tests (Files): Expand test.
34319         * tests/test-c-stack.c (main): Add means to conditionally trigger
34320         non-overflow SIGSEGV.
34321         * tests/test-c-stack2.sh: New file.
34322
34323 2008-07-14  Bruno Haible  <bruno@clisp.org>
34324
34325         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
34326         Reported by Eric Blake.
34327
34328 2008-07-14  Sam Steingold  <sds@gnu.org>
34329             Bruno Haible  <bruno@clisp.org>
34330
34331         New module libsigsegv.
34332         * modules/libsigsegv: New file.
34333         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
34334         modifications.
34335         * MODULES.html.sh (Signal handling): New section.
34336
34337 2008-07-14  Bruno Haible  <bruno@clisp.org>
34338
34339         * modules/unictype/ctype-* (Description): Add the word "function".
34340         Improves the resulting doc in MODULES.html.
34341
34342 2008-07-12  Ben Pfaff  <blp@gnu.org>
34343
34344         Add longlong module.
34345         * modules/longlong: New file.
34346
34347 2008-07-12  Bruno Haible  <bruno@clisp.org>
34348
34349         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
34350         to empty.
34351
34352 2008-07-10  Ben Pfaff  <blp@gnu.org>
34353
34354         Add isnan module.
34355         * doc/posix-functions/isnan.texi: Mention new module.
34356         * lib/math.in.h: Define isnan macro if we have decided to replace
34357         it.
34358         * m4/isnan.m4: New file.
34359         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
34360         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
34361         also.
34362         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
34363         redundancy.
34364         * m4/math_h.m4: Initialize and substitute variables for isnan
34365         module.
34366         * modules/isnan: New file.
34367         * modules/isnan-tests: New file.
34368         * modules/math: Add substitutions for new module.
34369         * tests/test-isnan.c: New file.
34370         * MODULES.html.sh: Mention new module.
34371
34372 2008-07-10  Ben Pfaff  <blp@gnu.org>
34373
34374         Add isnanf module.
34375         * lib/isnanf.m4: New file.
34376         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
34377         (gl_HAVE_ISNANF_IN_LIBM): New macro.
34378         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
34379         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
34380         * modules/isnanf: New file.
34381         * modules/isnanf-tests: New file.
34382         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
34383         files.
34384         * tests/test-isnanf-nolibm.c: factored most of its contents into
34385         new file tests/test-isnanf.h.
34386         * tests/test-isnanf.h: New file.
34387         * tests/test-isnanf.c: New file.
34388         * MODULES.html.sh: Mention new module.
34389         * doc/glibc-functions/isnanf.texi: Mention new module.
34390
34391 2008-07-10  Ben Pfaff  <blp@gnu.org>
34392
34393         Add isnand module.
34394         * lib/isnand.h: New file.
34395         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
34396         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
34397         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
34398         functionality also.
34399         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
34400         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
34401         (gl_HAVE_ISNAND_IN_LIBM): New macro.
34402         * modules/isnand: New file.
34403         * modules/isnand-tests: New file.
34404         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
34405         files.
34406         * tests/test-isnand-nolibm.c: factored most of its contents into
34407         new file tests/test-isnand.h.
34408         * tests/test-isnand.h: New file.
34409         * tests/test-isnand.c: New file.
34410         * MODULES.html.sh: Mention new module.
34411
34412 2008-07-10  Ben Pfaff  <blp@gnu.org>
34413
34414         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
34415         * lib/isnand.h: Rename lib/isnand-nolibm.h.
34416         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
34417         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
34418         * modules/isnanf-nolibm: Update references to renamed files.
34419         * modules/isnand-nolibm: Likewise.
34420         * modules/isnanf-nolibm-tests: Likewise.
34421         * modules/isnand-nolibm-tests: Likewise.
34422         * lib/frexp.c: Likewise.
34423         * lib/isfinite.c: Likewise.
34424         * lib/signbitd.c: Likewise.
34425         * lib/signbitf.c: Likewise.
34426         * lib/vasnprintf.c: Likewise.
34427         * tests/test-ceilf1.c: Likewise.
34428         * tests/test-ceilf2.c: Likewise.
34429         * tests/test-floorf1.c: Likewise.
34430         * tests/test-floorf2.c: Likewise.
34431         * tests/test-frexp.c: Likewise.
34432         * tests/test-round1.c: Likewise.
34433         * tests/test-round2.c: Likewise.
34434         * tests/test-roundf1.c: Likewise.
34435         * tests/test-strtod.c: Likewise.
34436         * tests/test-trunc1.c: Likewise.
34437         * tests/test-trunc2.c: Likewise.
34438         * tests/test-truncf1.c: Likewise.
34439         * tests/test-truncf2.c: Likewise.
34440         * NEWS: Mention the renamed header files.
34441
34442 2008-07-11  Jim Meyering  <meyering@redhat.com>
34443
34444         vc-list-files: make the last-resort awk code more portable
34445         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
34446         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
34447         does not support it.
34448
34449 2008-07-10  Eric Blake  <ebb9@byu.net>
34450
34451         Work with tar's bootstrap.
34452         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
34453         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
34454         an m4 comment.
34455
34456 2008-07-09  Jim Meyering  <meyering@redhat.com>
34457
34458         posix-shell.m4: fix typo that made this test malfunction
34459         * m4/posix-shell.m4: Remove capitalization in variable name.
34460
34461 2008-07-08  Bruno Haible  <bruno@clisp.org>
34462
34463         * m4/onceonly.m4: Update comments.
34464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34465
34466 2008-07-04  Jim Meyering  <meyering@redhat.com>
34467
34468         * users.txt: Add vc-dwim.
34469         (bison, coreutils): Use the gitweb URL.
34470
34471 2008-07-03  Jim Meyering  <meyering@redhat.com>
34472
34473         * users.txt: Add libffcall.  From Sam Steingold.
34474
34475 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
34476
34477         getdate.y: do not ignore TZ with relative day, month or year offset
34478         * lib/getdate.y (get_date): Move the tz-handling block to follow the
34479         relative-date-handling, since otherwise, the latter would clobber the
34480         sole output (an updated Start value) of the tz-handling block.
34481         * tests/test-getdate.c: Tests for the fix
34482
34483 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34484
34485         Recognize 'foo_LIBRARIES += libgnu.a'.
34486         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
34487         makefile snippet has already specified an installation location,
34488         also using '+='.
34489
34490 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
34491
34492         getdate.y: factor out common actions
34493         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
34494         Use them in place of open-coded actions.
34495
34496 2008-07-01  Simon Josefsson  <simon@josefsson.org>
34497
34498         Add self-test for getdate module.
34499         * modules/getdate-tests: New file.
34500         * tests/test-getdate.c: New file.
34501
34502 2008-06-29  Bruno Haible  <bruno@clisp.org>
34503
34504         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
34505         .gitignore.
34506         Reported by Sylvain Beucler <beuc@beuc.net>.
34507
34508 2008-06-29  Bruno Haible  <bruno@clisp.org>
34509
34510         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
34511         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
34512
34513 2008-06-29  Bruno Haible  <bruno@clisp.org>
34514
34515         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
34516         EXTRA_DIST.
34517         Reported by Sylvain Beucler <beuc@beuc.net>.
34518
34519 2008-06-26  Jim Meyering  <meyering@redhat.com>
34520
34521         make several modules depend on the "open" module
34522         This provides slightly increased consistency when opening-for-write
34523         the name of a non-directory spelled with a trailing slash.
34524         * modules/chdir-safer: Likewise.
34525         * modules/chown: Likewise.
34526         * modules/clean-temp: Likewise.
34527         * modules/copy-file: Likewise.
34528         * modules/fchdir: Likewise.
34529         * modules/fcntl-safer: Likewise.
34530         * modules/pipe: Likewise.
34531         * modules/utime: Likewise.
34532         Prompted by Eric Blake and Bruno Haible.
34533
34534 2008-06-24  Andreas Schwab  <schwab@suse.de>
34535
34536         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
34537         literals can be used as initializers for global variables.
34538
34539 2008-06-23  Eric Blake  <ebb9@byu.net>
34540
34541         Make gnulib-cache.m4 easier to diff.
34542         * gnulib-tool (func_import): Allow newlines when reading cached
34543         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
34544
34545 2008-06-23  Bruno Haible  <bruno@clisp.org>
34546
34547         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
34548         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
34549         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
34550         m4/signalblocking.m4.
34551         (gl_PREREQ_SIGACTION): Don't invoke it.
34552         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
34553         gl_PREREQ_SIG_HANDLER_H.
34554         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34555         Don't check for sigaction here.
34556
34557 2008-06-23  Bruno Haible  <bruno@clisp.org>
34558
34559         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
34560         (install_handlers): Don't set the SA_RESETHAND flag.
34561
34562 2008-06-23  Bruno Haible  <bruno@clisp.org>
34563
34564         * m4/sigaction.m4: Comment fixes.
34565         * lib/signal.in.h: Likewise.
34566
34567 2008-06-23  Eric Blake  <ebb9@byu.net>
34568
34569         Fix typo.
34570         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
34571
34572         Avoid SA_ namespace.
34573         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
34574         Reported by Ralf Wildenhues.
34575
34576         Avoid test failure due to SA_RESTORER.
34577         * tests/test-sigaction.c (SA_MASK): New macro.
34578         (main): Avoid failing due to extension flags being set.
34579         Reported by Jim Meyering.
34580
34581         Revert use of sig-handler.h in sigprocmask.c.
34582         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
34583         it requires the existence of struct sigaction.
34584         * lib/sigprocmask.c (handler_t): Restore typedef.
34585         (rpl_signal, old_handlers): Use local type.
34586
34587 2008-06-22  Bruno Haible  <bruno@clisp.org>
34588
34589         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
34590         conditionally.
34591         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34592
34593 2008-06-22  Bruno Haible  <bruno@clisp.org>
34594
34595         * doc/posix-functions/siginterrupt.texi: Move note.
34596
34597         * lib/signal.in.h (SA_RESTART): New macro.
34598         * lib/sigaction.c: Update comment.
34599
34600         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
34601
34602         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
34603         (gl_PREREQ_SIGPROCMASK): Invoke it.
34604         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
34605
34606         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
34607
34608         * lib/sigprocmask.c: Update a comment.
34609
34610 2008-06-21  Eric Blake  <ebb9@byu.net>
34611
34612         Use sigaction module rather than signal().
34613         * modules/c-stack (Depends-on): Add sigaction.
34614         * modules/fatal-signal (Depends-on): Likewise.
34615         * modules/nanosleep (Depends-on): Likewise.
34616         * modules/sigprocmask (Files): Add sig-handler.h.
34617         * modules/sigaction (Files): Likewise.
34618         * lib/sig-handler.h (get_handler): New file, suggested by Paul
34619         Eggert.
34620         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
34621         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
34622         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34623         (init_fatal_signals): Likewise.
34624         * lib/nanosleep.c (rpl_nanosleep): Likewise.
34625         (siginterrupt): Delete fallback.
34626         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
34627         instead.
34628         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
34629         siginterrupt.
34630
34631         New module sigaction, for mingw.
34632         * modules/sigaction: New module...
34633         * modules/sigaction-tests: ...and its test.
34634         * m4/sigaction.m4: New file.
34635         * lib/sigaction.c: Likewise.
34636         * tests/test-sigaction.c: Likewise.
34637         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
34638         * modules/signal (Makefile.am): Likewise.
34639         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
34640         needed.
34641         * doc/posix-headers/signal.texi (signal.h): Mention provided
34642         types.
34643         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
34644         that sigaction is preferable.
34645         * doc/posix-functions/sigaction.texi (sigaction): Mention new
34646         module.
34647         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34648         sigaction.
34649
34650         Improve robustness of sigprocmask by overriding signal.
34651         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
34652         is in use.
34653         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
34654         (SIGKILL, SIGSTOP): Provide fallbacks.
34655         (rpl_signal): Implement.
34656         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
34657         signal can be called inside handlers.
34658
34659         Fix nanosleep module on mingw.
34660         * modules/nanosleep (Depends-on): Add sys_select.
34661         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
34662
34663         Fix licensing of sigprocmask.
34664         * modules/raise (License): Relicense as LGPL.
34665
34666 2008-06-21  Bruno Haible  <bruno@clisp.org>
34667
34668         * lib/propername.c (proper_name_utf8): Don't use the transliterated
34669         result if it contains question marks.
34670         Reported by Michael Geng <linux@michaelgeng.de>.
34671
34672 2008-06-19  Bruno Haible  <bruno@clisp.org>
34673
34674         Fix CVS-ism.
34675         * doc/gnulib.texi: Include updated-stamp.texi.
34676         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
34677         (updated-stamp.texi): New rule.
34678         (gnulib.info): Depend on it.
34679         * doc/.gitignore: Add updated-stamp.texi.
34680         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
34681
34682 2008-06-19  Bruno Haible  <bruno@clisp.org>
34683
34684         * doc/Makefile (gnulib.info): Update and simplify dependencies.
34685         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34686
34687 2008-06-19  Eric Blake  <ebb9@byu.net>
34688
34689         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
34690         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
34691         Reported by Stepan Kasal.
34692
34693 2008-06-18  Bruno Haible  <bruno@clisp.org>
34694
34695         * lib/fatal-signal.c (init_fatal_signals): Add comment.
34696         Reported by Eric Blake.
34697
34698 2008-06-18  Eric Blake  <ebb9@byu.net>
34699
34700         Work around cygwin 1.5.25 strsignal bug.
34701         * tests/test-strsignal.c: Allow for const char *.
34702         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
34703
34704 2008-06-18  Simon Josefsson  <simon@josefsson.org>
34705
34706         * users.txt: Update URL to article and add author/date
34707         information.
34708
34709 2008-06-17  Bruno Haible  <bruno@clisp.org>
34710
34711         New macro gl_DISABLE_THREADS.
34712         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
34713         if the user did not pass --enable-threads or --disable-threads option.
34714         (gl_DISABLE_THREADS): New macro.
34715         Reported by Eric Blake <ebb9@byu.net>.
34716
34717 2008-06-17  Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
34720         when the macro ignores it.
34721         Based on a patch by Eric Blake <ebb9@byu.net>.
34722
34723 2008-06-17  Bruno Haible  <bruno@clisp.org>
34724
34725         * modules/tls (License): Change to LGPLv2+.
34726         Reported by Eric Blake.
34727
34728 2008-06-17  Eric Blake  <ebb9@byu.net>
34729
34730         Simplify c-stack prerequisites.
34731         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
34732         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
34733         no longer requires <ucontext.h> to exist.  Optimize setrlimit
34734         check.
34735         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
34736         <sys/resource.h>.
34737
34738         Move c-stack test into testsuite.
34739         * modules/c-stack-tests: New file.
34740         * lib/c-stack.c [DEBUG]: Move test program...
34741         * tests/test-c-stack.c: ...into this new file.  Skip rather than
34742         fail test if sigaltstack is lacking.
34743         * tests/test-c-stack.sh: New driver file.
34744
34745 2008-06-16  Eric Blake  <ebb9@byu.net>
34746
34747         Use raise module consistently.
34748         * modules/fatal-signal (Depends-on): Add raise.
34749         * modules/sigprocmask (Depends-on): Likewise.
34750         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
34751         * lib/sigprocmask.c (sigprocmask): Likewise.
34752         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34753         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
34754
34755         Fix compliance bug in sigpending.
34756         * lib/sigprocmask.c (sigpending): Return pending array via
34757         parameter, not return value.
34758
34759 2008-06-14  Eric Blake  <ebb9@byu.net>
34760
34761         Improve obstack-printf test code.
34762         * tests/test-obstack-printf.c (test_function): Fix comment, and
34763         simplify usage of obstack_* in macros.  Add a test for coverage.
34764         Reported by Bruno Haible.
34765
34766 2008-06-14  Bruno Haible  <bruno@clisp.org>
34767
34768         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
34769         array size as a constant, not as a const variable.
34770         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
34771         AC_USE_SYSTEM_EXTENSIONS.
34772         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34773         Test whether the obstack_printf function actually exists.
34774         * modules/obstack-printf (Depends-on): Add extensions.
34775         (Include): Remove obstack.h.
34776         * modules/obstack-printf-posix (Depends-on): Add extensions.
34777         (Include): Remove obstack.h.
34778
34779 2008-06-13  Eric Blake  <ebb9@byu.net>
34780
34781         Add obstack-printf and obstack-printf-posix modules.
34782         * modules/obstack-printf: New file.
34783         * modules/obstack-printf-posix: Likewise.
34784         * MODULES.html.sh (Misc): Mention them.
34785         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34786         Likewise.
34787         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34788         Likewise.
34789         * modules/stdio (Makefile.am): Accomodate new modules.
34790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34791         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
34792         Declare.
34793         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
34794         functions.
34795         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
34796         (gl_REPLACE_OBSTACK_PRINTF): New macros
34797         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
34798         * tests/test-obstack-printf.c: New file.
34799         * modules/obstack-printf-tests: Likewise.
34800         * modules/obstack-printf-posix-tests: Likewise.
34801
34802 2008-06-11  Bruno Haible  <bruno@clisp.org>
34803
34804         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
34805         * lib/open.c: Include errno.h.
34806         (open): Fail when attempting to write to a file that has a trailing
34807         slash.
34808         * tests/test-open.c (main): Test against trailing slash bug.
34809         * doc/posix-functions/open.texi: Mention the trailing slash bug.
34810
34811 2008-06-10  Bruno Haible  <bruno@clisp.org>
34812
34813         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
34814         for $? to work inside the trap command, with various /bin/sh-s.
34815         * tests/test-vc-list-files-cvs.sh: Likewise.
34816
34817 2008-06-10  Bruno Haible  <bruno@clisp.org>
34818
34819         * lib/acl-internal.h: Don't include gettext.h here.
34820         * lib/set-mode-acl.c: Include gettext.h here.
34821         * lib/copy-acl.c: Likewise.
34822
34823 2008-06-10  Bruno Haible  <bruno@clisp.org>
34824
34825         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
34826         * lib/wait-process.c (wait_subprocess): Likewise.
34827         * lib/execute.h (execute): Add termsigp argument.
34828         * lib/execute.c (execute): Likewise.
34829         * lib/csharpcomp.c (compile_csharp_using_pnet,
34830         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
34831         * lib/csharpexec.c (execute_csharp_using_pnet,
34832         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
34833         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
34834         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34835         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
34836         is_jikes_present): Update.
34837         * lib/javaexec.c (execute_java_class): Update.
34838         * lib/javaversion.c (execute_and_read_line): Update.
34839         * NEWS: Document the changes.
34840         Reported by Eric Blake.
34841
34842 2008-06-10  Eric Blake  <ebb9@byu.net>
34843
34844         Add missing include.
34845         * tests/test-strstr.c (includes): Add <signal.h>.
34846         * tests/test-strcasestr.c (includes): Likewise.
34847         * tests/test-memmem.c (includes): Likewise.
34848
34849 2008-06-10  Bruno Haible  <bruno@clisp.org>
34850
34851         * lib/wait-process.c (wait_subprocess): Add an assertion.
34852
34853 2008-06-10  Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
34856
34857 2008-06-10  Bruno Haible  <bruno@clisp.org>
34858
34859         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
34860         using alarm().
34861         * tests/test-strcasestr.c (main): Likewise.
34862         * tests/test-strstr.c (main): Likewise.
34863
34864 2008-06-09  Bruno Haible  <bruno@clisp.org>
34865
34866         Work around the Solaris 10 ACE ACLs ABI change.
34867         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
34868         declare if ACL_NO_TRIVIAL is present.
34869         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
34870         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
34871         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
34872         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
34873         define if ACL_NO_TRIVIAL is present.
34874         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
34875         and use the current ABI.
34876         (file_has_acl): Use same #if condition as elsewhere.
34877         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
34878         in use, and use the current ABI.
34879         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
34880         Reported by Jim Meyering.
34881
34882 2008-06-09  Eric Blake  <ebb9@byu.net>
34883
34884         Work around environments that (stupidly) ignore SIGALRM.
34885         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
34886         before using alarm().
34887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34889         Reported by Ian Beckwith <ianb@erislabs.net>.
34890
34891         Produce autobuild blurb earlier in log.
34892         * modules/autobuild (configure.ac-early): Move AB_INIT here.
34893
34894 2008-06-09  Jim Meyering  <meyering@redhat.com>
34895         and OndÅ™ej Vašík  <ovasik@redhat.com>
34896
34897         utimens.c: correct kernel bug work-around
34898         OndÅ™ej Vašík found that the invalid return value of 280 indicates
34899         failure, not success, and the kernel bug we're trying to work
34900         around affects not just the utimensat call, but also the fallback
34901         futimens call.
34902         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
34903         not success.
34904         [HAVE_FUTIMENS]: Use the same work-around, here.
34905
34906 2008-06-09  Jim Meyering  <meyering@redhat.com>
34907
34908         add more guards around definition of ACE_-related code
34909         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
34910         ALLOW and ACE_OWNER are also defined.
34911
34912 2008-06-08  Bruno Haible  <bruno@clisp.org>
34913
34914         * lib/acl-internal.h: Add me as co-author.
34915         * lib/file-has-acl.c: Likewise.
34916         * lib/set-mode-acl.c: Likewise.
34917         * lib/copy-acl.c: Likewise.
34918
34919 2008-06-08  Bruno Haible  <bruno@clisp.org>
34920
34921         Add support for AIX ACLs.
34922         * lib/acl-internal.h (acl_nontrivial): New declaration.
34923         * lib/file-has-acl.c (acl_nontrivial): New function.
34924         (file_has_acl): Add implementation using AIX 4 ACL API.
34925         * lib/set-mode-acl.c (qset_acl): Likewise.
34926         * lib/copy-acl.c (qcopy_acl): Likewise.
34927
34928 2008-06-08  Bruno Haible  <bruno@clisp.org>
34929
34930         Add support for HP-UX ACLs.
34931         * lib/acl-internal.h (acl_nontrivial): New declaration.
34932         * lib/file-has-acl.c (acl_nontrivial): New function.
34933         (file_has_acl): Add implementation using HP-UX 11 ACL API.
34934         * lib/set-mode-acl.c (qset_acl): Likewise.
34935         * lib/copy-acl.c (qcopy_acl): Likewise.
34936
34937 2008-06-08  Bruno Haible  <bruno@clisp.org>
34938
34939         Add support for Cygwin ACLs.
34940         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
34941         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
34942         the chmod_or_fchmod call.
34943         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
34944
34945 2008-06-08  Bruno Haible  <bruno@clisp.org>
34946
34947         Fix bug with setuid modes in Solaris 10+ code.
34948         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
34949         succeeded, when the mode contains some special bits.
34950
34951 2008-06-08  Bruno Haible  <bruno@clisp.org>
34952
34953         Add support for Solaris 7..10 ACLs.
34954         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
34955         declarations.
34956         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
34957         functions.
34958         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
34959         * lib/set-mode-acl.c (qset_acl): Likewise.
34960         * lib/copy-acl.c (qcopy_acl): Likewise.
34961
34962 2008-06-08  Bruno Haible  <bruno@clisp.org>
34963
34964         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
34965         declaration.
34966         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
34967         (acl_access_nontrivial): Remove MacOS X case.
34968         (file_has_acl): Use acl_extended_nontrivial.
34969         * lib/copy-acl.c (qcopy_acl): Likewise.
34970
34971 2008-06-08  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
34974
34975 2008-06-08  Jim Meyering  <meyering@redhat.com>
34976
34977         * modules/acl (Maintainer): Add Bruno Haible.
34978
34979 2008-06-07  Bruno Haible  <bruno@clisp.org>
34980
34981         Improve support for Tru64 ACLs.
34982         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
34983         ACL on OSF/1.
34984
34985 2008-06-07  Bruno Haible  <bruno@clisp.org>
34986
34987         Add support for MacOS X ACLs.
34988         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
34989         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
34990         * lib/set-mode-acl.c (qset_acl): Likewise.
34991         * lib/copy-acl.c (qcopy_acl): Likewise.
34992
34993 2008-06-07  Bruno Haible  <bruno@clisp.org>
34994
34995         Fix memory leak introduced on 2008-05-22.
34996         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
34997         use.
34998
34999 2008-06-07  Bruno Haible  <bruno@clisp.org>
35000
35001         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
35002         to construct an empty ACL.
35003
35004 2008-06-07  Bruno Haible  <bruno@clisp.org>
35005
35006         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
35007         precisely.
35008         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
35009
35010 2008-06-07  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
35013         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
35014
35015 2008-06-07  Bruno Haible  <bruno@clisp.org>
35016
35017         * doc/posix-functions/_setjmp.texi: Explain the use of this function
35018         regardless of POSIX.
35019         * doc/posix-functions/_longjmp.texi: Likewise.
35020         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
35021         SystemV platform in this case.
35022
35023 2008-06-06  Eric Blake  <ebb9@byu.net>
35024
35025         Document abort() bugs.
35026         * doc/posix-functions/abort.texi (abort): Mention anomalies.
35027
35028         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
35029         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
35030         sigsetjmp.
35031         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
35032         siglongjmp, but only as a macro.
35033         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
35034         is obsolete.
35035         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
35036
35037         Tweak documentation to cover cygwin argz bugs.
35038         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
35039         argz bug fix; no code change needed since no cygwin releases
35040         occurred between the last fix and the bug being tested.
35041         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
35042         module and recently fixed cygwin bugs.
35043         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
35044         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
35045         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
35046         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
35047         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
35048         Likewise.
35049         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
35050         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
35051         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
35052         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
35053         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
35054         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
35055         Likewise.
35056
35057         Avoid gcc warning on cygwin.
35058         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
35059         !ACL_NO_TRIVIAL]: Avoid unused variable.
35060
35061 2008-06-05  Eric Blake  <ebb9@byu.net>
35062
35063         Be tolerant of UNKNOWN version in gnulib-tool test dir.
35064         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
35065         git-version-gen fails to come up with a version.
35066         Reported by Simon Josefsson.
35067
35068 2008-06-05  Jim Meyering  <meyering@redhat.com>
35069             Paul Eggert  <eggert@cs.ucla.edu>
35070
35071         utimens.c: work around a probable Linux kernel bug
35072         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
35073         appears to be a kernel bug that causes utimensat to return 280
35074         instead of 0, indicating success.
35075
35076 2008-06-04  Bruno Haible  <bruno@clisp.org>
35077
35078         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
35079         2008-06-01 commit.
35080
35081 2008-06-04  Bruno Haible  <bruno@clisp.org>
35082
35083         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
35084         * lib/file-has-acl.c (acl_access_nontrivial): New function.
35085         (file_has_acl): Use it. Save errno afterwards.
35086         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
35087
35088 2008-06-03  Bruno Haible  <bruno@clisp.org>
35089
35090         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
35091         draft code. Simplify #ifs.
35092         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
35093         Put Solaris code after POSIX-draft code. Fix comments regarding
35094         Solaris 10, HP-UX. Mention Cygwin.
35095         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
35096
35097 2008-06-03  Eric Blake  <ebb9@byu.net>
35098
35099         Provide fallback for older kernels.
35100         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
35101         Provide runtime fallback if kernel lacks support.
35102         Reported by Mike Frysinger.
35103
35104 2008-06-02  Bruno Haible  <bruno@clisp.org>
35105
35106         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
35107         it exists.
35108
35109 2008-06-02  Bruno Haible  <bruno@clisp.org>
35110
35111         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
35112         * lib/copy-acl.c (qcopy_acl): Update comment.
35113
35114 2008-06-02  Bruno Haible  <bruno@clisp.org>
35115
35116         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
35117         like ACL APIs.
35118
35119 2008-06-02  Bruno Haible  <bruno@clisp.org>
35120
35121         * tests/test-file-has-acl.sh: Use different code for Cygwin.
35122         * tests/test-set-mode-acl.sh: Likewise.
35123         * tests/test-copy-acl.sh: Likewise.
35124         * tests/test-copy-file.sh: Likewise.
35125
35126 2008-06-02  Bruno Haible  <bruno@clisp.org>
35127
35128         * tests/test-file-has-acl.sh: Remove unused code.
35129
35130 2008-06-01  Bruno Haible  <bruno@clisp.org>
35131
35132         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
35133         (copy_acl): Just a wrapper around qcopy_acl that emits the error
35134         messages.
35135         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
35136
35137 2008-06-01  Bruno Haible  <bruno@clisp.org>
35138
35139         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
35140         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
35141         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
35142         APIs.
35143         * modules/acl-tests (configure.ac): Remove tests now contained in
35144         m4/acl.m4.
35145
35146 2008-06-02  Jim Meyering  <meyering@redhat.com>
35147
35148         announce-gen: use a better key-server host name
35149         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
35150         it may be more consistently reliable.  Suggested by Werner Koch
35151         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
35152
35153 2008-06-01  Bruno Haible  <bruno@clisp.org>
35154
35155         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
35156         Reported by Voroskoi Andras <voroskoi@gmail.com>.
35157
35158 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
35159
35160         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
35161
35162 2008-06-01  Bruno Haible  <bruno@clisp.org>
35163
35164         New ACL tests.
35165         * tests/test-file-has-acl.sh: New file.
35166         * tests/test-file-has-acl.c: New file.
35167         * tests/test-set-mode-acl.sh: New file.
35168         * tests/test-set-mode-acl.c: New file.
35169         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
35170         * tests/test-copy-acl.c: New file.
35171         * modules/acl-tests: New file, based on modules/copy-file-tests.
35172         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
35173         (Depends-on): Add acl-tests.
35174         (configure.ac): Remove checks.
35175         (Makefile.am): Don't create test-sameacls program here any more.
35176
35177 2008-06-01  Bruno Haible  <bruno@clisp.org>
35178
35179         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
35180         * tests/test-sameacls.c: Include progname.h.
35181         (main): Invoke set_program_name. Portability fixes for MacOS X,
35182         Solaris, HP-UX.
35183
35184 2008-06-01  Bruno Haible  <bruno@clisp.org>
35185
35186         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
35187         function.
35188         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
35189
35190 2008-06-01  Bruno Haible  <bruno@clisp.org>
35191
35192         * modules/rpmatch (Depends-on): Add strdup.
35193
35194 2008-06-01  Bruno Haible  <bruno@clisp.org>
35195
35196         * lib/pipe.c: Include unistd-safer.h.
35197         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
35198         * modules/pipe (Depends-on): Add unistd-safer.
35199
35200 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35201
35202         * modules/autobuild (configure.ac): Call AB_INIT.
35203
35204 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35205
35206         * tests/test-getaddrinfo.c: Don't print debug messages by default.
35207         Suggested by Bruno Haible <bruno@clisp.org>.
35208
35209 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35210
35211         * tests/test-base64.c: Cast size_t to unsigned long when invoking
35212         printf.  Use %lu instead of %d.  Reported by Bruno Haible
35213         <bruno@clisp.org>.
35214
35215 2008-05-29  Eric Blake  <ebb9@byu.net>
35216
35217         Prefer new POSIX 200x interfaces over futimesat.
35218         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
35219         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
35220         when available.
35221         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
35222
35223 2008-05-28  Bruno Haible  <bruno@clisp.org>
35224
35225         * modules/stpcpy (License): Change to LGPLv2+.
35226         Requested by David Lutterkort <dlutter@redhat.com>.
35227
35228 2008-05-27  Bruno Haible  <bruno@clisp.org>
35229
35230         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
35231         current mingw.
35232         Reported by Jose E. Marchesi <jemarch@gnu.org>.
35233
35234 2008-05-27  Bruno Haible  <bruno@clisp.org>
35235
35236         * modules/iconv_open (Link): New section, from module 'iconv'.
35237         * modules/striconv (Link): Likewise.
35238         * modules/striconveh (Link): Likewise.
35239         * modules/xstriconv (Link): Likewise.
35240         * modules/unicodeio (Link): Likewise.
35241         * modules/propername (Link): Likewise.
35242         Reported by Jim Meyering.
35243
35244 2008-05-26  Jim Meyering  <meyering@redhat.com>
35245
35246         sha256: do not artificially restrict buffer length to be < 2^32
35247         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
35248         uint32_t to size_t.
35249         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
35250         to match.
35251
35252         avoid unaligned access errors, e.g., on sparc
35253         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
35254         direct access through a possibly-unaligned uint64* pointer.
35255         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
35256         direct access through a possibly-unaligned uint32* pointer.
35257         Prompted by this patch from Tom "spot" Callaway:
35258         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
35259
35260         sha512.c: fix typo in comment
35261         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
35262
35263 2008-05-25  Bruno Haible  <bruno@clisp.org>
35264
35265         * lib/set-mode-acl.c: Renamed from lib/acl.c.
35266         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
35267         (Makefile.am): Update lib_SOURCES.
35268
35269 2008-05-25  Bruno Haible  <bruno@clisp.org>
35270
35271         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
35272
35273 2008-05-25  Jim Meyering  <meyering@redhat.com>
35274
35275         useless-if-before-free: freed expr may have white-space differences
35276         * build-aux/useless-if-before-free: Recognize cases in which the
35277         freed expression differs from the tested one in embedded white
35278         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
35279         $1 was used, so we can't make any regexp shy.  Improved tests now
35280         detect this.
35281
35282         useless-if-before-free: accept white space in the expression.
35283         * build-aux/useless-if-before-free: For now, any white space
35284         in the expression must be identical in the free argument.
35285
35286         useless-if-before-free: efficiency tweak
35287         * build-aux/useless-if-before-free: Make the expression-matching
35288         regexp "shy".
35289         Make the *outer* regexp shy, not the expr-matching one.
35290
35291         update code-in-comment to accept cast of free arg
35292         * build-aux/useless-if-before-free: Update regexp.
35293
35294 2008-05-25  Bruno Haible  <bruno@clisp.org>
35295
35296         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
35297         * modules/copy-file-tests (Files, Makefile.am): Update.
35298         * tests/test-copy-file.c (func_test_copy): Update.
35299
35300 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
35301
35302         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
35303
35304 2008-05-23  Bruno Haible  <bruno@clisp.org>
35305
35306         Improve support for ACLs on OSF/1.
35307         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
35308         Remove fallback for unknown flavors of ACLs.
35309
35310 2008-05-22  Bruno Haible  <bruno@clisp.org>
35311
35312         Add support for ACLs on OSF/1.
35313         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
35314         replacements.
35315         (acl_free_text): New macro fallback.
35316         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
35317         acl_free.
35318         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
35319         acl_free_text function. Require AC_C_INLINE.
35320
35321 2008-05-22  Bruno Haible  <bruno@clisp.org>
35322
35323         Make copy_acl work on MacOS X 10.5.
35324         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
35325         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
35326         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
35327         If MODE_INSIDE_ACL, don't assume that every system has the same text
35328         representation for ACLs as FreeBSD.
35329         * lib/copy-acl.c (copy_acl): Add support for platforms with
35330         !MODE_INSIDE_ACL.
35331         * lib/file-has-acl.c (file_has_acl): Likewise.
35332         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
35333         FreeBSD, MacOS X, or IRIX, respectively.
35334
35335 2008-05-22  Bruno Haible  <bruno@clisp.org>
35336
35337         * lib/acl.h: Don't include <sys/acl.h>.
35338         (GETACLCNT): Move fallback to lib/acl-internal.h.
35339         * lib/acl-internal.h: Include <sys/acl.h> here.
35340         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
35341
35342 2008-05-22  Bruno Haible  <bruno@clisp.org>
35343
35344         Split off copy_acl function to separate file.
35345         * lib/copy-acl.c: New file, extracted from lib/acl.c.
35346         * lib/acl.c (copy_acl): Moved function to separate file.
35347         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
35348         * modules/acl (Files): Add lib/copy-acl.c.
35349         (Makefiles.am): Augment lib_SOURCES.
35350
35351 2008-05-22  Bruno Haible  <bruno@clisp.org>
35352
35353         * modules/copy-file-tests: New file.
35354         * tests/test-copy-file.sh: New file.
35355         * tests/test-copy-file.c: New file.
35356         * tests/test-copy-file-sameacls.c: New file.
35357
35358 2008-05-22  Eric Blake  <ebb9@byu.net>
35359
35360         Avoid gcc warning.
35361         * tests/test-memcmp.c (main): Pass NULL indirectly.
35362
35363 2008-05-21  Bruno Haible  <bruno@clisp.org>
35364
35365         Add reference doc about ACLs.
35366         * doc/acl-resources.txt: New file.
35367         * doc/acl-cygwin.txt: New file.
35368
35369 2008-05-21  Bruno Haible  <bruno@clisp.org>
35370
35371         Avoid one more warning from gcc.
35372         * lib/vasnprintf.c (IF_LINT): Update comments.
35373         (VASNPRINTF): Use it also for the 'prefix' array initializer.
35374
35375 2008-05-21  Jim Meyering  <meyering@redhat.com>
35376
35377         avoid a warning from gcc
35378         * lib/vasnprintf.c (IF_LINT): Define.
35379         (scale10_round_decimal_long_double):
35380         Use it to avoid a "may be used uninitialized" warning.
35381         (scale10_round_decimal_double): Likewise.
35382
35383 2008-05-21  Simon Josefsson  <simon@josefsson.org>
35384
35385         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
35386         declared.
35387
35388 2008-05-20  Bruno Haible  <bruno@clisp.org>
35389
35390         * tests/test-memcmp.c (main): Test also the sign of the result. Test
35391         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
35392
35393 2008-05-20  Simon Josefsson  <simon@josefsson.org>
35394
35395         * modules/memcmp-tests: New file.
35396         * tests/test-memcmp.c: New file.
35397
35398 2008-05-19  Bruno Haible  <bruno@clisp.org>
35399
35400         * modules/propername (Notice, configure.ac): Put quoted "..." into
35401         --keyword option.
35402         * lib/propername.h: Update comments accordingly.
35403         Reported by Eric Blake.
35404
35405 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
35406
35407         * modules/getpass-gnu (Depends-on): Add fseeko.
35408
35409 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35410
35411         * modules/base64-tests: New file.
35412
35413 2008-05-19  Bo Borgerson <gigabo@gmail.com>
35414
35415         * lib/base64.c (base64_decode_ctx): If a decode context structure
35416         was passed in use it to ignore newlines.  If a context structure
35417         was _not_ passed in, continue to treat newlines as garbage (this
35418         is the historical behavior).  Formerly base64_decode.
35419         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35420         takes a decode context structure.
35421         * lib/base64.h (base64_decode): Macro for four-argument calls.
35422         (base64_decode_alloc): Likewise.
35423         * lib/base64.c (base64_decode_ctx): If a decode context structure
35424         was passed in use it to ignore newlines.  If a context structure
35425         was _not_ passed in, continue to treat newlines as garbage (this
35426         is the historical behavior).  Formerly base64_decode.
35427         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35428         takes a decode context structure.
35429         * lib/base64.h (base64_decode): Macro for four-argument calls.
35430         (base64_decode_alloc): Likewise.
35431
35432 2008-05-19  Jim Meyering  <meyering@redhat.com>
35433
35434         avoid a warning from gcc
35435         * lib/trim.c (IF_LINT): Define.
35436         (trim2): Use it to avoid a "may be used uninitialized" warning.
35437
35438         Fix doc typo.
35439         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
35440
35441 2008-05-19  Bruno Haible  <bruno@clisp.org>
35442
35443         * doc/glibc-functions/getpass.texi: Document limits of other
35444         implementations.
35445
35446 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35447             Bruno Haible <bruno@clisp.org>
35448
35449         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
35450
35451 2008-05-18  Bruno Haible  <bruno@clisp.org>
35452
35453         * modules/propername: New file, from GNU gettext.
35454         * lib/propername.h: New file, from GNU gettext.
35455         * lib/propername.c: New file, from GNU gettext.
35456         * MODULES.html.sh (Internationalization functions): Add propername.
35457
35458 2008-05-16  Jim Meyering  <meyering@redhat.com>
35459             Bruno Haible  <bruno@clisp.org>
35460
35461         Avoid some warnings from "gcc -Wshadow".
35462         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
35463
35464 2008-05-15  Eric Blake  <ebb9@byu.net>
35465
35466         Extend previous patch to cygwin 1.7.0.
35467         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
35468         fast implementation in cygwin >= 1.7.0.
35469         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35471
35472 2008-05-15  Bruno Haible  <bruno@clisp.org>
35473
35474         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
35475         implementation in glibc >= 2.9.
35476         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35478
35479 2008-05-15  Bruno Haible  <bruno@clisp.org>
35480
35481         * MODULES.html.sh (Internationalization functions): Remove linebreak.
35482         (Unicode string functions): Add unilbrk/*.
35483         Reported by Karl Berry.
35484
35485 2008-05-15  Eric Blake  <ebb9@byu.net>
35486
35487         Fix violation of <stdbool.h> replacement in regex.
35488         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
35489         * lib/regexec.c (re_search_internal): Likewise.
35490         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
35491
35492 2008-05-15  Jim Meyering  <meyering@redhat.com>
35493
35494         avoid distracting test output when git or cvs is not found
35495         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
35496         * tests/test-vc-list-files-git.sh: Likewise.
35497
35498 2008-05-15  Eric Blake  <ebb9@byu.net>
35499
35500         Glibc finally accepted the memmem speedup code, bugzilla #5514.
35501         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
35502         glibc version.
35503         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35504         * doc/posix-functions/strstr.texi (strstr): Likewise.
35505         * lib/str-two-way.h (MAX): Sychronize with glibc.
35506
35507 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
35508
35509         * lib/regcomp.c (optimize_utf8): Add a note on why we test
35510         opr.ctx_type.
35511         (calc_first): Initialize constraint field.
35512         (duplicate_node_closure): Use it instead of special casing ANCHORS.
35513         Fix grammar.
35514         (duplicate_node): Merge constraint field for all node types.
35515         (calc_eclosure_iter): Look at constraint field for all node types.
35516         * lib/regex_internal.c (create_cd_newstate): Don't look at
35517         opr.ctx_type.
35518
35519 2008-05-14  Bruno Haible  <bruno@clisp.org>
35520
35521         Help GCC to do better code generation.
35522         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
35523         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
35524         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
35525         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
35526         Declare with attribute 'malloc' if supported.
35527
35528 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
35529
35530         use "echo STR|wc -c" rather than unportable "expr length STR"
35531         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
35532         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
35533
35534 2008-05-14  Jim Meyering  <meyering@redhat.com>
35535
35536         use dd ibs=$n count=1 ... rather than less-portable head -c$n
35537         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
35538         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
35539         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
35540         via Collin Lasse.
35541
35542 2008-05-14  Eric Blake  <ebb9@byu.net>
35543
35544         Avoid quadratic growth in gl_LIBSOURCES.
35545         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
35546         Suggested by Bruno Haible.
35547
35548         Test xmemdup0.
35549         * modules/xmemdup0-tests: New file.
35550         * tests/test-xmemdup0.c: Likewise.
35551
35552 2008-05-13  Eric Blake  <ebb9@byu.net>
35553
35554         Split xmemdup0 into its own module.
35555         * modules/xmemdup0: New file.
35556         * lib/xmemdup0.h: Likewise.
35557         * lib/xmemdup0.c: Likewise.
35558         * MODULES.html.sh (Memory management functions): Add xmemdup0.
35559         * lib/xalloc.h (xmemdup0): Remove.
35560         * lib/xmalloc.c (xmemdup0): Likewise.
35561
35562 2008-05-13  Eric Blake  <ebb9@byu.net>
35563             Bruno Haible  <bruno@clisp.org>
35564
35565         Reduce number of forks required during autoconf.
35566         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
35567         and gl_LIBSOURCES_DIR.
35568         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
35569         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
35570         m4_syscmd per file.
35571         <m4_foreach_w>: Move...
35572         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
35573
35574 2008-05-13  Eric Blake  <ebb9@byu.net>
35575
35576         * gnulib-tool: Fix various comment typos.
35577
35578 2008-05-12  Bruno Haible  <bruno@clisp.org>
35579
35580         Tailor the linebreaking algorithm.
35581         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
35582
35583 2008-05-12  Bruno Haible  <bruno@clisp.org>
35584
35585         Update to Unicode 5.0.0.
35586         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35587         LBP_JV, LBP_JT. Redistribute values.
35588         (unilbrk_table): Change size.
35589         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
35590         Unicode TR#14 rev. 22.
35591         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35592         LBP_JV, LBP_JT. Redistribute values.
35593         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
35594         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
35595         Update.
35596         * lib/unilbrk/lbrkprop1.h: Regenerated.
35597         * lib/unilbrk/lbrkprop2.h: Regenerated.
35598         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
35599         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
35600         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
35601         Likewise.
35602         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
35603         Likewise.
35604         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
35605         result.
35606         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35607         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35608         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
35609         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
35610         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
35611         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
35612
35613 2008-05-11  Bruno Haible  <bruno@clisp.org>
35614
35615         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
35616
35617 2008-05-11  Bruno Haible  <bruno@clisp.org>
35618
35619         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
35620         * modules/unilbrk/gen-lbrk: New file.
35621
35622 2008-05-11  Bruno Haible  <bruno@clisp.org>
35623
35624         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
35625         * m4/sha512.m4 (gl_SHA512): Likewise.
35626
35627 2008-05-11  Jim Meyering  <meyering@redhat.com>
35628
35629         New modules: crypto/sha256, crypto/sha512 (from coreutils)
35630         * modules/crypto/sha256: New file.
35631         * modules/crypto/sha512: Likewise.
35632         * lib/sha256.c: Likewise.
35633         * lib/sha256.h: Likewise.
35634         * lib/sha512.c: Likewise.
35635         * lib/sha512.h: Likewise.
35636         * lib/u64.h: Likewise.
35637         * m4/sha256.m4: Likewise.
35638         * m4/sha512.m4: Likewise.
35639         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
35640
35641 2008-05-10  Bruno Haible  <bruno@clisp.org>
35642
35643         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
35644         (Input/Output <stdio.h>): Add xprintf.
35645         (Signal handling <signal.h>): Add strsignal.
35646         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
35647         (Core language properties): Add func.
35648         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
35649         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
35650         strings.
35651         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
35652         (Input/output): New section.
35653         (File system functions): Add openat-die, stat-macros.
35654         (Networking functions): Add sockets.
35655         (Unicode string functions): Add unictype/*.
35656         (Support for building libraries and executables): Add gperf.
35657         (Support for building documentation): Add agpl-3.0.
35658         (Misc): Add nocrash.
35659
35660 2008-05-10  Bruno Haible  <bruno@clisp.org>
35661
35662         * modules/unictype/gen-ctype: New file.
35663
35664 2008-05-10  Jim Meyering  <meyering@redhat.com>
35665
35666         Make chdir-safer.c more efficient on a system with no symlinks.
35667         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
35668         also if ELOOP is zero.  Suggested by Bruno Haible.
35669
35670         Make chdir-safer.c slightly safer.
35671         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
35672         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
35673
35674         Avoid compile failure on systems without ELOOP (like mingw).
35675         * lib/chdir-safer.c (ELOOP): Define if not already defined.
35676         Reported by Bruno Haible.
35677
35678 2008-05-10  Bruno Haible  <bruno@clisp.org>
35679
35680         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
35681         (is_utf8_encoding): Use a case-insensitive comparison.
35682         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
35683         streq.
35684
35685 2008-05-10  Bruno Haible  <bruno@clisp.org>
35686
35687         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
35688         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
35689         * lib/unilbrk/ulc-common.h (iconv_string_length,
35690         iconv_string_keeping_offsets): Remove declarations.
35691         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
35692         Don't include <iconv.h>, streq.h, xsize.h.
35693         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
35694         conversion.
35695         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
35696         <iconv.h>, streq.h, xsize.h.
35697         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
35698         conversion.
35699         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
35700         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
35701         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
35702         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
35703
35704 2008-05-10  Bruno Haible  <bruno@clisp.org>
35705
35706         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
35707         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
35708
35709         * modules/unilbrk/u32-width-linebreaks-tests: New file.
35710         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
35711
35712         * modules/unilbrk/u16-width-linebreaks-tests: New file.
35713         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
35714
35715         * modules/unilbrk/u8-width-linebreaks-tests: New file.
35716         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
35717
35718         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
35719         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
35720
35721         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
35722         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
35723
35724         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
35725         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
35726
35727         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
35728         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
35729
35730 2008-05-10  Bruno Haible  <bruno@clisp.org>
35731
35732         Split up 'linebreak' module.
35733         * lib/unilbrk.h: New file, based on lib/linebreak.h.
35734         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
35735         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
35736         modifications.
35737         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
35738         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
35739         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
35740         lib/linebreak.c.
35741         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
35742         lib/linebreak.c.
35743         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
35744         lib/linebreak.c.
35745         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
35746         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
35747         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
35748         lib/linebreak.c.
35749         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
35750         lib/linebreak.c.
35751         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
35752         lib/linebreak.c.
35753         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
35754         lib/linebreak.c.
35755         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
35756         lib/linebreak.c.
35757         * modules/unilbrk/base: New file.
35758         * modules/unilbrk/tables: New file.
35759         * modules/unilbrk/u8-possible-linebreaks: New file.
35760         * modules/unilbrk/u16-possible-linebreaks: New file.
35761         * modules/unilbrk/u32-possible-linebreaks: New file.
35762         * modules/unilbrk/ulc-common: New file.
35763         * modules/unilbrk/ulc-possible-linebreaks: New file.
35764         * modules/unilbrk/u8-width-linebreaks: New file.
35765         * modules/unilbrk/u16-width-linebreaks: New file.
35766         * modules/unilbrk/u32-width-linebreaks: New file.
35767         * modules/unilbrk/ulc-width-linebreaks: New file.
35768         * lib/linebreak.h: Remove file.
35769         * lib/linebreak.c: Remove file.
35770         * m4/linebreak.m4: Remove file.
35771         * modules/linebreak: Remove file.
35772         * NEWS: Mention the changes.
35773
35774 2008-05-09  Eric Blake  <ebb9@byu.net>
35775
35776         Add xmemdup0.
35777         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
35778         implementation.
35779         * lib/xmalloc.c (xmemdup0): New C implementation.
35780
35781 2008-05-08  Bruno Haible  <bruno@clisp.org>
35782
35783         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
35784
35785 2008-05-07  Eric Blake  <ebb9@byu.net>
35786
35787         Support cross-compilation of <wctype.h>.
35788         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
35789         AC_CACHE_CHECK.
35790
35791 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
35792
35793         * build-aux/vc-list-files: Add support for bzr.
35794
35795 2008-05-03  Jim Meyering  <meyering@redhat.com>
35796
35797         avoid failed assertion with tight malloc
35798         * tests/test-getndelim2.c: Correct an off-by-one assertion.
35799
35800 2008-05-03  Simon Josefsson  <simon@josefsson.org>
35801
35802         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
35803         are needed from arpa/inet.h.
35804         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
35805         Reported by Bruno Haible.
35806
35807 2008-05-02  Jim Meyering  <meyering@redhat.com>
35808
35809         avoid compilation error on FreeBSD 6
35810         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
35811
35812 2008-05-01  Jim Meyering  <meyering@redhat.com>
35813
35814         useless-if-before-free: correct --help's exit status description
35815         * build-aux/useless-if-before-free (usage): Like grep, exit 0
35816         for one or more matches, etc.  Reported by Bruno Haible.
35817
35818         vc-list-files: make the stand-alone gnulib test work
35819         * modules/vc-list-files-tests (configure.ac):
35820         Define and AC_SUBST abs_aux_dir.
35821         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
35822         $(abs_top_srcdir) to each script and having each of them
35823         duplicate the work of setting PATH, set PATH here, using
35824         the new variable, abs_aux_dir instead.
35825         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
35826         * tests/test-vc-list-files-git.sh: Likewise.
35827         Reported by Bruno Haible.
35828
35829 2008-05-01  Bruno Haible  <bruno@clisp.org>
35830
35831         * lib/getndelim2.c (getndelim2): Fix newsize computation during
35832         reallocation. Rename 'done' to 'found_delimiter'.
35833
35834 2008-05-01  Jim Meyering  <meyering@redhat.com>
35835
35836         vc-list-files: accommodate /bin/sh like the one from Solaris 10
35837         * build-aux/vc-list-files: Use `...`, not $(...).
35838
35839 2008-04-30  Jim Meyering  <meyering@redhat.com>
35840
35841         add tests for vc-list-files
35842         * modules/vc-list-files-tests: New module.
35843         * tests/test-vc-list-files-cvs.sh: New file.
35844         * tests/test-vc-list-files-git.sh: New file.
35845
35846         avoid a warning from gcc
35847         * lib/getndelim2.c (IF_LINT): Define.
35848         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
35849
35850         vc-list-files: work properly with build-aux/cvsu, too
35851         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
35852         to all cvs-based clauses.
35853
35854         vc-list-files: work properly in the CVS+awk case, too
35855         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
35856
35857         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
35858         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
35859         take more than one file argument, so .  Add quotes, just in case $dir
35860         ever contains a shell meta-character.  Prompted by Soren Hansen in
35861         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
35862
35863 2008-04-29  Eric Blake  <ebb9@byu.net>
35864
35865         Optimize getndelim2 to use block operations when possible.
35866         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
35867         freadseek, and memchr2.
35868         * lib/getndelim2.c (getndelim2): Use them for block reads.
35869
35870 2008-04-29  Bruno Haible  <bruno@clisp.org>
35871
35872         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
35873         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35874         * modules/inet_ntop (Depends-on): Add extensions.
35875         * modules/inet_pton (Depends-on): Likewise.
35876         Reported by Simon Josefsson.
35877
35878 2008-04-29  Jim Meyering  <meyering@redhat.com>
35879
35880         When the is more than one match in a block, match all of them.
35881         * build-aux/useless-if-before-free: Iterate through each block
35882         until there are no more matches.
35883
35884         Fix broken useless-if-before-free script.
35885         * build-aux/useless-if-before-free: Fix typo: missing "?" after
35886         the expression to match cast of argument to free-like function.
35887
35888 2008-04-29  Eric Blake  <ebb9@byu.net>
35889
35890         Use new header.
35891         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
35892
35893 2008-04-29  Jim Meyering  <meyering@redhat.com>
35894
35895         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
35896         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
35897         by gnulib to exist and to declare e.g., inet_ntop.
35898         Don't include "inet_ntop.h", now removed.
35899
35900         * m4/arpa_inet_h.m4: Remove trailing blanks.
35901
35902 2008-04-29  Eric Blake  <ebb9@byu.net>
35903
35904         Silence valgrind on safe reads beyond potential array bounds.
35905         * lib/rawmemchr.valgrind: New file.
35906         * lib/strchrnul.valgrind: Likewise.
35907         * modules/rawmemchr (Files): Distribute new file.
35908         * modules/strchrnul (Files): Likewise.
35909         Suggested by Bruno Haible.
35910
35911 2008-04-29  Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
35914         (inet_ntop, inet_pton): Change portability warning's wording.
35915         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
35916         Invoke gl_CHECK_NEXT_HEADERS.
35917         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
35918         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
35919         set ARPA_INET_H.
35920         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35921         * modules/arpa_inet (Description): No longer only for systems that
35922         lack it.
35923         (Depends-on): Add include_next.
35924         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
35925         HAVE_ARPA_INET_H.
35926
35927 2008-04-29  Jim Meyering  <meyering@redhat.com>
35928
35929         * modules/mkdir (License): Re-license as LGPLv2+.
35930
35931 2008-04-29  Bruno Haible  <bruno@clisp.org>
35932
35933         * modules/rawmemchr (Maintainer): Set to Eric.
35934         * modules/strchrnul (Maintainer): Likewise.
35935
35936 2008-04-29  Simon Josefsson  <simon@josefsson.org>
35937
35938         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
35939         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
35940
35941         * modules/arpa_inet (arpa/inet.h): Use them.
35942
35943 2008-04-28  Eric Blake  <ebb9@byu.net>
35944
35945         Test getndelim2.
35946         * modules/getndelim2-tests: New file.
35947         * tests/test-getndelim2.c: Likewise.
35948         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
35949         stream.
35950         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
35951
35952         * MODULES.html.sh: Document new module.
35953
35954 2008-04-20  Bruno Haible  <bruno@clisp.org>
35955
35956         * lib/c-stack.c (die): Use raise.
35957         * modules/c-stack (Depends-on): Add raise.
35958
35959 2008-04-28  Bruno Haible  <bruno@clisp.org>
35960
35961         Expect rpmatch to be declared.
35962         * lib/yesno.c (rpmatch): Remove declaration.
35963
35964         Declare rpmatch.
35965         * lib/stdlib.in.h (rpmatch): New declaration.
35966         * lib/rpmatch.c: Include <stdlib.h> first.
35967         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
35968         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
35969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
35970         HAVE_RPMATCH.
35971         * modules/rpmatch (Depends-on): Add stdlib, extensions.
35972         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35973         (Include): Set to <stdlib.h>.
35974         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
35975         HAVE_RPMATCH.
35976         * NEWS: Document the change.
35977
35978 2008-04-28  Bruno Haible  <bruno@clisp.org>
35979
35980         Change rpmatch to use nl_langinfo when appropriate.
35981         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
35982         (N_): New macro.
35983         (localized_pattern): New function/macro.
35984         (try): Remove match, nomatch arguments. Copy the pattern into safe
35985         memory before caching it.
35986         (rpmatch): Use localized_pattern. Add translator comments.
35987         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
35988         Suggested by Eric Blake.
35989         * modules/rpmatch (Depends-on): Add stdbool.
35990
35991 2008-04-28  Eric Blake  <ebb9@byu.net>
35992
35993         Add rawmemchr module, matching glibc.
35994         * modules/string (Makefile.am): New indicator.
35995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
35996         * lib/string.in.h (rawmemchr): Declare when appropriate.
35997         * modules/rawmemchr: New file.
35998         * m4/rawmemchr.m4: Likewise.
35999         * lib/rawmemchr.c: Likewise.
36000         * modules/rawmemchr-tests: Likewise.
36001         * tests/test-rawmemchr.c: Likewise.
36002         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
36003         module.
36004         * modules/strchrnul (Depends-on): Add rawmemchr.
36005         * lib/strchrnul.c (strchrnul): Optimize a corner case.
36006
36007         Whitespace cleanup.
36008         * tests/test-strchrnul.c: Reindent.
36009         * lib/strchrnul.c: Likewise.
36010
36011         Optimize and test strchrnul.
36012         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
36013         * modules/strchrnul-tests: New file.
36014         * tests/test-strchrnul.c: Likewise.
36015
36016         Remove intprops dependency.
36017         * modules/memchr (Depends-on): Remove intprops.
36018         * modules/memrchr (Depends-on): Likewise.
36019         * modules/memchr2 (Depends-on): Likewise.
36020         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
36021         * lib/memrchr.c (__memrchr): Likewise.
36022         * lib/memrchr2.c (memchr2): Likewise.
36023         Reported by Simon Josefsson.
36024
36025 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36026
36027         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
36028         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36029
36030 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36031
36032         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
36033
36034         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
36035
36036         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
36037
36038         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
36039         declarations.
36040         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
36041
36042         * m4/inet_pton.m4: Don't check for header files.
36043
36044         * m4/inet_ntop.m4: Don't check for header files.
36045
36046 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36047
36048         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
36049         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
36050         trigger for cygwin).
36051         Reported by Bruno Haible  <bruno@clisp.org>.
36052
36053 2008-04-28  Bruno Haible  <bruno@clisp.org>
36054
36055         * doc/posix-functions/strdup.texi: Mention mingw problem.
36056
36057 2008-04-27  Bruno Haible  <bruno@clisp.org>
36058
36059         * modules/stat-time-tests (Depends-on): Add sleep.
36060         * tests/test-stat-time.c (force_unlink): New function.
36061         (cleanup): Use it.
36062         (test_mtime): Remove the ctime related tests.
36063         (test_ctime): New function, containing the ctime related tests.
36064         (main): Call test_ctime, except on native Windows platforms.
36065
36066 2008-04-27  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/rpmatch.c (rpmatch): Add some comments.
36069         Reported by James Youngman <jay@gnu.org>.
36070
36071 2008-04-27  Bruno Haible  <bruno@clisp.org>
36072
36073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
36074         quiet NaNs.
36075
36076 2008-04-27  Bruno Haible  <bruno@clisp.org>
36077
36078         Make test-yesno.sh work on mingw.
36079         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
36080         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
36081         (main): Set stdin to binary mode.
36082         * modules/yesno-tests (Depends-on): Add binary-io.
36083
36084 2008-04-27  Bruno Haible  <bruno@clisp.org>
36085
36086         Fix 'isfinite' on x86, x86_64, ia64 platforms.
36087         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
36088         argument that lie outside the IEEE 854 domain.
36089         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
36090         (gl_ISFINITE): Use it.
36091         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
36092
36093 2008-04-27  Bruno Haible  <bruno@clisp.org>
36094
36095         Allow local renaming in config.h.
36096         * lib/memrchr.c (memrchr): Don't undefine outside libc.
36097
36098 2008-04-27  Bruno Haible  <bruno@clisp.org>
36099
36100         * lib/memchr.c (__memchr): Change type of 'i'.
36101         * lib/memchr2.c (memchr2): Likewise.
36102
36103 2008-04-26  Eric Blake  <ebb9@byu.net>
36104         and Bruno Haible  <bruno@clisp.org>
36105
36106         Optimize and test memrchr.
36107         * modules/memrchr (Depends-on): Add intprops.
36108         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
36109         * modules/memrchr-tests: New file.
36110         * tests/test-memrchr.c: New file.
36111
36112 2008-04-26  Bruno Haible  <bruno@clisp.org>
36113
36114         Add tentative support for DragonFly BSD.
36115         * lib/stdio-impl.h: Add macros for DragonFly BSD.
36116         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
36117         fp.
36118         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36119         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
36120         * lib/fpurge.c (fpurge): Likewise.
36121         * lib/freadable.c (freaadable): Likewise.
36122         * lib/freadahead.c (freadahead): Likewise.
36123         * lib/freading.c (freading): Likewise.
36124         * lib/freadptr.c (freadptr): Likewise.
36125         * lib/freadseek.c (freadptrinc): Likewise.
36126         * lib/fseeko.c (fseeko): Likewise.
36127         * lib/fseterr.c (fseterr): Likewise.
36128         * lib/fwritable.c (fwritable): Likewise.
36129         * lib/fwriting.c (fwriting): Likewise.
36130
36131 2008-04-26  Bruno Haible  <bruno@clisp.org>
36132
36133         * lib/stdio-impl.h: New file.
36134         * lib/fbufmode.c: Include stdio-impl.h.
36135         (fbufmode): Use fp_, remove redundant #defines.
36136         * lib/fflush.c: Include stdio-impl.h.
36137         (clear_ungetc_buffer): Remove redundant #defines.
36138         * lib/fpurge.c: Include stdio-impl.h.
36139         (fpurge): Remove redundant #defines.
36140         * lib/freadable.c: Include stdio-impl.h.
36141         (freadable): Remove redundant #defines.
36142         * lib/freadahead.c: Include stdio-impl.h.
36143         (freadahead): Remove redundant #defines.
36144         * lib/freading.c: Include stdio-impl.h.
36145         (freading): Remove redundant #defines.
36146         * lib/freadptr.c: Include stdio-impl.h.
36147         (freadptr): Remove redundant #defines.
36148         * lib/freadseek.c: Include stdio-impl.h.
36149         (freadptrinc): Remove redundant #defines.
36150         * lib/fseeko.c: Include stdio-impl.h.
36151         (rpl_fseeko): Remove redundant #defines.
36152         * lib/fseterr.c: Include stdio-impl.h.
36153         (fseterr): Remove redundant #defines.
36154         * lib/fwritable.c: Include stdio-impl.h.
36155         (fwritable: Remove redundant #defines.
36156         * lib/fwriting.c: Include stdio-impl.h.
36157         (fwriting): Remove redundant #defines.
36158         * modules/fbufmode (Files): Add lib/stdio-impl.h.
36159         * modules/fflush (Files): Likewise.
36160         * modules/fpurge (Files): Likewise.
36161         * modules/freadable (Files): Likewise.
36162         * modules/freadahead (Files): Likewise.
36163         * modules/freading (Files): Likewise.
36164         * modules/freadptr (Files): Likewise.
36165         * modules/freadseek (Files): Likewise.
36166         * modules/fseeko (Files): Likewise.
36167         * modules/fseterr (Files): Likewise.
36168         * modules/fwritable (Files): Likewise.
36169         * modules/fwriting (Files): Likewise.
36170
36171 2008-04-26  Bruno Haible  <bruno@clisp.org>
36172
36173         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36174         restore_seek_optimization, update_fpos_cache): New functions, extracted
36175         from rpl_fflush.
36176         (rpl_fflush): Use them.
36177         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
36178         (gl_REPLACE_FFLUSH): Use it.
36179
36180 2008-04-26  Bruno Haible  <bruno@clisp.org>
36181
36182         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
36183         on Solaris.
36184         * tests/test-xstrtoimax.sh: Likewise.
36185         * tests/test-xstrtoumax.sh: Likewise.
36186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36187
36188 2008-04-26  Bruno Haible  <bruno@clisp.org>
36189
36190         * modules/memchr-tests: New file.
36191         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
36192
36193 2008-04-26  Eric Blake  <ebb9@byu.net>
36194             Bruno Haible  <bruno@clisp.org>
36195
36196         * lib/memchr.c: Include intprops.h.
36197         (__memchr): Optimize parallel detection of matching bytes. Rename local
36198         variables. Add explanatory comments.
36199
36200 2008-04-26  Bruno Haible  <bruno@clisp.org>
36201
36202         Fix module 'memchr', broken since 2000-10-28.
36203         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
36204
36205 2008-04-26  Bruno Haible  <bruno@clisp.org>
36206
36207         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
36208         comments.
36209
36210 2008-04-25  Eric Blake  <ebb9@byu.net>
36211
36212         Use native fstatat on cygwin 1.7.0.
36213         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
36214         first.
36215
36216 2008-04-23  Eric Blake  <ebb9@byu.net>
36217
36218         Improve memchr2 performance.
36219         * lib/memchr2.c (memchr2): Further optimize parallel detection of
36220         NUL bytes.
36221         * modules/memchr2 (Depends-on): Use intprops.h.
36222
36223 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36224
36225         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
36226         an inline function instead of a CPP macro.  Patch by Ben Pfaff
36227         <blp@cs.stanford.edu>.
36228
36229 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36230
36231         * lib/arpa_inet.in.h: New file.
36232
36233         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
36234         (Makefile.am): Sed in substitute header file.
36235
36236         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
36237         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
36238
36239         * modules/inet_ntop (configure.ac): Use
36240         gl_ARPA_INET_MODULE_INDICATOR.
36241
36242         * modules/inet_pton (configure.ac): Use
36243         gl_ARPA_INET_MODULE_INDICATOR.
36244
36245 2008-04-22  Jim Meyering  <meyering@redhat.com>
36246
36247         * modules/verify (License): Re-license as LGPLv2+.
36248
36249 2008-04-22  Simon Josefsson  <simon@josefsson.org>
36250
36251         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
36252         parameter to void* as per POSIX standard (MinGW uses char*).
36253
36254 2008-04-21  Bruno Haible  <bruno@clisp.org>
36255
36256         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36257         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36258         Define to replacements if REPLACE_ISWCNTRL is 1.
36259         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
36260         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
36261         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
36262         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
36263         what it fixes.
36264         * doc/posix-functions/iswalpha.texi: Likewise.
36265         * doc/posix-functions/iswblank.texi: Likewise.
36266         * doc/posix-functions/iswcntrl.texi: Likewise.
36267         * doc/posix-functions/iswdigit.texi: Likewise.
36268         * doc/posix-functions/iswgraph.texi: Likewise.
36269         * doc/posix-functions/iswlower.texi: Likewise.
36270         * doc/posix-functions/iswprint.texi: Likewise.
36271         * doc/posix-functions/iswpunct.texi: Likewise.
36272         * doc/posix-functions/iswspace.texi: Likewise.
36273         * doc/posix-functions/iswupper.texi: Likewise.
36274         * doc/posix-functions/iswxdigit.texi: Likewise.
36275         Reported by Alain Guibert.
36276
36277 2008-04-21  Bruno Haible  <bruno@clisp.org>
36278
36279         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
36280         Patch by Alain Guibert.
36281
36282 2008-04-21  Bruno Haible  <bruno@clisp.org>
36283
36284         Fix test failures on mingw.
36285         * tests/test-xstrtol.c (print_no_progname): New function.
36286         (main): Install it in error_print_progname hook.
36287         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
36288         * tests/test-xstrtoimax.sh: Likewise.
36289         * tests/test-xstrtoumax.sh: Likewise.
36290
36291 2008-04-21  Bruno Haible  <bruno@clisp.org>
36292
36293         Fix test failure on mingw.
36294         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
36295
36296 2008-04-21  Bruno Haible  <bruno@clisp.org>
36297
36298         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
36299         Actually assign a value.
36300
36301 2008-04-20  Bruno Haible  <bruno@clisp.org>
36302
36303         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
36304         take 2.
36305         * lib/canonicalize.c (canonicalize_file_name): Elide if the
36306         'canonicalize-lgpl' module is also used.
36307         * lib/canonicalize-lgpl.c: Undo last change.
36308         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
36309
36310 2008-04-20  Bruno Haible  <bruno@clisp.org>
36311
36312         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
36313         config.h. Provide _mkdir based fallback for mingw.
36314         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
36315         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
36316         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
36317         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
36318         rather than defining mkdir in config.h.
36319         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
36320         (gl_SYS_STAT_H_DEFAULTS): New macro.
36321         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
36322         HAVE_IO_H any more.
36323         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
36324         HAVE_DECL_MKDIR and HAVE_IO_H.
36325
36326 2008-04-20  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/isapipe.c: Port to native Windows platforms.
36329
36330 2008-04-20  Bruno Haible  <bruno@clisp.org>
36331
36332         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
36333
36334 2008-04-21  Eric Blake  <ebb9@byu.net>
36335
36336         Work around preprocessors that don't handle UINTMAX_MAX.
36337         * lib/memchr2.c (memchr2): Avoid embedded #if.
36338         Reported by Alain Guibert, fix suggested by Bruno Haible.
36339
36340 2008-04-21  Simon Josefsson  <simon@josefsson.org>
36341
36342         * doc/posix-functions/strftime.texi (strftime): Explain better
36343         Windows incompatibility.  Suggested by Micah Cowan
36344         <micah@cowan.name>.
36345
36346 2008-04-20  Bruno Haible  <bruno@clisp.org>
36347
36348         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
36349         unistr/u8-mblen.
36350
36351 2008-04-20  Bruno Haible  <bruno@clisp.org>
36352
36353         Fix test failure on platforms with non-GNU iconv.
36354         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
36355         (U_TO_U8): Use it, rather than u16_to_u8.
36356         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
36357         units at the end of the input string.
36358         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
36359
36360 2008-04-20  Bruno Haible  <bruno@clisp.org>
36361
36362         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
36363         when the resulting length is 0.
36364         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
36365
36366 2008-04-20  Bruno Haible  <bruno@clisp.org>
36367
36368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
36369         works.
36370         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
36371
36372 2008-04-20  Bruno Haible  <bruno@clisp.org>
36373
36374         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
36375         * modules/tsearch-tests (configure.ac): Test for initstate function.
36376
36377 2008-04-20  Bruno Haible  <bruno@clisp.org>
36378
36379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
36380         for nlink_t if missing.
36381         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
36382
36383 2008-04-19  Bruno Haible  <bruno@clisp.org>
36384
36385         Work around snprintf bug on Linux libc5.
36386         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
36387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36388         gl_SNPRINTF_SIZE1.
36389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36390         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
36391         that test failed.
36392         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
36393         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
36394         * modules/snprintf (Files): Add m4/printf.m4.
36395         * modules/vsnprintf (Files): Likewise.
36396         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
36397         * doc/posix-functions/vsnprintf.texi: Likewise.
36398
36399 2008-04-19  Bruno Haible  <bruno@clisp.org>
36400
36401         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
36402         from 0.0058 to less than 10^-7.
36403
36404 2008-04-19  Bruno Haible  <bruno@clisp.org>
36405
36406         Fix rounding when a precision is given.
36407         * lib/vasnprintf.c (is_borderline): New function.
36408         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
36409         9...9x.
36410         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
36411         %e, %g.
36412         * tests/test-vasprintf-posix.c (test_function): Likewise.
36413         * tests/test-snprintf-posix.h (test_function): Likewise.
36414         * tests/test-sprintf-posix.h (test_function): Likewise.
36415         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
36416         * tests/test-printf-posix.h (test_function): Likewise.
36417         * tests/test-printf-posix.output: Update.
36418         Reported by John Darrington <john@darrington.wattle.id.au> via
36419         Ben Pfaff <blp@cs.stanford.edu>.
36420
36421 2008-04-18  Simon Josefsson  <simon@josefsson.org>
36422
36423         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
36424         Suggested by Bruno Haible <bruno@clisp.org>.
36425
36426 2008-04-17  Bruno Haible  <bruno@clisp.org>
36427
36428         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
36429         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
36430         implementation.
36431         Patch by Bruce Merry <bmerry@gmail.com>.
36432
36433 2008-04-17  Simon Josefsson  <simon@josefsson.org>
36434
36435         * doc/posix-functions/strftime.texi (strftime): Mention that %e
36436         doesn't work under Windows.
36437
36438 2008-04-16  Bruno Haible  <bruno@clisp.org>
36439
36440         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
36441         New macros.
36442         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
36443         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
36444         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
36445         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
36446         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
36447         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
36448         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
36449         macros.
36450         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
36451         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
36452         Northern Sotho, Uighur.
36453
36454 2008-04-16  Bruno Haible  <bruno@clisp.org>
36455
36456         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
36457         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
36458         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
36459         Reported by Daniel Bergström <daniel@octocode.com>.
36460
36461 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
36462             Bruno Haible  <bruno@clisp.org>
36463
36464         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
36465         function.
36466         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
36467         New functions, mostly extracted from gl_locale_name_default.
36468         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
36469
36470 2008-04-16  Eric Blake  <ebb9@byu.net>
36471
36472         Adjust strtod detection to catch glibc 2.7 bug.
36473         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
36474         Reported by John Gatewood Ham.
36475
36476 2008-04-16  Bruno Haible  <bruno@clisp.org>
36477
36478         Add tentative support for Linux libc5.
36479         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
36480         * lib/fpurge.c (fpurge): Likewise.
36481         * lib/freadable.c (freadable): Likewise.
36482         * lib/freadahead.c (freadahead): Likewise.
36483         * lib/freading.c (freading): Likewise.
36484         * lib/freadptr.c (freadptr): Likewise.
36485         * lib/freadseek.c (freadptrinc): Likewise.
36486         * lib/fseeko.c (rpl_fseeko): Likewise.
36487         * lib/fseterr.c (fseterr): Likewise.
36488         * lib/fwritable.c (fwritable): Likewise.
36489         * lib/fwriting.c (fwriting): Likewise.
36490         Reported by Alain Guibert <alguibert+bts@free.fr>.
36491
36492 2008-04-15  Bruno Haible  <bruno@clisp.org>
36493
36494         * modules/mathl (configure.ac): Define module indicator.
36495
36496 2008-04-15  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/logl.c (logl): Remove unused variables.
36499
36500 2008-04-15  Bruno Haible  <bruno@clisp.org>
36501
36502         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
36503         fails.
36504
36505 2008-04-15  Bruno Haible  <bruno@clisp.org>
36506
36507         * lib/trim.c (trim2): Fix argument of isspace() macro.
36508
36509 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
36510
36511         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
36512         to 0.
36513         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
36514
36515 2008-04-14  Bruno Haible  <bruno@clisp.org>
36516
36517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
36518         AC_LANG_PROGRAM argument.
36519         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
36520         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
36521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36522         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36523         * m4/math_h.m4 (gl_MATH_H): Likewise.
36524         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
36525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36526         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
36528         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36529         * m4/regex.m4 (gl_REGEX): Likewise.
36530         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
36531         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
36532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36533         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
36534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36535         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36537         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36538
36539 2008-04-14  Jim Meyering  <meyering@redhat.com>
36540
36541         test-strtod: fix typos: s/abs/fabs/
36542         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
36543
36544 2008-04-13  Bruno Haible  <bruno@clisp.org>
36545
36546         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
36547         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
36548         module is also used and while not building the reloc-wrapper.
36549
36550 2008-04-13  Bruno Haible  <bruno@clisp.org>
36551
36552         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
36553
36554 2008-04-13  Bruno Haible  <bruno@clisp.org>
36555
36556         Fix AIX compilation failure introduced on 2008-04-02.
36557         * tests/test-frexp.c (exp): Undefine before redefining.
36558         * tests/test-frexpl.c (exp): Likewise.
36559
36560 2008-04-13  Bruno Haible  <bruno@clisp.org>
36561
36562         Work around a HP-UX stdio bug.
36563         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
36564         * tests/test-ftello.c (main): Likewise.
36565         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
36566         * doc/posix-functions/ftello.texi: Likewise.
36567
36568 2008-04-13  Bruno Haible  <bruno@clisp.org>
36569
36570         Make test-signbit pass on HP-UX/hppa.
36571         * tests/test-signbit.c (minus_zerol): New variable.
36572         (test_signbitl): Use it.
36573
36574 2008-04-13  Bruno Haible  <bruno@clisp.org>
36575
36576         Make truncl work on OSF/1 4.0.
36577         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
36578         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36579         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
36581         HAVE_DECL_TRUNCL.
36582         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
36583         HAVE_DECL_TRUNCL.
36584         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
36585
36586 2008-04-13  Bruno Haible  <bruno@clisp.org>
36587
36588         * lib/unictype.h: Remove trailing comma from enumeration definitions.
36589
36590 2008-04-13  Bruno Haible  <bruno@clisp.org>
36591
36592         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
36593         expression, so as to avoid HP-UX 11 cc compiler bug.
36594
36595 2008-04-13  Bruno Haible  <bruno@clisp.org>
36596
36597         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
36598
36599 2008-04-13  Bruno Haible  <bruno@clisp.org>
36600
36601         * lib/git-merge-changelog.c: Remove empty declaration outside of
36602         functions.
36603
36604 2008-04-13  Bruno Haible  <bruno@clisp.org>
36605
36606         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
36607
36608 2008-04-13  Bruno Haible  <bruno@clisp.org>
36609
36610         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
36611         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
36612         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
36613         also if it exists but lacks definitions of the SHUT_* macros.
36614         * modules/sys_socket (Description): Update.
36615         Reported by Elbert Pol <e.pol@chello.nl>.
36616
36617 2008-04-13  Bruno Haible  <bruno@clisp.org>
36618
36619         * lib/localcharset.c (OS2): Don't redefine if already defined.
36620         Reported by Elbert Pol <e.pol@chello.nl>.
36621
36622 2008-04-13  Bruno Haible  <bruno@clisp.org>
36623
36624         * lib/binary-io.h [__EMX__]: Include <io.h>.
36625         Reported by Elbert Pol <e.pol@chello.nl>.
36626
36627 2008-04-12  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/fpucw.h: Enable the definitions also for x86_64.
36630         Needed for NetBSD/x86_64.
36631         Reported by Thomas Klausner <tk@giga.or.at>.
36632
36633 2008-04-12  Bruno Haible  <bruno@clisp.org>
36634
36635         * tests/test-strtod.c: Include isnand.h.
36636         (main): Use isnand instead of isnan.
36637         Reported by Jim Meyering.
36638
36639 2008-04-12  Bruno Haible  <bruno@clisp.org>
36640
36641         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
36642         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36643
36644 2008-04-12  Jim Meyering  <meyering@redhat.com>
36645
36646         * m4/math_h.m4 (gl_MATH_H): Fix typos.
36647
36648 2008-04-12  Bruno Haible  <bruno@clisp.org>
36649
36650         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
36651         Reported by Elbert Pol <e.pol@chello.nl>.
36652
36653 2008-04-12  Eric Blake  <ebb9@byu.net>
36654
36655         Work around Solaris 10 math.h bug.
36656         * m4/math_h.m4 (gl_MATH_H): Check for bug.
36657         (gl_MATH_H_DEFAULTS): Set up default.
36658         * modules/math (Makefile.am): Replace new indicators.
36659         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
36660         * tests/test-math.c (main): Test this.
36661         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
36662         * doc/posix-headers/math.texi (math.h): Mention bug.
36663         Reported by Nelson H. F. Beebe and Jim Meyering.
36664
36665 2008-04-11  Bruno Haible  <bruno@clisp.org>
36666
36667         Adapt to future versions of Apple GCC.
36668         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
36669         Reported by Peter O'Gorman <peter@pogma.com>.
36670
36671 2008-04-11  Bruno Haible  <bruno@clisp.org>
36672
36673         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
36674
36675 2008-04-11  Bruno Haible  <bruno@clisp.org>
36676
36677         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
36678
36679         * modules/getaddrinfo-tests (Makefile.am): Define
36680         test_getaddrinfo_LDADD.
36681
36682 2008-04-11  Bruno Haible  <bruno@clisp.org>
36683
36684         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
36685         (init): Fix syntax error.
36686         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
36687         is declared.
36688
36689 2008-04-11  Bruno Haible  <bruno@clisp.org>
36690
36691         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
36692         * modules/glob (Depends-on): Add stdbool.
36693
36694 2008-04-11  Bruno Haible  <bruno@clisp.org>
36695
36696         * lib/trim.c: Include <string.h>.
36697
36698 2008-04-11  Eric Blake  <ebb9@byu.net>
36699
36700         Avoid compile failure on OS/2.
36701         * lib/regex_internal.h (internal_function): Disable optimization
36702         on OS/2 (__EMX__), where it caused compiler error.
36703         Reported by Elbert Pol.
36704
36705 2008-04-11  Bruno Haible  <bruno@clisp.org>
36706
36707         Flush the standard error stream before aborting. Needed on mingw.
36708         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
36709         * tests/test-array_list.c (ASSERT): Likewise.
36710         * tests/test-array_oset.c (ASSERT): Likewise.
36711         * tests/test-avltree_list.c (ASSERT): Likewise.
36712         * tests/test-avltree_oset.c (ASSERT): Likewise.
36713         * tests/test-avltreehash_list.c (ASSERT): Likewise.
36714         * tests/test-binary-io.c (ASSERT): Likewise.
36715         * tests/test-byteswap.c (ASSERT): Likewise.
36716         * tests/test-c-ctype.c (ASSERT): Likewise.
36717         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
36718         * tests/test-c-strcasestr.c (ASSERT): Likewise.
36719         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
36720         * tests/test-c-strstr.c (ASSERT): Likewise.
36721         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
36722         * tests/test-canonicalize.c (ASSERT): Likewise.
36723         * tests/test-carray_list.c (ASSERT): Likewise.
36724         * tests/test-ceilf1.c (ASSERT): Likewise.
36725         * tests/test-ceilf2.c (ASSERT): Likewise.
36726         * tests/test-ceill.c (ASSERT): Likewise.
36727         * tests/test-count-one-bits.c (ASSERT): Likewise.
36728         * tests/test-fbufmode.c (ASSERT): Likewise.
36729         * tests/test-fflush2.c (ASSERT): Likewise.
36730         * tests/test-floorf1.c (ASSERT): Likewise.
36731         * tests/test-floorf2.c (ASSERT): Likewise.
36732         * tests/test-floorl.c (ASSERT): Likewise.
36733         * tests/test-fopen.c (ASSERT): Likewise.
36734         * tests/test-fpending.c (ASSERT): Likewise.
36735         * tests/test-fprintf-posix.c (ASSERT): Likewise.
36736         * tests/test-fpurge.c (ASSERT): Likewise.
36737         * tests/test-freadable.c (ASSERT): Likewise.
36738         * tests/test-freadahead.c (ASSERT): Likewise.
36739         * tests/test-freading.c (ASSERT): Likewise.
36740         * tests/test-freadptr.c (ASSERT): Likewise.
36741         * tests/test-freadptr2.c (ASSERT): Likewise.
36742         * tests/test-freadseek.c (ASSERT): Likewise.
36743         * tests/test-freopen.c (ASSERT): Likewise.
36744         * tests/test-frexp.c (ASSERT): Likewise.
36745         * tests/test-frexpl.c (ASSERT): Likewise.
36746         * tests/test-fseek.c (ASSERT): Likewise.
36747         * tests/test-fseeko.c (ASSERT): Likewise.
36748         * tests/test-fstrcmp.c (ASSERT): Likewise.
36749         * tests/test-ftell.c (ASSERT): Likewise.
36750         * tests/test-ftello.c (ASSERT): Likewise.
36751         * tests/test-func.c (ASSERT): Likewise.
36752         * tests/test-fwritable.c (ASSERT): Likewise.
36753         * tests/test-fwriting.c (ASSERT): Likewise.
36754         * tests/test-getdelim.c (ASSERT): Likewise.
36755         * tests/test-getline.c (ASSERT): Likewise.
36756         * tests/test-i-ring.c (ASSERT): Likewise.
36757         * tests/test-iconv-utf.c (ASSERT): Likewise.
36758         * tests/test-iconv.c (ASSERT): Likewise.
36759         * tests/test-isfinite.c (ASSERT): Likewise.
36760         * tests/test-isnand.c (ASSERT): Likewise.
36761         * tests/test-isnanf.c (ASSERT): Likewise.
36762         * tests/test-isnanl.h (ASSERT): Likewise.
36763         * tests/test-ldexpl.c (ASSERT): Likewise.
36764         * tests/test-linked_list.c (ASSERT): Likewise.
36765         * tests/test-linkedhash_list.c (ASSERT): Likewise.
36766         * tests/test-localename.c (ASSERT): Likewise.
36767         * tests/test-lseek.c (ASSERT): Likewise.
36768         * tests/test-mbscasecmp.c (ASSERT): Likewise.
36769         * tests/test-mbscasestr1.c (ASSERT): Likewise.
36770         * tests/test-mbscasestr2.c (ASSERT): Likewise.
36771         * tests/test-mbscasestr3.c (ASSERT): Likewise.
36772         * tests/test-mbscasestr4.c (ASSERT): Likewise.
36773         * tests/test-mbschr.c (ASSERT): Likewise.
36774         * tests/test-mbscspn.c (ASSERT): Likewise.
36775         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
36776         * tests/test-mbspbrk.c (ASSERT): Likewise.
36777         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
36778         * tests/test-mbsrchr.c (ASSERT): Likewise.
36779         * tests/test-mbsspn.c (ASSERT): Likewise.
36780         * tests/test-mbsstr1.c (ASSERT): Likewise.
36781         * tests/test-mbsstr2.c (ASSERT): Likewise.
36782         * tests/test-mbsstr3.c (ASSERT): Likewise.
36783         * tests/test-memchr2.c (ASSERT): Likewise.
36784         * tests/test-memmem.c (ASSERT): Likewise.
36785         * tests/test-open.c (ASSERT): Likewise.
36786         * tests/test-printf-frexp.c (ASSERT): Likewise.
36787         * tests/test-printf-frexpl.c (ASSERT): Likewise.
36788         * tests/test-printf-posix.c (ASSERT): Likewise.
36789         * tests/test-quotearg.c (ASSERT): Likewise.
36790         * tests/test-rbtree_list.c (ASSERT): Likewise.
36791         * tests/test-rbtree_oset.c (ASSERT): Likewise.
36792         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
36793         * tests/test-round1.c (ASSERT): Likewise.
36794         * tests/test-roundf1.c (ASSERT): Likewise.
36795         * tests/test-roundl.c (ASSERT): Likewise.
36796         * tests/test-signbit.c (ASSERT): Likewise.
36797         * tests/test-sleep.c (ASSERT): Likewise.
36798         * tests/test-snprintf-posix.c (ASSERT): Likewise.
36799         * tests/test-snprintf.c (ASSERT): Likewise.
36800         * tests/test-sprintf-posix.c (ASSERT): Likewise.
36801         * tests/test-stat-time.c (ASSERT): Likewise.
36802         * tests/test-strcasestr.c (ASSERT): Likewise.
36803         * tests/test-strerror.c (ASSERT): Likewise.
36804         * tests/test-striconv.c (ASSERT): Likewise.
36805         * tests/test-striconveh.c (ASSERT): Likewise.
36806         * tests/test-striconveha.c (ASSERT): Likewise.
36807         * tests/test-strsignal.c (ASSERT): Likewise.
36808         * tests/test-strstr.c (ASSERT): Likewise.
36809         * tests/test-strtod.c (ASSERT): Likewise.
36810         * tests/test-trunc1.c (ASSERT): Likewise.
36811         * tests/test-trunc2.c (ASSERT): Likewise.
36812         * tests/test-truncf1.c (ASSERT): Likewise.
36813         * tests/test-truncf2.c (ASSERT): Likewise.
36814         * tests/test-truncl.c (ASSERT): Likewise.
36815         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
36816         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
36817         * tests/test-vasnprintf.c (ASSERT): Likewise.
36818         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
36819         * tests/test-vasprintf.c (ASSERT): Likewise.
36820         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
36821         * tests/test-vprintf-posix.c (ASSERT): Likewise.
36822         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
36823         * tests/test-vsnprintf.c (ASSERT): Likewise.
36824         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
36825         * tests/test-wcwidth.c (ASSERT): Likewise.
36826         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
36827         * tests/test-xprintf-posix.c (ASSERT): Likewise.
36828         * tests/test-xvasprintf.c (ASSERT): Likewise.
36829         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
36830         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
36831         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
36832         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
36833         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
36834         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
36835         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
36836         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
36837         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
36838         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
36839         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
36840         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
36841         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
36842         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
36843         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
36844         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
36845         * tests/unictype/test-block_list.c (ASSERT): Likewise.
36846         * tests/unictype/test-block_of.c (ASSERT): Likewise.
36847         * tests/unictype/test-block_test.c (ASSERT): Likewise.
36848         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
36849         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
36850         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
36851         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
36852         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
36853         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
36854         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
36855         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
36856         * tests/unictype/test-combining.c (ASSERT): Likewise.
36857         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
36858         * tests/unictype/test-digit.c (ASSERT): Likewise.
36859         * tests/unictype/test-mirror.c (ASSERT): Likewise.
36860         * tests/unictype/test-numeric.c (ASSERT): Likewise.
36861         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
36862         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
36863         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
36864         * tests/unictype/test-scripts.c (ASSERT): Likewise.
36865         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
36866         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
36867         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
36868         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
36869         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
36870         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
36871         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
36872         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
36873         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
36874         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
36875         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
36876         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
36877         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
36878         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
36879         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
36880         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
36881         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
36882         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
36883         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
36884         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
36885         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
36886         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
36887         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
36888         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
36889         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
36890         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
36891         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
36892         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
36893         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
36894         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
36895         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
36896         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
36897         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
36898         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
36899         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
36900         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
36901         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
36902         Reported by Eric Blake.
36903
36904 2008-04-11  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/wchar.in.h: Tweak comment.
36907
36908 2008-04-11  Bruno Haible  <bruno@clisp.org>
36909
36910         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
36911         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
36912         gl_COMMON.
36913         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
36914
36915 2008-04-11  Bruno Haible  <bruno@clisp.org>
36916
36917         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
36918
36919 2008-04-11  Simon Josefsson  <simon@josefsson.org>
36920
36921         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
36922         of attempting to use non-existing /dev/*random.  Based on patch
36923         from Adam Strzelecki <ono@java.pl> in
36924         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
36925
36926 2008-04-08  Bruno Haible  <bruno@clisp.org>
36927
36928         Add tentative support for emx+gcc.
36929         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
36930         * lib/fpurge.c (fpurge): Likewise.
36931         * lib/freadable.c (freadable): Likewise.
36932         * lib/freadahead.c (freadahead): Likewise.
36933         * lib/freading.c (freading): Likewise.
36934         * lib/freadptr.c (freadptr): Likewise.
36935         * lib/freadseek.c (freadptrinc): Likewise.
36936         * lib/fseeko.c (rpl_fseeko): Likewise.
36937         * lib/fseterr.c (fseterr): Likewise.
36938         * lib/fwritable.c (fwritable): Likewise.
36939         * lib/fwriting.c (fwriting): Likewise.
36940         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
36941
36942 2008-04-09  Eric Blake  <ebb9@byu.net>
36943
36944         Avoid some autoconf warnings.
36945         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
36946         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
36947         * m4/afs.m4 (gl_AFS): Likewise.
36948         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
36949         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
36950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36951         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
36952         (gl_INTEGER_TYPE_SUFFIX): Likewise.
36953         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
36954         (AC_CHECK_DECLS_ONCE): Likewise.
36955         Rename file...
36956         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
36957         gnulib-tool requires autoconf 2.59 or better.
36958         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
36959
36960 2008-04-08  Eric Blake  <ebb9@byu.net>
36961
36962         Use 'git describe --match' if present (added in git 1.5.5).
36963         * build-aux/git-version-gen: Limit result to tags that match 'v*'
36964         if possible.
36965
36966 2008-04-08  Bruno Haible  <bruno@clisp.org>
36967
36968         Add tentative support for OpenServer.
36969         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
36970         _ptr, _cnt.
36971         * lib/fpurge.c (fpurge): Likewise.
36972         * lib/freadable.c (freadable): Likewise.
36973         * lib/freadahead.c (freadahead): Likewise.
36974         * lib/freading.c (freading): Likewise.
36975         * lib/freadptr.c (freadptr): Likewise.
36976         * lib/freadseek.c (freadptrinc): Likewise.
36977         * lib/fseeko.c (rpl_fseeko): Likewise.
36978         * lib/fseterr.c (fseterr): Likewise.
36979         * lib/fwritable.c (fwritable): Likewise.
36980         * lib/fwriting.c (fwriting): Likewise.
36981         Reported by Roger Cornelius <rac@tenzing.org> and
36982         Brian K. White <brian@aljex.com>.
36983
36984 2008-04-06  Jim Meyering  <meyering@redhat.com>
36985
36986         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
36987
36988 2008-04-06  Bruno Haible  <bruno@clisp.org>
36989
36990         Avoid possible error with non-ASCII bytes in UTF-8 locales.
36991         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
36992         * tests/test-printf-posix.sh: Likewise.
36993         * tests/test-vfprintf-posix.sh: Likewise.
36994         * tests/test-vprintf-posix.sh: Likewise.
36995         * tests/test-xprintf-posix.sh: Likewise.
36996
36997 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36998
36999         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
37000         hide error from 'ls', needed on OS/2.
37001         Report by Elbert Pol <elbert.pol@gmail.com>.
37002
37003 2008-04-04  Eric Blake  <ebb9@byu.net>
37004
37005         Make test-fseeko.c failures meaningful.
37006         * tests/test-fseeko.c: Print line number on failure.
37007         * tests/test-fseek.c: Likewise.
37008         Reported by Nelson H. F. Beebe.
37009
37010         Improve strtod bug detection check.
37011         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
37012         required for Solaris 10.
37013         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
37014
37015 2008-04-04  Bruno Haible  <bruno@clisp.org>
37016
37017         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
37018         by m4/setenv.m4.
37019
37020 2008-04-03  Eric Blake  <ebb9@byu.net>
37021
37022         Ensure sane .version contents.
37023         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
37024         version string.
37025         * build-aux/git-version-gen: Improve documentation.
37026
37027         Make GNU make output nicer.
37028         * top/GNUmakefile [!_have-Makefile]: Add dependency on
37029         MAKECMDGOALS to enforce message for all command line targets.  Set
37030         srcdir for use in maint.mk.
37031
37032         Another maintainer tweak.
37033         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
37034         a target that regenerates version.
37035
37036 2008-04-03  Jim Meyering  <meyering@redhat.com>
37037
37038         vc-list-files: don't cause coreutils "make po-check" failure
37039         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
37040
37041 2008-04-03  Eric Blake  <ebb9@byu.net>
37042
37043         Allow VPATH usage of vc-list-files.
37044         * build-aux/vc-list-files (scriptversion): Add timestamp.
37045         (options): Add --help, --version, -C.
37046         (CVS): Support installed cvsu.
37047
37048 2008-04-02  Bruno Haible  <bruno@clisp.org>
37049
37050         Avoid some "statement with no effect" warnings from gcc.
37051         * tests/test-wctype.c (main): Explicitly ignore unused values.
37052         Reported by Jim Meyering.
37053
37054 2008-04-02  Jim Meyering  <meyering@redhat.com>
37055
37056         Avoid some warnings from "gcc -Wshadow".
37057         * tests/test-frexp.c (exp): Define to a different identifier.
37058         * tests/test-frexpl.c (exp): Likewise.
37059
37060 2008-04-03  Jim Meyering  <meyering@redhat.com>
37061
37062         bootstrap: remove dangling *.[ch] symlinks from lib
37063         * build-aux/bootstrap [dangling symlink removal]: Move find's
37064         -depth option to precede all others, to avoid a warning.
37065         Remove *.[ch] files too, and from "$source_base" (usually lib/).
37066
37067 2008-04-02  Bruno Haible  <bruno@clisp.org>
37068
37069         Avoid some warnings from "gcc -Wshadow".
37070         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
37071         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
37072         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
37073         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
37074         Reported by Jim Meyering.
37075
37076 2008-04-01  Bruno Haible  <bruno@clisp.org>
37077
37078         Fix test to work on IRIX 6.5 with cc.
37079         * tests/test-math.c (numeric_equal): New function.
37080         (main): Use it.
37081
37082 2008-04-01  Bruno Haible  <bruno@clisp.org>
37083
37084         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
37085
37086 2008-04-01  Bruno Haible  <bruno@clisp.org>
37087
37088         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
37089         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37090         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
37091         (Depends-on): Remove math.
37092
37093         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
37094         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37095         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
37096         (Depends-on): Remove math.
37097
37098         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
37099         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37100         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
37101         (Depends-on): Remove math.
37102         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
37103         (Depends-on): Remove math.
37104
37105         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
37106         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37107         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
37108         (Depends-on): Remove math.
37109         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
37110         (Depends-on): Remove math.
37111
37112         * tests/test-round1.c: Include nan.h.
37113         (main): Use NaNd instead of NAN.
37114         * modules/round-tests (Files): Add tests/nan.h.
37115
37116         * tests/test-trunc1.c: Include nan.h.
37117         (main): Use NaNd instead of NAN.
37118         * modules/trunc-tests (Files): Add tests/nan.h.
37119
37120         * tests/test-roundf1.c: Include nan.h.
37121         (main): Use NaNf instead of NAN.
37122         * modules/roundf-tests (Files): Add tests/nan.h.
37123
37124         * tests/test-truncf1.c: Include nan.h.
37125         (main): Use NaNf instead of NAN.
37126         * modules/truncf-tests (Files): Add tests/nan.h.
37127
37128         * tests/test-ceilf1.c: Include nan.h.
37129         (main): Use NaNf instead of NAN.
37130         * modules/ceilf-tests (Files): Add tests/nan.h.
37131
37132         * tests/test-floorf1.c: Include nan.h.
37133         (main): Use NaNf instead of NAN.
37134         * modules/floorf-tests (Files): Add tests/nan.h.
37135
37136         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
37137         (main): Use NaNf instead of NAN.
37138         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
37139
37140         * tests/test-isnand.c: Include nan.h instead of <math.h>.
37141         (main): Use NaNd instead of NAN.
37142         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
37143
37144         * tests/test-frexp.c: Include nan.h.
37145         (main): Use NaNd instead of NAN.
37146         * modules/frexp-tests (Files): Add tests/nan.h.
37147
37148         * lib/isnan.c: Don't include <math.h>.
37149         (FUNC): Don't use NAN macro.
37150         * modules/isnand-nolibm (Depends-on): Remove math.
37151         * modules/isnanf-nolibm (Depends-on): Remove math.
37152         * modules/isnanl (Depends-on): Remove math.
37153         * modules/isnanl-nolibm (Depends-on): Remove math.
37154
37155         * tests/nan.h: New file.
37156
37157 2008-04-01  Eric Blake  <ebb9@byu.net>
37158
37159         Fix typos.
37160         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
37161         values to be the right type.
37162
37163         For now, cater to gnulib strtod inaccuracies.
37164         * tests/test-strtod.c (main): Allow 1-ulp error on expected
37165         fractional results.  While not as nice from a QoI perspective, it
37166         is a quicker patch than correctly implementing decimal to binary
37167         rounding.
37168
37169 2008-03-31  Eric Blake  <ebb9@byu.net>
37170
37171         Guarantee a definition of NAN.
37172         * lib/math.in.h (NAN): Define if missing.
37173         * tests/test-math.c (main): Test it.
37174         * doc/posix-headers/math.texi (math.h): Document this.
37175         * lib/isnan.c (rpl_isnand): Use it.
37176         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
37177         * tests/test-floorf1.c (NaN): Likewise.
37178         * tests/test-frexp.c (NaN): Likewise.
37179         * tests/test-isnand.c (NaN): Likewise.
37180         * tests/test-isnanf.c (NaN): Likewise.
37181         * tests/test-round1.c (NaN): Likewise.
37182         * tests/test-roundf1.c (NaN): Likewise.
37183         * tests/test-snprintf-posix.h (NaN): Likewise.
37184         * tests/test-sprintf-posix.h (NaN): Likewise.
37185         * tests/test-trunc1.c (NaN): Likewise.
37186         * tests/test-truncf1.c (NaN): Likewise.
37187         * tests/test-vasnprintf-posix.c (NaN): Likewise.
37188         * tests/test-vasprintf-posix.c (NaN): Likewise.
37189         * modules/isnand-nolibm (Depends-on): Add math.
37190         * modules/isnanf-nolibm (Depends-on): Likewise.
37191         * modules/isnanl (Depends-on): Likewise.
37192         * modules/isnanl-nolibm (Depends-on): Likewise.
37193         * modules/snprintf-posix-tests (Depends-on): Likewise.
37194         * modules/sprintf-posix-tests (Depends-on): Likewise.
37195         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
37196         * modules/vsprintf-posix-tests (Depends-on): Likewise.
37197         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
37198         * modules/vasprintf-posix-tests (Depends-on): Likewise.
37199
37200 2008-03-31  Bruno Haible  <bruno@clisp.org>
37201
37202         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
37203         * doc/posix-functions/strtod.texi: Likewise.
37204
37205 2008-03-31  Bruno Haible  <bruno@clisp.org>
37206
37207         * tests/test-strtod.c (main): Don't use C99 syntax.
37208
37209 2008-03-31  Bruno Haible  <bruno@clisp.org>
37210
37211         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
37212         Reported by Eric Blake.
37213
37214 2008-03-31  Jim Meyering  <meyering@redhat.com>
37215
37216         Don't compare actual signbit return values.
37217         * tests/test-strtod.c (main): Rather, compare only their
37218         zero/non-zero nature.
37219
37220 2008-03-31  Eric Blake  <ebb9@byu.net>
37221
37222         More strtod documentation.
37223         * doc/posix-functions/strtod.texi (strtod): Interpret more test
37224         failures as distinct bugs.
37225
37226 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37227
37228         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
37229         Problem reported by Erik Benada in
37230         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
37231
37232 2008-03-30  Bruno Haible  <bruno@clisp.org>
37233
37234         * tests/test-strtod.c: Add comments about which assertion fails on which
37235         platform.
37236         * doc/posix-functions/strtod.texi: Add info about many more platforms.
37237
37238 2008-03-30  Eric Blake  <ebb9@byu.net>
37239
37240         Test signbit behavior on zeros.
37241         * tests/test-signbit.c (test_signbitf): Add tests for zero.
37242         (test_signbitd, test_signbitl): Likewise.
37243
37244         More strtod touchups.
37245         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
37246         sign of negative underflow, for now.  Use .5, not .1.
37247         * doc/posix-functions/strtod.texi (strtod): Mention these
37248         limitations.
37249         Reported by Jim Meyering.
37250
37251 2008-03-30  Bruno Haible  <bruno@clisp.org>
37252
37253         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
37254         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
37255
37256 2008-03-30  Bruno Haible  <bruno@clisp.org>
37257
37258         Avoid failure when attempting to return empty iconv results on some
37259         platforms.
37260         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
37261         allocation, don't report ENOMEM when the resulting string is empty.
37262
37263 2008-03-30  Bruno Haible  <bruno@clisp.org>
37264
37265         Fix buffer overrun.
37266         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
37267         Don't consider the width for tmp_length. Check count against tmp_length
37268         before doing the padding. Ensure enough allocation during padding.
37269
37270 2008-03-30  Eric Blake  <ebb9@byu.net>
37271
37272         strtod touchups.
37273         * lib/strtod.c (strtod): Avoid compiler warnings.
37274         Reported by Jim Meyering.
37275
37276 2008-03-30  Bruno Haible  <bruno@clisp.org>
37277
37278         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
37279         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
37280         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
37281         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
37282         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
37283         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
37284         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
37285         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
37286
37287         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
37288         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
37289         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
37290         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
37291         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
37292         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
37293         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
37294         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
37295
37296         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
37297         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
37298         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
37299         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
37300         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
37301         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
37302         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
37303         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
37304
37305         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
37306         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
37307
37308         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
37309         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
37310
37311         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
37312         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
37313
37314         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
37315         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
37316         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
37317
37318         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
37319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
37320         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
37321
37322         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
37323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
37324         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
37325
37326         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
37327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
37328         * modules/vasprintf (Depends-on): Add EOVERFLOW.
37329
37330         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
37331         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
37332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
37333         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
37334         (Depends-on): Add EOVERFLOW.
37335         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
37336         (Depends-on): Add EOVERFLOW.
37337         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37338         (Depends-on): Add EOVERFLOW.
37339         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37340         (Depends-on): Add EOVERFLOW.
37341         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37342         (Depends-on): Add EOVERFLOW.
37343         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37344         (Depends-on): Add EOVERFLOW.
37345         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37346         (Depends-on): Add EOVERFLOW.
37347         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37348         (Depends-on): Add EOVERFLOW.
37349
37350         * lib/sprintf.c (EOVERFLOW): Remove fallback.
37351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
37352         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
37353
37354         * lib/snprintf.c (EOVERFLOW): Remove fallback.
37355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
37356         * modules/snprintf (Depends-on): Add EOVERFLOW.
37357
37358         * lib/poll.c (EOVERFLOW): Remove fallback.
37359         * modules/poll (Depends-on): Add EOVERFLOW.
37360
37361         * lib/getugroups.c (EOVERFLOW): Remove fallback.
37362         * modules/getugroups (Depends-on): Add EOVERFLOW.
37363
37364         * lib/getdelim.c (EOVERFLOW): Remove fallback.
37365         * modules/getdelim (Depends-on): Add EOVERFLOW.
37366
37367         * lib/ftell.c (EOVERFLOW): Remove fallback.
37368         * modules/ftell (Depends-on): Add EOVERFLOW.
37369
37370         * lib/fprintf.c (EOVERFLOW): Remove fallback.
37371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
37372         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
37373
37374         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
37375
37376         * modules/EOVERFLOW-tests: New file.
37377         * tests/test-EOVERFLOW.c: New file.
37378
37379         * modules/EOVERFLOW: New file.
37380         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
37381
37382 2008-03-30  Bruno Haible  <bruno@clisp.org>
37383
37384         Fix bug introduced on 2007-06-10.
37385         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
37386         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
37387
37388 2008-03-30  Bruno Haible  <bruno@clisp.org>
37389
37390         Improve freadseek's efficiency after ungetc.
37391         * lib/freadseek.c: Include freadahead.h.
37392         (freadptrinc): New function, extracted from freadseek.
37393         (freadseek): Use it in a loop. Use freadahead to determine the number
37394         of loop iterations.
37395         * modules/freadseek (Depends-on): Add freadahead.
37396         (configure.ac): Require AC_C_INLINE.
37397
37398 2008-03-30  Bruno Haible  <bruno@clisp.org>
37399
37400         * lib/freadseek.c (freadseek): Don't ignore the return value of
37401         freadptr.
37402
37403 2008-03-29  Eric Blake  <ebb9@byu.net>
37404
37405         Add hex float support.
37406         * modules/strtod (Depends-on): Add c-ctype.
37407         (Link): Mention POW_LIB.
37408         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
37409         whitespace between 'e' and exponent.
37410         * tests/test-strtod.c (main): Enable hex float tests.
37411         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
37412         now provides.
37413
37414         Document various strtod bugs, with some fixes.
37415         * doc/posix-functions/strtod.texi (strtod): Document bugs with
37416         "-0x", "inf", "nan", and hex constants.
37417         * doc/posix-functions/atof.texi (atof): Likewise.
37418         * modules/stdlib (Makefile.am): Support strtod.
37419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37420         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
37421         detect additional strtod bugs.
37422         * lib/stdlib.in.h (rpl_strtod): Add declarations.
37423         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
37424         bool where appropriate.  Parse 'inf' and 'nan'.
37425         * tests/test-strtod.c: New file.
37426         * modules/strtod (Depends-on): Add stdbool, stdlib.
37427         (configure.ac): Turn on module indicator.
37428         * modules/strtod-tests: New module.
37429
37430 2008-03-29  Eric Blake  <ebb9@byu.net>
37431
37432         Fix ftell on mingw.
37433         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
37434         * modules/ftell-tests (Depends-on): Add binary-io.
37435         * modules/ftello-tests (Depends-on): Likewise.
37436         * tests/test-ftell.c (main): Enhance test to cover behavior after
37437         ungetc.  Enforce binary mode.
37438         * tests/test-ftello.c (main): Likewise.
37439
37440         Pass test-freadseek on cygwin.
37441         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
37442         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
37443         ungetc buffer.
37444
37445         * tests/test-fflush2.c (main): Fix typo.
37446
37447 2008-03-29  Bruno Haible  <bruno@clisp.org>
37448
37449         * tests/test-fflush2.c (main): Temporarily disable the contents of
37450         this test.
37451         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
37452         Reported by Eric Blake.
37453
37454 2008-03-28  Simon Josefsson  <simon@josefsson.org>
37455
37456         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
37457         (GC_SHA224_DIGEST_SIZE): Add.
37458
37459         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
37460         (gc_hash_digest_length): Likewise.
37461         (gc_hash_buffer): Likewise.
37462
37463 2008-03-25  Bruno Haible  <bruno@clisp.org>
37464
37465         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
37466         detail which gettext release to use.
37467         Reported by Simon Josefsson.
37468
37469 2008-03-26  Jim Meyering  <meyering@redhat.com>
37470
37471         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
37472         * modules/gnumakefile (clean-GNUmakefile): Also, use
37473         test ... && ... || : syntax rather than if-then ... fi.
37474
37475         gnumakefile: Don't double-quote-expand $(VPATH) value.
37476         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
37477
37478 2008-03-24  Eric Blake  <ebb9@byu.net>
37479
37480         Alter GNUmakefile to install into top directory.
37481         * modules/maintainer-makefile: Split, and add dependency...
37482         * modules/gnumakefile: to this new module.
37483         * build-aux/GNUmakefile: Move...
37484         * top/GNUmakefile: ...here.
37485         * build-aux/maint.mk: Move...
37486         * top/maint.mk: ...here.
37487         * MODULES.html.sh (Support for maintaining...): Document new
37488         module.
37489
37490 2008-03-23  Bruno Haible  <bruno@clisp.org>
37491
37492         * gnulib-tool: New options --vc-files, --no-vc-files.
37493         (func_usage): Document them.
37494         (vc_files): New variable.
37495         (func_import): Consider vc_files.
37496         (func_create_testdir): Set vc_files to empty.
37497         Suggested by Jim Meyering and Karl Berry.
37498
37499 2008-03-23  Bruno Haible  <bruno@clisp.org>
37500
37501         Fix regex compilation error on HP-UX 11.
37502         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
37503         * modules/regex (Files): Add m4/mbstate_t.m4.
37504         Reported by Ton Voon <ton.voon@altinity.com>.
37505
37506 2008-03-23  Bruno Haible  <bruno@clisp.org>
37507
37508         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
37509
37510 2008-03-23  Eric Blake  <ebb9@byu.net>
37511             Bruno Haible  <bruno@clisp.org>
37512
37513         Install files from top/ in the destination directory.
37514         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37515         augmentation also for the files from top/.
37516         (func_import, func_create_testdir): Rewrite file names:
37517         top/filename -> filename.
37518
37519 2008-03-23  Bruno Haible  <bruno@clisp.org>
37520
37521         Tweak "gnulib --version" output.
37522         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
37523
37524 2008-03-23  Bruno Haible  <bruno@clisp.org>
37525
37526         Tweak "gnulib --version" output.
37527         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
37528         rather than contents of ChangeLog, when possible.
37529
37530 2008-03-21  Eric Blake  <ebb9@byu.net>
37531
37532         More --version tweaks.
37533         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
37534         date of last ChangeLog entry.
37535
37536 2008-03-21  Jim Meyering  <meyering@redhat.com>
37537
37538         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
37539
37540 2008-03-20  Eric Blake  <ebb9@byu.net>
37541
37542         VPATH fix.
37543         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
37544
37545 2008-03-20  Simon Josefsson  <simon@josefsson.org>
37546
37547         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
37548         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
37549
37550 2008-03-20  Eric Blake  <ebb9@byu.net>
37551
37552         Sync GNUmakefile with coreutils.
37553         * build-aux/GNUmakefile (have-Makefile): Rename...
37554         (_have-Makefile): ...to this, for namespace consideration.
37555         (GNUmakefile.cfg): Include, if present.
37556         (_autoreconf): Define a default.
37557         (_is-dist-target): New rule for rebuilds to pick up intra-release
37558         version.
37559         (maint-cfg.mk): Rename...
37560         (cfg.mk): ...to this.
37561
37562 2008-03-18  Jim Meyering  <meyering@redhat.com>
37563
37564         New script and module: mktempd
37565         * MODULES.html.sh (maint+release support): Add mktempd.
37566         * build-aux/mktempd: New file.
37567         * modules/mktempd: New file.
37568
37569 2008-03-15  Jim Meyering  <meyering@redhat.com>
37570
37571         Undo last change.
37572         * lib/sha1.c, lib/md5.c: 63 != ~63.
37573         Reported by Andreas Schwab.
37574
37575         sha1.c, md5.c: Hoist a redundant expression.
37576         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
37577         "ctx->buflen" only once, before calling *_process_block.
37578         * lib/md5.c (md5_process_bytes): Likewise.
37579
37580 2008-03-14  Eric Blake  <ebb9@byu.net>
37581
37582         Bump copyright year in files generated by gnulib-tool.
37583         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
37584         gnulib-tool, rather than hard-coding it.
37585
37586         Fix 'gnulib-tool --version' output to work with git.
37587         * gnulib-tool (func_gnulib_dir): New function, extracted from...
37588         (startup): ...here.
37589         (func_version): Use it to invoke git-version-gen, rather than
37590         relying on CVS keyword expansion.  Modernize wording.
37591         (cvsdatestamp, last_checkin_date, version): Kill unused
37592         variables.
37593
37594 2008-03-12  Jim Meyering  <meyering@redhat.com>
37595
37596         Recognize optional cast of the argument to free.
37597         * build-aux/useless-if-before-free: Update regexps.
37598
37599         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
37600
37601 2008-03-11  Bruno Haible  <bruno@clisp.org>
37602
37603         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
37604         by a single package.
37605         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
37606         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
37607         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
37608         Reported by Sam Steingold <sds@gnu.org>.
37609
37610 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37611
37612         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
37613         repositories.
37614
37615 2008-03-11  Bruno Haible  <bruno@clisp.org>
37616
37617         Avoid conflicts between local macro definitions.
37618         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37619         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
37620
37621 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
37622             Bruno Haible  <bruno@clisp.org>
37623
37624         Make va_copy work with some version of xlc on AIX 5.1.
37625         * lib/stdarg.in.h: New file.
37626         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
37627         On AIX, use a <stdarg.h> file substitute.
37628         * modules/stdarg (Files): Add lib/stdarg.in.h.
37629         (Depends-on): Add include_next.
37630         (Makefile.am): Build a stdarg.h substitute if requested.
37631         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
37632
37633 2008-03-10  Bruno Haible  <bruno@clisp.org>
37634
37635         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
37636         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37637         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37638
37639 2008-03-10  Bruno Haible  <bruno@clisp.org>
37640
37641         * modules/stdlib (Depends-on): Add include_next, remove
37642         absolute-header.
37643
37644 2008-03-09  Bruno Haible  <bruno@clisp.org>
37645
37646         * lib/freadahead.h (freadahead): Document more precisely.
37647         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
37648         the sum of both buffer sizes.
37649         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
37650         * NEWS: Document the change.
37651
37652 2008-03-09  Bruno Haible  <bruno@clisp.org>
37653
37654         Extend freadptr to return also the buffer size.
37655         * lib/freadptr.h (freadptr): Add sizep argument.
37656         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
37657         (freadptr): Add sizep argument. Determine buffer size like freadahead
37658         does.
37659         * tests/test-freadptr.c: Don't include freadahead.h.
37660         (main): Adapt for new calling convention of freadptr.
37661         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
37662         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
37663         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
37664         tests/test-freadptr2.sh.
37665         (Depends): Remove freadahead.
37666         (TESTS): Add test-freadptr2.sh.
37667         (check_PROGRAMS): Add test-freadptr2.
37668
37669 2008-03-09  Bruno Haible  <bruno@clisp.org>
37670
37671         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
37672         Report and solution by Simon Josefsson.
37673
37674 2008-03-06  Bruno Haible  <bruno@clisp.org>
37675
37676         Make fflush after ungetc work on BSD platforms.
37677         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
37678         * tests/test-fflush2.c: New file.
37679         * tests/test-fflush2.sh: New file.
37680         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
37681         tests/test-fflush2.c.
37682         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
37683         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
37684
37685 2008-03-06  Eric Blake  <ebb9@byu.net>
37686
37687         Likewise for ftello.
37688         * modules/ftello (Dependencies): Add extensions.
37689         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
37690
37691 2008-03-06  Bruno Haible  <bruno@clisp.org>
37692
37693         * modules/fseeko (Dependencies): Add extensions.
37694         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
37695         Needed on glibc systems.
37696
37697 2008-03-06  Bruno Haible  <bruno@clisp.org>
37698
37699         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
37700         email address.
37701         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37702
37703 2008-03-06  Bruno Haible  <bruno@clisp.org>
37704
37705         * users.txt: Add libgnupdf.
37706
37707 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37708
37709         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
37710         (Header File Substitutes, Function Substitutes,
37711         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
37712         (Build robot for gnulib): Fix typo.
37713
37714 2008-03-06  Bruno Haible  <bruno@clisp.org>
37715
37716         * doc/gnulib-tool.texi (VCS Issues): Small updates.
37717         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37718
37719 2008-03-06  Bruno Haible  <bruno@clisp.org>
37720
37721         * doc/func.texi: New file, extracted from doc/gnulib.texi.
37722         * doc/gnulib.texi: Include it.
37723
37724 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37725
37726         * modules/func (License): Change license to unlimited; there was
37727         no LGPL parts in the module anyway.
37728
37729 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37730
37731         * modules/__func__: Renamed to modules/func.
37732         * modules/__func__-tests: Renamed to modules/func-tests.
37733         * tests/test-__func__.c: Renamed to tests/test-func.c.
37734         * m4/__func__.m4: Renamed to m4/func.m4.
37735         * doc/gnulib.texi (__func__): Section renamed to func.
37736         Suggested by Eric Blake <ebb9@byu.net>.
37737
37738 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37739
37740         * doc/gnulib.texi (__func__): Use C99 terminology when talking
37741         about __func__.  Make example self-contained.  Suggested by Eric
37742         Blake <ebb9@byu.net>.
37743
37744         * tests/test-__func__.c (main): Avoid extraneous () around __func.
37745         Suggested by Eric Blake <ebb9@byu.net>.
37746
37747 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37748
37749         * modules/__func__: New file.
37750         * modules/__func__-tests: New file.
37751         * tests/test-__func__.c: New file.
37752         * m4/__func__.m4: New file.
37753         * doc/gnulib.texi (__func__): Document __func__ module.
37754
37755 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37756
37757         * modules/byteswap (License): Re-license as LGPLv2+.
37758
37759 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37760
37761         * doc/Makefile: Add pdf target.
37762
37763 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37764
37765         * modules/inline (License): Use 'unlimited', since there are only
37766         *.m4 files in this module.
37767
37768 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37769             Bruno Haible  <bruno@clisp.org>
37770
37771         Add support for HP C 7.1 on OpenVMS 8.3.
37772         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
37773
37774 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37775
37776         Update VMS specifics.
37777         * lib/getopt.c [VMS]: Remove include of unixlib.h.
37778
37779 2008-03-02  Jim Meyering  <meyering@redhat.com>
37780
37781         Remove the last dependency on the "free" module.
37782         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
37783         Reported by Bob Proulx.
37784
37785         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
37786
37787         Remove useless "if" tests before free.  Deprecate "free" module.
37788         * doc/posix-functions/free.texi: Mention that this
37789         module is no longer useful.
37790         * modules/free (Notice): Say this module is obsolete.
37791         * modules/readutmp (Depends-on): Remove free.
37792         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
37793         * lib/putenv.c (putenv): Likewise.
37794         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
37795         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
37796         * tests/test-c-strcasestr.c (main): Likewise.
37797         * tests/test-c-strstr.c (main): Likewise.
37798         * tests/test-mbscasestr1.c (main): Likewise.
37799         * tests/test-mbscasestr2.c (main): Likewise.
37800         * tests/test-mbsstr1.c (main): Likewise.
37801         * tests/test-mbsstr2.c (main): Likewise.
37802         * tests/test-memmem.c (main): Likewise.
37803         * tests/test-strcasestr.c (main): Likewise.
37804         * tests/test-striconv.c (main): Likewise.
37805         * tests/test-striconveh.c (main): Likewise.
37806         * tests/test-striconveha.c (main): Likewise.
37807         * tests/test-strstr.c (main): Likewise.
37808
37809         * build-aux/git-version-gen: Adjust a comment and the Usage string.
37810
37811         bootstrap: sync from coreutils again
37812         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
37813
37814 2008-03-01  Jim Meyering  <meyering@redhat.com>
37815
37816         bootstrap: sync from coreutils
37817         * build-aux/bootstrap (update_po_files): Copy a .po file into place
37818         also when the target doesn't exist.
37819
37820 2008-03-01  Eric Blake  <ebb9@byu.net>
37821
37822         Fix bugs in last patch.
37823         * lib/memchr2.c (memchr2): Fix typo.
37824         * tests/test-memchr2.c: Test previous bug, and don't use GNU
37825         extension.
37826         Reported by Bruce Korb.
37827
37828         New module 'memchr2'.
37829         * modules/memchr2: New file.
37830         * modules/memchr2-tests: Likewise.
37831         * lib/memchr2.h: Likewise.
37832         * lib/memchr2.c: Likewise, based on memchr.c.
37833         * tests/test-memchr2.c: New test.
37834         * MODULES.html.sh (String handling): Add memchr2.
37835
37836 2008-02-29  Bruno Haible  <bruno@clisp.org>
37837
37838         * modules/freadseek-tests: New file.
37839         * tests/test-freadseek.sh: New file.
37840         * tests/test-freadseek.c: New file.
37841
37842         New module 'freadseek'.
37843         * modules/freadseek: New file.
37844         * lib/freadseek.h: New file.
37845         * lib/freadseek.c: New file.
37846         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
37847
37848 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37849
37850         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
37851         wydawca.
37852
37853         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
37854         program_invocation_name and program_invocation_short_name are
37855         present.
37856
37857 2008-02-28  Bruno Haible  <bruno@clisp.org>
37858
37859         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
37860         * tests/test-freadptr.sh: Also test non-seekable stdin.
37861
37862 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
37863
37864         * build-aux/bootstrap (source_base, m4_base)
37865         (doc_base, tests_base): New variables.
37866         (gnulib_tool_options): Do not hardcode base directories, use
37867         the above variables instead.
37868
37869 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
37870
37871         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
37872
37873 2008-02-28  Bruno Haible  <bruno@clisp.org>
37874
37875         * modules/freadptr-tests: New file.
37876         * tests/test-freadptr.sh: New file.
37877         * tests/test-freadptr.c: New file.
37878
37879         New module 'freadptr'.
37880         * modules/freadptr: New file.
37881         * lib/freadptr.h: New file.
37882         * lib/freadptr.c: New file.
37883         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
37884
37885 2008-02-26  Karl Berry  <karl@freefriends.org>
37886
37887         Sync from Libtool:
37888         * libltdl/argz.c (argz_add, argz_count): New functions.
37889         * libltdl/argz.in.h: Declare them.
37890         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
37891
37892 2008-02-22  Bruno Haible  <bruno@clisp.org>
37893
37894         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
37895         is a pointer type.  Needed for HP-UX 10.
37896         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
37897         * doc/posix-functions/gmtime_r.texi: Likewise.
37898         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37899
37900 2008-02-24  Bruno Haible  <bruno@clisp.org>
37901
37902         * modules/environ-tests: New file.
37903         * tests/test-environ.c: New file.
37904
37905         New module 'environ'.
37906         * modules/environ: New file.
37907         * lib/unistd.in.h (environ): New declaration.
37908         * m4/environ.m4: New file.
37909         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
37910         after use.
37911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
37912         HAVE_DECL_ENVIRON.
37913         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
37914         HAVE_DECL_ENVIRON.
37915         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
37916         wrong claim that 'environ' is missing on some systems.
37917         * modules/execute (Depends-on): Add environ.
37918         * lib/execute.c (environ): Remove fallback declaration.
37919         * modules/pipe (Depends-on): Add environ.
37920         * lib/pipe.c (environ): Remove fallback declaration.
37921         * modules/setenv (Depends-on): Add environ.
37922         * lib/setenv.c (environ): Remove fallback declaration.
37923         * modules/unsetenv (Depends-on): Add environ.
37924         * lib/unsetenv.c (environ): Remove fallback declaration.
37925         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
37926         m4/environ.m4.
37927         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
37928         (gl_PREREQ_UNSETENV): Likewise.
37929
37930 2008-02-24  Bruno Haible  <bruno@clisp.org>
37931
37932         * doc/posix-functions/environ.texi: Document the MacOS X problem.
37933
37934 2008-02-20  Bob Proulx  <bob@proulx.com>
37935
37936         Enable use of older two part flavor 'git describe'.
37937         * build-aux/git-version-gen: If using the older two part flavor of
37938         git version then recreate the third part now present in the
37939         newer three part flavor of git describe.
37940
37941 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
37942
37943         * lib/fts.c (fts_build): Typo correction to comment.
37944
37945 2008-02-17  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
37948         generating no-op conflicts.
37949
37950 2008-02-17  Bruno Haible  <bruno@clisp.org>
37951
37952         Speed up by 10%.
37953         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
37954         result_entries, rather than an index-based loop.
37955
37956 2008-02-17  Bruno Haible  <bruno@clisp.org>
37957
37958         Speed up by 25%.
37959         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
37960         'hashcode_cached'.
37961         (entry_create): New function.
37962         (entry_hashcode): Use the cached hashcode if possible.
37963         (read_changelog_file, try_split_merged_entry): Use entry_create.
37964
37965 2008-02-17  Bruno Haible  <bruno@clisp.org>
37966
37967         Speed up from O(n^2) to O(n) for long ChangeLog files.
37968         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
37969         (read_changelog_file): Change implementation of entries_reversed list
37970         to rbtreehash.
37971         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
37972
37973 2008-02-17  Bruno Haible  <bruno@clisp.org>
37974
37975         New option --split-merged-entry.
37976         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
37977         (find_paragraph_end, try_split_merged_entry): New functions.
37978         (long_options): Add option --split-merged-entry.
37979         (usage): Document option --split-merged-entry.
37980         (main): Implement option --split-merged-entry.
37981         Reported by Eric Blake.
37982
37983 2008-02-17  Bruno Haible  <bruno@clisp.org>
37984
37985         * lib/git-merge-changelog.c: Include c-strstr.h.
37986         (main): Support the "git pull --rebase" situation.
37987         * modules/git-merge-changelog (Depends-on): Add c-strstr.
37988         Reported by Eric Blake.
37989
37990 2008-02-16  Eric Blake  <ebb9@byu.net>
37991
37992         Avoid doubling \ in common case of "c-maybe" quoting style.
37993         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
37994         eliding outer quotes.
37995         * lib/quotearg.h: Document this.
37996         * tests/test-quotearg.c (result_strings, inputs, results_g)
37997         (flag_results, locale_results): Test it by adding a new string to
37998         each test group.
37999         (compare_strings): Test new string.
38000
38001 2008-02-13  Eric Blake  <ebb9@byu.net>
38002
38003         Avoid trigraph quoting in default output.
38004         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
38005         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
38006         unless explicitly requested.
38007         * tests/test-quotearg.c (flag_results, main): Add additional tests.
38008
38009 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
38010
38011         Don't rely on signed integer overflowing to negative value.
38012         * lib/getugroups.c (getugroups): Include <limits.h>.
38013         Instead, compare against INT_MAX, and increment only if the test passes.
38014
38015 2008-02-13  Jim Meyering  <meyering@redhat.com>
38016         and Eric Blake  <ebb9@byu.net>
38017
38018         Avoid shadowing warning and compile errors on Linux.
38019         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
38020         forwarding macros on Linux.
38021         (dcgettext): Define a stub, for Linux.
38022         (results_g, main): Avoid warnings.
38023
38024 2008-02-12  Eric Blake  <ebb9@byu.net>
38025
38026         Silence warning in last patch.
38027         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
38028
38029         Quotearg part 4: add tests, fix c-maybe colon quoting.
38030         * lib/quotearg.h: Improve documentation.
38031         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
38032         escapes when adding outer quotes.  When quoting trigraphs, use
38033         valid C notation.  When quoting NUL, omit extra characters if next
38034         character is not digit.  Alter prototype.
38035         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
38036         callers.
38037         * modules/quotearg-tests: New module.
38038         * tests/test-quotearg.c: New test.
38039
38040 2008-02-07  Eric Blake  <ebb9@byu.net>
38041
38042         Quotearg part 3: add flag to control outer quote elision.
38043         * lib/quotearg.h (c_maybe_quoting_style): New style.
38044         (enum quoting_flags): Better documentation of flags.
38045         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
38046         c-maybe style.
38047         (quotearg_buffer_restyled): Handle new flag to elide outer
38048         quotes.
38049
38050         Quotearg part 2: add flag that can control NUL elision.
38051         * lib/quotearg.h (set_quoting_flags): New prototype.
38052         * lib/quotearg.c (struct quoting_options): Add flag field.
38053         (set_quoting_flags): New function.
38054         (quotearg_buffer_restyled): Add flags parameter.
38055         (quotearg_alloc_mem): Set the flag if length cannot be returned.
38056         (quotearg_n_options): Set the flag, since length cannot be
38057         returned.
38058         (quoting_options_from_style): Default flags correctly.
38059
38060         Quotearg part 1: more wrappers, restore quotearg_char state.
38061         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
38062         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
38063         (quotearg_colon_mem): New wrappers.
38064         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
38065         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
38066         functions.
38067         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
38068         (quotearg_colon_mem): New functions.
38069
38070 2008-02-11  Bruno Haible  <bruno@clisp.org>
38071
38072         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
38073         library in the current directory: it does not work with parallel make.
38074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38075
38076 2008-02-11  Bruno Haible  <bruno@clisp.org>
38077
38078         * .gitattributes: New file.
38079
38080 2008-02-11  Jim Meyering  <meyering@redhat.com>
38081
38082         useless-if-before-free: Fix reversed exit values.
38083         * build-aux/useless-if-before-free: Use correct values
38084         for EXIT_MATCH and EXIT_NO_MATCH.
38085
38086         * build-aux/useless-if-before-free: Close stdout carefully.
38087
38088 2008-02-10  Bruno Haible  <bruno@clisp.org>
38089
38090         New module 'git-merge-changelog'.
38091         * modules/git-merge-changelog: New file.
38092         * lib/git-merge-changelog.c: New file.
38093
38094 2008-02-10  Jim Meyering  <meyering@redhat.com>
38095
38096         useless-if-before-free: New option: --list (-l).
38097
38098         useless-if-before-free: Don't exit immediately upon open failure.
38099         * build-aux/useless-if-before-free: Exit 2 for errors.
38100         Upon failure to open a file, don't exit immediately.
38101         Rather, just warn and continue with any remaining files.
38102
38103 2008-02-10  Bruno Haible  <bruno@clisp.org>
38104
38105         New abstract list operation 'node_set_value'.
38106         * lib/gl_list.h (gl_list_node_set_value): New function.
38107         (struct gl_list_implementation): New field node_set_value.
38108         * lib/gl_list.c (gl_list_node_set_value): New function.
38109         * lib/gl_array_list.c (gl_array_node_set_value): New function.
38110         (gl_array_list_implementation): Update.
38111         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
38112         (gl_carray_list_implementation): Update.
38113         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
38114         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38115         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38116         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
38117         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38118         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38119         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38120         Update.
38121         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
38122         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
38123         (gl_sublist_list_implementation): Update.
38124
38125 2008-02-10  Bruno Haible  <bruno@clisp.org>
38126
38127         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
38128         Needed when ELEMENT is #defined to 'some_type *'.
38129
38130 2008-02-10  Jim Meyering  <meyering@redhat.com>
38131
38132         New script and module: useless-if-before-free
38133         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
38134         * build-aux/useless-if-before-free: New file.
38135         * modules/useless-if-before-free: New file.
38136
38137         * build-aux/gitlog-to-changelog: Use committer date, not author date.
38138
38139         xstrtol_error: Fix typo.
38140         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
38141         s/exit_failure/exit_status/.
38142
38143 2008-02-09  Jim Meyering  <meyering@redhat.com>
38144
38145         New script and module: gitlog-to-changelog
38146         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
38147         * modules/gitlog-to-changelog: New file.
38148         * build-aux/gitlog-to-changelog: New file.
38149
38150 2008-02-08  Jim Meyering  <meyering@redhat.com>
38151
38152         Avoid two "parameter unused" warnings.
38153         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
38154         Mark "st" as used.
38155
38156         Use "git COMMAND", not "git-COMMAND".
38157         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
38158         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
38159         * build-aux/git-version-gen: Use "git status", not "git-status".
38160
38161 2008-02-07  Bruno Haible  <bruno@clisp.org>
38162
38163         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
38164         Avoids a crash on Windows Vista.
38165         Reported by Adam Strzelecki <ono@java.pl> via
38166         Simon Josefsson <simon@josefsson.org>.
38167
38168 2008-02-06  Bruno Haible  <bruno@clisp.org>
38169
38170         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
38171         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
38172         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
38173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
38174         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38176         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
38177         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
38178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38185         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
38186         left-adjust flag.
38187         * tests/test-snprintf-posix.h (test_function): Likewise.
38188         * tests/test-sprintf-posix.h (test_function): Likewise.
38189         * tests/test-vasprintf-posix.c (test_function): Likewise.
38190         * doc/posix-functions/fprintf.texi: Update.
38191         * doc/posix-functions/printf.texi: Update.
38192         * doc/posix-functions/snprintf.texi: Update.
38193         * doc/posix-functions/sprintf.texi: Update.
38194         * doc/posix-functions/vfprintf.texi: Update.
38195         * doc/posix-functions/vprintf.texi: Update.
38196         * doc/posix-functions/vsnprintf.texi: Update.
38197         * doc/posix-functions/vsprintf.texi: Update.
38198         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38199
38200 2008-02-06  Bruno Haible  <bruno@clisp.org>
38201
38202         Fix bug introduced on 2008-01-26.
38203         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
38204
38205 2008-02-06  Bruno Haible  <bruno@clisp.org>
38206
38207         Fix bug introduced on 2007-06-10.
38208         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
38209         !NEED_PRINTF_FLAG_ZERO.
38210
38211 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
38212
38213         getloadavg: use libperfstat on AIX5
38214         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
38215
38216 2008-02-03  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/diffseq.h: Add comments about required #includes.
38219         Reported by Michael Biggs <gnulib@doubleplum.net>.
38220
38221 2008-02-01  Bruno Haible  <bruno@clisp.org>
38222
38223         * users.txt: Add gnuit.
38224
38225 2008-01-31  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/md4.c (set_uint32): Mark as inline.
38228         * lib/md5.c (set_uint32): Likewise.
38229         * lib/sha1.c (set_uint32): Likewise.
38230         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
38231         * m4/md5.m4 (gl_MD5): Likewise.
38232         * m4/sha1.m4 (gl_SHA1): Likewise.
38233
38234 2008-01-31  Jim Meyering  <meyering@redhat.com>
38235
38236         Use "sizeof VAR", rather than a literal "4".
38237         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
38238         * lib/md4.c (md4_read_ctx): Likewise.
38239         * lib/sha1.c (sha1_read_ctx): Likewise.
38240
38241 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38242
38243         * tests/test-sha1.c: New file, based on test-md5.c.
38244
38245         * modules/crypto/sha1-tests: New file.
38246
38247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38248
38249         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
38250
38251 2008-01-31  Jim Meyering  <meyering@redhat.com>
38252
38253         Prefer "sizeof v" over the equivalent "4".
38254         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
38255         * lib/md5.c (set_uint32): Likewise.
38256         * lib/sha1.c (set_uint32): Likewise.
38257
38258 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38259
38260         * lib/sha1.c (set_uint32): Mark function as static.
38261
38262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38263
38264         md2: clarify comments to say that alignment is not required.
38265         * lib/md2.h: Remove warning about alignment in comment.
38266         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
38267         never been required.
38268
38269 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38270
38271         md4: adapt alignment constraint fix from sha1.
38272         * lib/md4.c (set_uint32): New function, from sha1.c
38273         (md4_read_ctx): Use it.
38274         (md4_finish_ctx): Doc fix.
38275         * lib/md4.h: Doc fix.
38276
38277 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38278
38279         md5: adapt alignment constraint fix from sha1.
38280         * lib/md5.c (set_uint32): New function, from sha1.c
38281         (md5_read_ctx): Use it.
38282         (md5_finish_ctx): Doc fix.
38283         * lib/md5.h: Doc fix.
38284
38285 2008-01-30  Peter Palfrader  <weasel@debian.org>
38286
38287         sha1: remove the result buffer alignment constraint
38288         * lib/sha1.c (set_uint32): New function.
38289         (sha1_read_ctx): Rewrite to remove the result buffer alignment
38290         constraint.
38291         (sha1_finish_ctx): Remove comment warning about alignment constraint.
38292         * lib/sha1.h: Likewise.
38293
38294 2008-01-30  Andreas Schwab  <schwab@suse.de>
38295             Bruno Haible  <bruno@clisp.org>
38296
38297         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
38298         correct definition of LDBL_MIN_EXP.
38299
38300 2008-01-30  Karl Berry  <karl@gnu.org>
38301
38302         * config/srclist-update: try to preserve x bit on updates.
38303         * config/srclistvars.sh: update for karl.
38304
38305 2008-01-29  Jim Meyering  <meyering@redhat.com>
38306
38307         vasnprintf.c: Avoid warning about unused label
38308         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
38309         "overflow" label definition and associated code with the
38310         same cpp condition that guards the sole use of that label.
38311
38312 2008-01-26  Bruno Haible  <bruno@clisp.org>
38313
38314         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
38315         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
38316         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
38317         * lib/isnanl-nolibm.h (isnanl): Likewise.
38318         Reported by Paul Eggert <eggert@cs.ucla.edu>.
38319
38320 2008-01-26  Bruno Haible  <bruno@clisp.org>
38321
38322         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
38323         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
38324
38325 2008-01-26  Bruno Haible  <bruno@clisp.org>
38326
38327         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
38328         GCC >= 4.0 built-in.
38329         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
38330
38331 2008-01-26  Bruno Haible  <bruno@clisp.org>
38332
38333         Rename isnan, applicable to 'double' only, to isnand.
38334         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
38335         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
38336         (configure.ac): Update.
38337         (Include): Replace "isnan.h" with "isnand.h".
38338         * m4/isnand.m4: Renamed from m4/isnan.m4.
38339         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
38340         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
38341         instead of isnan.c.
38342         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
38343         instead of HAVE_ISNAN_IN_LIBC.
38344         (isnand): Renamed from isnan.
38345         * lib/isnand.c: New file.
38346         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
38347         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
38348         (Makefile.am): Update.
38349         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
38350         Include isnand.h instead of isnan.h.
38351         (main): Test isnand instead of isnan.
38352         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
38353         isnan-nolibm.
38354         * modules/frexp (Depends-on): Likewise.
38355         * modules/frexp-tests (Depends-on): Likewise.
38356         * modules/frexp-nolibm (Depends-on): Likewise.
38357         * modules/frexp-nolibm-tests (Depends-on): Likewise.
38358         * modules/isfinite (Depends-on): Likewise.
38359         * modules/round-tests (Depends-on): Likewise.
38360         * modules/signbit (Depends-on): Likewise.
38361         * modules/signbit-tests (Depends-on): Likewise.
38362         * modules/snprintf-posix (Depends-on): Likewise.
38363         * modules/sprintf-posix (Depends-on): Likewise.
38364         * modules/trunc-tests (Depends-on): Likewise.
38365         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38366         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38367         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38368         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38369         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38370         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38371         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38372         * modules/vasnprintf-posix (Depends-on): Likewise.
38373         * modules/vasprintf-posix (Depends-on): Likewise.
38374         * modules/vfprintf-posix (Depends-on): Likewise.
38375         * modules/vsnprintf-posix (Depends-on): Likewise.
38376         * modules/vsprintf-posix (Depends-on): Likewise.
38377         * lib/frexp.c: Include isnand.h instead of isnan.h.
38378         (ISNAN): Set to isnand instead of isnan.
38379         * lib/isfinite.c: Include isnand.h instead of isnan.h.
38380         (gl_isfinited): Use isnand instead of isnan.
38381         * lib/signbitd.c: Include isnand.h instead of isnan.h.
38382         (gl_signbitd): Use isnand instead of isnan.
38383         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
38384         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
38385         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
38386         (main): Use isnand instead of isnan.
38387         * tests/test-round1.c: Include isnand.h.
38388         (main): Use isnand instead of isnan.
38389         * tests/test-round2.c: Include isnand.h instead of isnan.h.
38390         (ISNAN): Set to isnand instead of isnan.
38391         * tests/test-trunc1.c: Include isnand.h.
38392         (main): Use isnand instead of isnan.
38393         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
38394         (equal): Use isnand instead of isnan.
38395         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
38396         isnand-nolibm.
38397         * NEWS: Mention the change.
38398
38399 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
38400             Bruno Haible  <bruno@clisp.org>
38401
38402         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
38403         the GCC builtins for signbits are present and set
38404         REPLACE_SIGNBIT_USING_GCC if so.
38405         * lib/math.in.h (signbit): Define using GCC builtins if
38406         REPLACE_SIGNBIT_USING_GCC is set.
38407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
38408         REPLACE_SIGNBIT_USING_GCC.
38409         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
38410
38411 2008-01-25  Jim Meyering  <meyering@redhat.com>
38412
38413         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
38414         * lib/poll.c: Include <config.h>, not "config.h".
38415         * tests/test-getaddrinfo.c: Likewise.
38416
38417 2008-01-25  Simon Josefsson  <simon@josefsson.org>
38418
38419         * modules/sockets-tests: New file.
38420
38421 2008-01-24  Simon Josefsson  <simon@josefsson.org>
38422
38423         * modules/sockets: New module, can be used to call WSA_Startup and
38424         WSA_Cleanup when needed.
38425
38426         * lib/sockets.h, lib/sockets.c: New files.
38427
38428         * m4/sockets.m4: New file.
38429
38430         * tests/test-sockets.c: New file.
38431
38432 2008-01-19  Bruno Haible  <bruno@clisp.org>
38433
38434         * doc/posix-headers: Renamed from doc/headers.
38435         * doc/posix-functions: Renamed from doc/functions.
38436         * doc/gnulib.texi: Update.
38437
38438 2008-01-19  Bruno Haible  <bruno@clisp.org>
38439
38440         * doc/glibc-functions/strcasestr.texi: Include contents of
38441         doc/functions/strcasestr.texi, fixing the list of platforms.
38442         * doc/functions/strcasestr.texi: Remove file.
38443
38444 2008-01-19  Bruno Haible  <bruno@clisp.org>
38445
38446         * doc/glibc-functions/memmem.texi: Include contents of
38447         doc/functions/memmem.texi.
38448         * doc/functions/memmem.texi: Remove file.
38449
38450 2008-01-18  Bruno Haible  <bruno@clisp.org>
38451
38452         * doc/glibc-functions/*.texi: New files.
38453         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
38454         to use the new files.
38455
38456 2008-01-17  Bruno Haible  <bruno@clisp.org>
38457
38458         * tests/test-gethostname.c (main): Fix printf statement.
38459
38460 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38461
38462         * modules/gethostname-tests: New file.
38463
38464         * tests/test-gethostname.c: New file.
38465
38466 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38467
38468         * lib/gethostname.c: Include string.h unconditionally, strncpy is
38469         used by the UNAME case.  Reported by Bruno Haible
38470         <bruno@clisp.org>.
38471
38472 2008-01-17  Eric Blake  <ebb9@byu.net>
38473
38474         Convert c-strcasestr to be more efficient.
38475         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
38476         (Depends-on): Add c-strcase, remove malloca, strnlen.
38477         * tests/test-c-strcasestr.c (main): Enhance test.
38478         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
38479
38480 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38481
38482         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
38483         Use it in creating po/Makevars.
38484
38485 2008-01-15  Simon Josefsson  <simon@josefsson.org>
38486
38487         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
38488         Applications that requires it should initialize libgcrypt
38489         manually.
38490
38491 2008-01-16  Simon Josefsson  <simon@josefsson.org>
38492
38493         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
38494
38495 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
38496
38497         Fix problem with getdate on mingw32 reported by Simon Josefsson
38498         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
38499         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
38500         tzname", when deciding whether to declare tzname.
38501         * lib/strftime.c (tzname): Likewise.
38502
38503 2008-01-15  Bruno Haible  <bruno@clisp.org>
38504
38505         Work around a MacOS X 10.5 bug in frexpl().
38506         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
38507         * doc/functions/frexpl.texi: Document the bug.
38508         Reported by Elias Pipping <pipping@gentoo.org>.
38509
38510 2008-01-14  Eric Blake  <ebb9@byu.net>
38511
38512         Touch up previous patch.
38513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
38514         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
38515
38516         Convert strcasestr module to use Two-Way algorithm.
38517         * modules/strcasestr-simple: New module, based on the old
38518         strcasestr, but with Two-Way rather than KMP.
38519         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
38520         * lib/string.in.h (rpl_strcasestr): Declare.
38521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
38522         performance.
38523         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
38524         * modules/string (Makefile.am): Support strcasestr.
38525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38526         * modules/strcasestr-tests (Depends-on): Check for alarm.
38527         * tests/test-strcasestr.c: Augment test.
38528         * lib/str-two-way.h: Clean up stray macro.
38529         * NEWS: Document new module.
38530         * MODULES.html.sh (string handling): Likewise.
38531         * doc/functions/strcasestr.texi: New file.
38532         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
38533         here, since it is not a POSIX function.
38534
38535 2008-01-14  Colin Watson  <cjwatson@debian.org>
38536             Bruno Haible  <bruno@clisp.org>
38537
38538         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
38539         works fine; if not, set REPLACE_STRSIGNAL.
38540         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
38541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38542         REPLACE_STRSIGNAL.
38543         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
38544         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
38545         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
38546
38547 2008-01-14  Bruno Haible  <bruno@clisp.org>
38548
38549         * modules/strsignal (Include): Change to <string.h>.
38550
38551 2008-01-14  Colin Watson  <cjwatson@debian.org>
38552
38553         * modules/argp (Notice): Add a notice recommending to change
38554         XGETTEXT_OPTIONS.
38555         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
38556
38557 2008-01-13  Colin Watson  <cjwatson@debian.org>
38558
38559         * modules/strsignal-tests: New file.
38560         * tests/test-strsignal.c: New file.
38561
38562         * lib/strsignal.c: New file, from glibc with modifications.
38563         * lib/siglist.h: New file, from glibc with modifications.
38564         * lib/string.in.h (strsignal): New declaration.
38565         * m4/strsignal.m4: New file.
38566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38567         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
38568         * modules/strsignal: New file.
38569         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
38570         HAVE_DECL_STRSIGNAL.
38571
38572 2008-01-13  Bruno Haible  <bruno@clisp.org>
38573
38574         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
38575         locale encoding is not ASCII. Needed for OpenBSD 4.0.
38576         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38577         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38578
38579 2008-01-13  Bruno Haible  <bruno@clisp.org>
38580
38581         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
38582         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
38583         * lib/argp.h (__attribute__): Likewise.
38584         * lib/c-stack.c (__attribute__): Likewise.
38585         * lib/error.h (__attribute__): Likewise.
38586         * lib/fts.c (__attribute__): Likewise.
38587         * lib/openat.h (__attribute__): Likewise.
38588         * lib/stdio.in.h (__attribute__): Likewise.
38589         * lib/string.in.h (__attribute__): Likewise.
38590         * lib/utimens.c (__attribute__): Likewise.
38591         * lib/vasnprintf.h (__attribute__): Likewise.
38592         * lib/xalloc.h (__attribute__): Likewise.
38593         * lib/xprintf.h (__attribute__): Likewise.
38594         * lib/xstrtol.h (__attribute__): Likewise.
38595         * lib/xvasprintf.h (__attribute__): Likewise.
38596
38597 2008-01-12  Bruno Haible  <bruno@clisp.org>
38598
38599         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
38600         * doc/glibc-headers/a.out.texi: New file.
38601         * doc/glibc-headers/aliases.texi: New file.
38602         * doc/glibc-headers/alloca.texi: New file.
38603         * doc/glibc-headers/ar.texi: New file.
38604         * doc/glibc-headers/argp.texi: New file.
38605         * doc/glibc-headers/argz.texi: New file.
38606         * doc/glibc-headers/byteswap.texi: New file.
38607         * doc/glibc-headers/crypt.texi: New file.
38608         * doc/glibc-headers/endian.texi: New file.
38609         * doc/glibc-headers/envz.texi: New file.
38610         * doc/glibc-headers/err.texi: New file.
38611         * doc/glibc-headers/error.texi: New file.
38612         * doc/glibc-headers/execinfo.texi: New file.
38613         * doc/glibc-headers/fpu_control.texi: New file.
38614         * doc/glibc-headers/fstab.texi: New file.
38615         * doc/glibc-headers/fts.texi: New file.
38616         * doc/glibc-headers/getopt.texi: New file.
38617         * doc/glibc-headers/ieee754.texi: New file.
38618         * doc/glibc-headers/ifaddrs.texi: New file.
38619         * doc/glibc-headers/libintl.texi: New file.
38620         * doc/glibc-headers/mcheck.texi: New file.
38621         * doc/glibc-headers/mntent.texi: New file.
38622         * doc/glibc-headers/obstack.texi: New file.
38623         * doc/glibc-headers/paths.texi: New file.
38624         * doc/glibc-headers/printf.texi: New file.
38625         * doc/glibc-headers/pty.texi: New file.
38626         * doc/glibc-headers/resolv.texi: New file.
38627         * doc/glibc-headers/shadow.texi: New file.
38628         * doc/glibc-headers/sysexits.texi: New file.
38629         * doc/glibc-headers/ttyent.texi: New file.
38630
38631 2008-01-12  Jim Meyering  <meyering@redhat.com>
38632
38633         announce-gen: emit Gnulib's git-based version string.
38634         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
38635         New option --gnulib-version=V, where V is expected to be
38636         the output of running git describe in the gnulib directory.
38637         (get_tool_versions): Request feedback on xdelta.  I suspect it's
38638         not useful, and plan to stop publishing an xdelta file with each
38639         coreutils release.
38640
38641         * build-aux/announce-gen: Also check for lzma-compressed files.
38642
38643 2008-01-11  Bruno Haible  <bruno@clisp.org>
38644
38645         * tests/test-memmem.c (main): Increase maximum allowed time.
38646         * tests/test-strstr.c (main): Likewise.
38647
38648 2008-01-11  Bruno Haible  <bruno@clisp.org>
38649
38650         * doc/functions/memmem.texi: Add more precisions about platforms.
38651         * doc/functions/strstr.texi: Likewise.
38652
38653 2008-01-10  Eric Blake  <ebb9@byu.net>
38654
38655         * m4/strstr.m4: Delete cruft from copy-n-paste.
38656         Reported by Bruno Haible.
38657
38658 2008-01-10  Bruno Haible  <bruno@clisp.org>
38659
38660         Make c-strstr rely on strstr.
38661         * lib/c-strstr.c: Don't include str-kmp.h.
38662         (c_strstr): Define in terms of strstr.
38663         * modules/c-strstr (Files): Remove lib/str-kmp.h.
38664         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
38665
38666 2008-01-10  Bruno Haible  <bruno@clisp.org>
38667
38668         * doc/gnulib.texi (String Functions in C Locale): New section.
38669         * doc/c-ctype.texi: New file.
38670         * doc/c-strcase.texi: New file.
38671         * doc/c-strcaseeq.texi: New file.
38672         * doc/c-strcasestr.texi: New file.
38673         * doc/c-strstr.texi: New file.
38674         * doc/c-strtod.texi: New file.
38675         * doc/c-strtold.texi: New file.
38676
38677 2008-01-10  Eric Blake  <ebb9@byu.net>
38678
38679         * lib/relocatable.h: Fix a comment.
38680
38681 2008-01-10  Eric Blake  <ebb9@byu.net>
38682
38683         Share two-way algorithm.
38684         * lib/str-two-way.h: New file, merged from...
38685         * lib/memmem.c: ...here...
38686         * lib/strstr.c: ...and here.
38687         * modules/memmem (Files): Use it.
38688         * modules/strstr (Files): Likewise.
38689
38690         Avoid quadratic strstr implementations.
38691         * lib/strstr.c: New file.
38692         * m4/strstr.m4: Likewise.
38693         * modules/strstr: Likewise.
38694         * modules/strstr-tests: Likewise.
38695         * tests/test-strstr.c: Likewise.
38696         * lib/string.in.h (rpl_strstr): Declare.
38697         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
38698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
38699         * modules/string (Makefile.am): Likewise.
38700         * MODULES.html.sh (string handling): Mention new module.
38701         * doc/functions/strstr.texi (strstr): Document the bug.
38702
38703 2008-01-10  Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/relocatable.h (relocate): State whether result is freshly
38706         allocated or not.
38707         * lib/relocatable.c (relocate): Return a freshly allocated string
38708         instead of a pointer to a privately held string.
38709         Reported by Sylvain Beucler <beuc@gnu.org>.
38710
38711 2008-01-10  Colin Watson  <cjwatson@debian.org>
38712
38713         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
38714         s/S_ISNLK/S_ISLNK/.
38715
38716 2008-01-09  Bruno Haible  <bruno@clisp.org>
38717
38718         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
38719         and other files.
38720         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
38721         if it's only a guess.
38722         * modules/memmem: Simplify by depending on memmem-simple.
38723
38724 2008-01-09  Bruno Haible  <bruno@clisp.org>
38725
38726         Work around OpenBSD 4.0 tdelete() bug.
38727         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
38728         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
38729         macros and don't redefine the enum values.
38730         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
38731         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
38732         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
38733
38734 2008-01-09  Bruno Haible  <bruno@clisp.org>
38735
38736         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
38737         (main): Don't perform the tests if setlocale did not install a UTF-8
38738         locale. Needed on OpenBSD 4.0.
38739         * modules/wcwidth-tests (Depends-on): Add localcharset.
38740
38741 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38742
38743         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
38744         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
38745         * NEWS: announce this.
38746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
38747
38748 2008-01-09  Simon Josefsson  <simon@josefsson.org>
38749         and Eric Blake  <ebb9@byu.net>
38750
38751         Add memmem-simple module.
38752         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
38753         (gl_FUNC_MEMMEM): Separate performance from presence checks.
38754         * modules/memmem-simple: New file.
38755         * modules/memmem (Description): Tweak.
38756         * MODULES.html.sh (string handling): Mention new module.
38757         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
38758         addressed by memmem-simple.
38759         * NEWS: Document the difference.
38760
38761 2008-01-09  Eric Blake  <ebb9@byu.net>
38762
38763         Give gcc some memmem optimization hints.
38764         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
38765         (strcasestr): Declare as pure.
38766         * modules/memmem (Maintainer): Claim my implementation.
38767
38768 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38769
38770         Support AIX 6.1 and higher.
38771         * build-aux/config.libpath: Likewise.
38772         * build-aux/config.rpath: Likewise.
38773
38774 2008-01-08  Jim Meyering  <meyering@redhat.com>
38775             Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
38778         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
38779         Reported by Peter Fales in
38780         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
38781
38782 2008-01-08  Bruno Haible  <bruno@clisp.org>
38783
38784         * modules/unictype/category-of (Depends-on): Add
38785         unictype/category-none.
38786         * modules/unictype/category-and-tests (Depends-on): Add
38787         unictype/category-{L,N,Lu,Nd}.
38788         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
38789         * modules/unictype/category-or-tests (Depends-on): Add
38790         unictype/category-{L,N}.
38791         * modules/unictype/category-name-tests (Depends-on): Add
38792         unictype/category-{Z,Nl}.
38793         Reported by Simon Josefsson.
38794
38795 2008-01-08  Bruno Haible  <bruno@clisp.org>
38796
38797         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
38798         convention better.
38799         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
38800         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
38801         Reported by Peter Miller <millerp@canb.auug.org.au>.
38802
38803 2008-01-08  Eric Blake  <ebb9@byu.net>
38804
38805         Rewrite memmem to guarantee linear complexity without malloc.
38806         * lib/memmem.c (memmem): Use Two-Way rather than
38807         Knuth-Morris-Pratt, to allow O(1) space usage.
38808         (critical_factorization, two_way_short_needle)
38809         (two_way_long_needle): New functions.
38810         (knuth_morris_pratt): Delete.
38811         * modules/memmem (Depends-on): No longer need malloca or stdbool.
38812         Add stdint.
38813         * tests/test-memmem.c (main): Add tests for periodic needle and
38814         sublinear performance.
38815         * doc/functions/memmem.texi (memmem): Document other deficiencies
38816         in cygwin and older glibc.
38817
38818 2008-01-08  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
38821         augmentation.
38822
38823 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
38824
38825         Add a configure time option: --disable-acl.
38826         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
38827         AC_ARG_ENABLE(acl).
38828
38829 2008-01-06  Simon Josefsson  <simon@josefsson.org>
38830
38831         * tests/test-localename.c: Don't include obsolete "setenv.h".
38832
38833         * modules/localename-tests (Depends-on): Need unsetenv.
38834
38835 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38836
38837         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
38838
38839 2008-01-06  Colin Watson  <cjwatson@debian.org>
38840
38841         * users.txt: Add man-db.
38842
38843 2008-01-07  Bruno Haible  <bruno@clisp.org>
38844
38845         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
38846         previous section name.
38847
38848 2008-01-07  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/progname.c (set_program_name): Don't strip off a leading
38851         "lt-" prefix outside a .libs directory.
38852         Suggested by Paul Eggert.
38853
38854 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
38855             Bruno Haible  <bruno@clisp.org>
38856
38857         Improve memory cleanup in 'relocatable' module.
38858         * lib/relocatable.h (compute_curr_prefix): Change return type to
38859         'char *'.
38860         * lib/relocatable.c (compute_curr_prefix): Change return type to
38861         'char *'. Free curr_installdir after use.
38862         (relocate): Free curr_prefix_better after use.
38863         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
38864
38865 2008-01-01  Bruno Haible  <bruno@clisp.org>
38866
38867         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
38868         failure on older glibc systems.
38869         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38870
38871 2008-01-05  Eric Blake  <ebb9@byu.net>
38872
38873         Avoid quadratic system memmem.
38874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
38875         Reported by Ralf Wildenhues.
38876
38877         Fix memmem test for mingw.
38878         * modules/memmem-tests (configure.ac): Check for alarm.
38879         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
38880         it.
38881         * doc/functions/memmem.texi: New file.
38882         * doc/gnulib.texi (Function Substitutes): Add memmem.
38883         Reported by Bruno Haible.
38884
38885 2008-01-04  Bruno Haible  <bruno@clisp.org>
38886
38887         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
38888         Require gl_HEADER_STRINGS_H_DEFAULTS, not
38889         gl_HEADER_STRING_H_DEFAULTS.
38890
38891 2008-01-04  Eric Blake  <ebb9@byu.net>
38892
38893         Shorten duration of memmem test.
38894         * tests/test-memmem.c (main): Use alarm to declare failure if test
38895         is taking too long.
38896         Reported by Ralf Wildenhues.
38897
38898 2007-12-21  Simon Josefsson  <simon@josefsson.org>
38899
38900         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
38901         string, needed by strerror.
38902
38903 2008-01-03  Colin Watson  <cjwatson@debian.org>
38904             Bruno Haible  <bruno@clisp.org>
38905
38906         * doc/gnulib-tool.texi (Localization): New section.
38907
38908 2008-01-02  Bruno Haible  <bruno@clisp.org>
38909
38910         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
38911         variables to 'unsigned char *' type.
38912         Reported by Paul Eggert.
38913
38914 2008-01-02  Jim Meyering  <jim@meyering.net>
38915
38916         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
38917
38918 2007-12-31  Jim Meyering  <jim@meyering.net>
38919
38920         Avoid use of private FTS type name.
38921         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
38922
38923 2007-12-30  Karl Berry  <karl@gnu.org>
38924
38925         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
38926         work around defect in Texinfo and/or the standalone Info browser.
38927
38928 2007-12-30  Bruno Haible  <bruno@clisp.org>
38929
38930         Unify 5 copies of the KMP code.
38931         * lib/str-kmp.h: New file.
38932         * lib/c-strcasestr.c: Include str-kmp.h.
38933         (knuth_morris_pratt): Remove function.
38934         (c_strcasestr): Update.
38935         * lib/c-strstr.c: Include str-kmp.h.
38936         (knuth_morris_pratt): Remove function.
38937         (c_strcasestr): Update.
38938         * lib/mbscasestr.c: Include str-kmp.h.
38939         (knuth_morris_pratt_unibyte): Remove function.
38940         * lib/mbsstr.c: Include str-kmp.h.
38941         (knuth_morris_pratt_unibyte): Remove function.
38942         * lib/strcasestr.c: Include str-kmp.h.
38943         (knuth_morris_pratt): Remove function.
38944         (strcasestr): Update.
38945         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
38946         * modules/c-strstr (Files): Likewise.
38947         * modules/mbscasestr (Files): Likewise.
38948         * modules/mbsstr (Files): Likewise.
38949         * modules/strcasestr (Files): Likewise.
38950         Suggested by Paul Eggert.
38951
38952 2007-12-30  Bruno Haible  <bruno@clisp.org>
38953
38954         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
38955         defined.
38956
38957 2007-12-30  Bruno Haible  <bruno@clisp.org>
38958
38959         * lib/xmalloca.h: Include xalloc.h.
38960         (xnmalloca): New macro.
38961
38962 2007-12-30  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/malloca.h (nmalloca): New macro.
38965         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
38966         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
38967         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
38968         knuth_morris_pratt_multibyte): Likewise.
38969         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
38970         knuth_morris_pratt_multibyte): Likewise.
38971         * lib/memmem.c (knuth_morris_pratt): Likewise.
38972         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
38973
38974 2007-12-25  Bruno Haible  <bruno@clisp.org>
38975
38976         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
38977         * lib/glob.c: Don't include openat.h.
38978         (link_exists2_p): Add back the code that deals with the
38979         !GLOB_ALTDIRFUNC case.
38980         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
38981         let it do the filename concatenation.
38982         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
38983         * modules/glob (Depends-on): Remove openat.
38984
38985 2007-12-31  Bruno Haible  <bruno@clisp.org>
38986
38987         * modules/dirfd (License): Change to LGPLv2+.
38988         Approved by Jim Meyering.
38989
38990 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38991
38992         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
38993         when multiplying M by sizeof (size_t).
38994
38995 2007-12-10  Martin Lambers  <marlam@marlam.de>
38996
38997         Override getpagesize on mingw.
38998         * lib/getpagesize.c: New file.
38999         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
39000         * modules/getpagesize (Files): Add lib/getpagesize.c.
39001         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
39002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39003         REPLACE_GETPAGESIZE.
39004         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
39005
39006 2007-12-25  Bruno Haible  <bruno@clisp.org>
39007
39008         * modules/localcharset (Notice): New field.
39009         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
39010         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
39011
39012 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39013             Bruno Haible  <bruno@clisp.org>
39014
39015         Avoid using the syntax symbol() in formatted documentation.
39016         * MODULES.html.sh (func_module): When replacing symbol() with a
39017         hyperlink, remove the parentheses. Show an error if some remain.
39018         Recognize and render the '...' syntax.
39019         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
39020         Rework. Add paragraph about GCC's inlining.
39021         * doc/alloca.texi: Likewise.
39022         * doc/error.texi: Remove parentheses from symbol reference.
39023         * doc/gnulib-intro.texi: Likewise.
39024         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
39025         * modules/fnmatch (Description): Reword to say "the ... function".
39026         * modules/full-read (Description): Likewise.
39027         * modules/full-write (Description): Likewise.
39028         * modules/safe-read (Description): Likewise.
39029         * modules/safe-write (Description): Likewise.
39030         * modules/strchrnul (Description): Likewise.
39031         * modules/trim (Description): Likewise.
39032         * modules/error (Description): Remove parentheses from symbol
39033         references.
39034         * modules/verror (Description): Likewise.
39035         Reported by Karl Berry.
39036
39037 2007-12-25  Bruno Haible  <bruno@clisp.org>
39038
39039         Fixup after 2007-10-16 commit.
39040         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
39041
39042 2007-12-24  Bruno Haible  <bruno@clisp.org>
39043
39044         Make --enable-relocatable work with DESTDIR.
39045         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
39046         to compute installdir from destprog.
39047         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
39048         also set the RELOC_DESTDIR variable.
39049         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39050
39051 2007-12-24  Bruno Haible  <bruno@clisp.org>
39052
39053         Fix link error due to xalloc_die().
39054         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
39055         of xreadlink.
39056         * lib/relocwrapper.c: Update comments.
39057         * build-aux/install-reloc: Remove xreadlink.c from file list.
39058         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
39059         xreadlink.c.
39060         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39061
39062 2007-12-24  Bruno Haible  <bruno@clisp.org>
39063
39064         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
39065         * lib/setenv.h: Remove file.
39066         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
39067         lib/setenv.h.
39068         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
39069         (Depends-on): Add stdlib.
39070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
39071         gl_FUNC_UNSETENV.
39072         (Include): Replace setenv.h with <stdlib.h>.
39073         * modules/unsetenv: New file.
39074         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
39075         * lib/unsetenv.c: Include <stdlib.h> first.
39076         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
39077         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
39078         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
39079         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
39080         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
39081         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
39083         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39084         * doc/functions/unsetenv.texi: Update.
39085         * modules/xsetenv (Depends-on): Add unsetenv.
39086         * modules/getdate (Depends-on): Likewise.
39087         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
39088         * lib/xsetenv.c: Don't include setenv.h.
39089         * lib/getdate.y: Likewise.
39090         * lib/relocwrapper.c: Likewise.
39091         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
39092         (Depends-on): Add stdlib.
39093         * NEWS: Mention the changes.
39094         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
39095
39096 2007-12-23  Bruno Haible  <bruno@clisp.org>
39097
39098         * lib/memmem.c (memmem): Use lowercase variable names. Tab
39099         indentation.
39100
39101 2007-12-23  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/c-strcasestr.c: Add more comments.
39104         * lib/c-strstr.c: Likewise.
39105         * lib/mbscasestr.c: Likewise.
39106         * lib/mbsstr.c: Likewise.
39107         * lib/strcasestr.c: Likewise.
39108         * lib/memmem.c: Likewise.
39109
39110 2007-12-23  Bruno Haible  <bruno@clisp.org>
39111
39112         * tests/test-memmem.c: Include <string.h> first.
39113
39114 2007-12-22  Bruno Haible  <bruno@clisp.org>
39115
39116         * gnulib-tool (func_create_testdir): Change $auxdir while generating
39117         the contents of $testsbase.
39118         Reported by Ralf Wildenhues.
39119
39120 2007-12-22  Bruno Haible  <bruno@clisp.org>
39121
39122         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
39123         two variables local_ldadd_before, local_ldadd_last.
39124
39125 2007-12-20  Eric Blake  <ebb9@byu.net>
39126
39127         Work around circular library issue when cross-compiling.
39128         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
39129         that progname.o does not need to pull in rpl_memcmp.
39130
39131 2007-12-19  Eric Blake  <ebb9@byu.net>
39132
39133         Fix memmem to avoid O(n^2) worst-case complexity.
39134         * lib/memmem.c (knuth_morris_pratt): New function.
39135         (memmem): Use it if first few naive iterations fail.
39136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
39137         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
39138         * modules/memchr (License): Likewise.
39139         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
39140         malloca.
39141         * tests/test-memmem.c: Rewrite, borrowing ideas from
39142         test-mbsstr1.c; the old version wouldn't even compile!
39143         * modules/memmem-tests: New file.
39144         * lib/string.in.h (rpl_memmem): Add declaration.
39145         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
39146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
39147         REPLACE_MEMMEM.
39148
39149 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39150
39151         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
39152         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
39153         before any system include files, and undef after them all.  This
39154         should fix a problem on VMS reported by John E. Malmberg in
39155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
39156
39157 2007-12-17  Eric Blake  <ebb9@byu.net>
39158
39159         Revert addition of verify, for BSD/OS.
39160         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
39161         can't handle large files, for the sake of obsolete platforms.
39162         * modules/fseeko (Depends-on): Remove verify.
39163         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
39164         * doc/functions/ftello.texi (ftello): Likewise.
39165         * doc/functions/fgetpos.texi (fgetpos): Likewise.
39166         Reported by Larry Jones.
39167
39168 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
39169
39170         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
39171         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
39172
39173 2007-12-17  Jim Meyering  <meyering@redhat.com>
39174
39175         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
39176         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
39177         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
39178         * modules/getcwd (Depends-on): Add openat.
39179         Reported by Petr Salinger.
39180
39181 2007-12-17  Bruno Haible  <bruno@clisp.org>
39182
39183         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
39184         avoid a segmentation fault of the configure test on x86_64 systems.
39185
39186 2007-12-15  Jim Meyering  <meyering@redhat.com>
39187
39188         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
39189
39190 2007-12-13  Eric Blake  <ebb9@byu.net>
39191
39192         Another fseek test.
39193         * tests/test-fseek.c (main): Also test ungetc handling.
39194         * tests/test-fseeko.c (main): Likewise.
39195         * modules/fseeko (Depends-on): Add verify.
39196         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
39197         large.
39198         Reported by Larry Jones.
39199
39200         Fix fseeko on mingw.
39201         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
39202         seek.
39203
39204         Beef up fseek tests.
39205         * tests/test-fseek.c (main): Also test eof handling.
39206         * tests/test-fseeko.c (main): Likewise.
39207         Reported by Larry Jones.
39208
39209 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
39210
39211         Fix fseeko on BSD-based platforms.
39212         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
39213         successful seek.
39214
39215 2007-12-12  Eric Blake  <ebb9@byu.net>
39216
39217         Allow circular dependency of separate libtests.a
39218         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
39219         when use_libtests.
39220
39221 2007-12-11  Eric Blake  <ebb9@byu.net>
39222
39223         Fix bug with -0.0L in previous patch.
39224         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
39225         * tests/test-isnan.c (main): Also test on zeroes.
39226         * tests/test-isnanf.c (main): Likewise.
39227         * tests/test-isnanl.h (main): Likewise.
39228
39229         Detect pseudo-denormals on x86 even when cross-compiling.
39230         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
39231         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
39232         invalid bit patterns that happen to satisfy ==.
39233
39234         Avoid link failures with separate libtests.a.
39235         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
39236         last, to satisfy circular dependencies.
39237
39238 2007-12-11  Eric Blake  <ebb9@byu.net>
39239         and Bruno Haible  <bruno@clisp.org>
39240
39241         Fix OpenBSD 4.0 <float.h> handling of long double.
39242         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
39243         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
39244         * doc/headers/float.texi (float.h): Document OpenBSD bug.
39245
39246 2007-12-11  Jim Meyering  <meyering@redhat.com>
39247
39248         * users.txt: Add libvirt.
39249
39250         Support versions of autoconf prior to 2.59c.
39251         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
39252         if it is not already defined.
39253
39254 2007-12-09  Bruno Haible  <bruno@clisp.org>
39255
39256         Let 'gnulib-tool --import' collect sources needed for the tests in
39257         tests/ rather than in lib/.
39258         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
39259         argument. If true, add rules to generate libtests.a, and put libtests.a
39260         into $(LDADD). Consider source files in subdirectories and set
39261         uses_subdirs.
39262         (func_emit_initmacro_start, func_emit_initmacro_end,
39263         func_emit_initmacro_done): Pass all arguments explicitly.
39264         (func_import): Determine two module lists main_modules,
39265         testsrelated_modules. Determine use_libtests. Determine two variables
39266         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
39267         instead of just sed_transform_lib_file. Determine two variables
39268         main_files and testsrelated_files. Compute 'files' as the union of
39269         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
39270         func_add_or_update. In the generated gnulib-comp.m4, collect the
39271         object files for tests/ in different variables than those for lib/.
39272         Substitute LIBTESTS_LIBDEPS.
39273         (func_create_testdir): Combine the uses_subdirs results from
39274         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
39275
39276 2007-12-09  Bruno Haible  <bruno@clisp.org>
39277
39278         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
39279         the build-aux directory.
39280
39281 2007-12-09  Bruno Haible  <bruno@clisp.org>
39282
39283         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
39284         introduced on 2006-09-09.
39285
39286 2007-12-07  Jim Meyering  <meyering@redhat.com>
39287
39288         Let these macros work also with autoconf-2.59.
39289         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
39290         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
39291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39292
39293 2007-12-06  Jim Meyering  <meyering@redhat.com>
39294
39295         Avoid a configure-time syntax error in gl_FUNC_ACL.
39296         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
39297         function in each branch, before testing the cache variable.
39298
39299 2007-12-04  Eric Blake  <ebb9@byu.net>
39300
39301         Make scripts executable.
39302         * build-aux/config.guess: Add execute permissions.
39303         * build-aux/config.sub: Likewise.
39304         * build-aux/gendocs.sh: Likewise.
39305
39306         Fix frexp on mingw.
39307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
39308         cross-compiling.
39309         * doc/functions/frexp.texi (frexp): Document the bug.
39310
39311         Make cygwin fseeko check more reliable.
39312         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
39313         version numbers, rather than unrelated feature check.
39314         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
39315         * doc/functions/ftello.texi (ftello): Likewise.
39316         Reported by Bruno Haible.
39317
39318         * m4/strerror.m4: Bump version number.
39319
39320 2007-12-03  Bruno Haible  <bruno@clisp.org>
39321
39322         * doc/functions/mprotect.texi: Mention the mingw problem.
39323
39324 2007-12-03  Eric Blake  <ebb9@byu.net>
39325
39326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
39327         REPLACE_STRERROR is initialized before this macro.
39328
39329 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39330
39331         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
39332         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
39333         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
39334         put -lsec in even for programs other than 'ls'.  This fixes a problem
39335         for gettext reported by Bruno Haible in
39336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
39337         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
39338         Add support for Solaris 10.  This isn't efficient, but should get the
39339         job done for now.
39340
39341 2007-12-03  James Youngman  <jay@gnu.org>
39342
39343         * doc/regexprops-generic.texi: change "an close-group" to "a
39344         close-group" and "illegal" to "not allowed".
39345
39346 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39347
39348         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
39349         pr_byname.h. Needed for the rare case when the maintainer has done
39350         "make maintainer-clean" in the source directory and then attempts a
39351         build outside the source directory.
39352         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
39353         scripts_byname.h.
39354
39355 2007-12-02  Martin Lambers <marlam@marlam.de>
39356             Bruno Haible  <bruno@clisp.org>
39357
39358         * lib/getpagesize.h: Remove file.
39359         * lib/unistd.in.h: Include declaration of getpagesize here.
39360         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
39361         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
39362         HAVE_SYS_PARAM_H.
39363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
39364         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39365         * modules/getpagesize (Files): Remove lib/getpagesize.h.
39366         (Depends-on): Add unistd.
39367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39368         (Include): Use <unistd.h> instead of getpagesize.h.
39369         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
39370         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39371         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
39372         gl_GETPAGESIZE invocation, already handled by module dependency.
39373         * lib/pagealign_alloc.c: Don't include getpagesize.h.
39374
39375 2007-12-02  Bruno Haible  <bruno@clisp.org>
39376
39377         * modules/strings-tests: New file.
39378         * tests/test-strings.c: New file.
39379
39380         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
39381         * lib/strings.in.h: New file.
39382         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
39383         * m4/strings_h.m4: New file.
39384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
39385         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
39386         * modules/strings: New file.
39387         * modules/string (Makefile.am): Update.
39388         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
39389         Reported by Karl Berry.
39390
39391 2007-12-01  Eric Blake  <ebb9@byu.net>
39392
39393         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
39394         accomodate fix in cygwin 1.5.25.
39395
39396 2007-12-01  Jim Meyering  <meyering@redhat.com>
39397
39398         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
39399         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
39400         that would inhibit utf8-optimization of a regexp containing line-
39401         or buffer-anchors, e.g., `^', `$'.
39402
39403 2007-11-30  Bruno Haible  <bruno@clisp.org>
39404
39405         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
39406         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
39407         glthread_recursive_lock_init.
39408         * lib/lock.c (glthread_recursive_lock_init)
39409         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
39410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39411
39412 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
39413
39414         New function qset_acl, like set_acl but with syscall semantics.
39415         * lib/acl.h (qset_acl): New decl.
39416         * lib/acl.c (qset_acl): New function.
39417         (set_acl): Use new function.  Use more-consistent diagnostics.
39418
39419 2007-11-28  Jim Meyering  <meyering@redhat.com>
39420
39421         * modules/physmem (License): Change from GPL to LGPLv2+.
39422
39423 2007-11-26  Bruno Haible  <bruno@clisp.org>
39424
39425         * lib/vasnprintf.c (decode_long_double): Don't abort if the
39426         'long double' type has excess precision.
39427         Reported by Jim Meyering in
39428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
39429
39430 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39431
39432         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
39433         Sync from <http://gnu.org/licenses>.
39434         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
39435         with license text from same location.
39436         * doc/maintain.texi, doc/standards.texi:  Sync from
39437         <http://savannah.gnu.org/projects/gnustandards>.
39438
39439 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
39440         and Jim Meyering  <meyering@redhat.com>
39441
39442         Adjust getdate' grammar to accept a slightly more regular language.
39443         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
39444         Before, the former was rejected.
39445         * lib/getdate.y (digits_to_date_time): New function, factored
39446         out of ...
39447         (number): ...here.  Just call digits_to_date_time.
39448         (hybrid): New non-terminal to handle an <unsigned number,
39449         signed relative offset> sequence consistently.
39450
39451 2007-11-18  Jim Meyering  <meyering@redhat.com>
39452
39453         Pull my changes from coreutils:
39454         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
39455         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
39456         use of $gnulib_tool_option_extras, so that it's separated from the
39457         preceding argument.
39458
39459         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
39460         * build-aux/bootstrap (cp_mark_as_generated): Create any required
39461         parent destination directories before copying a file into place.
39462
39463 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39464
39465         bootstrap: work also with 4-argument variant of AC_INIT
39466         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
39467
39468 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39469
39470         Port test-getaddrinfo to Solaris.
39471         Problem reported by Bruno Haible in
39472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
39473         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
39474         explanation of setting 'hints'.
39475         Don't reject an implementation merely because it returns EAI_SERVICE.
39476         (EAI_SERVICE): Define to 0 if not defined.
39477
39478 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39479
39480         The license of gnu-make and posix-shell is now "GPLed build tool".
39481         * modules/gnu-make (License): Likewise.
39482         * modules/posix-shell (License): Likewise.
39483
39484         New module posix-shell, for determining a POSIX shell
39485         or perhaps something that is close enough to a POSIX shell.
39486         * m4/posix-shell.m4: New file.
39487         * modules/posix-shell: New file.
39488
39489         * MODULES.html.sh: Mention new module.
39490
39491         New module gnu-make, for determining whether we're using GNU Make.
39492         * m4/gnu-make.m4: New file.
39493         * modules/gnu-make: New file.
39494         * MODULES.html.sh: Mention new module.
39495
39496 2007-11-14  Jim Meyering  <meyering@redhat.com>
39497
39498         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
39499         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
39500         use this macro to create a function _definition_.
39501         Remove useless "#undef ARGMATCH_DIE".
39502
39503 2007-11-14  Bruno Haible  <bruno@clisp.org>
39504
39505         * lib/config.charset: Update for OpenBSD 4.1.
39506         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
39507
39508 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
39509
39510         Document 64-bit #if problems in stdint.texi.
39511         * doc/headers/stdint.texi (stdint.h): Mention problems with
39512         64-bit-#if, and how to work around them.
39513
39514         Don't insist on 'long long int' support in the preprocessor.  It
39515         breaks too many things.  For example, PRIdMAX still uses a 'long
39516         long int' format with the latest Sun compiler, even though
39517         HAVE_LONG_LONG_INT isn't defined due to that compiler's
39518         preprocessor problem.  This causes the latest coreutils to dump
39519         core on Solaris 10 sparc with the Sun C compiler.
39520         Instead, fix the 2007-10-16 problem in a different way, by evaluating
39521         the troublesome expressions at configure-time, not at #if-time.
39522         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
39523         preprocessor.
39524         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
39525         compile-time C checks, done at 'configure'-time.
39526         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
39527         * modules/inttypes (Makefile): Substitute the new symbols that
39528         gl_INTTYPES_H now generates.
39529         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
39530
39531 2007-11-12  Bruno Haible  <bruno@clisp.org>
39532
39533         Tests for Unicode character classification functions.
39534
39535         * modules/unictype/bidicategory-byname-tests: New file.
39536         * modules/unictype/bidicategory-name-tests: New file.
39537         * modules/unictype/bidicategory-of-tests: New file.
39538         * modules/unictype/bidicategory-test-tests: New file.
39539         * modules/unictype/block-list-tests: New file.
39540         * modules/unictype/block-of-tests: New file.
39541         * modules/unictype/block-test-tests: New file.
39542         * modules/unictype/category-C-tests: New file.
39543         * modules/unictype/category-Cc-tests: New file.
39544         * modules/unictype/category-Cf-tests: New file.
39545         * modules/unictype/category-Cn-tests: New file.
39546         * modules/unictype/category-Co-tests: New file.
39547         * modules/unictype/category-Cs-tests: New file.
39548         * modules/unictype/category-L-tests: New file.
39549         * modules/unictype/category-Ll-tests: New file.
39550         * modules/unictype/category-Lm-tests: New file.
39551         * modules/unictype/category-Lo-tests: New file.
39552         * modules/unictype/category-Lt-tests: New file.
39553         * modules/unictype/category-Lu-tests: New file.
39554         * modules/unictype/category-M-tests: New file.
39555         * modules/unictype/category-Mc-tests: New file.
39556         * modules/unictype/category-Me-tests: New file.
39557         * modules/unictype/category-Mn-tests: New file.
39558         * modules/unictype/category-N-tests: New file.
39559         * modules/unictype/category-Nd-tests: New file.
39560         * modules/unictype/category-Nl-tests: New file.
39561         * modules/unictype/category-No-tests: New file.
39562         * modules/unictype/category-P-tests: New file.
39563         * modules/unictype/category-Pc-tests: New file.
39564         * modules/unictype/category-Pd-tests: New file.
39565         * modules/unictype/category-Pe-tests: New file.
39566         * modules/unictype/category-Pf-tests: New file.
39567         * modules/unictype/category-Pi-tests: New file.
39568         * modules/unictype/category-Po-tests: New file.
39569         * modules/unictype/category-Ps-tests: New file.
39570         * modules/unictype/category-S-tests: New file.
39571         * modules/unictype/category-Sc-tests: New file.
39572         * modules/unictype/category-Sk-tests: New file.
39573         * modules/unictype/category-Sm-tests: New file.
39574         * modules/unictype/category-So-tests: New file.
39575         * modules/unictype/category-Z-tests: New file.
39576         * modules/unictype/category-Zl-tests: New file.
39577         * modules/unictype/category-Zp-tests: New file.
39578         * modules/unictype/category-Zs-tests: New file.
39579         * modules/unictype/category-and-not-tests: New file.
39580         * modules/unictype/category-and-tests: New file.
39581         * modules/unictype/category-byname-tests: New file.
39582         * modules/unictype/category-name-tests: New file.
39583         * modules/unictype/category-none-tests: New file.
39584         * modules/unictype/category-of-tests: New file.
39585         * modules/unictype/category-or-tests: New file.
39586         * modules/unictype/category-test-withtable-tests: New file.
39587         * modules/unictype/combining-class-tests: New file.
39588         * modules/unictype/ctype-alnum-tests: New file.
39589         * modules/unictype/ctype-alpha-tests: New file.
39590         * modules/unictype/ctype-blank-tests: New file.
39591         * modules/unictype/ctype-cntrl-tests: New file.
39592         * modules/unictype/ctype-digit-tests: New file.
39593         * modules/unictype/ctype-graph-tests: New file.
39594         * modules/unictype/ctype-lower-tests: New file.
39595         * modules/unictype/ctype-print-tests: New file.
39596         * modules/unictype/ctype-punct-tests: New file.
39597         * modules/unictype/ctype-space-tests: New file.
39598         * modules/unictype/ctype-upper-tests: New file.
39599         * modules/unictype/ctype-xdigit-tests: New file.
39600         * modules/unictype/decimal-digit-tests: New file.
39601         * modules/unictype/digit-tests: New file.
39602         * modules/unictype/mirror-tests: New file.
39603         * modules/unictype/numeric-tests: New file.
39604         * modules/unictype/property-alphabetic-tests: New file.
39605         * modules/unictype/property-ascii-hex-digit-tests: New file.
39606         * modules/unictype/property-bidi-arabic-digit-tests: New file.
39607         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
39608         * modules/unictype/property-bidi-block-separator-tests: New file.
39609         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
39610         * modules/unictype/property-bidi-common-separator-tests: New file.
39611         * modules/unictype/property-bidi-control-tests: New file.
39612         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
39613         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
39614         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
39615         * modules/unictype/property-bidi-european-digit-tests: New file.
39616         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
39617         * modules/unictype/property-bidi-left-to-right-tests: New file.
39618         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
39619         * modules/unictype/property-bidi-other-neutral-tests: New file.
39620         * modules/unictype/property-bidi-pdf-tests: New file.
39621         * modules/unictype/property-bidi-segment-separator-tests: New file.
39622         * modules/unictype/property-bidi-whitespace-tests: New file.
39623         * modules/unictype/property-byname-tests: New file.
39624         * modules/unictype/property-combining-tests: New file.
39625         * modules/unictype/property-composite-tests: New file.
39626         * modules/unictype/property-currency-symbol-tests: New file.
39627         * modules/unictype/property-dash-tests: New file.
39628         * modules/unictype/property-decimal-digit-tests: New file.
39629         * modules/unictype/property-default-ignorable-code-point-tests: New file.
39630         * modules/unictype/property-deprecated-tests: New file.
39631         * modules/unictype/property-diacritic-tests: New file.
39632         * modules/unictype/property-extender-tests: New file.
39633         * modules/unictype/property-format-control-tests: New file.
39634         * modules/unictype/property-grapheme-base-tests: New file.
39635         * modules/unictype/property-grapheme-extend-tests: New file.
39636         * modules/unictype/property-grapheme-link-tests: New file.
39637         * modules/unictype/property-hex-digit-tests: New file.
39638         * modules/unictype/property-hyphen-tests: New file.
39639         * modules/unictype/property-id-continue-tests: New file.
39640         * modules/unictype/property-id-start-tests: New file.
39641         * modules/unictype/property-ideographic-tests: New file.
39642         * modules/unictype/property-ids-binary-operator-tests: New file.
39643         * modules/unictype/property-ids-trinary-operator-tests: New file.
39644         * modules/unictype/property-ignorable-control-tests: New file.
39645         * modules/unictype/property-iso-control-tests: New file.
39646         * modules/unictype/property-join-control-tests: New file.
39647         * modules/unictype/property-left-of-pair-tests: New file.
39648         * modules/unictype/property-line-separator-tests: New file.
39649         * modules/unictype/property-logical-order-exception-tests: New file.
39650         * modules/unictype/property-lowercase-tests: New file.
39651         * modules/unictype/property-math-tests: New file.
39652         * modules/unictype/property-non-break-tests: New file.
39653         * modules/unictype/property-not-a-character-tests: New file.
39654         * modules/unictype/property-numeric-tests: New file.
39655         * modules/unictype/property-other-alphabetic-tests: New file.
39656         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
39657         * modules/unictype/property-other-grapheme-extend-tests: New file.
39658         * modules/unictype/property-other-id-continue-tests: New file.
39659         * modules/unictype/property-other-id-start-tests: New file.
39660         * modules/unictype/property-other-lowercase-tests: New file.
39661         * modules/unictype/property-other-math-tests: New file.
39662         * modules/unictype/property-other-uppercase-tests: New file.
39663         * modules/unictype/property-paired-punctuation-tests: New file.
39664         * modules/unictype/property-paragraph-separator-tests: New file.
39665         * modules/unictype/property-pattern-syntax-tests: New file.
39666         * modules/unictype/property-pattern-white-space-tests: New file.
39667         * modules/unictype/property-private-use-tests: New file.
39668         * modules/unictype/property-punctuation-tests: New file.
39669         * modules/unictype/property-quotation-mark-tests: New file.
39670         * modules/unictype/property-radical-tests: New file.
39671         * modules/unictype/property-sentence-terminal-tests: New file.
39672         * modules/unictype/property-soft-dotted-tests: New file.
39673         * modules/unictype/property-space-tests: New file.
39674         * modules/unictype/property-terminal-punctuation-tests: New file.
39675         * modules/unictype/property-test-tests: New file.
39676         * modules/unictype/property-titlecase-tests: New file.
39677         * modules/unictype/property-unassigned-code-value-tests: New file.
39678         * modules/unictype/property-unified-ideograph-tests: New file.
39679         * modules/unictype/property-uppercase-tests: New file.
39680         * modules/unictype/property-variation-selector-tests: New file.
39681         * modules/unictype/property-white-space-tests: New file.
39682         * modules/unictype/property-xid-continue-tests: New file.
39683         * modules/unictype/property-xid-start-tests: New file.
39684         * modules/unictype/property-zero-width-tests: New file.
39685         * modules/unictype/scripts-tests: New file.
39686         * modules/unictype/syntax-c-ident-tests: New file.
39687         * modules/unictype/syntax-c-whitespace-tests: New file.
39688         * modules/unictype/syntax-java-ident-tests: New file.
39689         * modules/unictype/syntax-java-whitespace-tests: New file.
39690         * tests/unictype/test-bidi_byname.c: New file.
39691         * tests/unictype/test-bidi_name.c: New file.
39692         * tests/unictype/test-bidi_of.c: New file.
39693         * tests/unictype/test-bidi_test.c: New file.
39694         * tests/unictype/test-block_list.c: New file.
39695         * tests/unictype/test-block_of.c: New file.
39696         * tests/unictype/test-block_test.c: New file.
39697         * tests/unictype/test-categ_and.c: New file.
39698         * tests/unictype/test-categ_and_not.c: New file.
39699         * tests/unictype/test-categ_byname.c: New file.
39700         * tests/unictype/test-categ_name.c: New file.
39701         * tests/unictype/test-categ_none.c: New file.
39702         * tests/unictype/test-categ_of.c: New file.
39703         * tests/unictype/test-categ_or.c: New file.
39704         * tests/unictype/test-categ_test_withtable.c: New file.
39705         * tests/unictype/test-combining.c: New file.
39706         * tests/unictype/test-decdigit.c: New file.
39707         * tests/unictype/test-digit.c: New file.
39708         * tests/unictype/test-mirror.c: New file.
39709         * tests/unictype/test-numeric.c: New file.
39710         * tests/unictype/test-pr_byname.c: New file.
39711         * tests/unictype/test-pr_test.c: New file.
39712         * tests/unictype/test-predicate-part1.h: New file.
39713         * tests/unictype/test-predicate-part2.h: New file.
39714         * tests/unictype/test-scripts.c: New file.
39715         * tests/unictype/test-sy_c_ident.c: New file.
39716         * tests/unictype/test-sy_java_ident.c: New file.
39717
39718         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
39719         for Unicode 5.0.0.
39720         * tests/unictype/test-categ_Cc.c: Likewise.
39721         * tests/unictype/test-categ_Cf.c: Likewise.
39722         * tests/unictype/test-categ_Cn.c: Likewise.
39723         * tests/unictype/test-categ_Co.c: Likewise.
39724         * tests/unictype/test-categ_Cs.c: Likewise.
39725         * tests/unictype/test-categ_L.c: Likewise.
39726         * tests/unictype/test-categ_Ll.c: Likewise.
39727         * tests/unictype/test-categ_Lm.c: Likewise.
39728         * tests/unictype/test-categ_Lo.c: Likewise.
39729         * tests/unictype/test-categ_Lt.c: Likewise.
39730         * tests/unictype/test-categ_Lu.c: Likewise.
39731         * tests/unictype/test-categ_M.c: Likewise.
39732         * tests/unictype/test-categ_Mc.c: Likewise.
39733         * tests/unictype/test-categ_Me.c: Likewise.
39734         * tests/unictype/test-categ_Mn.c: Likewise.
39735         * tests/unictype/test-categ_N.c: Likewise.
39736         * tests/unictype/test-categ_Nd.c: Likewise.
39737         * tests/unictype/test-categ_Nl.c: Likewise.
39738         * tests/unictype/test-categ_No.c: Likewise.
39739         * tests/unictype/test-categ_P.c: Likewise.
39740         * tests/unictype/test-categ_Pc.c: Likewise.
39741         * tests/unictype/test-categ_Pd.c: Likewise.
39742         * tests/unictype/test-categ_Pe.c: Likewise.
39743         * tests/unictype/test-categ_Pf.c: Likewise.
39744         * tests/unictype/test-categ_Pi.c: Likewise.
39745         * tests/unictype/test-categ_Po.c: Likewise.
39746         * tests/unictype/test-categ_Ps.c: Likewise.
39747         * tests/unictype/test-categ_S.c: Likewise.
39748         * tests/unictype/test-categ_Sc.c: Likewise.
39749         * tests/unictype/test-categ_Sk.c: Likewise.
39750         * tests/unictype/test-categ_Sm.c: Likewise.
39751         * tests/unictype/test-categ_So.c: Likewise.
39752         * tests/unictype/test-categ_Z.c: Likewise.
39753         * tests/unictype/test-categ_Zl.c: Likewise.
39754         * tests/unictype/test-categ_Zp.c: Likewise.
39755         * tests/unictype/test-categ_Zs.c: Likewise.
39756         * tests/unictype/test-ctype_alnum.c: Likewise.
39757         * tests/unictype/test-ctype_alpha.c: Likewise.
39758         * tests/unictype/test-ctype_blank.c: Likewise.
39759         * tests/unictype/test-ctype_cntrl.c: Likewise.
39760         * tests/unictype/test-ctype_digit.c: Likewise.
39761         * tests/unictype/test-ctype_graph.c: Likewise.
39762         * tests/unictype/test-ctype_lower.c: Likewise.
39763         * tests/unictype/test-ctype_print.c: Likewise.
39764         * tests/unictype/test-ctype_punct.c: Likewise.
39765         * tests/unictype/test-ctype_space.c: Likewise.
39766         * tests/unictype/test-ctype_upper.c: Likewise.
39767         * tests/unictype/test-ctype_xdigit.c: Likewise.
39768         * tests/unictype/test-decdigit.h: Likewise.
39769         * tests/unictype/test-digit.h: Likewise.
39770         * tests/unictype/test-numeric.h: Likewise.
39771         * tests/unictype/test-pr_alphabetic.c: Likewise.
39772         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
39773         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39774         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39775         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
39776         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39777         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
39778         * tests/unictype/test-pr_bidi_control.c: Likewise.
39779         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
39780         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
39781         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39782         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39783         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39784         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39785         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39786         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39787         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
39788         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
39789         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
39790         * tests/unictype/test-pr_combining.c: Likewise.
39791         * tests/unictype/test-pr_composite.c: Likewise.
39792         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39793         * tests/unictype/test-pr_dash.c: Likewise.
39794         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39795         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
39796         * tests/unictype/test-pr_deprecated.c: Likewise.
39797         * tests/unictype/test-pr_diacritic.c: Likewise.
39798         * tests/unictype/test-pr_extender.c: Likewise.
39799         * tests/unictype/test-pr_format_control.c: Likewise.
39800         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39801         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39802         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39803         * tests/unictype/test-pr_hex_digit.c: Likewise.
39804         * tests/unictype/test-pr_hyphen.c: Likewise.
39805         * tests/unictype/test-pr_id_continue.c: Likewise.
39806         * tests/unictype/test-pr_id_start.c: Likewise.
39807         * tests/unictype/test-pr_ideographic.c: Likewise.
39808         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
39809         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
39810         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39811         * tests/unictype/test-pr_iso_control.c: Likewise.
39812         * tests/unictype/test-pr_join_control.c: Likewise.
39813         * tests/unictype/test-pr_left_of_pair.c: Likewise.
39814         * tests/unictype/test-pr_line_separator.c: Likewise.
39815         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39816         * tests/unictype/test-pr_lowercase.c: Likewise.
39817         * tests/unictype/test-pr_math.c: Likewise.
39818         * tests/unictype/test-pr_non_break.c: Likewise.
39819         * tests/unictype/test-pr_not_a_character.c: Likewise.
39820         * tests/unictype/test-pr_numeric.c: Likewise.
39821         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39822         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
39823         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
39824         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39825         * tests/unictype/test-pr_other_id_start.c: Likewise.
39826         * tests/unictype/test-pr_other_lowercase.c: Likewise.
39827         * tests/unictype/test-pr_other_math.c: Likewise.
39828         * tests/unictype/test-pr_other_uppercase.c: Likewise.
39829         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
39830         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
39831         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
39832         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
39833         * tests/unictype/test-pr_private_use.c: Likewise.
39834         * tests/unictype/test-pr_punctuation.c: Likewise.
39835         * tests/unictype/test-pr_quotation_mark.c: Likewise.
39836         * tests/unictype/test-pr_radical.c: Likewise.
39837         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39838         * tests/unictype/test-pr_soft_dotted.c: Likewise.
39839         * tests/unictype/test-pr_space.c: Likewise.
39840         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39841         * tests/unictype/test-pr_titlecase.c: Likewise.
39842         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39843         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39844         * tests/unictype/test-pr_uppercase.c: Likewise.
39845         * tests/unictype/test-pr_variation_selector.c: Likewise.
39846         * tests/unictype/test-pr_white_space.c: Likewise.
39847         * tests/unictype/test-pr_xid_continue.c: Likewise.
39848         * tests/unictype/test-pr_xid_start.c: Likewise.
39849         * tests/unictype/test-pr_zero_width.c: Likewise.
39850         * tests/unictype/test-sy_c_whitespace.c: Likewise.
39851         * tests/unictype/test-sy_java_whitespace.c: Likewise.
39852
39853 2007-11-12  Bruno Haible  <bruno@clisp.org>
39854
39855         Unicode character classification functions.
39856         * lib/unictype.h: New file.
39857         * modules/unictype/base: New file.
39858         * modules/unictype/category-L: New file.
39859         * modules/unictype/category-Lu: New file.
39860         * modules/unictype/category-Ll: New file.
39861         * modules/unictype/category-Lt: New file.
39862         * modules/unictype/category-Lm: New file.
39863         * modules/unictype/category-Lo: New file.
39864         * modules/unictype/category-M: New file.
39865         * modules/unictype/category-Mn: New file.
39866         * modules/unictype/category-Mc: New file.
39867         * modules/unictype/category-Me: New file.
39868         * modules/unictype/category-N: New file.
39869         * modules/unictype/category-Nd: New file.
39870         * modules/unictype/category-Nl: New file.
39871         * modules/unictype/category-No: New file.
39872         * modules/unictype/category-P: New file.
39873         * modules/unictype/category-Pc: New file.
39874         * modules/unictype/category-Pd: New file.
39875         * modules/unictype/category-Ps: New file.
39876         * modules/unictype/category-Pe: New file.
39877         * modules/unictype/category-Pi: New file.
39878         * modules/unictype/category-Pf: New file.
39879         * modules/unictype/category-Po: New file.
39880         * modules/unictype/category-S: New file.
39881         * modules/unictype/category-Sm: New file.
39882         * modules/unictype/category-Sc: New file.
39883         * modules/unictype/category-Sk: New file.
39884         * modules/unictype/category-So: New file.
39885         * modules/unictype/category-Z: New file.
39886         * modules/unictype/category-Zs: New file.
39887         * modules/unictype/category-Zl: New file.
39888         * modules/unictype/category-Zp: New file.
39889         * modules/unictype/category-C: New file.
39890         * modules/unictype/category-Cc: New file.
39891         * modules/unictype/category-Cf: New file.
39892         * modules/unictype/category-Cs: New file.
39893         * modules/unictype/category-Co: New file.
39894         * modules/unictype/category-Cn: New file.
39895         * modules/unictype/category-or: New file.
39896         * modules/unictype/category-of: New file.
39897         * modules/unictype/category-test: New file.
39898         * modules/unictype/category-test-withtable: New file.
39899         * modules/unictype/category-byname: New file.
39900         * modules/unictype/category-none: New file.
39901         * modules/unictype/category-and: New file.
39902         * modules/unictype/category-and-not: New file.
39903         * modules/unictype/category-name: New file.
39904         * modules/unictype/combining-class: New file.
39905         * modules/unictype/category-all: New file.
39906         * modules/unictype/bidicategory-all: New file.
39907         * modules/unictype/bidicategory-byname: New file.
39908         * modules/unictype/bidicategory-name: New file.
39909         * modules/unictype/bidicategory-of: New file.
39910         * modules/unictype/bidicategory-test: New file.
39911         * modules/unictype/decimal-digit: New file.
39912         * modules/unictype/digit: New file.
39913         * modules/unictype/numeric: New file.
39914         * modules/unictype/mirror: New file.
39915         * modules/unictype/property-white-space: New file.
39916         * modules/unictype/property-alphabetic: New file.
39917         * modules/unictype/property-other-alphabetic: New file.
39918         * modules/unictype/property-not-a-character: New file.
39919         * modules/unictype/property-default-ignorable-code-point: New file.
39920         * modules/unictype/property-other-default-ignorable-code-point: New
39921         file.
39922         * modules/unictype/property-deprecated: New file.
39923         * modules/unictype/property-logical-order-exception: New file.
39924         * modules/unictype/property-variation-selector: New file.
39925         * modules/unictype/property-private-use: New file.
39926         * modules/unictype/property-unassigned-code-value: New file.
39927         * modules/unictype/property-uppercase: New file.
39928         * modules/unictype/property-other-uppercase: New file.
39929         * modules/unictype/property-lowercase: New file.
39930         * modules/unictype/property-other-lowercase: New file.
39931         * modules/unictype/property-titlecase: New file.
39932         * modules/unictype/property-soft-dotted: New file.
39933         * modules/unictype/property-id-start: New file.
39934         * modules/unictype/property-other-id-start: New file.
39935         * modules/unictype/property-id-continue: New file.
39936         * modules/unictype/property-other-id-continue: New file.
39937         * modules/unictype/property-xid-start: New file.
39938         * modules/unictype/property-xid-continue: New file.
39939         * modules/unictype/property-pattern-white-space: New file.
39940         * modules/unictype/property-pattern-syntax: New file.
39941         * modules/unictype/property-join-control: New file.
39942         * modules/unictype/property-grapheme-base: New file.
39943         * modules/unictype/property-grapheme-extend: New file.
39944         * modules/unictype/property-other-grapheme-extend: New file.
39945         * modules/unictype/property-grapheme-link: New file.
39946         * modules/unictype/property-bidi-control: New file.
39947         * modules/unictype/property-bidi-left-to-right: New file.
39948         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
39949         * modules/unictype/property-bidi-arabic-right-to-left: New file.
39950         * modules/unictype/property-bidi-european-digit: New file.
39951         * modules/unictype/property-bidi-eur-num-separator: New file.
39952         * modules/unictype/property-bidi-eur-num-terminator: New file.
39953         * modules/unictype/property-bidi-arabic-digit: New file.
39954         * modules/unictype/property-bidi-common-separator: New file.
39955         * modules/unictype/property-bidi-block-separator: New file.
39956         * modules/unictype/property-bidi-segment-separator: New file.
39957         * modules/unictype/property-bidi-whitespace: New file.
39958         * modules/unictype/property-bidi-non-spacing-mark: New file.
39959         * modules/unictype/property-bidi-boundary-neutral: New file.
39960         * modules/unictype/property-bidi-pdf: New file.
39961         * modules/unictype/property-bidi-embedding-or-override: New file.
39962         * modules/unictype/property-bidi-other-neutral: New file.
39963         * modules/unictype/property-hex-digit: New file.
39964         * modules/unictype/property-ascii-hex-digit: New file.
39965         * modules/unictype/property-ideographic: New file.
39966         * modules/unictype/property-unified-ideograph: New file.
39967         * modules/unictype/property-radical: New file.
39968         * modules/unictype/property-ids-binary-operator: New file.
39969         * modules/unictype/property-ids-trinary-operator: New file.
39970         * modules/unictype/property-zero-width: New file.
39971         * modules/unictype/property-space: New file.
39972         * modules/unictype/property-non-break: New file.
39973         * modules/unictype/property-iso-control: New file.
39974         * modules/unictype/property-format-control: New file.
39975         * modules/unictype/property-dash: New file.
39976         * modules/unictype/property-hyphen: New file.
39977         * modules/unictype/property-punctuation: New file.
39978         * modules/unictype/property-line-separator: New file.
39979         * modules/unictype/property-paragraph-separator: New file.
39980         * modules/unictype/property-quotation-mark: New file.
39981         * modules/unictype/property-sentence-terminal: New file.
39982         * modules/unictype/property-terminal-punctuation: New file.
39983         * modules/unictype/property-currency-symbol: New file.
39984         * modules/unictype/property-math: New file.
39985         * modules/unictype/property-other-math: New file.
39986         * modules/unictype/property-paired-punctuation: New file.
39987         * modules/unictype/property-left-of-pair: New file.
39988         * modules/unictype/property-combining: New file.
39989         * modules/unictype/property-composite: New file.
39990         * modules/unictype/property-decimal-digit: New file.
39991         * modules/unictype/property-numeric: New file.
39992         * modules/unictype/property-diacritic: New file.
39993         * modules/unictype/property-extender: New file.
39994         * modules/unictype/property-ignorable-control: New file.
39995         * modules/unictype/property-test: New file.
39996         * modules/unictype/property-byname: New file.
39997         * modules/unictype/property-all: New file.
39998         * modules/unictype/scripts: New file.
39999         * modules/unictype/scripts-all: New file.
40000         * modules/unictype/block-of: New file.
40001         * modules/unictype/block-test: New file.
40002         * modules/unictype/block-list: New file.
40003         * modules/unictype/block-all: New file.
40004         * modules/unictype/syntax-c-whitespace: New file.
40005         * modules/unictype/syntax-java-whitespace: New file.
40006         * modules/unictype/syntax-c-ident: New file.
40007         * modules/unictype/syntax-java-ident: New file.
40008         * modules/unictype/ctype-alnum: New file.
40009         * modules/unictype/ctype-alpha: New file.
40010         * modules/unictype/ctype-cntrl: New file.
40011         * modules/unictype/ctype-digit: New file.
40012         * modules/unictype/ctype-graph: New file.
40013         * modules/unictype/ctype-lower: New file.
40014         * modules/unictype/ctype-print: New file.
40015         * modules/unictype/ctype-punct: New file.
40016         * modules/unictype/ctype-space: New file.
40017         * modules/unictype/ctype-upper: New file.
40018         * modules/unictype/ctype-xdigit: New file.
40019         * modules/unictype/ctype-blank: New file.
40020         * lib/unictype/bidi_byname.c: New file.
40021         * lib/unictype/bidi_name.c: New file.
40022         * lib/unictype/bidi_of.c: New file.
40023         * lib/unictype/bidi_test.c: New file.
40024         * lib/unictype/bitmap.h: New file.
40025         * lib/unictype/block_test.c: New file.
40026         * lib/unictype/blocks.c: New file.
40027         * lib/unictype/categ_C.c: New file.
40028         * lib/unictype/categ_Cc.c: New file.
40029         * lib/unictype/categ_Cf.c: New file.
40030         * lib/unictype/categ_Cn.c: New file.
40031         * lib/unictype/categ_Co.c: New file.
40032         * lib/unictype/categ_Cs.c: New file.
40033         * lib/unictype/categ_L.c: New file.
40034         * lib/unictype/categ_Ll.c: New file.
40035         * lib/unictype/categ_Lm.c: New file.
40036         * lib/unictype/categ_Lo.c: New file.
40037         * lib/unictype/categ_Lt.c: New file.
40038         * lib/unictype/categ_Lu.c: New file.
40039         * lib/unictype/categ_M.c: New file.
40040         * lib/unictype/categ_Mc.c: New file.
40041         * lib/unictype/categ_Me.c: New file.
40042         * lib/unictype/categ_Mn.c: New file.
40043         * lib/unictype/categ_N.c: New file.
40044         * lib/unictype/categ_Nd.c: New file.
40045         * lib/unictype/categ_Nl.c: New file.
40046         * lib/unictype/categ_No.c: New file.
40047         * lib/unictype/categ_P.c: New file.
40048         * lib/unictype/categ_Pc.c: New file.
40049         * lib/unictype/categ_Pd.c: New file.
40050         * lib/unictype/categ_Pe.c: New file.
40051         * lib/unictype/categ_Pf.c: New file.
40052         * lib/unictype/categ_Pi.c: New file.
40053         * lib/unictype/categ_Po.c: New file.
40054         * lib/unictype/categ_Ps.c: New file.
40055         * lib/unictype/categ_S.c: New file.
40056         * lib/unictype/categ_Sc.c: New file.
40057         * lib/unictype/categ_Sk.c: New file.
40058         * lib/unictype/categ_Sm.c: New file.
40059         * lib/unictype/categ_So.c: New file.
40060         * lib/unictype/categ_Z.c: New file.
40061         * lib/unictype/categ_Zl.c: New file.
40062         * lib/unictype/categ_Zp.c: New file.
40063         * lib/unictype/categ_Zs.c: New file.
40064         * lib/unictype/categ_and.c: New file.
40065         * lib/unictype/categ_and_not.c: New file.
40066         * lib/unictype/categ_byname.c: New file.
40067         * lib/unictype/categ_name.c: New file.
40068         * lib/unictype/categ_none.c: New file.
40069         * lib/unictype/categ_of.c: New file.
40070         * lib/unictype/categ_or.c: New file.
40071         * lib/unictype/categ_test.c: New file.
40072         * lib/unictype/combining.c: New file.
40073         * lib/unictype/ctype_alnum.c: New file.
40074         * lib/unictype/ctype_alpha.c: New file.
40075         * lib/unictype/ctype_blank.c: New file.
40076         * lib/unictype/ctype_cntrl.c: New file.
40077         * lib/unictype/ctype_digit.c: New file.
40078         * lib/unictype/ctype_graph.c: New file.
40079         * lib/unictype/ctype_lower.c: New file.
40080         * lib/unictype/ctype_print.c: New file.
40081         * lib/unictype/ctype_punct.c: New file.
40082         * lib/unictype/ctype_space.c: New file.
40083         * lib/unictype/ctype_upper.c: New file.
40084         * lib/unictype/ctype_xdigit.c: New file.
40085         * lib/unictype/decdigit.c: New file.
40086         * lib/unictype/digit.c: New file.
40087         * lib/unictype/identsyntaxmap.h: New file.
40088         * lib/unictype/mirror.c: New file.
40089         * lib/unictype/numeric.c: New file.
40090         * lib/unictype/pr_alphabetic.c: New file.
40091         * lib/unictype/pr_ascii_hex_digit.c: New file.
40092         * lib/unictype/pr_bidi_arabic_digit.c: New file.
40093         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
40094         * lib/unictype/pr_bidi_block_separator.c: New file.
40095         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
40096         * lib/unictype/pr_bidi_common_separator.c: New file.
40097         * lib/unictype/pr_bidi_control.c: New file.
40098         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
40099         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
40100         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
40101         * lib/unictype/pr_bidi_european_digit.c: New file.
40102         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
40103         * lib/unictype/pr_bidi_left_to_right.c: New file.
40104         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
40105         * lib/unictype/pr_bidi_other_neutral.c: New file.
40106         * lib/unictype/pr_bidi_pdf.c: New file.
40107         * lib/unictype/pr_bidi_segment_separator.c: New file.
40108         * lib/unictype/pr_bidi_whitespace.c: New file.
40109         * lib/unictype/pr_byname.c: New file.
40110         * lib/unictype/pr_byname.gperf: New file.
40111         * lib/unictype/pr_combining.c: New file.
40112         * lib/unictype/pr_composite.c: New file.
40113         * lib/unictype/pr_currency_symbol.c: New file.
40114         * lib/unictype/pr_dash.c: New file.
40115         * lib/unictype/pr_decimal_digit.c: New file.
40116         * lib/unictype/pr_default_ignorable_code_point.c: New file.
40117         * lib/unictype/pr_deprecated.c: New file.
40118         * lib/unictype/pr_diacritic.c: New file.
40119         * lib/unictype/pr_extender.c: New file.
40120         * lib/unictype/pr_format_control.c: New file.
40121         * lib/unictype/pr_grapheme_base.c: New file.
40122         * lib/unictype/pr_grapheme_extend.c: New file.
40123         * lib/unictype/pr_grapheme_link.c: New file.
40124         * lib/unictype/pr_hex_digit.c: New file.
40125         * lib/unictype/pr_hyphen.c: New file.
40126         * lib/unictype/pr_id_continue.c: New file.
40127         * lib/unictype/pr_id_start.c: New file.
40128         * lib/unictype/pr_ideographic.c: New file.
40129         * lib/unictype/pr_ids_binary_operator.c: New file.
40130         * lib/unictype/pr_ids_trinary_operator.c: New file.
40131         * lib/unictype/pr_ignorable_control.c: New file.
40132         * lib/unictype/pr_iso_control.c: New file.
40133         * lib/unictype/pr_join_control.c: New file.
40134         * lib/unictype/pr_left_of_pair.c: New file.
40135         * lib/unictype/pr_line_separator.c: New file.
40136         * lib/unictype/pr_logical_order_exception.c: New file.
40137         * lib/unictype/pr_lowercase.c: New file.
40138         * lib/unictype/pr_math.c: New file.
40139         * lib/unictype/pr_non_break.c: New file.
40140         * lib/unictype/pr_not_a_character.c: New file.
40141         * lib/unictype/pr_numeric.c: New file.
40142         * lib/unictype/pr_other_alphabetic.c: New file.
40143         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
40144         * lib/unictype/pr_other_grapheme_extend.c: New file.
40145         * lib/unictype/pr_other_id_continue.c: New file.
40146         * lib/unictype/pr_other_id_start.c: New file.
40147         * lib/unictype/pr_other_lowercase.c: New file.
40148         * lib/unictype/pr_other_math.c: New file.
40149         * lib/unictype/pr_other_uppercase.c: New file.
40150         * lib/unictype/pr_paired_punctuation.c: New file.
40151         * lib/unictype/pr_paragraph_separator.c: New file.
40152         * lib/unictype/pr_pattern_syntax.c: New file.
40153         * lib/unictype/pr_pattern_white_space.c: New file.
40154         * lib/unictype/pr_private_use.c: New file.
40155         * lib/unictype/pr_punctuation.c: New file.
40156         * lib/unictype/pr_quotation_mark.c: New file.
40157         * lib/unictype/pr_radical.c: New file.
40158         * lib/unictype/pr_sentence_terminal.c: New file.
40159         * lib/unictype/pr_soft_dotted.c: New file.
40160         * lib/unictype/pr_space.c: New file.
40161         * lib/unictype/pr_terminal_punctuation.c: New file.
40162         * lib/unictype/pr_test.c: New file.
40163         * lib/unictype/pr_titlecase.c: New file.
40164         * lib/unictype/pr_unassigned_code_value.c: New file.
40165         * lib/unictype/pr_unified_ideograph.c: New file.
40166         * lib/unictype/pr_uppercase.c: New file.
40167         * lib/unictype/pr_variation_selector.c: New file.
40168         * lib/unictype/pr_white_space.c: New file.
40169         * lib/unictype/pr_xid_continue.c: New file.
40170         * lib/unictype/pr_xid_start.c: New file.
40171         * lib/unictype/pr_zero_width.c: New file.
40172         * lib/unictype/scripts.c: New file.
40173         * lib/unictype/sy_c_ident.c: New file.
40174         * lib/unictype/sy_c_whitespace.c: New file.
40175         * lib/unictype/sy_java_ident.c: New file.
40176         * lib/unictype/sy_java_whitespace.c: New file.
40177
40178         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
40179         Unicode 5.0.0.
40180         * lib/unictype/blocks.h: Likewise.
40181         * lib/unictype/categ_C.h: Likewise.
40182         * lib/unictype/categ_Cc.h: Likewise.
40183         * lib/unictype/categ_Cf.h: Likewise.
40184         * lib/unictype/categ_Cn.h: Likewise.
40185         * lib/unictype/categ_Co.h: Likewise.
40186         * lib/unictype/categ_Cs.h: Likewise.
40187         * lib/unictype/categ_L.h: Likewise.
40188         * lib/unictype/categ_Ll.h: Likewise.
40189         * lib/unictype/categ_Lm.h: Likewise.
40190         * lib/unictype/categ_Lo.h: Likewise.
40191         * lib/unictype/categ_Lt.h: Likewise.
40192         * lib/unictype/categ_Lu.h: Likewise.
40193         * lib/unictype/categ_M.h: Likewise.
40194         * lib/unictype/categ_Mc.h: Likewise.
40195         * lib/unictype/categ_Me.h: Likewise.
40196         * lib/unictype/categ_Mn.h: Likewise.
40197         * lib/unictype/categ_N.h: Likewise.
40198         * lib/unictype/categ_Nd.h: Likewise.
40199         * lib/unictype/categ_Nl.h: Likewise.
40200         * lib/unictype/categ_No.h: Likewise.
40201         * lib/unictype/categ_P.h: Likewise.
40202         * lib/unictype/categ_Pc.h: Likewise.
40203         * lib/unictype/categ_Pd.h: Likewise.
40204         * lib/unictype/categ_Pe.h: Likewise.
40205         * lib/unictype/categ_Pf.h: Likewise.
40206         * lib/unictype/categ_Pi.h: Likewise.
40207         * lib/unictype/categ_Po.h: Likewise.
40208         * lib/unictype/categ_Ps.h: Likewise.
40209         * lib/unictype/categ_S.h: Likewise.
40210         * lib/unictype/categ_Sc.h: Likewise.
40211         * lib/unictype/categ_Sk.h: Likewise.
40212         * lib/unictype/categ_Sm.h: Likewise.
40213         * lib/unictype/categ_So.h: Likewise.
40214         * lib/unictype/categ_Z.h: Likewise.
40215         * lib/unictype/categ_Zl.h: Likewise.
40216         * lib/unictype/categ_Zp.h: Likewise.
40217         * lib/unictype/categ_Zs.h: Likewise.
40218         * lib/unictype/categ_of.h: Likewise.
40219         * lib/unictype/combining.h: Likewise.
40220         * lib/unictype/ctype_alnum.h: Likewise.
40221         * lib/unictype/ctype_alpha.h: Likewise.
40222         * lib/unictype/ctype_blank.h: Likewise.
40223         * lib/unictype/ctype_cntrl.h: Likewise.
40224         * lib/unictype/ctype_digit.h: Likewise.
40225         * lib/unictype/ctype_graph.h: Likewise.
40226         * lib/unictype/ctype_lower.h: Likewise.
40227         * lib/unictype/ctype_print.h: Likewise.
40228         * lib/unictype/ctype_punct.h: Likewise.
40229         * lib/unictype/ctype_space.h: Likewise.
40230         * lib/unictype/ctype_upper.h: Likewise.
40231         * lib/unictype/ctype_xdigit.h: Likewise.
40232         * lib/unictype/decdigit.h: Likewise.
40233         * lib/unictype/digit.h: Likewise.
40234         * lib/unictype/mirror.h: Likewise.
40235         * lib/unictype/numeric.h: Likewise.
40236         * lib/unictype/pr_alphabetic.h: Likewise.
40237         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40238         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40239         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40240         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40241         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40242         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40243         * lib/unictype/pr_bidi_control.h: Likewise.
40244         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40245         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40246         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40247         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40248         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40249         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40250         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40251         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40252         * lib/unictype/pr_bidi_pdf.h: Likewise.
40253         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40254         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40255         * lib/unictype/pr_combining.h: Likewise.
40256         * lib/unictype/pr_composite.h: Likewise.
40257         * lib/unictype/pr_currency_symbol.h: Likewise.
40258         * lib/unictype/pr_dash.h: Likewise.
40259         * lib/unictype/pr_decimal_digit.h: Likewise.
40260         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40261         * lib/unictype/pr_deprecated.h: Likewise.
40262         * lib/unictype/pr_diacritic.h: Likewise.
40263         * lib/unictype/pr_extender.h: Likewise.
40264         * lib/unictype/pr_format_control.h: Likewise.
40265         * lib/unictype/pr_grapheme_base.h: Likewise.
40266         * lib/unictype/pr_grapheme_extend.h: Likewise.
40267         * lib/unictype/pr_grapheme_link.h: Likewise.
40268         * lib/unictype/pr_hex_digit.h: Likewise.
40269         * lib/unictype/pr_hyphen.h: Likewise.
40270         * lib/unictype/pr_id_continue.h: Likewise.
40271         * lib/unictype/pr_id_start.h: Likewise.
40272         * lib/unictype/pr_ideographic.h: Likewise.
40273         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40274         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40275         * lib/unictype/pr_ignorable_control.h: Likewise.
40276         * lib/unictype/pr_iso_control.h: Likewise.
40277         * lib/unictype/pr_join_control.h: Likewise.
40278         * lib/unictype/pr_left_of_pair.h: Likewise.
40279         * lib/unictype/pr_line_separator.h: Likewise.
40280         * lib/unictype/pr_logical_order_exception.h: Likewise.
40281         * lib/unictype/pr_lowercase.h: Likewise.
40282         * lib/unictype/pr_math.h: Likewise.
40283         * lib/unictype/pr_non_break.h: Likewise.
40284         * lib/unictype/pr_not_a_character.h: Likewise.
40285         * lib/unictype/pr_numeric.h: Likewise.
40286         * lib/unictype/pr_other_alphabetic.h: Likewise.
40287         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40288         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40289         * lib/unictype/pr_other_id_continue.h: Likewise.
40290         * lib/unictype/pr_other_id_start.h: Likewise.
40291         * lib/unictype/pr_other_lowercase.h: Likewise.
40292         * lib/unictype/pr_other_math.h: Likewise.
40293         * lib/unictype/pr_other_uppercase.h: Likewise.
40294         * lib/unictype/pr_paired_punctuation.h: Likewise.
40295         * lib/unictype/pr_paragraph_separator.h: Likewise.
40296         * lib/unictype/pr_pattern_syntax.h: Likewise.
40297         * lib/unictype/pr_pattern_white_space.h: Likewise.
40298         * lib/unictype/pr_private_use.h: Likewise.
40299         * lib/unictype/pr_punctuation.h: Likewise.
40300         * lib/unictype/pr_quotation_mark.h: Likewise.
40301         * lib/unictype/pr_radical.h: Likewise.
40302         * lib/unictype/pr_sentence_terminal.h: Likewise.
40303         * lib/unictype/pr_soft_dotted.h: Likewise.
40304         * lib/unictype/pr_space.h: Likewise.
40305         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40306         * lib/unictype/pr_titlecase.h: Likewise.
40307         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40308         * lib/unictype/pr_unified_ideograph.h: Likewise.
40309         * lib/unictype/pr_uppercase.h: Likewise.
40310         * lib/unictype/pr_variation_selector.h: Likewise.
40311         * lib/unictype/pr_white_space.h: Likewise.
40312         * lib/unictype/pr_xid_continue.h: Likewise.
40313         * lib/unictype/pr_xid_start.h: Likewise.
40314         * lib/unictype/pr_zero_width.h: Likewise.
40315         * lib/unictype/scripts.h: Likewise.
40316         * lib/unictype/scripts_byname.gperf: Likewise.
40317         * lib/unictype/sy_c_ident.h: Likewise.
40318         * lib/unictype/sy_c_whitespace.h: Likewise.
40319         * lib/unictype/sy_java_ident.h: Likewise.
40320         * lib/unictype/sy_java_whitespace.h: Likewise.
40321
40322         * lib/unictype/Makefile: New file.
40323         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
40324         glibc.
40325         * lib/unictype/3level.h: New file, copied from glibc.
40326         * lib/unictype/3levelbit.h: New file.
40327
40328 2007-11-11  Bruno Haible  <bruno@clisp.org>
40329
40330         * modules/gperf: New file.
40331         * modules/iconv_open (Depends-on): Add it.
40332         (Makefile.am): Remove the GPERF definition.
40333
40334 2007-11-11  Bruno Haible  <bruno@clisp.org>
40335
40336         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
40337         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
40338
40339 2007-11-11  Bruno Haible  <bruno@clisp.org>
40340
40341         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
40342         (usage): Remove function.
40343
40344 2007-11-11  Bruno Haible  <bruno@clisp.org>
40345
40346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
40347         gl_FUNC_CEILF_LIBS.
40348         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
40349         gl_FUNC_CEIL_LIBS.
40350         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
40351         gl_FUNC_CEILL_LIBS.
40352         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
40353         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
40354         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
40355
40356 2007-11-11  Bruno Haible  <bruno@clisp.org>
40357
40358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
40359         roundf were declared but do not exist on functions.
40360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
40361         roundl were declared but do not exist on functions.
40362         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
40363         HAVE_FLOORL_AND_CEILL, respectively.
40364         Needed for Sun C on Solaris 10.
40365
40366 2007-11-11  Bruno Haible  <bruno@clisp.org>
40367
40368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
40369         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
40370         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
40371         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
40372         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
40373         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
40374         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
40375         HAVE_DECL_ROUNDF.
40376         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
40377         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
40378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
40379         of HAVE_DECL_ROUND*.
40380         * modules/math (Makefile.am): Update.
40381
40382 2007-11-10  Bruno Haible  <bruno@clisp.org>
40383
40384         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
40385         ptrdiff_t as m4/intl.m4.
40386
40387 2007-11-10  Jim Meyering  <meyering@redhat.com>
40388
40389         Avoid link failure for the argmatch test.
40390         * tests/test-argmatch.c (usage): Define function to avoid a link
40391         failure: argmatch_die requires a usage function.
40392
40393 2007-11-09  Bruno Haible  <bruno@clisp.org>
40394
40395         * doc/functions/snprintf.texi: Mention BeOS deficiency.
40396         * doc/functions/vsnprintf.texi: Likewise.
40397         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
40398         with a size argument < 2.
40399
40400 2007-11-09  Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
40403         buffer. Fixes an inefficiency introduced on 2007-11-03.
40404
40405 2007-11-09  Bruno Haible  <bruno@clisp.org>
40406
40407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
40408         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
40409
40410 2007-11-08  Jim Meyering  <meyering@redhat.com>
40411
40412         Change cache variable name prefix "jm_" to "gl_" everywhere.
40413         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
40414         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
40415         * m4/uptime.m4: s/gl_/jm_/
40416
40417 2007-11-07  Bruno Haible  <bruno@clisp.org>
40418
40419         Update to GNU gettext 0.17.
40420         * m4/intl.m4: Update to GNU gettext 0.17.
40421         * m4/po.m4: Likewise.
40422         * modules/gettext (Files): Remove m4/ulonglong.m4.
40423         (configure.ac): Require gettext infrastructure from version 0.17.
40424
40425 2007-11-06  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
40428         symbolic values are not defined in a public header.
40429         * lib/freadable.c (freadable) [QNX]: Likewise.
40430         * lib/freadahead.c (freadahead) [QNX]: Likewise.
40431         * lib/freading.c (freading) [QNX]: Likewise.
40432         * lib/fseterr.c (fseterr) [QNX]: Likewise.
40433         * lib/fwritable.c (fwritable) [QNX]: Likewise.
40434         * lib/fwriting.c (fwriting) [QNX]: Likewise.
40435         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
40436         Reported by Alain Magloire.
40437
40438         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
40439
40440 2007-11-05  Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
40443         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
40444         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
40445         Reported by Eric Blake.
40446
40447 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40448             Bruno Haible  <bruno@clisp.org>
40449
40450         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
40451         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
40452         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
40453         (malloc): Undefine also before including <stdlib.h>.
40454         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
40455         Needed on OSF/1 4.0.
40456
40457 2007-11-05  Jim Meyering  <meyering@redhat.com>
40458
40459         git-version-gen: sync from coreutils.
40460         * build-aux/git-version-gen: Add comments.
40461         Change the first '-' to '.' in the snapshot version string,
40462         e.g., 6.9-377-08144 -> 6.9.377-08144
40463         Remove first parameter.
40464         Don't declare a version "-dirty" merely because a time
40465         stamp has changed.
40466
40467 2007-11-04  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/lock.h: Protect all macro definitions containing an 'if'
40470         statement through a "do { ... } while (0)".
40471         * lib/tls.h: Likewise.
40472
40473 2007-11-04  Bruno Haible  <bruno@clisp.org>
40474
40475         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
40476
40477 2007-11-04  Bruno Haible  <bruno@clisp.org>
40478
40479         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
40480         * modules/fprintf-posix (Depends-on): Add nocrash.
40481         * modules/snprintf-posix (Depends-on): Likewise.
40482         * modules/sprintf-posix (Depends-on): Likewise.
40483         * modules/vasnprintf-posix (Depends-on): Likewise.
40484         * modules/vasprintf-posix (Depends-on): Likewise.
40485         * modules/vfprintf-posix (Depends-on): Likewise.
40486         * modules/vsnprintf-posix (Depends-on): Likewise.
40487         * modules/vsprintf-posix (Depends-on): Likewise.
40488         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40489         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40490         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40491         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40492         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40493         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40494         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40495
40496 2007-11-04  Bruno Haible  <bruno@clisp.org>
40497
40498         * modules/nocrash: New file.
40499         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
40500         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
40501
40502 2007-11-04  Bruno Haible  <bruno@clisp.org>
40503
40504         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
40505         precision handling.
40506         * tests/test-vasprintf-posix.c (test_function): Likewise.
40507         * tests/test-snprintf-posix.h (test_function): Likewise.
40508         * tests/test-sprintf-posix.h (test_function): Likewise.
40509
40510         Fix *printf behaviour for large precisions on mingw and BeOS.
40511         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
40512         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
40513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
40514         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40515         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40516         gl_PRINTF_PRECISION and test its result. Invoke
40517         gl_PREREQ_VASNPRINTF_PRECISION.
40518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40525         * doc/functions/fprintf.texi: Update.
40526         * doc/functions/printf.texi: Update.
40527         * doc/functions/snprintf.texi: Update.
40528         * doc/functions/sprintf.texi: Update.
40529         * doc/functions/vfprintf.texi: Update.
40530         * doc/functions/vprintf.texi: Update.
40531         * doc/functions/vsnprintf.texi: Update.
40532         * doc/functions/vsprintf.texi: Update.
40533
40534 2007-11-04  Bruno Haible  <bruno@clisp.org>
40535
40536         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
40537
40538 2007-11-04  Bruno Haible  <bruno@clisp.org>
40539
40540         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
40541         Reported by Sylvain Beucler <beuc@gnu.org>.
40542
40543 2007-11-03  Bruno Haible  <bruno@clisp.org>
40544
40545         * tests/test-fprintf-posix2.sh: New file.
40546         * tests/test-fprintf-posix2.c: New file.
40547         * modules/fprintf-posix-tests (Files): Add them.
40548         (TESTS): Add test-fprintf-posix2.sh.
40549         (configure.ac): Check for getrlimit and setrlimit.
40550         (check_PROGRAMS): Add test-fprintf-posix2.
40551
40552         * tests/test-printf-posix2.sh: New file.
40553         * tests/test-printf-posix2.c: New file.
40554         * modules/printf-posix-tests (Files): Add them.
40555         (TESTS): Add test-printf-posix2.sh.
40556         (configure.ac): Check for getrlimit and setrlimit.
40557         (check_PROGRAMS): Add test-printf-posix2.
40558
40559         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
40560         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
40561         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
40562         (decode_double): New function, copied from decode_long_double.
40563         (scale10_round_decimal_decoded): New function, extracted from
40564         scale10_round_decimal_long_double.
40565         (scale10_round_decimal_long_double): Use it.
40566         (scale10_round_decimal_double): New function.
40567         (floorlog10): New function.
40568         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
40569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
40570         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40572         gl_PRINTF_ENOMEM and test its result. Invoke
40573         gl_PREREQ_VASNPRINTF_ENOMEM.
40574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40581         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
40582         * modules/snprintf-posix (Depends-on): Likewise.
40583         * modules/sprintf-posix (Depends-on): Likewise.
40584         * modules/vasnprintf-posix (Depends-on): Likewise.
40585         * modules/vasprintf-posix (Depends-on): Likewise.
40586         * modules/vfprintf-posix (Depends-on): Likewise.
40587         * modules/vsnprintf-posix (Depends-on): Likewise.
40588         * modules/vsprintf-posix (Depends-on): Likewise.
40589         * doc/functions/fprintf.texi: Update.
40590         * doc/functions/printf.texi: Update.
40591         * doc/functions/snprintf.texi: Update.
40592         * doc/functions/sprintf.texi: Update.
40593         * doc/functions/vfprintf.texi: Update.
40594         * doc/functions/vprintf.texi: Update.
40595         * doc/functions/vsnprintf.texi: Update.
40596         * doc/functions/vsprintf.texi: Update.
40597
40598 2007-11-03  Bruno Haible  <bruno@clisp.org>
40599
40600         * modules/frexp-nolibm-tests: New file.
40601
40602         * modules/frexp-nolibm: New file.
40603         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
40604
40605 2007-11-03  Bruno Haible  <bruno@clisp.org>
40606
40607         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
40608         value is C99 compliant.
40609         Needed for OSF/1 5.1.
40610
40611 2007-11-03  Bruno Haible  <bruno@clisp.org>
40612
40613         Fix out-of-memory handling of vasnprintf.
40614         * lib/printf-parse.c: Include <errno.h>.
40615         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
40616         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
40617         is already set.
40618
40619 2007-11-02  Eric Blake  <ebb9@byu.net>
40620
40621         Fix tests on cygwin.
40622         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
40623
40624 2007-11-01  Bruno Haible  <bruno@clisp.org>
40625
40626         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
40627         warning.
40628         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
40629         needed for POSIX compatibility.
40630
40631 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40632
40633         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
40634         for compatibility with GNU.
40635
40636 2007-11-01  Bruno Haible  <bruno@clisp.org>
40637
40638         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
40639         (putenv): Renamed from rpl_putenv. Change argument type from
40640         'const char *' to 'char *'.
40641         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
40642         of defining putenv in config.h, just set REPLACE_PUTENV.
40643         * modules/putenv (Depends-on): Add stdlib.
40644         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40645         (Include): Use <stdlib.h>.
40646         * lib/stdlib.in.h (putenv): New declaration.
40647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
40648         REPLACE_PUTENV.
40649         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
40650         REPLACE_PUTENV.
40651         Needed for MacOS X 10.5.0.
40652         Reported by Peter O'Gorman <peter@pogma.com>.
40653
40654 2007-11-01  Jim Meyering  <meyering@redhat.com>
40655
40656         Treat an empty date string exactly like "0".
40657         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
40658         if the remaining date string (to be parsed) is empty, use "0".
40659         Reported by Mischa Molhoek and discussed in this thread:
40660         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
40661
40662 2007-10-31  Bruno Haible  <bruno@clisp.org>
40663
40664         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
40665         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
40666         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
40667         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
40668         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
40669         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
40670
40671 2007-10-31  Bruno Haible  <bruno@clisp.org>
40672
40673         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
40674         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
40675         (AC_TYPE_LONG_LONG_INT): Use it.
40676         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
40677         it as well.
40678         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
40679         to m4/longlong.m4.
40680         * modules/stdint (Files): Remove m4/ulonglong.m4.
40681         * modules/strtoull (Files): Use m4/longlong.m4 instead of
40682         m4/ulonglong.m4.
40683         * modules/strtoumax (Files): Likewise.
40684
40685 2007-10-30  Bruno Haible  <bruno@clisp.org>
40686
40687         * modules/xvasprintf-posix: New file.
40688         Suggested by Eric Blake.
40689
40690 2007-10-30  Bruno Haible  <bruno@clisp.org>
40691
40692         * modules/xprintf-posix-tests: New file.
40693         * tests/test-xprintf-posix.sh: New file.
40694         * tests/test-xprintf-posix.c: New file.
40695         * tests/test-xfprintf-posix.c: New file.
40696
40697         * modules/xprintf-posix: New file.
40698
40699 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40700
40701         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
40702         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
40703         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
40704
40705 2007-10-29  Bruno Haible  <bruno@clisp.org>
40706
40707         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
40708         contain the special marker '_cv_'.
40709         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40710         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40711         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40712         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40713         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40714         Reported by Ralf Wildenhues.
40715
40716 2007-10-29  Bruno Haible  <bruno@clisp.org>
40717
40718         * gnulib-tool (func_import): When --lgpl is not specified, set
40719         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
40720         GPLv3.
40721         Reported by Simon Josefsson.
40722
40723 2007-10-28  Bruno Haible  <bruno@clisp.org>
40724
40725         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
40726         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
40727         HAVE_DECL_ISFINITE.
40728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40729         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
40730         HAVE_DECL_ISFINITE.
40731
40732 2007-10-28  Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
40735         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
40736
40737 2007-10-28  Bruno Haible  <bruno@clisp.org>
40738
40739         Fix link errors with Sun C 5.0 on Solaris 10.
40740         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
40741         function is declared but not present in the compiler's libm.
40742         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40743         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40744         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
40745         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
40746         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
40747         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
40748         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
40749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40750         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
40751         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
40752         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
40753         HAVE_DECL_FLOORL.
40754
40755 2007-10-28  Bruno Haible  <bruno@clisp.org>
40756
40757         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
40758         gl_FUNC_FLOORL. Cache the result.
40759         (gl_FUNC_FLOORL): Use it.
40760         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
40761         gl_FUNC_CEILL. Cache the result.
40762         (gl_FUNC_CEILL): Use it.
40763
40764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
40765         gl_FUNC_FLOOR. Cache the result.
40766         (gl_FUNC_FLOOR): Use it.
40767         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
40768         gl_FUNC_CEIL. Cache the result.
40769         (gl_FUNC_CEIL): Use it.
40770
40771         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
40772         gl_FUNC_FLOORF. Cache the result.
40773         (gl_FUNC_FLOORF): Use it.
40774         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
40775         gl_FUNC_CEILF. Cache the result.
40776         (gl_FUNC_CEILF): Use it.
40777
40778 2007-10-28  Bruno Haible  <bruno@clisp.org>
40779
40780         * gnulib-tool: Allow specifying the LGPL version number through
40781         --lgpl=2 or --lgpl=3.
40782         (func_usage): Document --lgpl with argument.
40783         Handle --lgpl=... arguments.
40784         (func_import): Recognize also gl_LGPL calls with an argument. When
40785         --lgpl=2 is used and the module's license is just LGPL, report an
40786         error. Set sed_transform_lib_file according to the lgpl variable. In
40787         the generated files, use --lgpl or gl_LGPL invocations with argument,
40788         if necessary.
40789         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
40790         an LGPv2+ license.
40791         * doc/gnulib-tool.texi (Modified imports): Update explanation of
40792         gl_LGPL macro.
40793
40794 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40795             Bruno Haible  <bruno@clisp.org>
40796
40797         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
40798         (u16_uctomb_aux): Likewise.
40799         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
40800         !HAVE_INLINE.
40801         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
40802
40803 2007-10-28  Bruno Haible  <bruno@clisp.org>
40804
40805         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
40806         Invoke AM_GETTEXT_OPTION if it exists.
40807         * modules/vasprintf: Likewise.
40808         * modules/verror: Likewise.
40809         * modules/xprintf: Likewise.
40810         * modules/xvasprintf: Likewise.
40811
40812 2007-10-27  Ben Pfaff  <blp@gnu.org>
40813
40814         * lib/math.in.h: Define isfinite macro and prototypes for
40815         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
40816         implementations.
40817         * m4/math_h.m4: New substitutions for isfinite module.
40818         * lib/isfinite.c: New file.
40819         * m4/isfinite.m4: New file.
40820         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
40821         * modules/isfinite: New file.
40822         * modules/isfinite-tests: New file.
40823         * tests/tests-isfinite.c: New file.
40824         * doc/functions/isfinite.texi: Mention isfinite module.
40825         * MODULES.html.sh: Mention new module.
40826
40827 2007-10-27  Ben Pfaff  <blp@gnu.org>
40828
40829         Ralf Wildenhues reported that Tru64 4.0D declares the round
40830         functions but does not have definitions.
40831         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
40832         cannot be found in any library, set the output variable to
40833         "missing" instead of "".
40834         * m4/round.m4: Also use our substitute if we cannot find round in
40835         any library, even if it is declared.
40836         * m4/roundf.m4: Likewise for roundf.
40837         * m4/roundl.m4: Likewise for roundl.
40838         * lib/math.in.h: Undefine roundf, round, roundl before defining
40839         their replacements, to allow for hypothetical systems where these
40840         may be defined as macros but not available in libraries.
40841
40842 2007-10-27  Bruno Haible  <bruno@clisp.org>
40843
40844         * doc/gnulib.texi: Invoke @firstparagraphindent.
40845         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
40846         changes in gnulib.
40847         (Source changes): New section.
40848
40849 2007-10-26  Bruno Haible  <bruno@clisp.org>
40850
40851         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
40852         borrowed from autoconf.
40853
40854 2007-10-26  Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
40857         strerror returned the empty string. Needed on HP-UX 11.00.
40858
40859 2007-10-24  Micah Cowan  <micah@cowan.name>
40860
40861         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
40862         * build-aux/bootstrap: Remove support for now-unnecessary option,
40863         --cvs-user, and envvars CVS_USER, CVS_RSH.
40864
40865 2007-10-24  Jim Meyering  <meyering@redhat.com>
40866
40867         Avoid diagnostics from sha1sum when there is no cached checksum.
40868         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
40869         if the po.s1 file hasn't been created yet.
40870
40871         * build-aux/bootstrap: Sync from coreutils:
40872         2007-10-24  Jim Meyering  <meyering@redhat.com>
40873         Get gnulib from the git repository, not from an obsolete cvs one.
40874         * build-aux/bootstrap: Suggestion from Micah Cowan.
40875         2007-10-04  Jim Meyering  <jim@meyering.net>
40876         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
40877         (update_po_files): Work also when there are no .po files in po/.
40878
40879 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40880
40881         * README: Append ".git" to git and cg examples.
40882         Problem reported by Benoit Sigoure.
40883
40884 2007-10-23  Micah Cowan  <micah@cowan.name>
40885
40886         * users.txt: Add wget.
40887
40888 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40889
40890         Fix linking of some unistdio tests on FreeBSD.
40891         * modules/unistdio/u16-vsnprintf-tests
40892         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
40893         * modules/unistdio/u16-vsprintf-tests
40894         (test_u16_vsnprintf1_LDADD): Likewise.
40895         * modules/unistdio/u32-vsnprintf-tests
40896         (test_u32_vsnprintf1_LDADD): Likewise.
40897         * modules/unistdio/u32-vsprintf-tests
40898         (test_u32_vsprintf1_LDADD): Likewise.
40899         * modules/unistdio/u8-vsnprintf-tests
40900         (test_u8_vsnprintf1_LDADD): Likewise.
40901         * modules/unistdio/u8-vsprintf-tests
40902         (test_u8_vsprintf1_LDADD): Likewise.
40903         * modules/unistdio/ulc-vsnprintf-tests
40904         (test_ulc_vsnprintf1_LDADD): Likewise.
40905         * modules/unistdio/ulc-vsprintf-tests
40906         (test_ulc_vsprintf1_LDADD): Likewise.
40907
40908         Fix linking of some uniconv tests on FreeBSD.
40909         * modules/uniconv/u16-conv-from-enc-tests
40910         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
40911         * modules/uniconv/u16-conv-to-enc-tests
40912         (test_u16_conv_to_enc_LDADD): Likewise.
40913         * modules/uniconv/u16-strconv-from-enc-tests
40914         (test_u16_strconv_from_enc_LDADD): Likewise.
40915         * modules/uniconv/u16-strconv-to-enc-tests
40916         (test_u16_strconv_to_enc_LDADD): Likewise.
40917         * modules/uniconv/u32-conv-from-enc-tests
40918         (test_u32_conv_from_enc_LDADD): Likewise.
40919         * modules/uniconv/u32-conv-to-enc-tests
40920         (test_u32_conv_to_enc_LDADD): Likewise.
40921         * modules/uniconv/u32-strconv-from-enc-tests
40922         (test_u32_strconv_from_enc_LDADD): Likewise.
40923         * modules/uniconv/u32-strconv-to-enc-tests
40924         (test_u32_strconv_to_enc_LDADD): Likewise.
40925         * modules/uniconv/u8-conv-from-enc-tests
40926         (test_u8_conv_from_enc_LDADD): Likewise.
40927         * modules/uniconv/u8-conv-to-enc-tests
40928         (test_u8_conv_to_enc_LDADD): Likewise.
40929         * modules/uniconv/u8-strconv-from-enc-tests
40930         (test_u8_strconv_from_enc_LDADD): Likewise.
40931         * modules/uniconv/u8-strconv-to-enc-tests
40932         (test_u8_strconv_to_enc_LDADD): Likewise.
40933
40934 2007-10-22  Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
40937         size.
40938
40939 2007-10-22  Eric Blake  <ebb9@byu.net>
40940
40941         Tweak x*printf documentation.
40942         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
40943         variable name and comments.
40944         Suggested by Bruno Haible.
40945
40946 2007-10-22  Bruno Haible  <bruno@clisp.org>
40947
40948         * lib/acl.c (copy_acl): Fix file name in comment.
40949
40950 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40951
40952         Fix Tru64 problem with stdbool.h.
40953         * lib/stdbool.in.h (false, true):
40954         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
40955         Don't declare as an enum in this situation; it runs afoul of Tru64.
40956         Problem reported by Steven M. Schweda in
40957         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
40958
40959 2007-10-22  Eric Blake  <ebb9@byu.net>
40960
40961         Also wrap vf?printf.
40962         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
40963         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
40964         (xvprintf, xvfprintf): New functions.
40965
40966 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40967
40968         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
40969         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
40970
40971         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
40972         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
40973
40974 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40975
40976         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
40977         by Bruno Haible.
40978
40979 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40980
40981         * lib/getloadavg.c
40982         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
40983         Undef `sys' after including sys/table.h, for Tru64 4.0D.
40984
40985         * tests/test-i-ring.c: Work for C89.
40986
40987 2007-10-22  Bruno Haible  <bruno@clisp.org>
40988
40989         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
40990         -1u, in preprocessor expression, so that we don't test for the bug
40991         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
40992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
40993
40994 2007-10-22  Eric Blake  <ebb9@byu.net>
40995
40996         * tests/test-yesno.sh: Silence stderr during test.
40997
40998 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40999
41000         * modules/crypto/gc-camellia: New file.
41001
41002         * m4/gc-camellia.m4: New file.
41003
41004         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
41005
41006         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
41007
41008 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41009
41010         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
41011         --help to stdout.  Reported by sms@antinode.org (Steven
41012         M. Schweda).
41013
41014 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41015
41016         * users.txt: Fix link to libksba.
41017
41018 2007-10-21  Ben Pfaff  <blp@gnu.org>
41019
41020         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
41021         round.c roundf implementation that depends on floorf and ceilf to
41022         be tested unconditionally.
41023
41024 2007-10-21  Ben Pfaff  <blp@gnu.org>
41025
41026         * m4/check-libm-func.m4: Removed.
41027         * m4/check-math-lib.m4: New file.
41028         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
41029         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
41030         definition and lack of AC_LIBOBJ([roundf]).
41031         * m4/roundl.m4: Ditto, and similarly for roundl.
41032         * modules/round: Reference new m4 file.
41033         * modules/roundf: Ditto.
41034         * modules/roundl: Ditto.
41035         * tests/test-round2.c (main): Use ROUND instead of round.
41036         Bug report from Bruno Haible.
41037
41038 2007-10-21  Bruno Haible  <bruno@clisp.org>
41039
41040         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
41041         context.
41042
41043 2007-10-21  Bruno Haible  <bruno@clisp.org>
41044
41045         * tests/test-wcwidth.c (main): Allow negative result for some control
41046         characters.
41047
41048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
41049         Needed on OSF/1 5.1.
41050
41051 2007-10-21  Bruno Haible  <bruno@clisp.org>
41052
41053         * tests/test-floorf1.c: Include isnanf.h.
41054         (main): Use isnanf() instead of isnan().
41055         * tests/test-ceilf1.c: Include isnanf.h.
41056         (main): Use isnanf() instead of isnan().
41057         * tests/test-truncf1.c: Include isnanf.h.
41058         (main): Use isnanf() instead of isnan().
41059         * tests/test-roundf1.c: Include isnanf.h.
41060         (main): Use isnanf() instead of isnan().
41061
41062 2007-10-21  Eric Blake  <ebb9@byu.net>
41063
41064         * users.txt: Update URL for m4.
41065
41066 2007-10-21  Bruno Haible  <bruno@clisp.org>
41067
41068         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
41069
41070 2007-10-21  Bruno Haible  <bruno@clisp.org>
41071
41072         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
41073         Git's management files if the CVS files are not present.
41074
41075 2007-10-20  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
41078         gcc-3.4.x.
41079
41080 2007-10-20  Ben Pfaff  <blp@gnu.org>
41081
41082         * lib/math.in.h: Declare round, roundf, roundl if we are providing
41083         implementations.
41084         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
41085         * lib/round.c: New file.
41086         * lib/roundf.c: New file.
41087         * lib/roundl.c: New file.
41088         * m4/round.m4: New file.
41089         * m4/roundf.m4: New file.
41090         * m4/roundl.m4: New file.
41091         * m4/check-libm-func-m4: New file.
41092         * modules/math: Replace round, roundf, roundl related @VARS@ in
41093         math.in.h.
41094         * modules/round: New file.
41095         * modules/round-tests: New file.
41096         * modules/roundf: New file.
41097         * modules/roundf-tests: New file.
41098         * modules/roundl: New file.
41099         * modules/roundl-tests: New file.
41100         * tests/test-round1.c: New file.
41101         * tests/test-round2.c: New file.
41102         * tests/test-roundf1.c: New file.
41103         * tests/test-roundf2.c: New file.
41104         * tests/test-roundl.c: New file.
41105         * doc/functions/round.texi: Mention round module.
41106         * doc/functions/roundf.texi: Mention roundf module.
41107         * doc/functions/roundl.texi: Mention roundl module.
41108         * MODULES.html.sh: Mention new modules.
41109         Thanks to Bruno Haible for suggestions.
41110
41111 2007-10-20  Jim Meyering  <meyering@redhat.com>
41112
41113         * lib/xprintf.c: Include <config.h> unconditionally.
41114
41115         Change xprintf's license to GPL.
41116         * modules/xprintf (License): s/LGPL/GPL/, since this module
41117         depends on modules (exit and exitfail) which are GPL.
41118         Suggestion from Bruno Haible.
41119
41120         xprintf fixes.
41121         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
41122         Use a clearer diagnostic.
41123         Patch from Bruno Haible.
41124
41125 2007-10-20  Bruno Haible  <bruno@clisp.org>
41126
41127         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
41128         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
41129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41130
41131 2007-10-20  Bruno Haible  <bruno@clisp.org>
41132
41133         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
41134         precision in the comparison result > x - 1 or similar.
41135         * tests/test-ceilf2.c (correct_result_p): Likewise.
41136         * tests/test-truncf2.c (correct_result_p): Likewise.
41137         * tests/test-trunc2.c (correct_result_p): Likewise.
41138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41139
41140 2007-10-20  Bruno Haible  <bruno@clisp.org>
41141
41142         * modules/ceil: New file.
41143         * m4/ceil.m4: New file.
41144         * doc/functions/ceil.texi: Mention the 'ceil' module.
41145
41146 2007-10-20  Bruno Haible  <bruno@clisp.org>
41147
41148         * modules/floor: New file.
41149         * m4/floor.m4: New file.
41150         * doc/functions/floor.texi: Mention the 'floor' module.
41151
41152 2007-10-20  Bruno Haible  <bruno@clisp.org>
41153
41154         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
41155         of %a.
41156         * modules/floorf-tests (Depends-on): Likewise.
41157         * modules/truncf-tests (Depends-on): Likewise.
41158         * modules/trunc-tests (Depends-on): Likewise.
41159         Reported by Ben Pfaff.
41160
41161 2007-10-19  Jim Meyering  <meyering@redhat.com>
41162
41163         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
41164         Don't bother testing specific errno values.  Just test ferror.
41165
41166         New module: xprintf
41167         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
41168
41169 2007-10-19  Bruno Haible  <bruno@clisp.org>
41170
41171         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
41172         syntax.
41173         * modules/javaexec (Makefile.am): Likewise.
41174         * modules/relocatable-prog (Makefile.am): Likewise.
41175         Suggested by Jim Meyering.
41176
41177 2007-10-18  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
41180         Reported by Jim Meyering.
41181
41182 2007-10-18  Eric Blake  <ebb9@byu.net>
41183
41184         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
41185
41186 2007-10-18  Bruno Haible  <bruno@clisp.org>
41187
41188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
41189         the format string into writable memory. Needed in Fortify conditions.
41190
41191 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
41192             Bruno Haible  <bruno@clisp.org>
41193
41194         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
41195         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
41196         * modules/trim (Depends-on): Add mbchar.
41197         (configure.ac): Add gl_FUNC_MBRTOWC.
41198         (Makefile.am): Augment lib_SOURCES.
41199
41200 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41201
41202         Modify glob.c to use fstatat and dirfd, to simplify it.
41203         Suggested by Eric Blake.
41204         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
41205         Don't include <stdbool.h>; not used.
41206         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
41207         (link_exists_p): Simplify implementation, since we can now assume
41208         dirfd and fstatat.
41209         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
41210
41211 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41212
41213         * gnulib-tool (func_get_dependencies): Fix sed script to
41214         match only tests.
41215
41216 2007-10-17  Bruno Haible  <bruno@clisp.org>
41217
41218         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
41219         allow locale names without encoding suffix.
41220         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41221         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41222
41223 2007-10-16  Bruno Haible  <bruno@clisp.org>
41224
41225         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
41226         * lib/getgroups.c (getgroups): Likewise.
41227         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
41228
41229 2007-10-16  Bruno Haible  <bruno@clisp.org>
41230
41231         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
41232         * modules/malloc-posix (License): Likewise.
41233         * modules/realloc-posix (License): Likewise.
41234         * modules/calloc-posix (License): Likewise.
41235         * modules/intprops (License): Change from GPL to LGPL, with
41236         Paul Eggert's approval.
41237
41238 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41239
41240         Merge glibc changes into lib/glob.c.
41241
41242         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
41243         2007-10-15 04:59:03 UTC.  Here are the changes:
41244
41245         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
41246
41247         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
41248
41249         * lib/glob.c: Add some branch prediction throughout.
41250
41251         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
41252
41253         [BZ #5103]
41254         * lib/glob.c (glob): Recognize patterns starting \/.
41255
41256         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
41257
41258         [BZ #3996]
41259         * lib/glob.c (attribute_hidden): Define if not defined.
41260         (glob): Unescape dirname, filename or username when needed and not
41261         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
41262         is NULL.  Handle unescaped [ in pattern without closing ].
41263         Don't pass GLOB_CHECK down to recursive glob for directories.
41264         (__glob_pattern_type): New function.
41265         (__glob_pattern_p): Implement using __glob_pattern_type.
41266         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
41267         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
41268         Remove unreachable code.
41269
41270         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
41271
41272         * lib/glob.c (glob_in_dir): Add some comments and asserts to
41273         explain why there are no leaks.
41274
41275         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
41276
41277         [BZ #3253]
41278         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
41279         time, rather allocate increasingly bigger arrays of pointers, if
41280         possible with alloca, if too large with malloc.
41281
41282 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41283
41284         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
41285         Problem reported by H.Merijn Brand in
41286         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
41287         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
41288         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
41289
41290 2007-10-15  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
41293         with explicit rpl_ prefix.
41294         * lib/fopen.c (fopen): Likewise.
41295         * lib/freopen.c (freopen): Likewise.
41296         * lib/iconv.c (iconv): Likewise.
41297         * lib/iconv_close.c (iconv_close): Likewise.
41298
41299 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41300
41301         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
41302
41303 2007-10-15  Bruno Haible  <bruno@clisp.org>
41304
41305         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
41306         <stddef.h> instead of <stdlib.h> since we only need NULL.
41307         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41308
41309 2007-10-15  Bruno Haible  <bruno@clisp.org>
41310
41311         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
41312         Replace paragraph talking about LIBOBJS.
41313         Reported by Colin Watson <cjwatson@debian.org>.
41314
41315 2007-10-15  Bruno Haible  <bruno@clisp.org>
41316
41317         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
41318         <stdlib.h> before using NULL.
41319
41320 2007-10-15  Simon Josefsson  <simon@josefsson.org>
41321
41322         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
41323         Reported by Albert Chin <china@thewrittenword.com>.
41324
41325 2007-10-14  Bruno Haible  <bruno@clisp.org>
41326
41327         * modules/iconv_open-utf-tests: New file.
41328         * tests/test-iconv-utf.c: New file.
41329
41330         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
41331         * modules/iconv_open-utf: New file.
41332         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
41333         (iconv, iconv_close): New declarations.
41334         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
41335         be defined.
41336         (iconv_open): Add special handling of conversion between UTF-8 and
41337         UTF-{16,32}{BE,LE}.
41338         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
41339         * lib/iconv_close.c: New file.
41340         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
41341         gl_FUNC_ICONV_OPEN.
41342         (gl_FUNC_ICONV_OPEN): Use it.
41343         (gl_FUNC_ICONV_OPEN_UTF): New macro.
41344         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
41345         and REPLACE_ICONV_UTF.
41346         * modules/iconv_open (Depends-on): Add c-strcase.
41347         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
41348         ICONV_CONST.
41349         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
41350
41351 2007-10-13  Albert Chin  <china@thewrittenword.com>
41352             Bruno Haible  <bruno@clisp.org>
41353
41354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
41355         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
41356
41357 2007-10-13  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
41360         defined, use the ISO C99 inline semantics.
41361         * lib/argp.h (ARGP_EI): Likewise.
41362
41363 2007-10-13  Bruno Haible  <bruno@clisp.org>
41364
41365         Handle 'inline' change in gcc 4.3.0.
41366         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
41367         argp_fmtstream_write, argp_fmtstream_set_lmargin,
41368         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
41369         argp_fmtstream_point): Disable 'extern' declaration if the function
41370         definition is going to be provided inline.
41371         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
41372         semantics, not the ISO C99 inline semantics.
41373         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
41374         'extern' declaration if the function definition is going to be provided
41375         inline.
41376         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
41377         the GNU C inline semantics, not the ISO C99 inline semantics. With
41378         GCC 4.2, avoid a warning.
41379
41380 2007-10-13  Bruno Haible  <bruno@clisp.org>
41381
41382         * lib/freading.h (freading): Enable the use of __freading for
41383         glibc >= 2.7.
41384         * lib/freading.c (freading): Likewise.
41385
41386 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41387
41388         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
41389         "warning: C99 inline functions are not supported; using GNU89".
41390
41391 2007-10-12  Bruno Haible  <bruno@clisp.org>
41392
41393         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
41394         of 2.
41395         * tests/test-ceilf2.c: New file.
41396         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
41397
41398         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
41399         * modules/ceilf-tests: Update.
41400
41401 2007-10-12  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
41404         of 2.
41405         * tests/test-floorf2.c: New file.
41406         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
41407
41408         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
41409         * modules/floorf-tests: Update.
41410
41411 2007-10-12  Bruno Haible  <bruno@clisp.org>
41412
41413         * tests/test-trunc2.c: New file.
41414         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
41415
41416         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
41417         * modules/trunc-tests: Update.
41418
41419 2007-10-12  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
41422         of 2.
41423         * tests/test-truncf2.c: New file.
41424         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
41425
41426         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
41427         * modules/truncf-tests: Update.
41428
41429 2007-10-11  Eric Blake  <ebb9@byu.net>
41430
41431         Don't claim strerror is broken on Interix.
41432         * doc/functions/strerror.texi (strerror): Known broken systems are
41433         now Solaris 8, and not Interix.
41434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
41435         Interix on cross-compile.
41436         Reported by Martin Koeppe in
41437         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
41438
41439 2007-10-11  Bruno Haible  <bruno@clisp.org>
41440
41441         * modules/i-ring-tests: New file.
41442         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
41443         instead of assert.
41444
41445 2007-10-11  Bruno Haible  <bruno@clisp.org>
41446
41447         * modules/filenamecat-tests: New file.
41448         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
41449         * lib/filenamecat.c: Remove test code.
41450
41451 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41452
41453         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
41454
41455         * lib/strerror.c: Include <string.h> always, to test interface,
41456         and to remove the need for the dummy.
41457         Include intprops.h to compute width instead of doing it ourselves
41458         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
41459         (strerror): Define it to return NULL if there's no system strerror.
41460         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
41461         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
41462         ancient pre-strerror Unix systems well any more.  Saying "unknown
41463         system error" is enough.
41464         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
41465         simpler strerror.c implementation.
41466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
41467         Simplify the tests to reflect the simpler strerror implementation.
41468         * modules/strerror (Depends-on): Add intprops.
41469
41470 2007-10-09  Eric Blake  <ebb9@byu.net>
41471
41472         Silence test-fpending.
41473         * modules/fpending-tests (Files): Add wrapper script.
41474         * tests/test-fpending.sh: New file.
41475
41476 2007-10-09  Bruno Haible  <bruno@clisp.org>
41477
41478         * MODULES.html.sh (func_module): Don't create a hyperlink for
41479         function names like 'printf_frexp'.
41480         (Misc): Add crc, memxor.
41481         (Characteristics of floating types): New section.
41482         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
41483         isnanf-nolibm, signbit, trunc, truncf, truncl.
41484         (Enhancements for ISO C 99 functions): New subsection Input/output.
41485         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
41486         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
41487         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
41488         (Compatibility checks for POSIX:2001 functions): Add clock-time.
41489         (Enhancements for POSIX:2001 functions): Add chdir-long.
41490         (File system functions): Add areadlink, chdir-safer, read-file.
41491         Remove cycle-check.
41492         (File system as inode set): New section.
41493         (Date and time): Add gethrxtime.
41494         (Multithreading): Add openmp.
41495         (Internationalization functions): Add localename.
41496         (Unicode string functions): Add unistr/u*-mbsnlen.
41497         (Support for maintaining and releasing projects): Add git-version-gen.
41498         (Lone files): Remove directories.
41499
41500 2007-10-08  Ben Pfaff  <blp@gnu.org>
41501
41502         * lib/xmalloca.h: Fix typo in comment.
41503
41504 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41505
41506         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
41507         when avoiding problems with integer overflow.  Use a portable test
41508         instead.
41509
41510 2007-10-08  Simon Josefsson  <simon@josefsson.org>
41511
41512         * modules/dummy (License): Change to LGPLv2+.
41513         * modules/float (License): Likewise
41514         * modules/realloc (License): Likewise
41515         * modules/stdlib (License): Likewise
41516
41517 2007-10-07  Bruno Haible  <bruno@clisp.org>
41518
41519         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
41520         * floor.c (TWO_MANT_DIG): Likewise.
41521         * ceil.c (TWO_MANT_DIG): Likewise.
41522         Reported by Ben Pfaff.
41523
41524 2007-10-07  Bruno Haible  <bruno@clisp.org>
41525
41526         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
41527         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
41528         * lib/frexp.c (FUNC): Likewise.
41529         * lib/printf-frexp.h (printf_frexp): Likewise.
41530         * lib/printf-frexpl.h (printf_frexpl): Likewise.
41531         * lib/printf-frexp.c (FUNC): Likewise.
41532         Suggested by Jim Meyering.
41533
41534 2007-10-07  Jim Meyering  <meyering@redhat.com>
41535
41536         Make xnanosleep's integer overflow test more robust.
41537         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
41538         so that gcc-4.3.0 doesn't optimize away this test for overflow.
41539
41540 2007-10-07  Bruno Haible  <bruno@clisp.org>
41541
41542         * NEWS: Mention the license change.
41543
41544         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
41545         abbreviations in the modules files.
41546
41547         Change copyright notice from GPLv2+ to GPLv3+.
41548         * README: Change copyright notice.
41549         * MODULES.html.sh: Likewise.
41550         * build-aux/bootstrap.conf: Likewise.
41551         * build-aux/config.libpath: Likewise.
41552         * build-aux/csharpcomp.sh.in: Likewise.
41553         * build-aux/csharpexec.sh.in: Likewise.
41554         * build-aux/install-reloc: Likewise.
41555         * build-aux/javacomp.sh.in: Likewise.
41556         * build-aux/javaexec.sh.in: Likewise.
41557         * build-aux/ldd.sh.in: Likewise.
41558         * build-aux/reloc-ldflags: Likewise.
41559         * build-aux/relocatable.sh.in: Likewise.
41560         * build-aux/x-to-1.in: Likewise.
41561         * check-module: Likewise.
41562         * config/srclistvars.sh: Likewise.
41563         * gnulib-tool: Likewise.
41564         * lib/acl-internal.h: Likewise.
41565         * lib/acl.c: Likewise.
41566         * lib/acl.h: Likewise.
41567         * lib/acl_entries.c: Likewise.
41568         * lib/areadlink-with-size.c: Likewise.
41569         * lib/areadlink.c: Likewise.
41570         * lib/areadlink.h: Likewise.
41571         * lib/argmatch.c: Likewise.
41572         * lib/argmatch.h: Likewise.
41573         * lib/argp-ba.c: Likewise.
41574         * lib/argp-eexst.c: Likewise.
41575         * lib/argp-fmtstream.c: Likewise.
41576         * lib/argp-fmtstream.h: Likewise.
41577         * lib/argp-fs-xinl.c: Likewise.
41578         * lib/argp-help.c: Likewise.
41579         * lib/argp-namefrob.h: Likewise.
41580         * lib/argp-parse.c: Likewise.
41581         * lib/argp-pin.c: Likewise.
41582         * lib/argp-pv.c: Likewise.
41583         * lib/argp-pvh.c: Likewise.
41584         * lib/argp-xinl.c: Likewise.
41585         * lib/argp.h: Likewise.
41586         * lib/at-func.c: Likewise.
41587         * lib/atanl.c: Likewise.
41588         * lib/backupfile.c: Likewise.
41589         * lib/backupfile.h: Likewise.
41590         * lib/basename.c: Likewise.
41591         * lib/binary-io.h: Likewise.
41592         * lib/byteswap.in.h: Likewise.
41593         * lib/c-stack.c: Likewise.
41594         * lib/c-stack.h: Likewise.
41595         * lib/c-strcasestr.c: Likewise.
41596         * lib/c-strcasestr.h: Likewise.
41597         * lib/c-strstr.c: Likewise.
41598         * lib/c-strstr.h: Likewise.
41599         * lib/c-strtod.c: Likewise.
41600         * lib/calloc.c: Likewise.
41601         * lib/canon-host.c: Likewise.
41602         * lib/canon-host.h: Likewise.
41603         * lib/canonicalize-lgpl.c: Likewise.
41604         * lib/canonicalize.c: Likewise.
41605         * lib/canonicalize.h: Likewise.
41606         * lib/ceil.c: Likewise.
41607         * lib/ceilf.c: Likewise.
41608         * lib/ceill.c: Likewise.
41609         * lib/chdir-long.c: Likewise.
41610         * lib/chdir-long.h: Likewise.
41611         * lib/chdir-safer.c: Likewise.
41612         * lib/chdir-safer.h: Likewise.
41613         * lib/chown.c: Likewise.
41614         * lib/classpath.c: Likewise.
41615         * lib/classpath.h: Likewise.
41616         * lib/clean-temp.c: Likewise.
41617         * lib/clean-temp.h: Likewise.
41618         * lib/cloexec.c: Likewise.
41619         * lib/close-stream.c: Likewise.
41620         * lib/closein.c: Likewise.
41621         * lib/closein.h: Likewise.
41622         * lib/closeout.c: Likewise.
41623         * lib/closeout.h: Likewise.
41624         * lib/concat-filename.c: Likewise.
41625         * lib/copy-file.c: Likewise.
41626         * lib/copy-file.h: Likewise.
41627         * lib/count-one-bits.h: Likewise.
41628         * lib/crc.c: Likewise.
41629         * lib/crc.h: Likewise.
41630         * lib/creat-safer.c: Likewise.
41631         * lib/csharpcomp.c: Likewise.
41632         * lib/csharpcomp.h: Likewise.
41633         * lib/csharpexec.c: Likewise.
41634         * lib/csharpexec.h: Likewise.
41635         * lib/cycle-check.c: Likewise.
41636         * lib/cycle-check.h: Likewise.
41637         * lib/diacrit.c: Likewise.
41638         * lib/diacrit.h: Likewise.
41639         * lib/diffseq.h: Likewise.
41640         * lib/dirchownmod.c: Likewise.
41641         * lib/dirent.in.h: Likewise.
41642         * lib/dirfd.c: Likewise.
41643         * lib/dirfd.h: Likewise.
41644         * lib/dirname.c: Likewise.
41645         * lib/dirname.h: Likewise.
41646         * lib/dummy.c: Likewise.
41647         * lib/dup-safer.c: Likewise.
41648         * lib/dup2.c: Likewise.
41649         * lib/eealloc.h: Likewise.
41650         * lib/error.c: Likewise.
41651         * lib/error.h: Likewise.
41652         * lib/euidaccess.c: Likewise.
41653         * lib/exclude.c: Likewise.
41654         * lib/exclude.h: Likewise.
41655         * lib/execute.c: Likewise.
41656         * lib/execute.h: Likewise.
41657         * lib/exitfail.c: Likewise.
41658         * lib/exitfail.h: Likewise.
41659         * lib/expl.c: Likewise.
41660         * lib/fatal-signal.c: Likewise.
41661         * lib/fatal-signal.h: Likewise.
41662         * lib/fbufmode.c: Likewise.
41663         * lib/fbufmode.h: Likewise.
41664         * lib/fchdir.c: Likewise.
41665         * lib/fchmodat.c: Likewise.
41666         * lib/fchownat.c: Likewise.
41667         * lib/fcntl--.h: Likewise.
41668         * lib/fcntl-safer.h: Likewise.
41669         * lib/fcntl.in.h: Likewise.
41670         * lib/fd-safer.c: Likewise.
41671         * lib/fflush.c: Likewise.
41672         * lib/file-has-acl.c: Likewise.
41673         * lib/file-set.c: Likewise.
41674         * lib/file-type.c: Likewise.
41675         * lib/file-type.h: Likewise.
41676         * lib/fileblocks.c: Likewise.
41677         * lib/filemode.c: Likewise.
41678         * lib/filemode.h: Likewise.
41679         * lib/filename.h: Likewise.
41680         * lib/filenamecat.c: Likewise.
41681         * lib/filenamecat.h: Likewise.
41682         * lib/findprog.c: Likewise.
41683         * lib/findprog.h: Likewise.
41684         * lib/float.in.h: Likewise.
41685         * lib/floor.c: Likewise.
41686         * lib/floorf.c: Likewise.
41687         * lib/floorl.c: Likewise.
41688         * lib/fopen-safer.c: Likewise.
41689         * lib/fopen.c: Likewise.
41690         * lib/fpending.c: Likewise.
41691         * lib/fpending.h: Likewise.
41692         * lib/fprintf.c: Likewise.
41693         * lib/fprintftime.h: Likewise.
41694         * lib/fpucw.h: Likewise.
41695         * lib/fpurge.c: Likewise.
41696         * lib/fpurge.h: Likewise.
41697         * lib/freadable.c: Likewise.
41698         * lib/freadable.h: Likewise.
41699         * lib/freadahead.c: Likewise.
41700         * lib/freadahead.h: Likewise.
41701         * lib/freading.c: Likewise.
41702         * lib/freading.h: Likewise.
41703         * lib/free.c: Likewise.
41704         * lib/freopen.c: Likewise.
41705         * lib/frexp.c: Likewise.
41706         * lib/frexpl.c: Likewise.
41707         * lib/fseek.c: Likewise.
41708         * lib/fseterr.c: Likewise.
41709         * lib/fseterr.h: Likewise.
41710         * lib/fstatat.c: Likewise.
41711         * lib/fstrcmp.c: Likewise.
41712         * lib/fstrcmp.h: Likewise.
41713         * lib/fsusage.c: Likewise.
41714         * lib/fsusage.h: Likewise.
41715         * lib/ftell.c: Likewise.
41716         * lib/ftello.c: Likewise.
41717         * lib/fts-cycle.c: Likewise.
41718         * lib/fts.c: Likewise.
41719         * lib/fts_.h: Likewise.
41720         * lib/full-read.c: Likewise.
41721         * lib/full-read.h: Likewise.
41722         * lib/full-write.c: Likewise.
41723         * lib/full-write.h: Likewise.
41724         * lib/fwritable.c: Likewise.
41725         * lib/fwritable.h: Likewise.
41726         * lib/fwriteerror.c: Likewise.
41727         * lib/fwriteerror.h: Likewise.
41728         * lib/fwriting.c: Likewise.
41729         * lib/fwriting.h: Likewise.
41730         * lib/gcd.c: Likewise.
41731         * lib/gcd.h: Likewise.
41732         * lib/getcwd.c: Likewise.
41733         * lib/getdate.h: Likewise.
41734         * lib/getdate.y: Likewise.
41735         * lib/getdomainname.c: Likewise.
41736         * lib/getdomainname.h: Likewise.
41737         * lib/getgroups.c: Likewise.
41738         * lib/gethostname.c: Likewise.
41739         * lib/gethrxtime.c: Likewise.
41740         * lib/gethrxtime.h: Likewise.
41741         * lib/getloadavg.c: Likewise.
41742         * lib/getndelim2.c: Likewise.
41743         * lib/getndelim2.h: Likewise.
41744         * lib/getnline.c: Likewise.
41745         * lib/getnline.h: Likewise.
41746         * lib/getopt.c: Likewise.
41747         * lib/getopt.in.h: Likewise.
41748         * lib/getopt1.c: Likewise.
41749         * lib/getopt_int.h: Likewise.
41750         * lib/getpagesize.h: Likewise.
41751         * lib/getsubopt.c: Likewise.
41752         * lib/gettime.c: Likewise.
41753         * lib/getugroups.c: Likewise.
41754         * lib/getugroups.h: Likewise.
41755         * lib/getusershell.c: Likewise.
41756         * lib/gl_anyavltree_list1.h: Likewise.
41757         * lib/gl_anyavltree_list2.h: Likewise.
41758         * lib/gl_anyhash_list1.h: Likewise.
41759         * lib/gl_anyhash_list2.h: Likewise.
41760         * lib/gl_anylinked_list1.h: Likewise.
41761         * lib/gl_anylinked_list2.h: Likewise.
41762         * lib/gl_anyrbtree_list1.h: Likewise.
41763         * lib/gl_anyrbtree_list2.h: Likewise.
41764         * lib/gl_anytree_list1.h: Likewise.
41765         * lib/gl_anytree_list2.h: Likewise.
41766         * lib/gl_anytree_oset.h: Likewise.
41767         * lib/gl_anytreehash_list1.h: Likewise.
41768         * lib/gl_anytreehash_list2.h: Likewise.
41769         * lib/gl_array_list.c: Likewise.
41770         * lib/gl_array_list.h: Likewise.
41771         * lib/gl_array_oset.c: Likewise.
41772         * lib/gl_array_oset.h: Likewise.
41773         * lib/gl_avltree_list.c: Likewise.
41774         * lib/gl_avltree_list.h: Likewise.
41775         * lib/gl_avltree_oset.c: Likewise.
41776         * lib/gl_avltree_oset.h: Likewise.
41777         * lib/gl_avltreehash_list.c: Likewise.
41778         * lib/gl_avltreehash_list.h: Likewise.
41779         * lib/gl_carray_list.c: Likewise.
41780         * lib/gl_carray_list.h: Likewise.
41781         * lib/gl_linked_list.c: Likewise.
41782         * lib/gl_linked_list.h: Likewise.
41783         * lib/gl_linkedhash_list.c: Likewise.
41784         * lib/gl_linkedhash_list.h: Likewise.
41785         * lib/gl_list.c: Likewise.
41786         * lib/gl_list.h: Likewise.
41787         * lib/gl_oset.c: Likewise.
41788         * lib/gl_oset.h: Likewise.
41789         * lib/gl_rbtree_list.c: Likewise.
41790         * lib/gl_rbtree_list.h: Likewise.
41791         * lib/gl_rbtree_oset.c: Likewise.
41792         * lib/gl_rbtree_oset.h: Likewise.
41793         * lib/gl_rbtreehash_list.c: Likewise.
41794         * lib/gl_rbtreehash_list.h: Likewise.
41795         * lib/gl_sublist.c: Likewise.
41796         * lib/gl_sublist.h: Likewise.
41797         * lib/group-member.c: Likewise.
41798         * lib/group-member.h: Likewise.
41799         * lib/hard-locale.c: Likewise.
41800         * lib/hard-locale.h: Likewise.
41801         * lib/hash-pjw.c: Likewise.
41802         * lib/hash-pjw.h: Likewise.
41803         * lib/hash-triple.c: Likewise.
41804         * lib/hash.c: Likewise.
41805         * lib/hash.h: Likewise.
41806         * lib/human.c: Likewise.
41807         * lib/human.h: Likewise.
41808         * lib/i-ring.c: Likewise.
41809         * lib/i-ring.h: Likewise.
41810         * lib/idcache.c: Likewise.
41811         * lib/imaxabs.c: Likewise.
41812         * lib/imaxdiv.c: Likewise.
41813         * lib/inet_pton.c: Likewise.
41814         * lib/inet_pton.h: Likewise.
41815         * lib/intprops.h: Likewise.
41816         * lib/inttostr.c: Likewise.
41817         * lib/inttostr.h: Likewise.
41818         * lib/inttypes.in.h: Likewise.
41819         * lib/isapipe.c: Likewise.
41820         * lib/isdir.c: Likewise.
41821         * lib/isnan.c: Likewise.
41822         * lib/isnan.h: Likewise.
41823         * lib/isnanf.c: Likewise.
41824         * lib/isnanf.h: Likewise.
41825         * lib/isnanl-nolibm.h: Likewise.
41826         * lib/isnanl.c: Likewise.
41827         * lib/isnanl.h: Likewise.
41828         * lib/javacomp.c: Likewise.
41829         * lib/javacomp.h: Likewise.
41830         * lib/javaexec.c: Likewise.
41831         * lib/javaexec.h: Likewise.
41832         * lib/javaversion.c: Likewise.
41833         * lib/javaversion.h: Likewise.
41834         * lib/javaversion.java: Likewise.
41835         * lib/lbrkprop.h: Likewise.
41836         * lib/lchmod.h: Likewise.
41837         * lib/lchown.c: Likewise.
41838         * lib/ldexpl.c: Likewise.
41839         * lib/linebreak.c: Likewise.
41840         * lib/linebreak.h: Likewise.
41841         * lib/linebuffer.c: Likewise.
41842         * lib/linebuffer.h: Likewise.
41843         * lib/locale.in.h: Likewise.
41844         * lib/logl.c: Likewise.
41845         * lib/long-options.c: Likewise.
41846         * lib/long-options.h: Likewise.
41847         * lib/lstat.c: Likewise.
41848         * lib/lstat.h: Likewise.
41849         * lib/math.in.h: Likewise.
41850         * lib/mbchar.c: Likewise.
41851         * lib/mbchar.h: Likewise.
41852         * lib/mbfile.h: Likewise.
41853         * lib/mbiter.h: Likewise.
41854         * lib/mbscasecmp.c: Likewise.
41855         * lib/mbscasestr.c: Likewise.
41856         * lib/mbschr.c: Likewise.
41857         * lib/mbscspn.c: Likewise.
41858         * lib/mbslen.c: Likewise.
41859         * lib/mbsncasecmp.c: Likewise.
41860         * lib/mbsnlen.c: Likewise.
41861         * lib/mbspbrk.c: Likewise.
41862         * lib/mbspcasecmp.c: Likewise.
41863         * lib/mbsrchr.c: Likewise.
41864         * lib/mbssep.c: Likewise.
41865         * lib/mbsspn.c: Likewise.
41866         * lib/mbsstr.c: Likewise.
41867         * lib/mbstok_r.c: Likewise.
41868         * lib/mbswidth.c: Likewise.
41869         * lib/mbswidth.h: Likewise.
41870         * lib/mbuiter.h: Likewise.
41871         * lib/memcasecmp.c: Likewise.
41872         * lib/memcasecmp.h: Likewise.
41873         * lib/memchr.c: Likewise.
41874         * lib/memcmp.c: Likewise.
41875         * lib/memcoll.c: Likewise.
41876         * lib/memcoll.h: Likewise.
41877         * lib/memcpy.c: Likewise.
41878         * lib/memrchr.c: Likewise.
41879         * lib/mkancesdirs.c: Likewise.
41880         * lib/mkdir-p.c: Likewise.
41881         * lib/mkdir-p.h: Likewise.
41882         * lib/mkdir.c: Likewise.
41883         * lib/mkdirat.c: Likewise.
41884         * lib/mkdtemp.c: Likewise.
41885         * lib/mkstemp-safer.c: Likewise.
41886         * lib/mkstemp.c: Likewise.
41887         * lib/modechange.c: Likewise.
41888         * lib/modechange.h: Likewise.
41889         * lib/mountlist.c: Likewise.
41890         * lib/mountlist.h: Likewise.
41891         * lib/mpsort.c: Likewise.
41892         * lib/nanosleep.c: Likewise.
41893         * lib/obstack.c: Likewise.
41894         * lib/obstack.h: Likewise.
41895         * lib/open-safer.c: Likewise.
41896         * lib/open.c: Likewise.
41897         * lib/openat-die.c: Likewise.
41898         * lib/openat-priv.h: Likewise.
41899         * lib/openat-proc.c: Likewise.
41900         * lib/openat.c: Likewise.
41901         * lib/openat.h: Likewise.
41902         * lib/pagealign_alloc.c: Likewise.
41903         * lib/pagealign_alloc.h: Likewise.
41904         * lib/physmem.c: Likewise.
41905         * lib/physmem.h: Likewise.
41906         * lib/pipe-safer.c: Likewise.
41907         * lib/pipe.c: Likewise.
41908         * lib/pipe.h: Likewise.
41909         * lib/posixtm.c: Likewise.
41910         * lib/posixtm.h: Likewise.
41911         * lib/posixver.c: Likewise.
41912         * lib/printf-frexp.c: Likewise.
41913         * lib/printf-frexp.h: Likewise.
41914         * lib/printf-frexpl.c: Likewise.
41915         * lib/printf-frexpl.h: Likewise.
41916         * lib/printf.c: Likewise.
41917         * lib/progname.c: Likewise.
41918         * lib/progname.h: Likewise.
41919         * lib/progreloc.c: Likewise.
41920         * lib/putenv.c: Likewise.
41921         * lib/quote.c: Likewise.
41922         * lib/quote.h: Likewise.
41923         * lib/quotearg.c: Likewise.
41924         * lib/quotearg.h: Likewise.
41925         * lib/raise.c: Likewise.
41926         * lib/readline.c: Likewise.
41927         * lib/readline.h: Likewise.
41928         * lib/readlink.c: Likewise.
41929         * lib/readtokens.c: Likewise.
41930         * lib/readtokens.h: Likewise.
41931         * lib/readtokens0.c: Likewise.
41932         * lib/readtokens0.h: Likewise.
41933         * lib/readutmp.c: Likewise.
41934         * lib/readutmp.h: Likewise.
41935         * lib/realloc.c: Likewise.
41936         * lib/relocwrapper.c: Likewise.
41937         * lib/rename-dest-slash.c: Likewise.
41938         * lib/rename.c: Likewise.
41939         * lib/rmdir.c: Likewise.
41940         * lib/rpmatch.c: Likewise.
41941         * lib/safe-read.c: Likewise.
41942         * lib/safe-read.h: Likewise.
41943         * lib/safe-write.c: Likewise.
41944         * lib/safe-write.h: Likewise.
41945         * lib/same-inode.h: Likewise.
41946         * lib/same.c: Likewise.
41947         * lib/same.h: Likewise.
41948         * lib/save-cwd.c: Likewise.
41949         * lib/save-cwd.h: Likewise.
41950         * lib/savedir.c: Likewise.
41951         * lib/savedir.h: Likewise.
41952         * lib/savewd.c: Likewise.
41953         * lib/savewd.h: Likewise.
41954         * lib/search.in.h: Likewise.
41955         * lib/setenv.c: Likewise.
41956         * lib/setenv.h: Likewise.
41957         * lib/settime.c: Likewise.
41958         * lib/sh-quote.c: Likewise.
41959         * lib/sh-quote.h: Likewise.
41960         * lib/sig2str.c: Likewise.
41961         * lib/sig2str.h: Likewise.
41962         * lib/signal.in.h: Likewise.
41963         * lib/signbitd.c: Likewise.
41964         * lib/signbitf.c: Likewise.
41965         * lib/signbitl.c: Likewise.
41966         * lib/sigprocmask.c: Likewise.
41967         * lib/sincosl.c: Likewise.
41968         * lib/sleep.c: Likewise.
41969         * lib/sprintf.c: Likewise.
41970         * lib/sqrtl.c: Likewise.
41971         * lib/stat-time.h: Likewise.
41972         * lib/stdio--.h: Likewise.
41973         * lib/stdio-safer.h: Likewise.
41974         * lib/stdlib--.h: Likewise.
41975         * lib/stdlib-safer.h: Likewise.
41976         * lib/stdlib.in.h: Likewise.
41977         * lib/stpcpy.c: Likewise.
41978         * lib/stpncpy.c: Likewise.
41979         * lib/strchrnul.c: Likewise.
41980         * lib/strcspn.c: Likewise.
41981         * lib/strerror.c: Likewise.
41982         * lib/strftime.c: Likewise.
41983         * lib/strftime.h: Likewise.
41984         * lib/striconveh.c: Likewise.
41985         * lib/striconveh.h: Likewise.
41986         * lib/striconveha.c: Likewise.
41987         * lib/striconveha.h: Likewise.
41988         * lib/stripslash.c: Likewise.
41989         * lib/strnlen1.c: Likewise.
41990         * lib/strnlen1.h: Likewise.
41991         * lib/strtod.c: Likewise.
41992         * lib/strtoimax.c: Likewise.
41993         * lib/strtok_r.c: Likewise.
41994         * lib/strtol.c: Likewise.
41995         * lib/strtoll.c: Likewise.
41996         * lib/strtoul.c: Likewise.
41997         * lib/strtoull.c: Likewise.
41998         * lib/sysexits.in.h: Likewise.
41999         * lib/tempname.c: Likewise.
42000         * lib/tempname.h: Likewise.
42001         * lib/timespec.h: Likewise.
42002         * lib/tls.c: Likewise.
42003         * lib/tls.h: Likewise.
42004         * lib/tmpdir.c: Likewise.
42005         * lib/tmpdir.h: Likewise.
42006         * lib/tmpfile-safer.c: Likewise.
42007         * lib/tmpfile.c: Likewise.
42008         * lib/trigl.c: Likewise.
42009         * lib/trigl.h: Likewise.
42010         * lib/trim.c: Likewise.
42011         * lib/trim.h: Likewise.
42012         * lib/trunc.c: Likewise.
42013         * lib/truncf.c: Likewise.
42014         * lib/truncl.c: Likewise.
42015         * lib/tsearch.c: Likewise.
42016         * lib/unicodeio.c: Likewise.
42017         * lib/unicodeio.h: Likewise.
42018         * lib/unistd--.h: Likewise.
42019         * lib/unistd-safer.h: Likewise.
42020         * lib/unistdio/ulc-fprintf.c: Likewise.
42021         * lib/unistdio/ulc-vfprintf.c: Likewise.
42022         * lib/unlinkdir.c: Likewise.
42023         * lib/unlinkdir.h: Likewise.
42024         * lib/unlocked-io.h: Likewise.
42025         * lib/unsetenv.c: Likewise.
42026         * lib/userspec.c: Likewise.
42027         * lib/utime.c: Likewise.
42028         * lib/utimecmp.c: Likewise.
42029         * lib/utimecmp.h: Likewise.
42030         * lib/utimens.c: Likewise.
42031         * lib/verify.h: Likewise.
42032         * lib/verror.c: Likewise.
42033         * lib/verror.h: Likewise.
42034         * lib/version-etc-fsf.c: Likewise.
42035         * lib/version-etc.c: Likewise.
42036         * lib/version-etc.h: Likewise.
42037         * lib/vfprintf.c: Likewise.
42038         * lib/vprintf.c: Likewise.
42039         * lib/vsprintf.c: Likewise.
42040         * lib/w32spawn.h: Likewise.
42041         * lib/wait-process.c: Likewise.
42042         * lib/wait-process.h: Likewise.
42043         * lib/wcwidth.c: Likewise.
42044         * lib/write-any-file.c: Likewise.
42045         * lib/xalloc-die.c: Likewise.
42046         * lib/xalloc.h: Likewise.
42047         * lib/xasprintf.c: Likewise.
42048         * lib/xgetcwd.c: Likewise.
42049         * lib/xgetcwd.h: Likewise.
42050         * lib/xgetdomainname.c: Likewise.
42051         * lib/xgetdomainname.h: Likewise.
42052         * lib/xgethostname.c: Likewise.
42053         * lib/xmalloc.c: Likewise.
42054         * lib/xmalloca.c: Likewise.
42055         * lib/xmalloca.h: Likewise.
42056         * lib/xmemcoll.c: Likewise.
42057         * lib/xnanosleep.c: Likewise.
42058         * lib/xreadlink.c: Likewise.
42059         * lib/xreadlink.h: Likewise.
42060         * lib/xsetenv.c: Likewise.
42061         * lib/xsetenv.h: Likewise.
42062         * lib/xstriconv.c: Likewise.
42063         * lib/xstriconv.h: Likewise.
42064         * lib/xstrndup.c: Likewise.
42065         * lib/xstrndup.h: Likewise.
42066         * lib/xstrtod.c: Likewise.
42067         * lib/xstrtod.h: Likewise.
42068         * lib/xstrtol-error.c: Likewise.
42069         * lib/xstrtol.c: Likewise.
42070         * lib/xstrtol.h: Likewise.
42071         * lib/xtime.h: Likewise.
42072         * lib/xvasprintf.c: Likewise.
42073         * lib/xvasprintf.h: Likewise.
42074         * lib/yesno.c: Likewise.
42075         * lib/yesno.h: Likewise.
42076         * posix-modules: Likewise.
42077         * tests/test-alloca-opt.c: Likewise.
42078         * tests/test-arcfour.c: Likewise.
42079         * tests/test-arctwo.c: Likewise.
42080         * tests/test-argmatch.c: Likewise.
42081         * tests/test-argp-2.sh: Likewise.
42082         * tests/test-argp.c: Likewise.
42083         * tests/test-arpa_inet.c: Likewise.
42084         * tests/test-array_list.c: Likewise.
42085         * tests/test-array_oset.c: Likewise.
42086         * tests/test-atexit.c: Likewise.
42087         * tests/test-avltree_list.c: Likewise.
42088         * tests/test-avltree_oset.c: Likewise.
42089         * tests/test-avltreehash_list.c: Likewise.
42090         * tests/test-base64.c: Likewise.
42091         * tests/test-binary-io.c: Likewise.
42092         * tests/test-byteswap.c: Likewise.
42093         * tests/test-c-ctype.c: Likewise.
42094         * tests/test-c-strcasecmp.c: Likewise.
42095         * tests/test-c-strcasestr.c: Likewise.
42096         * tests/test-c-strncasecmp.c: Likewise.
42097         * tests/test-c-strstr.c: Likewise.
42098         * tests/test-canonicalize-lgpl.c: Likewise.
42099         * tests/test-canonicalize.c: Likewise.
42100         * tests/test-carray_list.c: Likewise.
42101         * tests/test-ceilf.c: Likewise.
42102         * tests/test-ceill.c: Likewise.
42103         * tests/test-count-one-bits.c: Likewise.
42104         * tests/test-crc.c: Likewise.
42105         * tests/test-dirname.c: Likewise.
42106         * tests/test-fbufmode.c: Likewise.
42107         * tests/test-fcntl.c: Likewise.
42108         * tests/test-fflush.c: Likewise.
42109         * tests/test-floorf.c: Likewise.
42110         * tests/test-floorl.c: Likewise.
42111         * tests/test-fopen.c: Likewise.
42112         * tests/test-fprintf-posix.c: Likewise.
42113         * tests/test-fprintf-posix.h: Likewise.
42114         * tests/test-fpurge.c: Likewise.
42115         * tests/test-freadable.c: Likewise.
42116         * tests/test-freadahead.c: Likewise.
42117         * tests/test-freading.c: Likewise.
42118         * tests/test-freopen.c: Likewise.
42119         * tests/test-frexp.c: Likewise.
42120         * tests/test-frexpl.c: Likewise.
42121         * tests/test-fseek.c: Likewise.
42122         * tests/test-fseeko.c: Likewise.
42123         * tests/test-fseterr.c: Likewise.
42124         * tests/test-fstrcmp.c: Likewise.
42125         * tests/test-ftell.c: Likewise.
42126         * tests/test-ftello.c: Likewise.
42127         * tests/test-fwritable.c: Likewise.
42128         * tests/test-fwriting.c: Likewise.
42129         * tests/test-getaddrinfo.c: Likewise.
42130         * tests/test-getpass.c: Likewise.
42131         * tests/test-gettimeofday.c: Likewise.
42132         * tests/test-hmac-md5.c: Likewise.
42133         * tests/test-hmac-sha1.c: Likewise.
42134         * tests/test-iconv.c: Likewise.
42135         * tests/test-iconvme.c: Likewise.
42136         * tests/test-inttypes.c: Likewise.
42137         * tests/test-isnan.c: Likewise.
42138         * tests/test-isnanf.c: Likewise.
42139         * tests/test-isnanl-nolibm.c: Likewise.
42140         * tests/test-isnanl.c: Likewise.
42141         * tests/test-isnanl.h: Likewise.
42142         * tests/test-ldexpl.c: Likewise.
42143         * tests/test-linked_list.c: Likewise.
42144         * tests/test-linkedhash_list.c: Likewise.
42145         * tests/test-locale.c: Likewise.
42146         * tests/test-localename.c: Likewise.
42147         * tests/test-lock.c: Likewise.
42148         * tests/test-lseek.c: Likewise.
42149         * tests/test-malloca.c: Likewise.
42150         * tests/test-math.c: Likewise.
42151         * tests/test-mbscasecmp.c: Likewise.
42152         * tests/test-mbscasestr1.c: Likewise.
42153         * tests/test-mbscasestr2.c: Likewise.
42154         * tests/test-mbscasestr3.c: Likewise.
42155         * tests/test-mbscasestr4.c: Likewise.
42156         * tests/test-mbschr.c: Likewise.
42157         * tests/test-mbscspn.c: Likewise.
42158         * tests/test-mbsncasecmp.c: Likewise.
42159         * tests/test-mbspbrk.c: Likewise.
42160         * tests/test-mbspcasecmp.c: Likewise.
42161         * tests/test-mbsrchr.c: Likewise.
42162         * tests/test-mbsspn.c: Likewise.
42163         * tests/test-mbsstr1.c: Likewise.
42164         * tests/test-mbsstr2.c: Likewise.
42165         * tests/test-mbsstr3.c: Likewise.
42166         * tests/test-md5.c: Likewise.
42167         * tests/test-memmem.c: Likewise.
42168         * tests/test-netinet_in.c: Likewise.
42169         * tests/test-open.c: Likewise.
42170         * tests/test-printf-frexp.c: Likewise.
42171         * tests/test-printf-frexpl.c: Likewise.
42172         * tests/test-printf-posix.c: Likewise.
42173         * tests/test-printf-posix.h: Likewise.
42174         * tests/test-rbtree_list.c: Likewise.
42175         * tests/test-rbtree_oset.c: Likewise.
42176         * tests/test-rbtreehash_list.c: Likewise.
42177         * tests/test-read-file.c: Likewise.
42178         * tests/test-rijndael.c: Likewise.
42179         * tests/test-search.c: Likewise.
42180         * tests/test-signbit.c: Likewise.
42181         * tests/test-sleep.c: Likewise.
42182         * tests/test-snprintf-posix.c: Likewise.
42183         * tests/test-snprintf-posix.h: Likewise.
42184         * tests/test-snprintf.c: Likewise.
42185         * tests/test-sprintf-posix.c: Likewise.
42186         * tests/test-sprintf-posix.h: Likewise.
42187         * tests/test-stat-time.c: Likewise.
42188         * tests/test-stdbool.c: Likewise.
42189         * tests/test-stdint.c: Likewise.
42190         * tests/test-stdio.c: Likewise.
42191         * tests/test-stdlib.c: Likewise.
42192         * tests/test-stpncpy.c: Likewise.
42193         * tests/test-strcasestr.c: Likewise.
42194         * tests/test-striconv.c: Likewise.
42195         * tests/test-striconveh.c: Likewise.
42196         * tests/test-striconveha.c: Likewise.
42197         * tests/test-string.c: Likewise.
42198         * tests/test-sys_select.c: Likewise.
42199         * tests/test-sys_socket.c: Likewise.
42200         * tests/test-sys_stat.c: Likewise.
42201         * tests/test-sys_time.c: Likewise.
42202         * tests/test-sysexits.c: Likewise.
42203         * tests/test-time.c: Likewise.
42204         * tests/test-tls.c: Likewise.
42205         * tests/test-trunc.c: Likewise.
42206         * tests/test-truncf.c: Likewise.
42207         * tests/test-truncl.c: Likewise.
42208         * tests/test-unistd.c: Likewise.
42209         * tests/test-vasnprintf-posix.c: Likewise.
42210         * tests/test-vasnprintf-posix2.c: Likewise.
42211         * tests/test-vasnprintf.c: Likewise.
42212         * tests/test-vasprintf-posix.c: Likewise.
42213         * tests/test-vasprintf.c: Likewise.
42214         * tests/test-verify.c: Likewise.
42215         * tests/test-vfprintf-posix.c: Likewise.
42216         * tests/test-vprintf-posix.c: Likewise.
42217         * tests/test-vsnprintf-posix.c: Likewise.
42218         * tests/test-vsnprintf.c: Likewise.
42219         * tests/test-vsprintf-posix.c: Likewise.
42220         * tests/test-wchar.c: Likewise.
42221         * tests/test-wctype.c: Likewise.
42222         * tests/test-wcwidth.c: Likewise.
42223         * tests/test-xstrtol.c: Likewise.
42224         * tests/test-xvasprintf.c: Likewise.
42225         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
42226         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
42227         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42228         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42229         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42230         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
42231         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42232         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42233         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42234         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
42235         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42236         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42237         * tests/uniname/test-uninames.c: Likewise.
42238         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
42239         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
42240         * tests/unistdio/test-u16-printf1.h: Likewise.
42241         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
42242         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
42243         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
42244         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
42245         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
42246         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
42247         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
42248         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
42249         * tests/unistdio/test-u32-printf1.h: Likewise.
42250         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
42251         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
42252         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
42253         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
42254         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
42255         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
42256         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
42257         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
42258         * tests/unistdio/test-u8-printf1.h: Likewise.
42259         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
42260         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
42261         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
42262         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
42263         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
42264         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
42265         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
42266         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
42267         * tests/unistdio/test-ulc-printf1.h: Likewise.
42268         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
42269         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
42270         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
42271         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
42272         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
42273         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
42274         * tests/uniwidth/test-u16-strwidth.c: Likewise.
42275         * tests/uniwidth/test-u16-width.c: Likewise.
42276         * tests/uniwidth/test-u32-strwidth.c: Likewise.
42277         * tests/uniwidth/test-u32-width.c: Likewise.
42278         * tests/uniwidth/test-u8-strwidth.c: Likewise.
42279         * tests/uniwidth/test-u8-width.c: Likewise.
42280         * tests/uniwidth/test-uc_width.c: Likewise.
42281         * config/srclist-update: Likewise.
42282         (fixlicense): Update to GPLv3+.
42283
42284         Change copyright notice from LGPLv2.1+ to LGPLv3+.
42285         * tests/test-tsearch.c: Change copyright notice.
42286
42287         Change copyright notice from LGPLv2.0+ to LGPLv3+.
42288         * lib/c-strcaseeq.h: Change copyright notice.
42289         * lib/streq.h: Likewise.
42290         * lib/uniconv.h: Likewise.
42291         * lib/uniconv/u-conv-from-enc.h: Likewise.
42292         * lib/uniconv/u-conv-to-enc.h: Likewise.
42293         * lib/uniconv/u-strconv-from-enc.h: Likewise.
42294         * lib/uniconv/u-strconv-to-enc.h: Likewise.
42295         * lib/uniconv/u16-conv-from-enc.c: Likewise.
42296         * lib/uniconv/u16-conv-to-enc.c: Likewise.
42297         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
42298         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
42299         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
42300         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
42301         * lib/uniconv/u32-conv-from-enc.c: Likewise.
42302         * lib/uniconv/u32-conv-to-enc.c: Likewise.
42303         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
42304         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
42305         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
42306         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
42307         * lib/uniconv/u8-conv-from-enc.c: Likewise.
42308         * lib/uniconv/u8-conv-to-enc.c: Likewise.
42309         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
42310         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
42311         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
42312         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
42313         * lib/uniname.h: Likewise.
42314         * lib/uniname/uniname.c: Likewise.
42315         * lib/unistdio.h: Likewise.
42316         * lib/unistdio/u-asnprintf.h: Likewise.
42317         * lib/unistdio/u-asprintf.h: Likewise.
42318         * lib/unistdio/u-printf-args.c: Likewise.
42319         * lib/unistdio/u-printf-args.h: Likewise.
42320         * lib/unistdio/u-printf-parse.h: Likewise.
42321         * lib/unistdio/u-snprintf.h: Likewise.
42322         * lib/unistdio/u-sprintf.h: Likewise.
42323         * lib/unistdio/u-vasprintf.h: Likewise.
42324         * lib/unistdio/u-vsnprintf.h: Likewise.
42325         * lib/unistdio/u-vsprintf.h: Likewise.
42326         * lib/unistdio/u16-asnprintf.c: Likewise.
42327         * lib/unistdio/u16-asprintf.c: Likewise.
42328         * lib/unistdio/u16-printf-parse.c: Likewise.
42329         * lib/unistdio/u16-snprintf.c: Likewise.
42330         * lib/unistdio/u16-sprintf.c: Likewise.
42331         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
42332         * lib/unistdio/u16-u16-asprintf.c: Likewise.
42333         * lib/unistdio/u16-u16-snprintf.c: Likewise.
42334         * lib/unistdio/u16-u16-sprintf.c: Likewise.
42335         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
42336         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
42337         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
42338         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
42339         * lib/unistdio/u16-vasnprintf.c: Likewise.
42340         * lib/unistdio/u16-vasprintf.c: Likewise.
42341         * lib/unistdio/u16-vsnprintf.c: Likewise.
42342         * lib/unistdio/u16-vsprintf.c: Likewise.
42343         * lib/unistdio/u32-asnprintf.c: Likewise.
42344         * lib/unistdio/u32-asprintf.c: Likewise.
42345         * lib/unistdio/u32-printf-parse.c: Likewise.
42346         * lib/unistdio/u32-snprintf.c: Likewise.
42347         * lib/unistdio/u32-sprintf.c: Likewise.
42348         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
42349         * lib/unistdio/u32-u32-asprintf.c: Likewise.
42350         * lib/unistdio/u32-u32-snprintf.c: Likewise.
42351         * lib/unistdio/u32-u32-sprintf.c: Likewise.
42352         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
42353         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
42354         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
42355         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
42356         * lib/unistdio/u32-vasnprintf.c: Likewise.
42357         * lib/unistdio/u32-vasprintf.c: Likewise.
42358         * lib/unistdio/u32-vsnprintf.c: Likewise.
42359         * lib/unistdio/u32-vsprintf.c: Likewise.
42360         * lib/unistdio/u8-asnprintf.c: Likewise.
42361         * lib/unistdio/u8-asprintf.c: Likewise.
42362         * lib/unistdio/u8-printf-parse.c: Likewise.
42363         * lib/unistdio/u8-snprintf.c: Likewise.
42364         * lib/unistdio/u8-sprintf.c: Likewise.
42365         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
42366         * lib/unistdio/u8-u8-asprintf.c: Likewise.
42367         * lib/unistdio/u8-u8-snprintf.c: Likewise.
42368         * lib/unistdio/u8-u8-sprintf.c: Likewise.
42369         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
42370         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
42371         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
42372         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
42373         * lib/unistdio/u8-vasnprintf.c: Likewise.
42374         * lib/unistdio/u8-vasprintf.c: Likewise.
42375         * lib/unistdio/u8-vsnprintf.c: Likewise.
42376         * lib/unistdio/u8-vsprintf.c: Likewise.
42377         * lib/unistdio/ulc-asnprintf.c: Likewise.
42378         * lib/unistdio/ulc-asprintf.c: Likewise.
42379         * lib/unistdio/ulc-printf-parse.c: Likewise.
42380         * lib/unistdio/ulc-snprintf.c: Likewise.
42381         * lib/unistdio/ulc-sprintf.c: Likewise.
42382         * lib/unistdio/ulc-vasnprintf.c: Likewise.
42383         * lib/unistdio/ulc-vasprintf.c: Likewise.
42384         * lib/unistdio/ulc-vsnprintf.c: Likewise.
42385         * lib/unistdio/ulc-vsprintf.c: Likewise.
42386         * lib/unistr.h: Likewise.
42387         * lib/unistr/u-cpy-alloc.h: Likewise.
42388         * lib/unistr/u-cpy.h: Likewise.
42389         * lib/unistr/u-endswith.h: Likewise.
42390         * lib/unistr/u-move.h: Likewise.
42391         * lib/unistr/u-set.h: Likewise.
42392         * lib/unistr/u-startswith.h: Likewise.
42393         * lib/unistr/u-stpcpy.h: Likewise.
42394         * lib/unistr/u-stpncpy.h: Likewise.
42395         * lib/unistr/u-strcat.h: Likewise.
42396         * lib/unistr/u-strcpy.h: Likewise.
42397         * lib/unistr/u-strcspn.h: Likewise.
42398         * lib/unistr/u-strdup.h: Likewise.
42399         * lib/unistr/u-strlen.h: Likewise.
42400         * lib/unistr/u-strncat.h: Likewise.
42401         * lib/unistr/u-strncpy.h: Likewise.
42402         * lib/unistr/u-strnlen.h: Likewise.
42403         * lib/unistr/u-strpbrk.h: Likewise.
42404         * lib/unistr/u-strspn.h: Likewise.
42405         * lib/unistr/u-strstr.h: Likewise.
42406         * lib/unistr/u-strtok.h: Likewise.
42407         * lib/unistr/u16-check.c: Likewise.
42408         * lib/unistr/u16-chr.c: Likewise.
42409         * lib/unistr/u16-cmp.c: Likewise.
42410         * lib/unistr/u16-cpy-alloc.c: Likewise.
42411         * lib/unistr/u16-cpy.c: Likewise.
42412         * lib/unistr/u16-endswith.c: Likewise.
42413         * lib/unistr/u16-mblen.c: Likewise.
42414         * lib/unistr/u16-mbsnlen.c: Likewise.
42415         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42416         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42417         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42418         * lib/unistr/u16-mbtouc.c: Likewise.
42419         * lib/unistr/u16-mbtoucr.c: Likewise.
42420         * lib/unistr/u16-move.c: Likewise.
42421         * lib/unistr/u16-next.c: Likewise.
42422         * lib/unistr/u16-prev.c: Likewise.
42423         * lib/unistr/u16-set.c: Likewise.
42424         * lib/unistr/u16-startswith.c: Likewise.
42425         * lib/unistr/u16-stpcpy.c: Likewise.
42426         * lib/unistr/u16-stpncpy.c: Likewise.
42427         * lib/unistr/u16-strcat.c: Likewise.
42428         * lib/unistr/u16-strchr.c: Likewise.
42429         * lib/unistr/u16-strcmp.c: Likewise.
42430         * lib/unistr/u16-strcpy.c: Likewise.
42431         * lib/unistr/u16-strcspn.c: Likewise.
42432         * lib/unistr/u16-strdup.c: Likewise.
42433         * lib/unistr/u16-strlen.c: Likewise.
42434         * lib/unistr/u16-strmblen.c: Likewise.
42435         * lib/unistr/u16-strmbtouc.c: Likewise.
42436         * lib/unistr/u16-strncat.c: Likewise.
42437         * lib/unistr/u16-strncmp.c: Likewise.
42438         * lib/unistr/u16-strncpy.c: Likewise.
42439         * lib/unistr/u16-strnlen.c: Likewise.
42440         * lib/unistr/u16-strpbrk.c: Likewise.
42441         * lib/unistr/u16-strrchr.c: Likewise.
42442         * lib/unistr/u16-strspn.c: Likewise.
42443         * lib/unistr/u16-strstr.c: Likewise.
42444         * lib/unistr/u16-strtok.c: Likewise.
42445         * lib/unistr/u16-to-u32.c: Likewise.
42446         * lib/unistr/u16-to-u8.c: Likewise.
42447         * lib/unistr/u16-uctomb-aux.c: Likewise.
42448         * lib/unistr/u16-uctomb.c: Likewise.
42449         * lib/unistr/u32-check.c: Likewise.
42450         * lib/unistr/u32-chr.c: Likewise.
42451         * lib/unistr/u32-cmp.c: Likewise.
42452         * lib/unistr/u32-cpy-alloc.c: Likewise.
42453         * lib/unistr/u32-cpy.c: Likewise.
42454         * lib/unistr/u32-endswith.c: Likewise.
42455         * lib/unistr/u32-mblen.c: Likewise.
42456         * lib/unistr/u32-mbsnlen.c: Likewise.
42457         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42458         * lib/unistr/u32-mbtouc.c: Likewise.
42459         * lib/unistr/u32-mbtoucr.c: Likewise.
42460         * lib/unistr/u32-move.c: Likewise.
42461         * lib/unistr/u32-next.c: Likewise.
42462         * lib/unistr/u32-prev.c: Likewise.
42463         * lib/unistr/u32-set.c: Likewise.
42464         * lib/unistr/u32-startswith.c: Likewise.
42465         * lib/unistr/u32-stpcpy.c: Likewise.
42466         * lib/unistr/u32-stpncpy.c: Likewise.
42467         * lib/unistr/u32-strcat.c: Likewise.
42468         * lib/unistr/u32-strchr.c: Likewise.
42469         * lib/unistr/u32-strcmp.c: Likewise.
42470         * lib/unistr/u32-strcpy.c: Likewise.
42471         * lib/unistr/u32-strcspn.c: Likewise.
42472         * lib/unistr/u32-strdup.c: Likewise.
42473         * lib/unistr/u32-strlen.c: Likewise.
42474         * lib/unistr/u32-strmblen.c: Likewise.
42475         * lib/unistr/u32-strmbtouc.c: Likewise.
42476         * lib/unistr/u32-strncat.c: Likewise.
42477         * lib/unistr/u32-strncmp.c: Likewise.
42478         * lib/unistr/u32-strncpy.c: Likewise.
42479         * lib/unistr/u32-strnlen.c: Likewise.
42480         * lib/unistr/u32-strpbrk.c: Likewise.
42481         * lib/unistr/u32-strrchr.c: Likewise.
42482         * lib/unistr/u32-strspn.c: Likewise.
42483         * lib/unistr/u32-strstr.c: Likewise.
42484         * lib/unistr/u32-strtok.c: Likewise.
42485         * lib/unistr/u32-to-u16.c: Likewise.
42486         * lib/unistr/u32-to-u8.c: Likewise.
42487         * lib/unistr/u32-uctomb.c: Likewise.
42488         * lib/unistr/u8-check.c: Likewise.
42489         * lib/unistr/u8-chr.c: Likewise.
42490         * lib/unistr/u8-cmp.c: Likewise.
42491         * lib/unistr/u8-cpy-alloc.c: Likewise.
42492         * lib/unistr/u8-cpy.c: Likewise.
42493         * lib/unistr/u8-endswith.c: Likewise.
42494         * lib/unistr/u8-mblen.c: Likewise.
42495         * lib/unistr/u8-mbsnlen.c: Likewise.
42496         * lib/unistr/u8-mbtouc-aux.c: Likewise.
42497         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42498         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42499         * lib/unistr/u8-mbtouc.c: Likewise.
42500         * lib/unistr/u8-mbtoucr.c: Likewise.
42501         * lib/unistr/u8-move.c: Likewise.
42502         * lib/unistr/u8-next.c: Likewise.
42503         * lib/unistr/u8-prev.c: Likewise.
42504         * lib/unistr/u8-set.c: Likewise.
42505         * lib/unistr/u8-startswith.c: Likewise.
42506         * lib/unistr/u8-stpcpy.c: Likewise.
42507         * lib/unistr/u8-stpncpy.c: Likewise.
42508         * lib/unistr/u8-strcat.c: Likewise.
42509         * lib/unistr/u8-strchr.c: Likewise.
42510         * lib/unistr/u8-strcmp.c: Likewise.
42511         * lib/unistr/u8-strcpy.c: Likewise.
42512         * lib/unistr/u8-strcspn.c: Likewise.
42513         * lib/unistr/u8-strdup.c: Likewise.
42514         * lib/unistr/u8-strlen.c: Likewise.
42515         * lib/unistr/u8-strmblen.c: Likewise.
42516         * lib/unistr/u8-strmbtouc.c: Likewise.
42517         * lib/unistr/u8-strncat.c: Likewise.
42518         * lib/unistr/u8-strncmp.c: Likewise.
42519         * lib/unistr/u8-strncpy.c: Likewise.
42520         * lib/unistr/u8-strnlen.c: Likewise.
42521         * lib/unistr/u8-strpbrk.c: Likewise.
42522         * lib/unistr/u8-strrchr.c: Likewise.
42523         * lib/unistr/u8-strspn.c: Likewise.
42524         * lib/unistr/u8-strstr.c: Likewise.
42525         * lib/unistr/u8-strtok.c: Likewise.
42526         * lib/unistr/u8-to-u16.c: Likewise.
42527         * lib/unistr/u8-to-u32.c: Likewise.
42528         * lib/unistr/u8-uctomb-aux.c: Likewise.
42529         * lib/unistr/u8-uctomb.c: Likewise.
42530         * lib/unitypes.h: Likewise.
42531         * lib/uniwidth.h: Likewise.
42532         * lib/uniwidth/cjk.h: Likewise.
42533         * lib/uniwidth/u16-strwidth.c: Likewise.
42534         * lib/uniwidth/u16-width.c: Likewise.
42535         * lib/uniwidth/u32-strwidth.c: Likewise.
42536         * lib/uniwidth/u32-width.c: Likewise.
42537         * lib/uniwidth/u8-strwidth.c: Likewise.
42538         * lib/uniwidth/u8-width.c: Likewise.
42539         * lib/uniwidth/width.c: Likewise.
42540
42541 2007-10-07  Bruno Haible  <bruno@clisp.org>
42542
42543         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
42544         The file is still under LGPL (see modules/inttypes).
42545
42546 2007-10-06  Bruno Haible  <bruno@clisp.org>
42547
42548         * modules/trunc (Dependencies): Add 'extensions'.
42549         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
42550         Reported by Ben Pfaff <blp@gnu.org>.
42551
42552 2007-10-06  Bruno Haible  <bruno@clisp.org>
42553
42554         * modules/freopen-tests: New file.
42555         * tests/test-freopen.c: New file.
42556
42557         * modules/fopen-tests: New file.
42558         * tests/test-fopen.c: New file.
42559
42560         * modules/fopen: New file.
42561         * lib/fopen.c: New file.
42562         * m4/fopen.m4: New file.
42563         * modules/freopen: New file.
42564         * lib/freopen.c: New file.
42565         * m4/freopen.m4: New file.
42566         * lib/stdio.in.h (fopen, freopen): New declarations.
42567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
42568         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42569         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
42570         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42571         * doc/functions/fopen.texi: Mention the 'fopen' module.
42572         * doc/functions/freopen.texi: Mention the 'freopen' module.
42573
42574 2007-10-06  Bruno Haible  <bruno@clisp.org>
42575
42576         * modules/open-tests: New file.
42577         * tests/test-open.c: New file.
42578
42579         * modules/open: New file.
42580         * lib/open.c: New file.
42581         * m4/open.m4: New file.
42582         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
42583         lib/open.c does.
42584         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
42585         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
42586         macros.
42587         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
42588         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
42589         REPLACE_OPEN.
42590         * doc/functions/open.texi: Mention the 'open' module.
42591
42592 2007-10-04  Bruno Haible  <bruno@clisp.org>
42593
42594         * modules/ceill-tests: New file.
42595         * tests/test-ceill.c: New file.
42596
42597         * modules/ceill: New file.
42598         * lib/ceill.c: Replace entire file.
42599         * m4/ceill.m4: New file.
42600         * lib/math.in.h (ceill): Replace declaration.
42601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
42602         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
42603         * doc/functions/ceill.texi: Mention the 'ceill' module.
42604         * modules/mathl (Files): Remove lib/ceill.c.
42605         (Depends-on): Add ceill.
42606
42607 2007-10-04  Bruno Haible  <bruno@clisp.org>
42608
42609         * modules/ceilf-tests: New file.
42610         * tests/test-ceilf.c: New file.
42611
42612         * modules/ceilf: New file.
42613         * lib/ceil.c: New file.
42614         * lib/ceilf.c: New file.
42615         * m4/ceilf.m4: New file.
42616         * lib/math.in.h (ceilf): New declaration.
42617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
42618         HAVE_DECL_CEILF.
42619         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
42620         HAVE_DECL_CEILF.
42621         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
42622
42623 2007-10-04  Bruno Haible  <bruno@clisp.org>
42624
42625         * modules/floorl-tests: New file.
42626         * tests/test-floorl.c: New file.
42627
42628         * modules/floorl: New file.
42629         * lib/floorl.c: Replace entire file.
42630         * m4/floorl.m4: New file.
42631         * lib/math.in.h (floorl): Replace declaration.
42632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
42633         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
42634         * doc/functions/floorl.texi: Mention the 'floorl' module.
42635         * modules/mathl (Files): Remove lib/floorl.c.
42636         (Depends-on): Add floorl.
42637
42638 2007-10-04  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/floorf-tests: New file.
42641         * tests/test-floorf.c: New file.
42642
42643         * modules/floorf: New file.
42644         * lib/floor.c: New file.
42645         * lib/floorf.c: New file.
42646         * m4/floorf.m4: New file.
42647         * lib/math.in.h (floorf): New declaration.
42648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
42649         HAVE_DECL_FLOORF.
42650         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
42651         HAVE_DECL_FLOORF.
42652         * doc/functions/floorf.texi: Mention the 'floorf' module.
42653
42654 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
42655             Bruno Haible  <bruno@clisp.org>
42656
42657         Advertise for the Git server instead of the CVS server.
42658         * doc/gnulib-intro.texi (Steady Development): Mention the Git
42659         repository instead of the CVS one.
42660         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
42661         about all VCS systems generically.
42662         * doc/gnulib.texi (Introduction): Capitalize `Git'.
42663
42664 2007-10-04  Bruno Haible  <bruno@clisp.org>
42665
42666         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
42667         means.
42668         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
42669
42670 2007-10-04  Bruno Haible  <bruno@clisp.org>
42671
42672         * modules/truncl-tests: New file.
42673         * tests/test-truncl.c: New file.
42674
42675         * modules/truncl: New file.
42676         * lib/truncl.c: New file.
42677         * m4/truncl.m4: New file.
42678         * lib/math.in.h (truncl): New declaration.
42679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
42680         HAVE_DECL_TRUNCL.
42681         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
42682         HAVE_DECL_TRUNCL.
42683         * doc/functions/truncl.texi: Mention the 'truncl' module.
42684
42685 2007-10-04  Bruno Haible  <bruno@clisp.org>
42686
42687         * modules/truncf-tests: New file.
42688         * tests/test-truncf.c: New file.
42689
42690         * modules/truncf: New file.
42691         * lib/trunc.c: Make paramerizable through USE_* macros.
42692         * lib/truncf.c: New file.
42693         * m4/truncf.m4: New file.
42694         * lib/math.in.h (truncf): New declaration.
42695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
42696         HAVE_DECL_TRUNCF.
42697         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
42698         HAVE_DECL_TRUNCF.
42699         * doc/functions/truncf.texi: Mention the 'truncf' module.
42700
42701 2007-10-03  Bruno Haible  <bruno@clisp.org>
42702
42703         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42704         augmentation also for tests modules.
42705         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
42706         * modules/atexit-tests (Makefile.am): Likewise.
42707         * modules/binary-io-tests (Makefile.am): Likewise.
42708         * modules/c-strcase-tests (Makefile.am): Likewise.
42709         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
42710         * modules/canonicalize-tests (Makefile.am): Likewise.
42711         * modules/closein-tests (Makefile.am): Likewise.
42712         * modules/fprintf-posix-tests (Makefile.am): Likewise.
42713         * modules/freadahead-tests (Makefile.am): Likewise.
42714         * modules/fseek-tests (Makefile.am): Likewise.
42715         * modules/fseeko-tests (Makefile.am): Likewise.
42716         * modules/ftell-tests (Makefile.am): Likewise.
42717         * modules/ftello-tests (Makefile.am): Likewise.
42718         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
42719         * modules/isnanl-tests (Makefile.am): Likewise.
42720         * modules/lseek-tests (Makefile.am): Likewise.
42721         * modules/mbscasecmp-tests (Makefile.am): Likewise.
42722         * modules/mbscasestr-tests (Makefile.am): Likewise.
42723         * modules/mbschr-tests (Makefile.am): Likewise.
42724         * modules/mbscspn-tests (Makefile.am): Likewise.
42725         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
42726         * modules/mbspbrk-tests (Makefile.am): Likewise.
42727         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
42728         * modules/mbsrchr-tests (Makefile.am): Likewise.
42729         * modules/mbsspn-tests (Makefile.am): Likewise.
42730         * modules/mbsstr-tests (Makefile.am): Likewise.
42731         * modules/printf-posix-tests (Makefile.am): Likewise.
42732         * modules/snprintf-posix-tests (Makefile.am): Likewise.
42733         * modules/sprintf-posix-tests (Makefile.am): Likewise.
42734         * modules/tsearch-tests (Makefile.am): Likewise.
42735         * modules/uniname/uniname-tests (Makefile.am): Likewise.
42736         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
42737         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
42738         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
42739         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
42740         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
42741         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
42742         * modules/vprintf-posix-tests (Makefile.am): Likewise.
42743         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
42744         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
42745         * modules/xstrtoimax-tests (Makefile.am): Likewise.
42746         * modules/xstrtol-tests (Makefile.am): Likewise.
42747         * modules/xstrtoumax-tests (Makefile.am): Likewise.
42748         * modules/yesno-tests (Makefile.am): Likewise.
42749
42750 2007-10-03  Bruno Haible  <bruno@clisp.org>
42751
42752         * modules/trunc-tests: New file.
42753         * tests/test-trunc.c: New file.
42754
42755         * modules/trunc: New file.
42756         * lib/trunc.c: New file.
42757         * m4/trunc.m4: New file.
42758         * lib/math.in.h (trunc): New declaration.
42759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
42760         HAVE_DECL_TRUNC.
42761         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
42762         HAVE_DECL_TRUNC.
42763         * doc/functions/trunc.texi: Mention the 'trunc' module.
42764
42765 2007-10-03  Bruno Haible  <bruno@clisp.org>
42766
42767         * tests/test-fpending.c: New file, mostly copied
42768         from coreutils/lib/t-fpending.c.
42769         * modules/fpending-tests: New file.
42770
42771 2007-10-03  Bruno Haible  <bruno@clisp.org>
42772
42773         Port the stdio extensions to QNX (untested).
42774         * lib/fseterr.c (fseterr): Add support for QNX.
42775         * lib/fbufmode.c (fbufmode): Likewise.
42776         * lib/freadable.c (freadable): Likewise.
42777         * lib/fwritable.c (fwritable): Likewise.
42778         * lib/freading.c (freading): Likewise.
42779         * lib/fwriting.c (fwriting): Likewise.
42780         * lib/freadahead.c (freadahed): Likewise.
42781         * lib/fpurge.c (fpurge): Likewise.
42782         * lib/fseeko.c (rpl_fseeko): Likewise.
42783
42784 2007-10-03  Bruno Haible  <bruno@clisp.org>
42785             Jim Meyering  <jim@meyering.net>
42786             Eric Blake  <ebb9@byu.net>
42787
42788         * doc/relocatable.texi: Use @command instead of @program.
42789
42790 2007-10-02  Jim Meyering  <jim@meyering.net>
42791
42792         Perform one more "_.h" -> ".in.h" substitution.
42793         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
42794         instead of unistd_.h here, too.
42795
42796 2007-10-01  Bruno Haible  <bruno@clisp.org>
42797
42798         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
42799         Needed for the alloca-opt module.
42800
42801 2007-09-30  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/alloca.in.h: Renamed from lib/alloca_.h.
42804         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
42805         alloca_.h.
42806         * lib/argz.in.h: Renamed from lib/argz_.h.
42807         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
42808         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
42809         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
42810         byteswap_.h.
42811         * lib/dirent.in.h: Renamed from lib/dirent_.h.
42812         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
42813         dirent_.h.
42814         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
42815         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
42816         fcntl_.h.
42817         * lib/float.in.h: Renamed from lib/float_.h.
42818         * modules/float (Files, Makefile.am): Use float.in.h instead of
42819         float_.h.
42820         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
42821         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
42822         fnmatch_.h.
42823         * lib/getopt.in.h: Renamed from lib/getopt_.h.
42824         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
42825         getopt_.h.
42826         * lib/glob.in.h: Renamed from lib/glob_.h.
42827         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
42828         * lib/iconv.in.h: Renamed from lib/iconv_.h.
42829         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
42830         iconv_.h.
42831         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
42832         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
42833         inttypes_.h.
42834         * lib/locale.in.h: Renamed from lib/locale_.h.
42835         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
42836         locale_.h.
42837         * lib/math.in.h: Renamed from lib/math_.h.
42838         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
42839         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
42840         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
42841         of netinet_in_.h. Add dependency.
42842         * lib/poll.in.h: Renamed from lib/poll_.h.
42843         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
42844         * lib/search.in.h: Renamed from lib/search_.h.
42845         * modules/search (Files, Makefile.am): Use search.in.h instead of
42846         search_.h.
42847         * lib/signal.in.h: Renamed from lib/signal_.h.
42848         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
42849         _signal.h.
42850         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
42851         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
42852         stdbool_.h.
42853         * lib/stdint.in.h: Renamed from lib/stdint_.h.
42854         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
42855         stdint_.h.
42856         * lib/stdio.in.h: Renamed from lib/stdio_.h.
42857         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
42858         stdio_.h.
42859         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
42860         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
42861         stdlib_.h.
42862         * lib/string.in.h: Renamed from lib/string_.h.
42863         * modules/string (Files, Makefile.am): Use string.in.h instead of
42864         string_.h.
42865         * doc/gnulib-tool.texi (Initial import): Update.
42866         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
42867         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
42868         of sys_select_.h. Add dependency.
42869         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
42870         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
42871         of sys_socket_.h.
42872         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
42873         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
42874         sys_stat_.h.
42875         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
42876         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
42877         sys_time_.h.
42878         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
42879         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
42880         sysexits_.h.
42881         * lib/time.in.h: Renamed from lib/time_.h.
42882         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
42883         * lib/unistd.in.h: Renamed from lib/unistd_.h.
42884         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
42885         unistd_.h.
42886         * lib/wchar.in.h: Renamed from lib/wchar_.h.
42887         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
42888         wchar_.h.
42889         * lib/wctype.in.h: Renamed from lib/wctype_.h.
42890         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
42891         wctype_.h.
42892         * build-aux/bootstrap (slurp): Update.
42893         * lib/.cppi-disable: Update.
42894
42895 2007-09-30  Bruno Haible  <bruno@clisp.org>
42896
42897         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
42898         Needed on BeOS.
42899
42900 2007-09-30  Bruno Haible  <bruno@clisp.org>
42901
42902         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
42903
42904 2007-09-29  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
42907
42908 2007-09-29  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
42911         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
42912         * build-aux/install-reloc: Compile also areadlink.c.
42913         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
42914
42915 2007-09-29  Bruno Haible  <bruno@clisp.org>
42916
42917         * gnulib-tool (func_emit_initmacro_done): Indentation.
42918
42919 2007-09-29  Bruno Haible  <bruno@clisp.org>
42920
42921         * README: Add CVS checkout update instructions.
42922         Info from Bob Proulx <bob@proulx.com>.
42923
42924 2007-09-28  Eric Blake  <ebb9@byu.net>
42925
42926         Provide move-if-change.
42927         * build-aux/move-if-change: New file, based on best practice
42928         rather than any canonical upstream location.
42929
42930 2007-09-28  Jim Meyering  <jim@meyering.net>
42931
42932         Fix canonicalize loop-detection corner case.
42933         Do not attempt to stat the symlink values stored via seen_triple.
42934         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
42935         on linux-2.6.18, (but not 2.6.22).
42936         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
42937         triple_compare.  The former compares dev,ino,filename, while the latter
42938         would actually stat dirname(filename) when dev and ino were equal.
42939         * lib/hash-triple.c: Install <string.h>.
42940         (STREQ): Define.
42941         (triple_compare_ino_str): New function.
42942         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
42943
42944 2007-09-28  Eric Blake  <ebb9@byu.net>
42945
42946         Enforce that AC_REPLACE_FUNCS files exist.
42947         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
42948         override check for typos.
42949
42950         Fix test-closein on Solaris 10.
42951         * tests/test-closein.c (main): Don't assume stdin can be inherited
42952         closed on all systems.
42953         * tests/test-closein.sh: Likewise.
42954         Reported by Piotr Tarnowski.
42955
42956 2007-09-28  Jim Meyering  <jim@meyering.net>
42957
42958         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
42959
42960 2007-09-27  Jim Meyering  <jim@meyering.net>
42961
42962         canonicalize: Avoid a false-positive cycle failure.
42963         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
42964         Sort.  Remove cycle-check.
42965         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
42966         not cycle-check.h.
42967         (seen_triple): New function.
42968         (canonicalize_filename_mode): Use it instead of cycle-check.
42969         * tests/test-canonicalize.c: Add a test for this bug.
42970         * tests/test-canonicalize.sh: Set up and run the test.
42971
42972         New module, file-set, from coreutils.
42973         * modules/file-set: Define it.
42974         * lib/file-set.c, lib/file-set.h: Implement.
42975
42976         New module, hash-triple, from coreutils.
42977         * modules/hash-triple: Define it.
42978         * lib/hash-triple.c, lib/hash-triple.h: Implement.
42979
42980 2007-09-25  Eric Blake  <ebb9@byu.net>
42981
42982         Fix strerror on Interix.
42983         * lib/string_.h (strerror): Declare replacement.
42984         * doc/functions/strerror.texi (strerror): Document the Interix
42985         shortcoming.
42986         * modules/string (Makefile.am): Support new hooks.
42987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
42988         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
42989         gl_FUNC_STRERROR_SEPARATE.
42990         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
42991         * lib/strerror.c (rpl_strerror): Provide replacement.
42992         * modules/strerror (Depends-on): Add string.
42993         (configure.ac): Detect use of module.
42994         * tests/test-strerror.c: New file.
42995         * modules/strerror-tests: New test module.
42996         * modules/argp (Depends-on): Add strerror.
42997         * modules/error (Depends-on): Likewise.
42998         Reported by Martin Koeppe.
42999
43000 2007-09-24  Bruno Haible  <bruno@clisp.org>
43001
43002         * README: Update git instructions.
43003
43004 2007-09-24  Eric Blake  <ebb9@byu.net>
43005
43006         Revert fpending breakage from 2007-09-08.
43007         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
43008         __fpending.c.
43009
43010 2007-09-24  Jim Meyering  <jim@meyering.net>
43011
43012         filenamecat.c: Add a test.
43013         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
43014         showing how the function works when DIR is the empty string.
43015
43016 2007-09-21  Simon Josefsson  <simon@josefsson.org>
43017
43018         * tests/test-canonicalize.sh: Turn on executable bit.
43019
43020 2007-09-19  Eric Blake  <ebb9@byu.net>
43021
43022         * README: Update CVS instructions.
43023
43024 2007-09-18  Bruno Haible  <bruno@clisp.org>
43025
43026         * modules/areadlink: New file.
43027         * lib/areadlink.h (areadlink): New declaration.
43028         * lib/areadlink.c: New file, based on lib/xreadlink.c.
43029
43030 2007-09-17  Jim Meyering  <jim@meyering.net>
43031
43032         * lib/savewd.c (ESTALE) [!defined]: Define.
43033         Reported to be required on Interix by Martin Koeppe.
43034
43035 2007-09-17  Bruno Haible  <bruno@clisp.org>
43036
43037         * gnulib-tool (func_version): Use $version.
43038
43039 2007-09-16  Bruno Haible  <bruno@clisp.org>
43040
43041         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
43042         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
43043         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
43044         Reported by Greg Schafer <gschafer@zip.com.au>.
43045
43046 2007-09-15  Bruno Haible  <bruno@clisp.org>
43047
43048         * gnulib-tool (sed): Try a little harder to make bash understand the
43049         alias.
43050         Reported by Bruce Korb <bruce.korb@gmail.com>.
43051
43052 2007-09-13  Eric Blake  <ebb9@byu.net>
43053
43054         * ChangeLog: Remove conflict markers.
43055
43056 2007-09-13  Simon Josefsson  <simon@josefsson.org>
43057
43058         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
43059         Reported by Bruno Haible <bruno@clisp.org>.
43060
43061 2007-09-12  Bruno Haible  <bruno@clisp.org>
43062
43063         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
43064         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
43065         is not defined.
43066
43067 2007-09-12  Eric Blake  <ebb9@byu.net>
43068
43069         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
43070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
43071         Autoconf definition.
43072         * modules/euidaccess (Depends-on): Add extensions, for
43073         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
43074         * modules/fnmatch (Depends-on): Likewise.
43075         * modules/getaddrinfo (Depends-on): Likewise.
43076         * modules/getdelim (Depends-on): Likewise.
43077         * modules/getline (Depends-on): Likewise.
43078         * modules/getsubopt (Depends-on): Likewise.
43079         * modules/gettext (Depends-on): Likewise.
43080         * modules/group-member (Depends-on): Likewise.
43081         * modules/mbchar (Depends-on): Likewise.
43082         * modules/memmem (Depends-on): Likewise.
43083         * modules/mempcpy (Depends-on): Likewise.
43084         * modules/memrchr (Depends-on): Likewise.
43085         * modules/pagealign_alloc (Depends-on): Likewise.
43086         * modules/readutmp (Depends-on): Likewise.
43087         * modules/stpcpy (Depends-on): Likewise.
43088         * modules/stpncpy (Depends-on): Likewise.
43089         * modules/strchrnul (Depends-on): Likewise.
43090         * modules/strndup (Depends-on): Likewise.
43091         * modules/strsep (Depends-on): Likewise.
43092         * modules/strverscmp (Depends-on): Likewise.
43093         * modules/vasprintf (Depends-on): Likewise.
43094         * modules/wcwidth (Depends-on): Likewise.
43095         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
43096         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
43097         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
43098         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
43099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43100         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43101         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
43102         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43103         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
43104         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
43105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43106         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43107         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43108         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43109         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
43110         * m4/readutmp.m4 (gl_READUTMP): Likewise.
43111         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43112         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43113         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43114         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43115         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43116         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43117         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
43119         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
43120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43121         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
43122         so that lock.m4 can be used in gettext without extensions module.
43123
43124 2007-09-11  Bruno Haible  <bruno@clisp.org>
43125
43126         * m4/isc-posix.m4: Remove file.
43127         Suggested by Eric Blake.
43128
43129 2007-09-11  Eric Blake  <ebb9@byu.net>
43130
43131         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
43132
43133 2007-09-10  Bruno Haible  <bruno@clisp.org>
43134
43135         * posix-modules: Fix typo in error message.
43136         Reported by Matt <mkraai@beckman.com>.
43137
43138 2007-09-09  Bruno Haible  <bruno@clisp.org>
43139
43140         * doc/functions/getdelim.texi: Update list of platforms lacking the
43141         function.
43142         * doc/functions/getline.texi: Likewise.
43143
43144 2007-09-09  Jim Meyering  <jim@meyering.net>
43145
43146         * lib/hash.c (hash_initialize): Detect calloc failure.
43147         Reported by Bruno Haible.
43148
43149 2007-09-09  Bruno Haible  <bruno@clisp.org>
43150
43151         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
43152         malloc or realloc fails.
43153
43154 2007-09-09  Bruno Haible  <bruno@clisp.org>
43155
43156         * modules/getcwd (Depends-on): Add malloc-posix.
43157         * modules/glob (Depends-on): Likewise.
43158         * modules/putenv (Depends-on): Likewise.
43159         * modules/strdup (Depends-on): Likewise.
43160         * modules/getdelim (Depends-on): Add realloc-posix.
43161         * modules/read-file (Depends-on): Likewise.
43162
43163 2007-09-09  Bruno Haible  <bruno@clisp.org>
43164
43165         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
43166         (gl_FUNC_MALLOC_POSIX): Require it.
43167         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
43168         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
43169         * modules/realloc (Files): Add m4/malloc.m4.
43170         * modules/calloc (Files): Likewise.
43171
43172 2007-09-09  Bruno Haible  <bruno@clisp.org>
43173
43174         * modules/malloc-posix: New file.
43175         * modules/malloc (Depends-on): Add malloc-posix.
43176         * lib/malloc.c: Include errno.h.
43177         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
43178         and a POSIX-compatible malloc into a single function. Set ENOMEM
43179         when returning NULL.
43180         * m4/malloc.m4: New file.
43181         * doc/functions/malloc.texi: Mention the malloc-posix module.
43182         * lib/stdlib_.h (malloc): New declaration.
43183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43184         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
43185         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
43186         and HAVE_MALLOC_POSIX.
43187
43188 2007-09-09  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/realloc-posix: New file.
43191         * modules/realloc (Depends-on): Add realloc-posix.
43192         * lib/realloc.c: Include errno.h.
43193         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
43194         and a POSIX-compatible realloc into a single function. Set ENOMEM
43195         when returning NULL.
43196         * m4/realloc.m4: New file.
43197         * doc/functions/realloc.texi: Mention the realloc-posix module.
43198         * lib/stdlib_.h (realloc): New declaration.
43199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43200         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
43201         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
43202         and HAVE_REALLOC_POSIX.
43203
43204 2007-09-09  Bruno Haible  <bruno@clisp.org>
43205
43206         * modules/calloc-posix: New file.
43207         * modules/calloc (Depends-on): Add calloc-posix.
43208         * lib/calloc.c: Include errno.h.
43209         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
43210         and a POSIX-compatible calloc into a single function. Set ENOMEM
43211         when returning NULL.
43212         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
43213         * doc/functions/calloc.texi: Mention the calloc-posix module.
43214         * lib/stdlib_.h (calloc): New declaration.
43215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43216         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
43217         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
43218         and HAVE_CALLOC_POSIX.
43219
43220 2007-09-09  Bruno Haible  <bruno@clisp.org>
43221
43222         Allow for modules to show an arbitrary notice.
43223         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
43224         * gnulib-tool: New option --extract-notice.
43225         (func_usage): Document it.
43226         (sed_extract_prog): Update.
43227         (func_get_notice): New function.
43228         (func_modules_notice): New function.
43229         (func_import, func_create_testdir): Invoke it.
43230         Suggested by Jim Meyering.
43231
43232 2007-09-09  Bruno Haible  <bruno@clisp.org>
43233
43234         * gnulib-tool: New options --verbose, --quiet.
43235         (func_usage): Document them.
43236         (verbose): New variable.
43237         (func_execute_command): New function.
43238         (func_import): Don't show the module list and the file list if
43239         $verbose < 0.
43240         (func_create_testdir): Likewise. Use func_execute_command.
43241         (func_create_megatestdir): Use func_execute_command.
43242
43243 2007-09-08  Bruno Haible  <bruno@clisp.org>
43244
43245         * gnulib-tool (func_import): Prefer rsync over wget when available,
43246         for fetching the PO files.
43247
43248 2007-09-08  Bruno Haible  <bruno@clisp.org>
43249
43250         * posix-modules: New file. Portions copied from gnulib-tool.
43251         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
43252
43253 2007-09-08  Jim Meyering  <jim@meyering.net>
43254
43255         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
43256         * lib/fpending.h: Rename from __fpending.h.
43257         * lib/fpending.c: Rename from __fpending.c.
43258         Include "fpending.h", not "__fpending.h".
43259         * lib/__fpending.h, lib/__fpending.c: Remove files.
43260         * modules/fpending (Files): Reflect new file names.
43261         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
43262
43263 2007-09-08  Bruno Haible  <bruno@clisp.org>
43264
43265         * m4/inttypes-h.m4: Remove stub file.
43266
43267 2007-09-07  Simon Josefsson  <simon@josefsson.org>
43268
43269         * doc/headers/stdint.texi: Discuss #include_next issue.
43270
43271 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43272
43273         * build-aux/bootstrap: Remove obsolete comment about wget --help.
43274
43275 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43276
43277         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
43278         in variable name.
43279
43280 2007-09-03  Jim Meyering  <jim@meyering.net>
43281
43282         New module: git-version-gen.
43283         * modules/git-version-gen: New file.
43284
43285         Import changes from coreutils for bootstrap script.
43286
43287         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
43288
43289         bootstrap: uses rsync to download the .po files
43290         * build-aux/bootstrap (po_download_command_format): New global.
43291         (download_po_files): Use rsync.
43292         (update_po_files): Don't remove .po files after download,
43293         so future rsync runs can take advantage of the copies.
43294
43295         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
43296
43297         Solve the unnecessary-.po-file-regeneration problem once and for all.
43298         * build-aux/bootstrap (download_po_files): New function, renamed from
43299         get_translations.  Now, downloads, but doesn't update LINGUAS.
43300         (update_po_files): New function.
43301
43302         bootstrap: Ignore more.
43303         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
43304         uniwidth to e.g., lib/.gitignore.
43305         (slurp): Handle the sys_stat_.h -> sys mapping, too.
43306
43307         * build-aux/bootstrap: New setting: vc_ignore.
43308         (insert_sorted_if_absent): Create $file if absent.
43309         Adapt to new, possibly empty, list: $vc_ignore.
43310
43311         bootstrap: generate more ignorable names
43312         * build-aux/bootstrap (slurp): When generating ignorable names,
43313         also map .sin to .sed, .gperf to .c, and .y to .c.
43314
43315 2007-09-03  Jim Meyering  <jim@meyering.net>
43316
43317         * build-aux/git-version-gen: New file, from coreutils.  For details, see
43318         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
43319
43320 2007-09-02  Bruno Haible  <bruno@clisp.org>
43321
43322         Fix mis-recognition of 'mcs' on QNX 6.
43323         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
43324         output contains the string "Mono".
43325         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
43326         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
43327
43328 2007-09-01  Bruno Haible  <bruno@clisp.org>
43329
43330         Fix collision between uniwidth/* and linebreak modules.
43331         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
43332         u32_width): Remove declarations.
43333         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
43334         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
43335         streq3, streq2, streq1, streq0): Remove functions.
43336         (STREQ): Remove macro.
43337         (is_cjk_encoding): Remove function.
43338         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
43339         (uc_width, u8_width, u16_width, u32_width): Remove functions.
43340         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
43341         * NEWS: Document the change.
43342
43343 2007-09-01  Bruno Haible  <bruno@clisp.org>
43344
43345         * lib/streq.h: Add double-inclusion guard.
43346
43347 2007-09-01  Karl Berry  <karl@gnu.org>
43348
43349         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
43350
43351 2007-08-28  Jim Meyering  <jim@meyering.net>
43352
43353         Rename mreadlink_with_size to areadlink_with_size.
43354         * NEWS: Document the change.
43355         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
43356         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
43357         * lib/mreadlink.h: Rename this to...
43358         * lib/areadlink.h: ...this.
43359         * modules/mreadlink-with-size: Rename this to...
43360         * modules/areadlink-with-size: ...this.
43361         * lib/canonicalize.c: Reflect the renaming.
43362         * modules/canonicalize: Likewise.
43363
43364 2007-08-26  Bruno Haible  <bruno@clisp.org>
43365
43366         * gnulib-tool (func_import): When deciding which files to remove,
43367         consider also dangling symbolic links.
43368         Reported by Eric Blake.
43369
43370 2007-08-26  Bruno Haible  <bruno@clisp.org>
43371
43372         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
43373
43374 2007-08-23  Simon Josefsson  <simon@josefsson.org>
43375
43376         * lib/readline.c: Don't include getline.h, the prototype is now
43377         found in stdio.h.
43378
43379 2007-08-23  Jim Meyering  <jim@meyering.net>
43380
43381         Getdelim touchup.
43382         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
43383         around the funlockfile call, since funlockfile never sets errno.
43384         Don't set errno upon failed realloc.
43385
43386 2007-08-22  Eric Blake  <ebb9@byu.net>
43387
43388         Getline touchups.
43389         * lib/getdelim.c (getdelim): Revert regression that required *n to
43390         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
43391         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
43392         getdelim, rather than whether implementation is missing.
43393         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
43394         * lib/stdio_.h (getline): Also declare if replacement is
43395         required.
43396         * doc/functions/getdelim.texi: New file.
43397         * doc/functions/getline.texi: Likewise.
43398         * doc/gnulib.texi (Function Substitutes): Add new files.
43399         Reported by Bruno Haible.
43400
43401 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
43402
43403         * users.txt: Add Guile.
43404
43405 2007-08-22  Eric Blake  <ebb9@byu.net>
43406
43407         * tests/test-getdelim.c (main): Use remove, not unlink.
43408         * tests/test-getline.c (main): Likewise.
43409
43410         Move getline and getdelim into stdio.h, per POSIX 200x.
43411         * modules/getline (Files): Remove getline.h.
43412         (Depends-on): Add stdio.
43413         (configure.ac): Add module indicator.
43414         * modules/getdelim (Files): Remove getdelim.h.
43415         (Depends-on): Add stdio.
43416         (configure.ac): Add module indicator.
43417         * modules/stdio (Makefile.am): Work with new indicators.
43418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43419         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
43420         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43421         * lib/getdelim.h: Delete.
43422         * lib/getline.h: Delete.
43423         * lib/stdio_.h (getdelim, getline): Declare.
43424         * modules/getdelim-tests: New module.
43425         * modules/getline-tests: Likewise.
43426         * tests/test-getdelim.c: New file.
43427         * tests/test-getline.c: Likewise.
43428         * NEWS: Document the change.
43429         * lib/getline.c: Update choice of header.
43430         * lib/csharpcomp.c: Likewise.
43431         * lib/getpass.c: Likewise.
43432         * lib/javacomp.c: Likewise.
43433         * lib/javaversion.c: Likewise.
43434         * lib/yesno.c: Likewise.
43435         * lib/getdelim.c: Likewise.
43436         (getdelim): Set errno on failure, and avoid memory leak.
43437
43438 2007-08-19  Bruno Haible  <bruno@clisp.org>
43439
43440         * modules/closein (Depends-on): Add freadahead.
43441         * lib/closein.c: Include freadahead.h.
43442         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
43443         is zero.
43444
43445 2007-08-19  Bruno Haible  <bruno@clisp.org>
43446
43447         * modules/freadahead-tests: New file.
43448         * tests/test-freadahead.sh: New file.
43449         * tests/test-freadahead.c: New file.
43450
43451         * modules/freadahead: New file.
43452         * lib/freadahead.h: New file.
43453         * lib/freadahead.c: New file.
43454         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
43455         fbufmode, fpurge, freadable, fwritable.
43456
43457 2007-08-19  Eric Blake  <ebb9@byu.net>
43458
43459         Test yesno in combination with closein.
43460         * lib/yesno.c (yesno): Document use of stdin.
43461         * modules/yesno-tests (Files): New module.
43462         * tests/test-yesno.c (main): New file.
43463         * tests/test-yesno.sh: Likewise.
43464
43465 2007-08-19  Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
43468         * lib/fseeko.c (rpl_fseeko): Likewise.
43469         * lib/fseterr.c (fseterr): Likewise.
43470
43471 2007-08-19  Bruno Haible  <bruno@clisp.org>
43472
43473         * tests/test-lseek.c (main): Disable a test for BeOS.
43474         * doc/functions/lseek.texi: Document the BeOS bug.
43475
43476 2007-08-19  Bruno Haible  <bruno@clisp.org>
43477             Eric Blake  <ebb9@byu.net>
43478
43479         * lib/lseek.c: Include <sys/stat.h>.
43480         (rpl_lseek): Add workaround code also for Unix platforms.
43481         Needed for BeOS.
43482         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
43483         * doc/functions/lseek.texi: Document BeOS definiency.
43484
43485 2007-08-18  Bruno Haible  <bruno@clisp.org>
43486
43487         * modules/fstrcmp-tests: New file.
43488         * tests/test-fstrcmp.c: New file.
43489
43490 2007-08-18  Bruno Haible  <bruno@clisp.org>
43491
43492         * modules/fstrcmp: New file, from GNU gettext with modifications.
43493         * lib/fstrcmp.h: New file, from GNU gettext.
43494         * lib/fstrcmp.c: New file, from GNU gettext.
43495         * MODULES.html.sh (String handling): Add fstrcmp.
43496
43497 2007-08-18  Bruno Haible  <bruno@clisp.org>
43498
43499         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
43500         'bool'.
43501         (diag, compareseq): Remove const from the ctxt argument.
43502         (USE_HEURISTIC): Undefine at the end.
43503
43504 2007-08-18  Jim Meyering  <jim@meyering.net>
43505
43506         New file: lib/idcache.h
43507         * NEWS: Mention the addition.
43508         * modules/idcache (Files): Add lib/idcache.h
43509         * lib/idcache.c: Include "idcache.h".
43510         Don't include <sys/types.h>.
43511         Add a FIXME comment.
43512         Move file-scoped "static" declarations to the top.
43513         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
43514
43515 2007-08-17  Bruno Haible  <bruno@clisp.org>
43516         and Paul Eggert  <eggert@cs.ucla.edu>
43517
43518         * MODULES.html.sh: Add diffseq.
43519         * modules/diffseq: New file.
43520         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
43521         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
43522
43523 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43524
43525         Import changes from coreutils for bootstrap script.
43526
43527         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
43528
43529         * build-aux/bootstrap (slurp): Work even in environments where
43530         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
43531         current code does not slurp files whose names start with ".", and
43532         this looks like it might be a troublesome area.
43533
43534         2007-07-11  Jim Meyering  <jim@meyering.net>
43535
43536         If there's a GPL vN copyright comment, require that N == 3.
43537
43538         2007-07-08  Jim Meyering  <jim@meyering.net>
43539
43540         Run the coreutils-specific code only if tests/Makefile.am.in exists.
43541         * build-aux/bootstrap (mam_template): Move definition out of loop.
43542
43543         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
43544
43545         * build-aux/bootstrap (symlink_to_dir): Rename function from
43546         symlink_to_gnulib.  Add a directory parameter.  Update all
43547         callers.
43548         (cp_mark_as_generated): Also check for -- and link to -- files in
43549         gl/.
43550
43551         2007-07-08  Jim Meyering  <jim@meyering.net>
43552
43553         Adapt to deeper hierarchy in gnulib.
43554         * build-aux/bootstrap (symlink_to_dir): If the destination
43555         directory doesn't exist, create it. This is required at least for
43556         "lib/uniwidth/cjk.h".
43557
43558         2007-05-15  Jim Meyering  <jim@meyering.net>
43559
43560         * build-aux/bootstrap: Now that generated Makefile.am files
43561         are no longer under version control, they must be created at
43562         bootstrap time.
43563
43564 2007-08-14  Ben Pfaff  <blp@gnu.org>
43565
43566         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
43567
43568 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43569
43570         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
43571         given the changes below.
43572         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
43573         even on hosts that have padding bits beyond the supported 64.
43574
43575 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43576
43577         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
43578         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
43579         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
43580         depends on it.
43581         (xstrtol_error): Remove.
43582         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
43583         but with a different signature.
43584         (ATTRIBUTE_NORETURN, __attribute__): New macros.
43585         * lib/xstrtol-error.c: Include exitfail.h.
43586         (xstrtol_fatal): New function, with a different signature from the
43587         old xstrtol_error, so that the caller need not worry about passing
43588         in an exit status, or about storage management of the option argument.
43589         (xstrtol_error): Now a static function.  Redo signature to
43590         implement xstrtol_fatal.  Output the correct number of hyphens in
43591         front of the option so that the caller need not worry about
43592         storage management.
43593         (N_): New macro.
43594         (_): Remove; not used now.
43595         * modules/xstrtol: Depend on getopt.
43596         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
43597         of old STRTOL_FATAL_ERROR macro.
43598         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
43599         of test program.
43600         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
43601         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
43602
43603 2007-08-08  Eric Blake  <ebb9@byu.net>
43604
43605         * lib/xstrtol-error.c: Add missing include.
43606
43607         Move xstrtol messages into gnulib domain, when --pobase is used.
43608         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
43609         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
43610         * modules/xstrtol (Files): Distribute new file.
43611         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
43612         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
43613         * tests/test-xstrtol.c: ...into new file.
43614         * tests/test-xstrtoul.c: Also test xstrtoul.
43615         * tests/test-xstrtoimax.c: Also test xstrtoimax.
43616         * tests/test-xstrtoumax.c: Also test xstrtoumax.
43617         * tests/test-xstrtol.sh: Drive the tests.
43618         * tests/test-xstrtoimax.sh: Likewise.
43619         * tests/test-xstrtoumax.sh: Likewise.
43620         * modules/xstrtol-tests: New module.
43621         * modules/xstrtoimax-tests: Likewise.
43622         * modules/xstrtoumax-tests: Likewise.
43623
43624 2007-08-08  Jim Meyering  <jim@meyering.net>
43625
43626         New function: mfile_name_concat.
43627         * lib/filenamecat.c (mfile_name_concat): New function, just like
43628         file_name_concat, but return NULL upon failure rather than exiting
43629         with a diagnostic.
43630         * lib/filenamecat.h: Declare it.
43631
43632 2007-08-07  Bruno Haible  <bruno@clisp.org>
43633
43634         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
43635         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
43636         warning from gcc.
43637         Reported by Eric Blake.
43638
43639 2007-08-07  Simon Josefsson  <simon@josefsson.org>
43640
43641         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
43642         * modules/crypto/arcfour (License): Likewise.
43643         * modules/crypto/des-tests (License): Likewise.
43644         * modules/crypto/gc-arctwo-tests (License): Likewise.
43645         * modules/crypto/gc-des-tests (License): Likewise.
43646         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
43647         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
43648         * modules/crypto/gc-md2-tests (License): Likewise.
43649         * modules/crypto/gc-md4-tests (License): Likewise.
43650         * modules/crypto/gc-md5-tests (License): Likewise.
43651         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
43652         * modules/crypto/gc-rijndael-tests (License): Likewise.
43653         * modules/crypto/gc-sha1-tests (License): Likewise.
43654         * modules/crypto/gc-tests (License): Likewise.
43655         * modules/crypto/hmac-md5 (License): Likewise.
43656         * modules/crypto/hmac-sha1 (License): Likewise.
43657         * modules/crypto/md2-tests (License): Likewise.
43658         * modules/crypto/md4-tests (License): Likewise.
43659         * modules/crypto/md5 (License): Likewise.
43660         * modules/crypto/rijndael (License): Likewise.
43661         * modules/crypto/sha1 (License): Likewise.
43662         * modules/memxor (License): Likewise.
43663
43664 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43665         and Bruno Haible  <bruno@clisp.org>
43666
43667         * NEWS: Describe interface changes to human, xstrtol.
43668         * lib/human.h: Include <xstrtol.h>.
43669         (human_options): Return enum strtol_error, not int.  Remove
43670         bool arg; take int * instead.
43671         * lib/human.c: Don't include "gettext.h".
43672         (_): Remove; no longer used.
43673         Don't include <xstrtol.h>, since human.h does it.
43674         (human_options): Adjust to abovementioned interface changes.
43675         Do not report error to stderr; that's now the caller's
43676         responsibility.
43677         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
43678         interface change.
43679         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
43680         Str, Argument_type_string.  All uses changed.  Put " argument"
43681         in diagnostics to make them clearer.  Change wording of suffix
43682         message for clarity.
43683         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
43684         Argument_type_string.
43685         (STRTOL_FATAL_WARN): Remove; no longer used.
43686         * modules/human (Depends-on): Remove gettext-h.
43687
43688 2007-08-06  Simon Josefsson  <simon@josefsson.org>
43689
43690         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
43691
43692 2007-07-31  Bruno Haible  <bruno@clisp.org>
43693
43694         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
43695         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
43696         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
43697
43698 2007-07-31  Bruno Haible  <bruno@clisp.org>
43699
43700         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
43701         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
43702
43703 2007-07-30  Bruno Haible  <bruno@clisp.org>
43704
43705         * modules/base64 (License): Use the synonymous term "LGPLv2+".
43706         * modules/c-ctype (License): Likewise.
43707         * modules/c-strcase (License): Likewise.
43708         * modules/check-version (License): Likewise.
43709         * modules/iconv (License): Likewise.
43710         * modules/iconv_open (License): Likewise.
43711         * modules/read-file (License): Likewise.
43712         * modules/striconv (License): Likewise.
43713         * modules/strverscmp (License): Likewise.
43714         * modules/vasprintf (License): Likewise.
43715         * modules/crypto/des (License): Likewise.
43716         * modules/crypto/gc (License): Likewise.
43717         * modules/crypto/gc-arcfour (License): Likewise.
43718         * modules/crypto/gc-arctwo (License): Likewise.
43719         * modules/crypto/gc-des (License): Likewise.
43720         * modules/crypto/gc-hmac-md5 (License): Likewise.
43721         * modules/crypto/gc-hmac-sha1 (License): Likewise.
43722         * modules/crypto/gc-md2 (License): Likewise.
43723         * modules/crypto/gc-md4 (License): Likewise.
43724         * modules/crypto/gc-md5 (License): Likewise.
43725         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
43726         * modules/crypto/gc-random (License): Likewise.
43727         * modules/crypto/gc-rijndael (License): Likewise.
43728         * modules/crypto/gc-sha1 (License): Likewise.
43729         * modules/crypto/md2 (License): Likewise.
43730         * modules/crypto/md4 (License): Likewise.
43731
43732 2007-07-30  Jim Meyering  <jim@meyering.net>
43733
43734         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
43735         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
43736         it has valid stat data.  This bug would cause du not to count the
43737         sizes of inaccessible directories.
43738         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
43739         in <http://bugzilla.redhat.com/250077>.
43740
43741 2007-07-25  Peter O'Gorman  <peter@pogma.com>
43742             Bruno Haible  <bruno@clisp.org>
43743
43744         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
43745         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
43746         #include_next, gives a diagnostic about it, but reports no error in
43747         the exit code.
43748         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43749
43750 2007-07-24  Ben Pfaff  <blp@gnu.org>
43751
43752         Improve name: "count-one-bits" is better than "popcount".
43753         * MODULES.html.sh: Update name.
43754         * lib/popcount.h: Renamed lib/count-one-bits.h.
43755         (popcount): Renamed count_one_bits.
43756         (popcountl): Renamed count_one_bits_l.
43757         (popcountll): Renamed count_one_bits_ll.
43758         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
43759         * modules/popcount: Renamed module/count-one-bits.
43760         * modules/popcount-tests: Renamed module/count-one-bits-tests.
43761         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
43762
43763 2007-07-23  Ben Pfaff  <blp@gnu.org>
43764
43765         * lib/popcount.h (popcount32): Reduce size of constants, to allow
43766         better code generation, and add U to large constants to avoid
43767         warnings, in non-GCC case.
43768         Suggested by Bruno Haible.
43769
43770 2007-07-23  Ben Pfaff  <blp@gnu.org>
43771
43772         * lib/popcount.h: Use verify_true instead of if...abort.
43773         * modules/popcount: Depend on verify module.
43774         Suggested by Jim Meyering.
43775
43776 2007-07-23  Bruno Haible  <bruno@clisp.org>
43777
43778         * gnulib-tool (func_import): Create a .cvsignore file also when the
43779         directory is not yet in CVS but the toplevel directory is. When
43780         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
43781         Reported by Karl Berry.
43782
43783 2007-07-22  Ben Pfaff  <blp@gnu.org>
43784
43785         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
43786         case.
43787         Suggested by Eric Blake.
43788
43789 2007-07-22  Ben Pfaff  <blp@gnu.org>
43790
43791         New module: popcount.
43792         * MODULES.html.sh: Add popcount.
43793         * modules/popcount: New file.
43794         * modules/popcount-tests: New file.
43795         * tests/test-popcount.c: New file.
43796         * lib/popcount.h: New file.
43797         * m4/popcount.m4: New file.
43798
43799 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43800
43801         * build-aux/announce-gen: Update to GPLv3.
43802
43803         * build-aux/config.guess: Update from config.
43804
43805 2007-07-21  Bruno Haible  <bruno@clisp.org>
43806
43807         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
43808         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
43809
43810 2007-07-20  Jim Meyering  <jim@meyering.net>
43811
43812         * check-module: Diagnose a self-dependency.
43813
43814 2007-07-19  Bruno Haible  <bruno@clisp.org>
43815
43816         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
43817         empty.
43818         Reported by Eric Blake.
43819
43820 2007-07-18  Bruno Haible  <bruno@clisp.org>
43821
43822         * gnulib-tool: New options --po-base, --po-domain.
43823         (func_usage): Document them.
43824         (pobase, po_domain): New variables.
43825         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
43826         DEFAULT_TEXT_DOMAIN.
43827         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
43828         (func_import): Consider pobase and po_domain. Create a po/ directory.
43829         (func_create_testdir): Set pobase and po_domain to empty.
43830         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
43831         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
43832
43833 2007-07-18  Bruno Haible  <bruno@clisp.org>
43834
43835         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43836         EXTRA_DIST augmentation for files in build-aux/.
43837
43838 2007-07-16  Bruno Haible  <bruno@clisp.org>
43839
43840         * modules/lseek (License): Use the synonymous term "LGPLv2+".
43841         * modules/getdelim (License): Likewise.
43842
43843 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43844
43845         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
43846         * modules/d-type (License): Likewise.
43847         * modules/extensions (License): Likewise.
43848         * modules/fnmatch (License): Likewise.
43849         * modules/fseeko (License): Likewise.
43850         * modules/getaddrinfo (License): Likewise.
43851         * modules/getline (License): Likewise.
43852         * modules/getlogin_r (License): Likewise.
43853         * modules/getpass (License): Likewise.
43854         * modules/gettimeofday (License): Likewise.
43855         * modules/glob (License): Likewise.
43856         * modules/inet_ntop (License): Likewise.
43857         * modules/malloc (License): Likewise.
43858         * modules/malloca (License): Likewise.
43859         * modules/memmem (License): Likewise.
43860         * modules/mempcpy (License): Likewise.
43861         * modules/memset (License): Likewise.
43862         * modules/minmax (License): Likewise.
43863         * modules/mktime (License): Likewise.
43864         * modules/netinet_in (License): Likewise.
43865         * modules/pathmax (License): Likewise.
43866         * modules/poll (License): Likewise.
43867         * modules/regex (License): Likewise.
43868         * modules/snprintf (License): Likewise.
43869         * modules/stdbool (License): Likewise.
43870         * modules/stdint (License): Likewise.
43871         * modules/stdio (License): Likewise.
43872         * modules/strcase (License): Likewise.
43873         * modules/strcasestr (License): Likewise.
43874         * modules/strdup (License): Likewise.
43875         * modules/string (License): Likewise.
43876         * modules/strndup (License): Likewise.
43877         * modules/strnlen (License): Likewise.
43878         * modules/strpbrk (License): Likewise.
43879         * modules/strptime (License): Likewise.
43880         * modules/strsep (License): Likewise.
43881         * modules/sys_select (License): Likewise.
43882         * modules/sys_socket (License): Likewise.
43883         * modules/sys_stat (License): Likewise.
43884         * modules/sys_time (License): Likewise.
43885         * modules/time (License): Likewise.
43886         * modules/time_r (License): Likewise.
43887         * modules/timegm (License): Likewise.
43888         * modules/unistd (License): Likewise.
43889         * modules/vsnprintf (License): Likewise.
43890         * modules/wctype (License): Likewise.
43891
43892 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43893
43894         * modules/argz (License): LGPLv2+.
43895
43896 2007-07-15  Karl Berry  <karl@gnu.org>
43897
43898         * doc/gnulib.texi: revise node structure per new fdl.texi.
43899
43900 2007-07-14  Bruno Haible  <bruno@clisp.org>
43901
43902         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
43903         the output file.
43904         * lib/uniname/uninames.h: Regenerated.
43905
43906 2007-07-14  Karl Berry  <karl@gnu.org>
43907
43908         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
43909         omitting sectioning and index commands.
43910
43911 2007-07-13  Bruno Haible  <bruno@clisp.org>
43912
43913         New gnulib-tool option --more-symlinks.
43914         * gnulib-tool (func_usage): Document --more-symlinks.
43915         (do_copyrights): New variable.
43916         Recognize option --more-symlinks.
43917         (func_import): Don't add a copyright notice transform to
43918         sed_transform_lib_file if do_copyrights is empty.
43919
43920 2007-07-13  Bruno Haible  <bruno@clisp.org>
43921
43922         * lib/vasnprintf.c (decimal_point_char): Define also if
43923         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
43924         && !NEED_PRINTF_DIRECTIVE_A.
43925         Reported by Clemens Koller <clemens.koller@anagramm.de> via
43926         Gary V. Vaughan <gary@gnu.org>.
43927
43928 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
43929
43930         * lib/inttypes_.h: Undo previous change, since it was fixed
43931         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
43932
43933 2007-07-13  Bruno Haible  <bruno@clisp.org>
43934
43935         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
43936         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
43937
43938 2007-07-13  Jim Meyering  <jim@meyering.net>
43939
43940         df: Don't fail for Tru64's "file-on-file mount".
43941         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43942         so we fall through and use statfs instead.  Details here:
43943         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
43944         Reported by Albert Chin.
43945
43946 2007-07-13  Bruno Haible  <bruno@clisp.org>
43947
43948         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
43949         * modules/configmake (License): Likewise.
43950         * modules/gettext (License): Likewise.
43951         * modules/gettext-h (License): Likewise.
43952         * modules/include_next (License): Likewise.
43953         * modules/link-warning (License): Likewise.
43954         * modules/localcharset (License): Likewise.
43955         * modules/localename (License): Likewise.
43956         * modules/lock (License): Likewise.
43957         * modules/relocatable-lib-lgpl (License): Likewise.
43958         * modules/size_max (License): Likewise.
43959         * modules/vasnprintf (License): Likewise.
43960         * modules/wchar (License): Likewise.
43961         * modules/xsize (License): Likewise.
43962
43963 2007-07-13  Bruno Haible  <bruno@clisp.org>
43964
43965         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
43966         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
43967
43968 2007-07-12  Bruno Haible  <bruno@clisp.org>
43969
43970         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
43971         in the modules files.
43972
43973 2007-07-11  Karl Berry  <karl@gnu.org>
43974
43975         * MODULES.html.sh (func_module): use
43976          sed -e '\|^'"${includefile}"'$|d'
43977          instead of /.../d, to avoid errors on $includefile's containing /.
43978
43979 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43980
43981         * gnulib-tool (func_import): Avoid duplication of --avoid
43982         statements
43983         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
43984         names to `_' in variable names.
43985
43986 2007-07-10  Eric Blake  <ebb9@byu.net>
43987
43988         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
43989         * NEWS: Document this change.
43990
43991 2007-07-08  Bruno Haible  <bruno@clisp.org>
43992
43993         Update to Unicode 5.0.
43994         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
43995         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
43996         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
43997         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
43998         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
43999         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
44000         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
44001         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
44002         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
44003         U+10A3F, U+1D242..U+1D244.
44004         (nonspacing_table_ind): Update.
44005         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
44006         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
44007
44008 2007-07-08  Bruno Haible  <bruno@clisp.org>
44009
44010         Update to Unicode 5.0.
44011         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
44012         code transform. Extend the name index field of unicode_name_to_code and
44013         unicode_code_to_name from 16 to 24 bits.
44014         * lib/uniname/uniname.c (unicode_character_name,
44015         unicode_name_character): Add the range 0x12xxx to the code transform.
44016         * lib/uniname/uninames.h: Regenerated.
44017         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
44018
44019 2007-07-07  Bruno Haible  <bruno@clisp.org>
44020
44021         * modules/wcwidth-tests: New file.
44022         * tests/test-wcwidth.c: New file.
44023
44024         Work around MacOS X wcwidth() bug.
44025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
44026         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
44027         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
44028         original wcwidth in non-UTF-8 locales.
44029         * modules/wcwidth (Depends-on): Add localcharset, streq,
44030         uniwidth/width.
44031         * doc/functions/wcwidth.texi: Update.
44032
44033 2007-07-07  Bruno Haible  <bruno@clisp.org>
44034
44035         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
44036         (wcwidth): New declaration.
44037         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
44038         macros.
44039         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
44040         here. Prepare for creating <wchar.h> unconditionally.
44041         * modules/wchar (Depends-on): Add link-warning.
44042         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
44043         REPLACE_WCWIDTH, and GL_LINK_WARNING.
44044         * lib/wcwidth.h: Remove file.
44045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
44046         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
44047         * modules/wcwidth (Files): Remove lib/wcwidth.h.
44048         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
44049         (Include): Replace wcwidth.h with <wchar.h>.
44050         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
44051         * lib/mbchar.h: Don't include wcwidth.h.
44052         * lib/mbswidth.c: Likewise.
44053         * NEWS: Mention the change.
44054
44055 2007-07-07  Bruno Haible  <bruno@clisp.org>
44056
44057         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
44058         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
44059         definition with an external declaration.
44060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
44061         defined as a function. Remove AC_C_INLINE requirement.
44062         * modules/wcwidth (Files): Add lib/wcwidth.c.
44063         (Makefile.am): Remove redundant statement.
44064
44065 2007-07-07  Bruno Haible  <bruno@clisp.org>
44066
44067         * MODULES.html.sh (Unicode string functions): Add the new modules.
44068
44069         * tests/uniwidth/test-u32-strwidth.c: New file.
44070         * modules/uniwidth/u32-strwidth-tests: New file.
44071
44072         * lib/uniwidth/u32-strwidth.c: New file.
44073         * modules/uniwidth/u32-strwidth: New file.
44074
44075         * tests/uniwidth/test-u16-strwidth.c: New file.
44076         * modules/uniwidth/u16-strwidth-tests: New file.
44077
44078         * lib/uniwidth/u16-strwidth.c: New file.
44079         * modules/uniwidth/u16-strwidth: New file.
44080
44081         * tests/uniwidth/test-u8-strwidth.c: New file.
44082         * modules/uniwidth/u8-strwidth-tests: New file.
44083
44084         * lib/uniwidth/u8-strwidth.c: New file.
44085         * modules/uniwidth/u8-strwidth: New file.
44086
44087         * tests/uniwidth/test-u32-width.c: New file.
44088         * modules/uniwidth/u32-width-tests: New file.
44089
44090         * lib/uniwidth/u32-width.c: New file.
44091         * modules/uniwidth/u32-width: New file.
44092
44093         * tests/uniwidth/test-u16-width.c: New file.
44094         * modules/uniwidth/u16-width-tests: New file.
44095
44096         * lib/uniwidth/u16-width.c: New file.
44097         * modules/uniwidth/u16-width: New file.
44098
44099         * tests/uniwidth/test-u8-width.c: New file.
44100         * modules/uniwidth/u8-width-tests: New file.
44101
44102         * lib/uniwidth/u8-width.c: New file.
44103         * modules/uniwidth/u8-width: New file.
44104
44105         * tests/uniwidth/test-uc_width.c: New file.
44106         * modules/uniwidth/width-tests: New file.
44107
44108         * lib/uniwidth/width.c: New file, from GNU libiconv.
44109         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
44110         * modules/uniwidth/width: New file.
44111
44112         * lib/uniwidth.h: New file, from GNU libiconv.
44113         * modules/uniwidth/base: New file.
44114
44115 2007-07-07  Bruno Haible  <bruno@clisp.org>
44116
44117         * lib/uniname.h: New file, from GNU gettext.
44118         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
44119         * lib/uniname/uninames.h: New file, from GNU gettext.
44120         * lib/uniname/uniname.c: New file, from GNU gettext.
44121         * tests/uniname/test-uninames.sh: New file.
44122         * tests/uniname/test-uninames.c: New file, from GNU gettext.
44123         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
44124         * modules/uniname/base: New file.
44125         * modules/uniname/uniname: New file.
44126         * modules/uniname/uniname-tests: New file.
44127         * MODULES.html.sh (Unicode string functions): Add the new modules.
44128
44129 2007-07-06  Bruno Haible  <bruno@clisp.org>
44130
44131         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
44132
44133 2007-07-06  Bruno Haible  <bruno@clisp.org>
44134
44135         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
44136         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
44137         includes <cygwin/sys_time.h> which includes <sys/select.h> which
44138         include <sys/time.h>.
44139         Reported by Eric Blake.
44140
44141 2007-07-06  Eric Blake  <ebb9@byu.net>
44142
44143         Fix testing canonicalize on cygwin.
44144         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44145         Revert patch from 2007-06-19.
44146         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
44147         canonicalize module is also in use.
44148         * tests/test-canonicalize.c: New file.
44149         * tests/test-canonicalize.sh: Likewise.
44150         * modules/canonicalize-tests: Likewise.
44151
44152 2007-07-06  Jim Meyering  <jim@meyering.net>
44153
44154         * lib/getugroups.c (getugroups): Detect getgrent failure.
44155         Adjust comment to reflect reality: this function may return -1.
44156
44157 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
44158
44159         * build-aux/bootstrap (TP_URL,get_translations): Update to use
44160         the new TP address.
44161         (usage): Fix typo
44162         (gnulib_mk): New variable.
44163
44164 2007-07-05  Jim Meyering  <jim@meyering.net>
44165
44166         Don't let endgrent clobber errno, no matter how improbable.
44167         * lib/getugroups.c (getugroups): Save and restore errno around
44168         endgrent call.
44169
44170         Close the group DB even when failing with 2^31 or more members.
44171         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
44172
44173 2007-07-04  Jim Meyering  <jim@meyering.net>
44174
44175         * lib/getugroups.h: New file.
44176         * lib/getugroups.c: Include "getugroups.h".
44177         Remove uses of "register" keyword.
44178         Move local variable, "cp", down into scope where used.
44179         Give "username" parameter the "const" attribute.
44180         * modules/getugroups (Files): Add lib/getugroups.h
44181
44182 2007-07-04  Karl Berry  <karl@gnu.org>
44183
44184         * MODULES.html.sh (func_all_modules): Complete rename of
44185         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
44186
44187 2007-07-02  Bruno Haible  <bruno@clisp.org>
44188
44189         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
44190         mode, when inttypes.h comes from gnulib.
44191         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44192
44193 2007-07-02  Simon Josefsson  <simon@josefsson.org>
44194
44195         * NEWS: Mention lgpl module name change.
44196
44197         * modules/lgpl-2.1: Renamed from lgpl.
44198
44199         * NEWS: Mention gpl module name change.
44200
44201         * modules/gpl-3.0: New file, based on gpl-2.0.
44202
44203         * modules/gpl-2.0: Renamed from gpl.
44204
44205         * modules/gpl: Fix filename, doc/gpl.texi is now found at
44206         doc/gpl-2.0.texi.
44207
44208 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44209
44210         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
44211         #define __STDC_LIMIT_MACROS temporarily while including
44212         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
44213         Problem reported by Joel E. Denny in
44214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
44215
44216 2007-07-01  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/unistdio.h: New file.
44219         * lib/unistdio/u-asnprintf.h: New file.
44220         * lib/unistdio/u-asprintf.h: New file.
44221         * lib/unistdio/u-printf-args.c: New file.
44222         * lib/unistdio/u-printf-args.h: New file.
44223         * lib/unistdio/u-printf-parse.h: New file.
44224         * lib/unistdio/u-snprintf.h: New file.
44225         * lib/unistdio/u-sprintf.h: New file.
44226         * lib/unistdio/u-vasprintf.h: New file.
44227         * lib/unistdio/u-vsnprintf.h: New file.
44228         * lib/unistdio/u-vsprintf.h: New file.
44229         * lib/unistdio/ulc-asnprintf.c: New file.
44230         * lib/unistdio/ulc-asprintf.c: New file.
44231         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
44232         * lib/unistdio/ulc-printf-parse.c: New file.
44233         * lib/unistdio/ulc-snprintf.c: New file.
44234         * lib/unistdio/ulc-sprintf.c: New file.
44235         * lib/unistdio/ulc-vasnprintf.c: New file.
44236         * lib/unistdio/ulc-vasprintf.c: New file.
44237         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
44238         * lib/unistdio/ulc-vsnprintf.c: New file.
44239         * lib/unistdio/ulc-vsprintf.c: New file.
44240         * lib/unistdio/u8-asnprintf.c: New file.
44241         * lib/unistdio/u8-asprintf.c: New file.
44242         * lib/unistdio/u8-printf-parse.c: New file.
44243         * lib/unistdio/u8-snprintf.c: New file.
44244         * lib/unistdio/u8-sprintf.c: New file.
44245         * lib/unistdio/u8-vasnprintf.c: New file.
44246         * lib/unistdio/u8-vasprintf.c: New file.
44247         * lib/unistdio/u8-vsnprintf.c: New file.
44248         * lib/unistdio/u8-vsprintf.c: New file.
44249         * lib/unistdio/u8-u8-asnprintf.c: New file.
44250         * lib/unistdio/u8-u8-asprintf.c: New file.
44251         * lib/unistdio/u8-u8-snprintf.c: New file.
44252         * lib/unistdio/u8-u8-sprintf.c: New file.
44253         * lib/unistdio/u8-u8-vasnprintf.c: New file.
44254         * lib/unistdio/u8-u8-vasprintf.c: New file.
44255         * lib/unistdio/u8-u8-vsnprintf.c: New file.
44256         * lib/unistdio/u8-u8-vsprintf.c: New file.
44257         * lib/unistdio/u16-asnprintf.c: New file.
44258         * lib/unistdio/u16-asprintf.c: New file.
44259         * lib/unistdio/u16-printf-parse.c: New file.
44260         * lib/unistdio/u16-snprintf.c: New file.
44261         * lib/unistdio/u16-sprintf.c: New file.
44262         * lib/unistdio/u16-vasnprintf.c: New file.
44263         * lib/unistdio/u16-vasprintf.c: New file.
44264         * lib/unistdio/u16-vsnprintf.c: New file.
44265         * lib/unistdio/u16-vsprintf.c: New file.
44266         * lib/unistdio/u16-u16-asnprintf.c: New file.
44267         * lib/unistdio/u16-u16-asprintf.c: New file.
44268         * lib/unistdio/u16-u16-snprintf.c: New file.
44269         * lib/unistdio/u16-u16-sprintf.c: New file.
44270         * lib/unistdio/u16-u16-vasnprintf.c: New file.
44271         * lib/unistdio/u16-u16-vasprintf.c: New file.
44272         * lib/unistdio/u16-u16-vsnprintf.c: New file.
44273         * lib/unistdio/u16-u16-vsprintf.c: New file.
44274         * lib/unistdio/u32-asnprintf.c: New file.
44275         * lib/unistdio/u32-asprintf.c: New file.
44276         * lib/unistdio/u32-printf-parse.c: New file.
44277         * lib/unistdio/u32-snprintf.c: New file.
44278         * lib/unistdio/u32-sprintf.c: New file.
44279         * lib/unistdio/u32-vasnprintf.c: New file.
44280         * lib/unistdio/u32-vasprintf.c: New file.
44281         * lib/unistdio/u32-vsnprintf.c: New file.
44282         * lib/unistdio/u32-vsprintf.c: New file.
44283         * lib/unistdio/u32-u32-asnprintf.c: New file.
44284         * lib/unistdio/u32-u32-asprintf.c: New file.
44285         * lib/unistdio/u32-u32-snprintf.c: New file.
44286         * lib/unistdio/u32-u32-sprintf.c: New file.
44287         * lib/unistdio/u32-u32-vasnprintf.c: New file.
44288         * lib/unistdio/u32-u32-vasprintf.c: New file.
44289         * lib/unistdio/u32-u32-vsnprintf.c: New file.
44290         * lib/unistdio/u32-u32-vsprintf.c: New file.
44291         * tests/unistdio/test-ulc-asnprintf1.c: New file.
44292         * tests/unistdio/test-ulc-asnprintf1.h: New file.
44293         * tests/unistdio/test-ulc-printf1.h: New file.
44294         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
44295         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
44296         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
44297         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
44298         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
44299         * tests/unistdio/test-ulc-vasprintf1.c: New file.
44300         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
44301         * tests/unistdio/test-ulc-vsprintf1.c: New file.
44302         * tests/unistdio/test-u8-asnprintf1.c: New file.
44303         * tests/unistdio/test-u8-asnprintf1.h: New file.
44304         * tests/unistdio/test-u8-printf1.h: New file.
44305         * tests/unistdio/test-u8-vasnprintf1.c: New file.
44306         * tests/unistdio/test-u8-vasnprintf2.c: New file.
44307         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
44308         * tests/unistdio/test-u8-vasnprintf3.c: New file.
44309         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
44310         * tests/unistdio/test-u8-vasprintf1.c: New file.
44311         * tests/unistdio/test-u8-vsnprintf1.c: New file.
44312         * tests/unistdio/test-u8-vsprintf1.c: New file.
44313         * tests/unistdio/test-u16-asnprintf1.c: New file.
44314         * tests/unistdio/test-u16-asnprintf1.h: New file.
44315         * tests/unistdio/test-u16-printf1.h: New file.
44316         * tests/unistdio/test-u16-vasnprintf1.c: New file.
44317         * tests/unistdio/test-u16-vasnprintf2.c: New file.
44318         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
44319         * tests/unistdio/test-u16-vasnprintf3.c: New file.
44320         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
44321         * tests/unistdio/test-u16-vasprintf1.c: New file.
44322         * tests/unistdio/test-u16-vsnprintf1.c: New file.
44323         * tests/unistdio/test-u16-vsprintf1.c: New file.
44324         * tests/unistdio/test-u32-asnprintf1.c: New file.
44325         * tests/unistdio/test-u32-asnprintf1.h: New file.
44326         * tests/unistdio/test-u32-printf1.h: New file.
44327         * tests/unistdio/test-u32-vasnprintf1.c: New file.
44328         * tests/unistdio/test-u32-vasnprintf2.c: New file.
44329         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
44330         * tests/unistdio/test-u32-vasnprintf3.c: New file.
44331         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
44332         * tests/unistdio/test-u32-vasprintf1.c: New file.
44333         * tests/unistdio/test-u32-vsnprintf1.c: New file.
44334         * tests/unistdio/test-u32-vsprintf1.c: New file.
44335         * modules/unistdio/base: New file.
44336         * modules/unistdio/u-printf-args: New file.
44337         * modules/unistdio/ulc-asnprintf: New file.
44338         * modules/unistdio/ulc-asprintf: New file.
44339         * modules/unistdio/ulc-fprintf: New file.
44340         * modules/unistdio/ulc-printf-parse: New file.
44341         * modules/unistdio/ulc-snprintf: New file.
44342         * modules/unistdio/ulc-sprintf: New file.
44343         * modules/unistdio/ulc-vasnprintf: New file.
44344         * modules/unistdio/ulc-vasprintf: New file.
44345         * modules/unistdio/ulc-vfprintf: New file.
44346         * modules/unistdio/ulc-vsnprintf: New file.
44347         * modules/unistdio/ulc-vsprintf: New file.
44348         * modules/unistdio/u8-asnprintf: New file.
44349         * modules/unistdio/u8-asprintf: New file.
44350         * modules/unistdio/u8-printf-parse: New file.
44351         * modules/unistdio/u8-snprintf: New file.
44352         * modules/unistdio/u8-sprintf: New file.
44353         * modules/unistdio/u8-vasnprintf: New file.
44354         * modules/unistdio/u8-vasprintf: New file.
44355         * modules/unistdio/u8-vsnprintf: New file.
44356         * modules/unistdio/u8-vsprintf: New file.
44357         * modules/unistdio/u8-u8-asnprintf: New file.
44358         * modules/unistdio/u8-u8-asprintf: New file.
44359         * modules/unistdio/u8-u8-snprintf: New file.
44360         * modules/unistdio/u8-u8-sprintf: New file.
44361         * modules/unistdio/u8-u8-vasnprintf: New file.
44362         * modules/unistdio/u8-u8-vasprintf: New file.
44363         * modules/unistdio/u8-u8-vsnprintf: New file.
44364         * modules/unistdio/u8-u8-vsprintf: New file.
44365         * modules/unistdio/u16-asnprintf: New file.
44366         * modules/unistdio/u16-asprintf: New file.
44367         * modules/unistdio/u16-printf-parse: New file.
44368         * modules/unistdio/u16-snprintf: New file.
44369         * modules/unistdio/u16-sprintf: New file.
44370         * modules/unistdio/u16-vasnprintf: New file.
44371         * modules/unistdio/u16-vasprintf: New file.
44372         * modules/unistdio/u16-vsnprintf: New file.
44373         * modules/unistdio/u16-vsprintf: New file.
44374         * modules/unistdio/u16-u16-asnprintf: New file.
44375         * modules/unistdio/u16-u16-asprintf: New file.
44376         * modules/unistdio/u16-u16-snprintf: New file.
44377         * modules/unistdio/u16-u16-sprintf: New file.
44378         * modules/unistdio/u16-u16-vasnprintf: New file.
44379         * modules/unistdio/u16-u16-vasprintf: New file.
44380         * modules/unistdio/u16-u16-vsnprintf: New file.
44381         * modules/unistdio/u16-u16-vsprintf: New file.
44382         * modules/unistdio/u32-asnprintf: New file.
44383         * modules/unistdio/u32-asprintf: New file.
44384         * modules/unistdio/u32-printf-parse: New file.
44385         * modules/unistdio/u32-snprintf: New file.
44386         * modules/unistdio/u32-sprintf: New file.
44387         * modules/unistdio/u32-vasnprintf: New file.
44388         * modules/unistdio/u32-vasprintf: New file.
44389         * modules/unistdio/u32-vsnprintf: New file.
44390         * modules/unistdio/u32-vsprintf: New file.
44391         * modules/unistdio/u32-u32-asnprintf: New file.
44392         * modules/unistdio/u32-u32-asprintf: New file.
44393         * modules/unistdio/u32-u32-snprintf: New file.
44394         * modules/unistdio/u32-u32-sprintf: New file.
44395         * modules/unistdio/u32-u32-vasnprintf: New file.
44396         * modules/unistdio/u32-u32-vasprintf: New file.
44397         * modules/unistdio/u32-u32-vsnprintf: New file.
44398         * modules/unistdio/u32-u32-vsprintf: New file.
44399         * modules/unistdio/ulc-asnprintf-tests: New file.
44400         * modules/unistdio/ulc-vasnprintf-tests: New file.
44401         * modules/unistdio/ulc-vasprintf-tests: New file.
44402         * modules/unistdio/ulc-vsnprintf-tests: New file.
44403         * modules/unistdio/ulc-vsprintf-tests: New file.
44404         * modules/unistdio/u8-asnprintf-tests: New file.
44405         * modules/unistdio/u8-vasnprintf-tests: New file.
44406         * modules/unistdio/u8-vasprintf-tests: New file.
44407         * modules/unistdio/u8-vsnprintf-tests: New file.
44408         * modules/unistdio/u8-vsprintf-tests: New file.
44409         * modules/unistdio/u16-asnprintf-tests: New file.
44410         * modules/unistdio/u16-vasnprintf-tests: New file.
44411         * modules/unistdio/u16-vasprintf-tests: New file.
44412         * modules/unistdio/u16-vsnprintf-tests: New file.
44413         * modules/unistdio/u16-vsprintf-tests: New file.
44414         * modules/unistdio/u32-asnprintf-tests: New file.
44415         * modules/unistdio/u32-vasnprintf-tests: New file.
44416         * modules/unistdio/u32-vasprintf-tests: New file.
44417         * modules/unistdio/u32-vsnprintf-tests: New file.
44418         * modules/unistdio/u32-vsprintf-tests: New file.
44419         * MODULES.html.sh (Unicode string functions): Add the new modules.
44420
44421 2007-07-01  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/sprintf.c (sprintf): Limit the available length estimation,
44424         to avoid address wraparound.
44425         * lib/vsprintf.c (vsprintf): Likewise.
44426         * modules/sprintf-posix (Dependencies): Add stdint.
44427         * modules/vsprintf-posix (Dependencies): Likewise.
44428
44429 2007-07-01  Bruno Haible  <bruno@clisp.org>
44430
44431         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
44432         Windows PATH as well. Conservative double-quoting. Comments.
44433
44434 2007-07-01  Bruno Haible  <bruno@clisp.org>
44435             Eric Blake  <ebb9@byu.net>
44436             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44437
44438         * gnulib-tool (self_abspathname): Fix algorithm to cope with
44439         empty components in $PATH, denoting '.'.
44440
44441 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44442
44443         * gnulib-tool: Fix indentation.
44444         (func_create_megatestdir): Likewise.
44445         Report by Bruno Haible.
44446
44447 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44448
44449         Sync from Automake.
44450         * build-aux/gnupload: Fix shell portability issues with for loops.
44451         Report by Karl Berry.
44452
44453 2007-06-29  Simon Josefsson  <simon@josefsson.org>
44454
44455         * build-aux/maint.mk (POURL): Use translationproject.org.
44456
44457 2007-06-27  Simon Josefsson  <simon@josefsson.org>
44458             Bruno Haible  <bruno@clisp.org>
44459
44460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
44461         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
44462         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
44463         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
44464         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
44465
44466 2007-06-27  Bruno Haible  <bruno@clisp.org>
44467
44468         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
44469         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
44470
44471 2007-06-26  Karl Berry  <karl@gnu.org>
44472
44473         * MODULES.html.sh: remove xreadlink-with-size.
44474
44475 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44476
44477         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
44478         method that I hope also handles the double-include problem noted
44479         by Bruno Haible in
44480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
44481
44482 2007-06-23  Bruno Haible  <bruno@clisp.org>
44483
44484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44485         Don't let the 'mostlyclean' target fail if the last subdirectory could
44486         not be removed.
44487         Reported by Karl Berry.
44488
44489 2007-06-23  Bruno Haible  <bruno@clisp.org>
44490
44491         * gnulib-tool (echo): Add a speedier workaround for ksh.
44492         * tests/test-echo.sh: Likewise.
44493
44494 2007-06-23  Bruno Haible  <bruno@clisp.org>
44495
44496         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
44497         * tests/test-echo.sh: Likewise.
44498
44499 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44500
44501         * gnulib-tool (IFS): Initialize early, so we don't set it to
44502         empty later.
44503         (self_abspathname): Rewrite algorithm to set it, reindent.
44504         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
44505         (func_create_megatestdir): Merge some sed scripts.
44506
44507 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44508
44509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
44510         exposed by Sun Studio 11 cc on Solaris 8.
44511
44512 2007-06-22  Bruno Haible  <bruno@clisp.org>
44513
44514         * gnulib-tool (echo): Ensure the echo primitive does not interpret
44515         backslashes.
44516         * tests/test-echo.sh: New file.
44517
44518 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44519
44520         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
44521         simplify `sed_replace_build_aux' scripts, they are portable but
44522         echoing them with `echo' is not.
44523         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
44524
44525 2007-06-21  Karl Berry  <karl@gnu.org>
44526
44527         * config/srclist.txt: guess we can't handle the licenses via
44528         srclist at the moment.
44529
44530 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44531
44532         * MODULES.html.sh: Add include_next.
44533         * modules/include_next: New file.
44534
44535 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
44538         INCLUDE_NEXT.
44539         (gl_CHECK_NEXT_HEADERS): New macro.
44540         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
44541         the obsolescent gl_ABSOLUTE_HEADER.
44542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
44543         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
44544         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
44545         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44546         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44547         * m4/math_h.m4 (gl_MATH_H): Likewise.
44548         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44549         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44550         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
44551         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44552         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
44553         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
44554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
44555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44558         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
44559         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44560         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
44561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44562         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44563         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44564         * m4/inttypes.m4 (gl_INTTYPES_H): Define
44565         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
44566         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
44567         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
44568         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
44569         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
44570         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
44571         * lib/float_.h: Likewise.
44572         * lib/inttypes_.h: Likewise.
44573         * lib/math_.h: Likewise.
44574         * lib/search_.h: Likewise.
44575         * lib/signal_.h: Likewise.
44576         * lib/stdint_.h: Likewise.
44577         * lib/stdio_.h: Likewise.
44578         * lib/stdlib_.h: Likewise.
44579         * lib/string_.h: Likewise.
44580         * lib/sys_stat_.h: Likewise.
44581         * lib/sys_time_.h: Likewise.
44582         * lib/time_.h: Likewise.
44583         * lib/unistd_.h: Likewise.
44584         * lib/wchar_.h: Likewise.
44585         * lib/wctype_.h: Likewise.
44586         * lib/dirent_.h: Likewise.
44587         * lib/iconv_.h: Likewise.
44588         * lib/locale_.h: Likewise.
44589         * lib/netinet_in_.h: Likewise.
44590         * lib/sys_select_.h: Likewise.
44591         * lib/sys_socket_.h: Likewise.
44592         * lib/sysexits_.h: Likewise.
44593         * modules/fcntl (Depends-on): Depend on include_next, not
44594         absolute_header.
44595         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
44596         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
44597         * modules/fchdir: Likewise.
44598         * modules/float: Likewise.
44599         * modules/iconv_open: Likewise.
44600         * modules/inttypes: Likewise.
44601         * modules/locale: Likewise.
44602         * modules/math: Likewise.
44603         * modules/netinet_in: Likewise.
44604         * modules/search: Likewise.
44605         * modules/signal: Likewise.
44606         * modules/stdint: Likewise.
44607         * modules/stdio: Likewise.
44608         * modules/stdlib: Likewise.
44609         * modules/string: Likewise.
44610         * modules/sys_select: Likewise.
44611         * modules/sys_socket: Likewise.
44612         * modules/sys_stat: Likewise.
44613         * modules/sys_time: Likewise.
44614         * modules/sysexits: Likewise.
44615         * modules/time: Likewise.
44616         * modules/unistd: Likewise.
44617         * modules/wchar: Likewise.
44618         * modules/wctype: Likewise.
44619         * modules/sys_stat: Change maintainer to "all".
44620         * modules/unistd: Likewise.
44621
44622 2007-06-20  Karl Berry  <karl@gnu.org>
44623
44624         * config/srclist.txt: track www changes in license files.
44625
44626 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
44627
44628         * build-aux/bootstrap: Remove stray dot.
44629         Make sure build_aux settings are honored when linking
44630         gnulib_extra_files.
44631
44632 2007-06-19  Eric Blake  <ebb9@byu.net>
44633
44634         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44635         Allow compilation on cygwin.
44636
44637 2007-06-19  Jim Meyering  <jim@meyering.net>
44638
44639         xreadlink-with-size: Remove module.  No longer used.
44640         Ex-callers now use xreadlink or mreadlink-with-size.
44641         * modules/xreadlink-with-size: Remove module.
44642         * lib/xreadlink-with-size.c: Remove file.
44643         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
44644         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
44645         just before the function definition *is* accurate.
44646
44647         Eliminate one way canonicalize_filename_mode could exit.
44648         * lib/canonicalize.c (canonicalize_filename_mode):
44649         Use mreadlink_with_size, not xreadlink_with_size.
44650
44651 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         Detect porting problems to FreeBSD/arm, which has time_t wider than
44654         long int.  Original problem reported for GNU diff by Xin Li in
44655         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
44656         * modules/getdate (Depends-on): Add intprops, verify.
44657         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
44658         is an integer type no wider than long int.
44659
44660 2007-06-18  Jim Meyering  <jim@meyering.net>
44661
44662         New module: mreadlink-with-size.
44663         * MODULES.html.sh: Add mreadlink-with-size.
44664         * modules/mreadlink-with-size: New module
44665         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
44666         not xreadlink-with-size.
44667         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
44668
44669 2007-06-16  Bruno Haible  <bruno@clisp.org>
44670
44671         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
44672         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
44673         Reported by Gary V. Vaughan <gary@gnu.org>.
44674
44675 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
44676
44677         Revamp lchown so that it lives in unistd.h where it belongs.
44678         * lib/lchown.h: Remove.
44679         * lib/dirchownmod.c: Don't include lib/lchown.h.
44680         * lib/fchownat.c: Likewise.
44681         * lib/openat.c: Likewise.
44682         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
44683         does not follow symlinks.
44684         (EOPNOTSUPP): Define if not defined.
44685         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
44686         is defined to 0.
44687         (lchown): New decl.
44688         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
44689         Do not check for lchown decl.
44690         Set REPLACE_LCHOWN.
44691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
44692         REPLACE_LCHOWN.
44693         * modules/chown: Make it clear it follows symlinks.
44694         * modules/lchown: Make it clear it doesn't follow symlinks.
44695         (Files): Remove lib/lchown.h
44696         (Depends-on): Add unistd.
44697         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
44698         (Include): Include <unistd.h>, not "lchown.h".
44699         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
44700         REPLACE_LCHOWN.
44701
44702 2007-06-15  Jim Meyering  <jim@meyering.net>
44703
44704         Change license (GPL to LGPL) of fsusage and dependents.
44705         * modules/fsusage (License): Change to LGPL.
44706         * modules/full-read (License): Likewise.
44707         * modules/full-write (License): Likewise.
44708         * modules/safe-read (License): Likewise.
44709         * modules/safe-write (License): Likewise.
44710
44711 2007-06-14  Ben Pfaff  <blp@gnu.org>
44712
44713         Missing part of allocsa -> malloca transition.
44714         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
44715         gl_MALLOCA.
44716
44717 2007-06-12  Bruno Haible  <bruno@clisp.org>
44718
44719         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
44720         to ia64, x86_64, i386.
44721         Reported by Eric Blake.
44722
44723 2007-06-12  Bruno Haible  <bruno@clisp.org>
44724
44725         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
44726         cross-compiling to x86_64.
44727
44728 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
44729
44730         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
44731         glitch reported by Ralf Wildenhues in
44732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
44733
44734         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
44735         Vin Shelton.
44736
44737 2007-06-11  Bruno Haible  <bruno@clisp.org>
44738
44739         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
44740         replacement string.
44741         Reported by Eric Blake.
44742
44743 2007-06-10  Bruno Haible  <bruno@clisp.org>
44744
44745         Prepare vasnprintf code for use with Unicode strings.
44746         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
44747         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
44748         TYPE_U32_STRING.
44749         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
44750         a_u32_string variants.
44751         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44752         * lib/printf-args.c: Don't include config.h and the specification
44753         header if PRINTF_FETCHARGS is already defined.
44754         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44755         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
44756         TYPE_U16_STRING, TYPE_U32_STRING.
44757         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
44758         u16_directive, u16_directives, u32_directive, u32_directives): New
44759         types.
44760         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
44761         New declarations.
44762         * lib/printf-parse.c: Don't include config.h and the specification
44763         header if PRINTF_PARSE is already defined. Eliminate the set of
44764         parameters for WIDE_CHAR_VERSION; the user of this file must provide
44765         them now. Include c-ctype.h.
44766         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
44767         directive and CHAR_T_ONLY_ASCII.
44768         * lib/vasnprintf.c: Don't include config.h and the specification header
44769         if VASNPRINTF is already defined.
44770         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
44771         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
44772         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
44773         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
44774         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44775         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
44776         code accordingly.
44777         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
44778         pad_ourselves also in this case, with the 'c' and 's' directives, and
44779         with a different notion of "width".
44780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
44781
44782 2007-06-10  Bruno Haible  <bruno@clisp.org>
44783
44784         * modules/unistr/u32-mbsnlen: New file.
44785         * lib/unistr/u32-mbsnlen.c: New file.
44786
44787         * modules/unistr/u16-mbsnlen: New file.
44788         * lib/unistr/u16-mbsnlen.c: New file.
44789
44790         * modules/unistr/u8-mbsnlen: New file.
44791         * lib/unistr/u8-mbsnlen.c: New file.
44792
44793         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
44794         declarations.
44795
44796 2007-06-10  Bruno Haible  <bruno@clisp.org>
44797
44798         * lib/string_.h (mbsnlen): New declaration.
44799         * lib/mbsnlen.c: New file.
44800         * m4/mbsnlen.m4: New file.
44801         * modules/mbsnlen: New file.
44802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
44803         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
44804         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
44805
44806 2007-06-10  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
44809
44810 2007-06-10  Bruno Haible  <bruno@clisp.org>
44811
44812         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
44813         * lib/mbuiter.h: Likewise.
44814
44815 2007-06-10  Bruno Haible  <bruno@clisp.org>
44816
44817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
44818         declaration.
44819
44820 2007-06-10  Karl Berry  <karl@gnu.org>
44821
44822         * config/srclist.txt: remove gettext entries, Bruno prefers
44823         to update individually.
44824
44825 2007-06-10  Bruno Haible  <bruno@clisp.org>
44826
44827         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
44828         'maxlen'. Ensure only length + width bytes are allocated, not
44829         length + 1 + width.
44830
44831 2007-06-09  Bruno Haible  <bruno@clisp.org>
44832
44833         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
44834         (CHAR_T): Remove macro.
44835         (VASNPRINTF): Update.
44836
44837 2007-06-09  Bruno Haible  <bruno@clisp.org>
44838
44839         * MODULES.html.sh (Unicode string functions): Add the new modules.
44840
44841         * modules/uniconv/u32-conv-to-enc: New file.
44842         * lib/uniconv/u32-conv-to-enc.c: New file.
44843         * modules/uniconv/u32-conv-to-enc-tests: New file.
44844         * tests/uniconv/test-u32-conv-to-enc.c: New file.
44845
44846         * modules/uniconv/u16-conv-to-enc: New file.
44847         * lib/uniconv/u16-conv-to-enc.c: New file.
44848         * lib/uniconv/u-conv-to-enc.h: New file.
44849         * modules/uniconv/u16-conv-to-enc-tests: New file.
44850         * tests/uniconv/test-u16-conv-to-enc.c: New file.
44851
44852         * modules/uniconv/u8-conv-to-enc: New file.
44853         * lib/uniconv/u8-conv-to-enc.c: New file.
44854         * modules/uniconv/u8-conv-to-enc-tests: New file.
44855         * tests/uniconv/test-u8-conv-to-enc.c: New file.
44856
44857         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44858         u32_conv_to_encoding): New declarations.
44859
44860 2007-06-09  Bruno Haible  <bruno@clisp.org>
44861
44862         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
44863
44864 2007-06-09  Bruno Haible  <bruno@clisp.org>
44865
44866         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
44867         * modules/malloca: Renamed from modules/allocsa, updated.
44868         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
44869         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
44870         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
44871         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
44872         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
44873         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
44874         * modules/xmalloca: Renamed from modules/xallocsa, updated.
44875         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
44876         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
44877         * modules/c-strcasestr (Depends-on): Update.
44878         * lib/c-strcasestr.c: Update.
44879         * modules/c-strstr (Depends-on): Update.
44880         * lib/c-strstr.c: Update.
44881         * modules/canonicalize-lgpl (Depends-on): Update.
44882         * lib/canonicalize-lgpl.c: Update.
44883         * modules/clean-temp (Depends-on): Update.
44884         * lib/clean-temp.c: Update.
44885         * modules/csharpcomp (Depends-on): Update.
44886         * lib/csharpcomp.c: Update.
44887         * modules/csharpexec (Depends-on): Update.
44888         * lib/csharpexec.c: Update.
44889         * modules/javacomp (Depends-on): Update.
44890         * lib/javacomp.c: Update.
44891         * modules/javaexec (Depends-on): Update.
44892         * lib/javaexec.c: Update.
44893         * modules/mbscasestr (Depends-on): Update.
44894         * lib/mbscasestr.c: Update.
44895         * modules/mbsstr (Depends-on): Update.
44896         * lib/mbsstr.c: Update.
44897         * modules/setenv (Depends-on): Update.
44898         * lib/setenv.c: Update.
44899         * modules/strcasestr (Depends-on): Update.
44900         * lib/strcasestr.c: Update.
44901         * modules/striconveha (Depends-on): Update.
44902         * lib/striconveha.c: Update.
44903         * modules/relocatable-prog-wrapper (Files): Update.
44904         * lib/relocwrapper.c: Update.
44905         * build-aux/install-reloc: Update.
44906         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
44907
44908 2007-06-08  Bruno Haible  <bruno@clisp.org>
44909
44910         Port to uClibc.
44911         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
44912         * lib/fpurge.c (fpurge): Likewise.
44913         * lib/freading.c (freading): Likewise.
44914         * lib/fseeko.c (rpl_fseeko): Likewise.
44915         * lib/fseterr.c (fseterr): Likewise.
44916         * lib/fwriting.c (fwriting): Likewise.
44917         * tests/test-fflush.c (main): Avoid a failure on uClibc.
44918
44919 2007-06-08  Bruno Haible  <bruno@clisp.org>
44920
44921         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
44922         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
44923         * modules/gettext (Files): Add m4/intlmacosx.m4.
44924
44925 2007-06-07  Bruno Haible  <bruno@clisp.org>
44926
44927         * modules/localename-tests: New file.
44928         * tests/test-localename.c: New file.
44929
44930         New module 'localename'.
44931         * lib/localename.h: New file.
44932         * lib/localename.c: New file, from GNU gettext.
44933         * m4/localename.m4: New file.
44934         * modules/localename: New file.
44935
44936 2007-06-07  Bruno Haible  <bruno@clisp.org>
44937
44938         Work around the lack of <wchar.h> on some builds of uClibc.
44939         * doc/headers/wchar.texi: Update.
44940         * lib/wchar_.h: Include <wchar.h> only if it exists.
44941         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
44942         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
44943         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
44944         doesn't exist.
44945         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
44946         * modules/mbfile (Depends-on): Add wchar.
44947         * modules/mbiter (Depends-on): Likewise.
44948         * modules/mbuiter (Depends-on): Likewise.
44949         Reported by Simon Josefsson.
44950
44951 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44952
44953         Work around problem reported by Steven M. Schweda in
44954         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
44955         Tru64 5.1B with the Compaq compiler environment installed declares
44956         an 'isblank' function but does not define it in the C library.
44957         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
44958         * lib/regex_internal.h (isblank): Likewise.
44959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
44960         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44961
44962 2007-06-05  Bruno Haible  <bruno@clisp.org>
44963
44964         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
44965         ia64.
44966         * modules/printf-safe: New file.
44967         * modules/fprintf-posix (Depends-on): Add printf-safe.
44968         * modules/printf-posix (Depends-on): Likewise.
44969         * modules/snprintf-posix (Depends-on): Likewise.
44970         * modules/sprintf-posix (Depends-on): Likewise.
44971         * modules/vasnprintf-posix (Depends-on): Likewise.
44972         * modules/vasprintf-posix (Depends-on): Likewise.
44973         * modules/vfprintf-posix (Depends-on): Likewise.
44974         * modules/vprintf-posix (Depends-on): Likewise.
44975         * modules/vsnprintf-posix (Depends-on): Likewise.
44976         * modules/vsprintf-posix (Depends-on): Likewise.
44977         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44978         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
44979         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
44980         "no" on i386, x86_64, ia64.
44981         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
44982         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44983         on i386, x86_64, ia64.
44984         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
44985         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44986         on i386, x86_64, ia64.
44987         * tests/test-vasnprintf-posix.c: Include float.h.
44988         (LDBL80_WORDS): New macro.
44989         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44990         on i386, x86_64, ia64.
44991         * tests/test-vasprintf-posix.c: Include float.h.
44992         (LDBL80_WORDS): New macro.
44993         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44994         on i386, x86_64, ia64.
44995         * tests/test-snprintf-posix.c: Include float.h.
44996         * tests/test-sprintf-posix.c: Likewise.
44997         * tests/test-vsnprintf-posix.c: Likewise.
44998         * tests/test-vsprintf-posix.c: Likewise.
44999
45000 2007-06-05  Bruno Haible  <bruno@clisp.org>
45001
45002         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
45003         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
45004         non-IEEE numbers on i386, x86_64, ia64.
45005         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
45006         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
45007         * tests/test-isnanl.h: Include float.h.
45008         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
45009
45010 2007-06-05  Bruno Haible  <bruno@clisp.org>
45011
45012         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
45013         also the %a / %A. Handle the %a / %A code before this extra handling.
45014
45015 2007-06-05  Bruno Haible  <bruno@clisp.org>
45016
45017         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
45018         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
45019
45020 2007-06-05  Bruno Haible  <bruno@clisp.org>
45021
45022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
45023         typo in variable name.
45024
45025 2007-06-05  Eric Blake  <ebb9@byu.net>
45026
45027         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
45028         Reported by Simon Josefsson.
45029
45030 2007-06-04  Bruno Haible  <bruno@clisp.org>
45031
45032         Avoid test failures on some PowerPC platforms.
45033         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
45034         Define differently for PowerPC.
45035         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
45036         Reported by Gary V. Vaughan <gary@gnu.org>.
45037
45038 2007-06-02  Bruno Haible  <bruno@clisp.org>
45039
45040         Fix test-stdint failure on FreeBSD/ia64.
45041         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
45042         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
45043         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
45044         * doc/headers/stdint.texi: Update.
45045
45046 2007-06-01  Bruno Haible  <bruno@clisp.org>
45047
45048         * tests/test-binary-io.c (main): Pass a third argument to open().
45049         Reported by Gary V. Vaughan <gary@gnu.org>.
45050
45051 2007-06-01  Bruno Haible  <bruno@clisp.org>
45052
45053         * doc/functions/frexpl.texi: Update for mingw.
45054
45055 2007-06-01  Bruno Haible  <bruno@clisp.org>
45056
45057         * tests/test-lseek.c (main): Disable test of errno for invalid third
45058         argument.
45059         * doc/functions/lseek.texi: Update.
45060         Reported by Gary V. Vaughan <gary@gnu.org>.
45061
45062 2007-05-28  Bruno Haible  <bruno@clisp.org>
45063
45064         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
45065
45066 2007-05-31  Eric Blake  <ebb9@byu.net>
45067
45068         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
45069         cross compiling.
45070
45071 2007-05-30  Eric Blake  <ebb9@byu.net>
45072         and Bruno Haible  <bruno@clisp.org>
45073
45074         Work around mingw test failures exposed by m4-1.4.9b.
45075         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
45076         * tests/test-unistd.c: Disable uid_t and git_t tests for the
45077         moment.
45078
45079 2007-05-30  Bruno Haible  <bruno@clisp.org>
45080
45081         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
45082         assuming that they are closed. Needed on HP-UX 11.
45083
45084 2007-05-29  Bruno Haible  <bruno@clisp.org>
45085
45086         Fix a problem with #include_next.
45087         * lib/dirent_.h: Split the double-inclusion guard.
45088         * lib/fcntl_.h: Likewise.
45089         * lib/float_.h: Likewise.
45090         * lib/iconv_.h: Likewise.
45091         * lib/inttypes_.h: Likewise.
45092         * lib/locale_.h: Likewise.
45093         * lib/math_.h: Likewise.
45094         * lib/netinet_in_.h: Likewise.
45095         * lib/search_.h: Likewise.
45096         * lib/signal_.h: Likewise.
45097         * lib/stdint_.h: Likewise.
45098         * lib/stdio_.h: Likewise.
45099         * lib/stdlib_.h: Likewise.
45100         * lib/string_.h: Likewise.
45101         * lib/sys_select_.h: Likewise.
45102         * lib/sys_socket_.h: Likewise.
45103         * lib/sys_stat_.h: Likewise.
45104         * lib/sys_time_.h: Likewise.
45105         * lib/sysexits_.h: Likewise.
45106         * lib/time_.h: Likewise.
45107         * lib/unistd_.h: Likewise.
45108         * lib/wchar_.h: Likewise.
45109         * lib/wctype_.h: Likewise.
45110
45111 2007-05-29  Bruno Haible  <bruno@clisp.org>
45112
45113         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
45114         for the moment.
45115
45116 2007-05-29  Bruno Haible  <bruno@clisp.org>
45117
45118         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
45119         invocation.
45120         Reported by Eric Blake.
45121
45122 2007-05-29  Bruno Haible  <bruno@clisp.org>
45123
45124         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
45125         compiling case.
45126
45127 2007-05-29  Eric Blake  <ebb9@byu.net>
45128             Bruno Haible  <bruno@clisp.org>
45129
45130         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
45131         cross compiles.
45132
45133 2007-05-28  Eric Blake  <ebb9@byu.net>
45134
45135         * modules/closein-tests (test_closein_LDADD): Support test on
45136         cygwin with libtool.
45137
45138 2007-05-28  Bruno Haible  <bruno@clisp.org>
45139
45140         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
45141         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45142         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45143         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45144         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45145         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45146         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45147         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45148         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45149
45150 2007-05-28  Eric Blake  <ebb9@byu.net>
45151
45152         Unconditionally include <config.h> in unit tests.
45153         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
45154         * tests/test-allocsa.c, tests/test-arcfour.c,
45155         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
45156         tests/test-array_list.c, tests/test-array_oset.c,
45157         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
45158         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
45159         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
45160         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
45161         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
45162         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
45163         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
45164         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
45165         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
45166         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
45167         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
45168         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
45169         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
45170         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
45171         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
45172         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
45173         test-md5.c, test-memmem.c, test-printf-posix.c,
45174         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
45175         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
45176         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
45177         test-strcasestr.c, test-striconv.c, test-striconveh.c,
45178         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
45179         test-vasnprintf-posix2.c, test-vasnprintf.c,
45180         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
45181         test-vfprintf-posix.c, test-vprintf-posix.c,
45182         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
45183         test-xvasprintf.c: Likewise.
45184
45185 2007-05-28  Bruno Haible  <bruno@clisp.org>
45186
45187         * gnulib-tool (func_import): Remember the --with-tests command-line
45188         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
45189         Reported by Eric Blake.
45190
45191 2007-05-28  Bruno Haible  <bruno@clisp.org>
45192
45193         * modules/ftell-tests: New file.
45194         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
45195         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
45196
45197         * lib/ftell.c: New file.
45198         * modules/ftell: New file.
45199         * m4/ftell.m4: New file.
45200         * doc/functions/ftell.texi: Update.
45201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
45202         REPLACE_FTELL.
45203         * lib/stdio_.h (rpl_ftell): New declaration.
45204         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
45205         REPLACE_FTELL.
45206
45207 2007-05-28  Eric Blake  <ebb9@byu.net>
45208
45209         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
45210
45211 2007-05-28  Bruno Haible  <bruno@clisp.org>
45212
45213         * modules/fseek-tests: New file.
45214         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
45215         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
45216
45217         * lib/fseek.c: New file.
45218         * modules/fseek: New file.
45219         * m4/fseek.m4: New file.
45220         * doc/functions/fseek.texi: Update.
45221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
45222         REPLACE_FSEEK.
45223         * lib/stdio_.h (rpl_fseek): New declaration.
45224         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
45225         REPLACE_FSEEK.
45226
45227 2007-05-28  Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/stdio_.h (fflush): More comments.
45230
45231 2007-05-28  Bruno Haible  <bruno@clisp.org>
45232
45233         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
45234         runtime test.
45235
45236 2007-05-28  Eric Blake  <ebb9@byu.net>
45237
45238         Improve lseek module.
45239         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
45240         * lib/unistd_.h (lseek): Scale back link warning message.
45241         * tests/test-lseek.c: Beef up test.
45242         * tests/test-lseek.sh: Exercise more facets of lseek.
45243         Reported by Bruno Haible.
45244
45245 2007-05-28  Bruno Haible  <bruno@clisp.org>
45246
45247         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
45248         to define.
45249
45250 2007-05-27  Bruno Haible  <bruno@clisp.org>
45251
45252         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
45253
45254 2007-05-27  Bruno Haible  <bruno@clisp.org>
45255
45256         * modules/openmp: New file.
45257         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
45258         Noah Misch.
45259
45260 2007-05-26  Bruno Haible  <bruno@clisp.org>
45261
45262         * modules/chdir-long (Depends-on): Add fchdir.
45263         * modules/chdir-safer (Depends-on): Likewise.
45264         * modules/fts (Depends-on): Likewise.
45265         * modules/fts-lgpl (Depends-on): Likewise.
45266         * modules/openat (Depends-on): Likewise.
45267         * modules/savewd (Depends-on): Likewise.
45268
45269 2007-05-24  Eric Blake  <ebb9@byu.net>
45270
45271         Fix lseek on mingw.
45272         * modules/lseek: New module.
45273         * m4/lseek.m4: New file.
45274         * lib/lseek.c: New file.
45275         * modules/lseek-tests: New file.
45276         * tests/test-lseek.c: New file.
45277         * tests/test-lseek.sh: New file.
45278         * MODULES.html.sh: Document lseek module.
45279         * modules/fflush (Depends-on): Add lseek, fseeko.
45280         * modules/fseeko (Depends-on): Likewise.
45281         * modules/ftello (Depends-on): Likewise.
45282         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
45283         broken.
45284         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
45285         broken.
45286         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
45287         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
45288         * lib/ftello.c (rpl_ftello): Likewise.
45289         * tests/test-fseeko.c (main): Test this.
45290         * tests/test-fseeko.sh: Likewise.
45291         * tests/test-ftello.c (main): Likewise.
45292         * tests/test-ftello.sh: Likewise.
45293         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
45294         implies replacing fseek.
45295         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
45296         HAVE_FTELLO.
45297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
45298         * modules/unistd (Makefile.am): Likewise.
45299         * lib/unistd_.h (lseek): Declare a replacement.
45300         * doc/functions/lseek.texi (lseek): Document this fix.
45301         * doc/functions/fseek.texi (fseek): Likewise.
45302         * doc/functions/ftell.texi (ftell): Likewise.
45303
45304 2007-05-24  Bruno Haible  <bruno@clisp.org>
45305
45306         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
45307         in the printed representation of a NaN.
45308         * tests/test-vasprintf-posix.c (test_function): Likewise.
45309         * tests/test-snprintf-posix.h (test_function): Likewise.
45310         * tests/test-sprintf-posix.h (test_function): Likewise.
45311         Reported by Eric Blake.
45312
45313 2007-05-23  Eric Blake  <ebb9@byu.net>
45314
45315         Fix fseeko/ftello on cygwin 1.5.24.
45316         * doc/functions/fseeko.texi (fseeko): Document the fix.
45317         * doc/functions/ftello.texi (ftello): Document the fix.
45318         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
45319         * doc/functions/stdout.text (stdout): New file.
45320         * doc/functions/stderr.text (stderr): New file.
45321         * doc/gnulib.texi (Function Substitutes): Use new files.
45322         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
45323         prior to 1.7.0.
45324         * tests/test-ftello.c (main): Likewise for ftello.
45325         * tests/test-fseeko.sh: New file.
45326         * tests/test-ftello.sh: New file.
45327         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
45328         with seekable stdin.
45329         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
45330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
45331         (gl_REPLACE_FSEEKO): New macro.
45332         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
45333         * modules/fseeko (Files): Distribute fseeko.c.
45334         * modules/ftello (Files): Distribute ftello.c.
45335         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
45336         mode.
45337         * lib/ftello.c (rpl_ftello): New file.
45338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
45339         fseeko, ftello.
45340         (gl_STDIN_LARGE_OFFSET): New macro.
45341         * modules/stdio (Makefile.am): Perform the replacement.
45342         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
45343
45344 2007-05-23  Bruno Haible  <bruno@clisp.org>
45345
45346         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
45347         GNULIB_POSIXCHECK is defined.
45348
45349 2007-05-21  Bruno Haible  <bruno@clisp.org>
45350
45351         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
45352         Check also the output for NaN arguments. When cross-compiling, guess
45353         no on IRIX.
45354         * lib/vasnprintf.c: Update comments.
45355         * tests/test-vasnprintf-posix.c (strisnan): New function.
45356         (test_function): Use it.
45357         * tests/test-vasprintf-posix.c (strisnan): New function.
45358         (test_function): Use it.
45359         * tests/test-snprintf-posix.h (strisnan): New function.
45360         (test_function): Use it.
45361         * tests/test-sprintf-posix.h (strisnan): New function.
45362         (test_function): Use it.
45363         Reported by Eric Blake.
45364
45365 2007-05-20  Bruno Haible  <bruno@clisp.org>
45366
45367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
45368         numbers that fails on BeOS.
45369         * doc/functions/frexpl.texi: Update.
45370
45371 2007-05-20  Jim Meyering  <jim@meyering.net>
45372
45373         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
45374         forced upon us by glibc-2.6.
45375
45376 2007-05-20  Bruno Haible  <bruno@clisp.org>
45377
45378         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
45379         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
45380         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
45381         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
45382         NEED_PRINTF_INFINITE.
45383         (is_infinitel): New function.
45384         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
45385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
45386         gl_PREREQ_VASNPRINTF_INFINITE.
45387         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
45388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45389         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
45390         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
45391         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
45392         gl_PREREQ_VASNPRINTF_INFINITE.
45393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45400         * doc/functions/fprintf.texi: Update.
45401         * doc/functions/printf.texi: Update.
45402         * doc/functions/snprintf.texi: Update.
45403         * doc/functions/sprintf.texi: Update.
45404         * doc/functions/vfprintf.texi: Update.
45405         * doc/functions/vprintf.texi: Update.
45406         * doc/functions/vsnprintf.texi: Update.
45407         * doc/functions/vsprintf.texi: Update.
45408
45409 2007-05-20  Bruno Haible  <bruno@clisp.org>
45410
45411         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
45412         was not found in libc.
45413         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45414
45415 2007-05-20  Bruno Haible  <bruno@clisp.org>
45416
45417         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45418         printed as "-nan" instead of "nan".
45419         * tests/test-vasprintf-posix.c (test_function): Likewise.
45420         * tests/test-snprintf-posix.h (test_function): Likewise.
45421         * tests/test-sprintf-posix.h (test_function): Likewise.
45422         Needed for HP-UX 11.
45423
45424 2007-05-20  Jim Meyering  <jim@meyering.net>
45425
45426         Fix buggy test for the fchownat-deref bug.
45427         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
45428         symlink required for the run-test.  Without it, this test would
45429         always declare that fchownat doesn't work, and client code would
45430         unnecessarily use the replacement function with fixed libc.
45431         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
45432         Reported by Greg Schafer.
45433
45434 2007-05-19  Bruno Haible  <bruno@clisp.org>
45435
45436         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
45437         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
45438         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
45439         Needed for IRIX 6.5 and Solaris 2.5.1.
45440
45441 2007-05-19  Bruno Haible  <bruno@clisp.org>
45442
45443         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
45444         (test_function): Skip tests involving -0.0 on platforms where
45445         -0.0 = 0.0.
45446         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
45447         (test_function): Skip tests involving -0.0 on platforms where
45448         -0.0 = 0.0.
45449         * tests/test-snprintf-posix.h (have_minus_zero): New function.
45450         (test_function): Skip tests involving -0.0 on platforms where
45451         -0.0 = 0.0.
45452         * tests/test-sprintf-posix.h (have_minus_zero): New function.
45453         (test_function): Skip tests involving -0.0 on platforms where
45454         -0.0 = 0.0.
45455         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
45456         tests.
45457         * tests/test-printf-posix.h (test_function): Likewise.
45458         * tests/test-printf-posix.output: Remove all -0.0 related results.
45459         Needed for IRIX 6.5.
45460
45461 2007-05-19  Bruno Haible  <bruno@clisp.org>
45462
45463         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45464         printed as "nan0x7fffffff" instead of "nan".
45465         * tests/test-vasprintf-posix.c (test_function): Likewise.
45466         * tests/test-snprintf-posix.h (test_function): Likewise.
45467         * tests/test-sprintf-posix.h (test_function): Likewise.
45468         * tests/test-fprintf-posix.h (NaN): Remove macro.
45469         (test_function): Remove all NaN related tests.
45470         * tests/test-printf-posix.h (NaN): Remove macro.
45471         (test_function): Remove all NaN related tests.
45472         * tests/test-printf-posix.output: Remove all NaN related results.
45473         Needed for IRIX 6.5.
45474
45475 2007-05-19  Bruno Haible  <bruno@clisp.org>
45476
45477         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
45478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45479
45480 2007-05-19  Bruno Haible  <bruno@clisp.org>
45481
45482         * lib/float_.h: New file.
45483         * m4/float_h.m4: New file.
45484         * modules/float: New file.
45485         * modules/isnanl (Dependencies): Add float.
45486         * modules/isnanl-nolibm (Dependencies): Likewise.
45487         * modules/mathl (Dependencies): Likewise.
45488         * modules/printf-frexpl (Dependencies): Likewise.
45489         * modules/signbit (Dependencies): Likewise.
45490         * modules/vasnprintf (Dependencies): Likewise.
45491         * doc/headers/float.texi: Update.
45492
45493 2007-05-19  Jim Meyering  <jim@meyering.net>
45494
45495         * lib/utimens.c (gl_futimens): Rename from futimens,
45496         now that glibc-2.6 declares futimens.
45497         * lib/utimens.h: Likewise.
45498
45499 2007-05-19  Bruno Haible  <bruno@clisp.org>
45500
45501         Avoid test failures on mingw.
45502         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
45503         * tests/test-printf-posix.sh: Likewise.
45504         * tests/test-vfprintf-posix.sh: Likewise.
45505         * tests/test-vprintf-posix.sh: Likewise.
45506
45507 2007-05-19  Bruno Haible  <bruno@clisp.org>
45508
45509         Fix *printf result for NaN, Inf, -0.0 on mingw.
45510         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
45511         * lib/vasnprintf.c: Include math.h and isnan.h.
45512         (is_infinite_or_zero): New function.
45513         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
45514         values in the %f, %F, %e, %E, %g, %G directives.
45515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
45516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45517         gl_PRINTF_INFINITE and test its result. Invoke
45518         gl_PREREQ_VASNPRINTF_INFINITE.
45519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45526         * doc/functions/fprintf.texi: Update.
45527         * doc/functions/printf.texi: Update.
45528         * doc/functions/snprintf.texi: Update.
45529         * doc/functions/sprintf.texi: Update.
45530         * doc/functions/vfprintf.texi: Update.
45531         * doc/functions/vprintf.texi: Update.
45532         * doc/functions/vsnprintf.texi: Update.
45533         * doc/functions/vsprintf.texi: Update.
45534
45535 2007-05-19  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
45538         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
45539         Instead of multiplying with 10^k, set extra_zeroes to k.
45540         (scale10_round_long_double): Remove function.
45541
45542 2007-05-18  Bruno Haible  <bruno@clisp.org>
45543
45544         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
45545         introduced on 2007-05-06.
45546
45547 2007-05-18  Bruno Haible  <bruno@clisp.org>
45548
45549         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
45550         %g directives.
45551         * tests/test-vasprintf-posix.c (test_function): Likewise.
45552         * tests/test-snprintf-posix.h (test_function): Likewise.
45553         * tests/test-sprintf-posix.h (test_function): Likewise.
45554
45555 2007-05-18  Bruno Haible  <bruno@clisp.org>
45556
45557         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
45558         (strmatch): New function.
45559         (test_function): Test the %f directive on numbers of various exponents.
45560         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
45561         (strmatch): New function.
45562         (test_function): Test the %f directive on numbers of various exponents.
45563         * tests/test-snprintf-posix.h (strmatch): New function.
45564         (test_function): Test the %f directive on numbers of various exponents.
45565         * tests/test-sprintf-posix.h (strmatch): New function.
45566         (test_function): Test the %f directive on numbers of various exponents.
45567         * tests/test-snprintf-posix.c (SIZEOF): New macro.
45568         * tests/test-sprintf-posix.c (SIZEOF): New macro.
45569         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
45570         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
45571
45572 2007-05-18  Bruno Haible  <bruno@clisp.org>
45573
45574         Add support for 'long double' number output.
45575         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
45576         * lib/vasnprintf.c: Include math.h and float+.h.
45577         (mp_limb_t): New type.
45578         (GMP_LIMB_BITS): New macro.
45579         (mp_twolimb_t): New type.
45580         (GMP_TWOLIMB_BITS): New macro.
45581         (mpn_t): New type.
45582         (multiply, divide, convert_to_decimal, decode_long_double,
45583         scale10_round_long_double, scale10_round_decimal_long_double,
45584         floorlog10l): New functions.
45585         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
45586         for the %f, %F, %e, %E, %g, %G directives.
45587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
45588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45589         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
45590         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
45591         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45597         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45598         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
45599         * modules/snprintf-posix (Depends-on): Likewise.
45600         * modules/sprintf-posix (Depends-on): Likewise.
45601         * modules/vasnprintf-posix (Depends-on): Likewise.
45602         * modules/vasprintf-posix (Depends-on): Likewise.
45603         * modules/vfprintf-posix (Depends-on): Likewise.
45604         * modules/vsnprintf-posix (Depends-on): Likewise.
45605         * modules/vsprintf-posix (Depends-on): Likewise.
45606         * modules/vasnprintf (Files): Add lib/float+.h.
45607         * doc/functions/fprintf.texi: Update.
45608         * doc/functions/printf.texi: Update.
45609         * doc/functions/snprintf.texi: Update.
45610         * doc/functions/sprintf.texi: Update.
45611         * doc/functions/vfprintf.texi: Update.
45612         * doc/functions/vprintf.texi: Update.
45613         * doc/functions/vsnprintf.texi: Update.
45614         * doc/functions/vsprintf.texi: Update.
45615
45616 2007-05-18  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
45619
45620 2007-05-18  Bruno Haible  <bruno@clisp.org>
45621
45622         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
45623         for printing 64-bit integers. Needed for mingw.
45624
45625 2007-05-18  Bruno Haible  <bruno@clisp.org>
45626
45627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45628         gl_FUNC_FREXPL_WORKS.
45629         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
45630
45631 2007-05-18  Bruno Haible  <bruno@clisp.org>
45632
45633         * modules/frexpl-nolibm-tests: New file.
45634
45635         * modules/frexpl-nolibm: New file.
45636         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
45637
45638 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45639
45640         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
45641         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45642         GCC 4.2, which otherwise issues a lot of warnings.
45643         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
45644         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
45645         Likewise.
45646         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
45647         * modules/iconv_open (iconv.h): Likewise.
45648         * modules/locale (locale.h): Likewise.
45649         * modules/netinet_in (netinet/in.h): Likewise.
45650         * modules/sys_select (sys_select.h): Likewise.
45651         * modules/sys_socket (sys/socket.h): Likewise.
45652         * modules/sys_stat (sys/stat.h): Likewise.
45653         * modules/sysexits (sysexits.h): Likewise.
45654         * modules/unistd (unistd.h): Likewise.
45655
45656 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45657
45658         * modules/closein-tests (Makefile.am): Distribute
45659         `test-closein.sh'.
45660
45661 2007-05-17  Bruno Haible  <bruno@clisp.org>
45662
45663         * tests/test-printf-posix.output: Renamed from
45664         tests/test-fprintf-posix.out.
45665         * modules/fprintf-posix-tests: Update.
45666         * modules/printf-posix-tests: Update.
45667         * modules/vfprintf-posix-tests: Update.
45668         * modules/vprintf-posix-tests: Update.
45669         * tests/test-fprintf-posix.sh: Update.
45670         * tests/test-printf-posix.sh: Update.
45671         * tests/test-vfprintf-posix.sh: Update.
45672         * tests/test-vprintf-posix.sh: Update.
45673         Reported by Ralf Wildenhues.
45674
45675 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45676
45677         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
45678         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45679         GCC 4.2, which otherwise issues a lot of warnings.
45680         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
45681         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
45682         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
45683         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
45684         it should no longer be needed.
45685         * lib/string_.h: Likewise.
45686         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
45687         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
45688         * modules/inttypes (inttypes.h): Likewise.
45689         * modules/math (math.h): Likewise.
45690         * modules/search (search.h): Likewise.
45691         * modules/signal (signal.h): Likewise.
45692         * modules/stdint (stdint.h): Likewise.
45693         * modules/stdio (stdio.h): Likewise.
45694         * modules/stdlib (stdlib.h): Likewise.
45695         * modules/string (string.h): Likewise.
45696         * modules/sys_time (sys/time.h): Likewise.
45697         * modules/time (time.h): Likewise.
45698         * modules/wchar (wchar.h): Likewise.
45699         * modules/wctype (wtype.h): Likewise.
45700
45701 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45702
45703         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
45704
45705 2007-05-13  Bruno Haible  <bruno@clisp.org>
45706
45707         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
45708         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45709         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
45710         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45711         (gl_PREREQ_STRTOK_R): Don't require it here.
45712
45713 2007-05-13  Bruno Haible  <bruno@clisp.org>
45714
45715         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
45716         when used in C++ mode.
45717
45718 2007-05-12  Bruno Haible  <bruno@clisp.org>
45719
45720         * lib/linebuffer.h: Tweak doc.
45721         * lib/linebuffer.c: Likewise.
45722
45723 2007-05-12  James Youngman  <jay@gnu.org>
45724
45725         * lib/linebuffer.c (readlinebuffer_delim): New function,
45726         like readlinebuffer, but use a caller-specified delimiter.
45727         (readlinebuffer): Just call readlinebuffer_delim with '\n'
45728         as the delimiter.
45729         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
45730
45731 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45732
45733         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
45734         * modules/openat (Files): Remove openat-die.c.
45735         (Depends-on): Add openat-die.
45736         * modules/openat-die: New module.
45737
45738 2007-05-06  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
45741         Update with info about Cygwin.
45742         * doc/functions/fprintf.texi: Update.
45743         * doc/functions/printf.texi: Update.
45744         * doc/functions/snprintf.texi: Update.
45745         * doc/functions/sprintf.texi: Update.
45746         * doc/functions/vfprintf.texi: Update.
45747         * doc/functions/vprintf.texi: Update.
45748         * doc/functions/vsnprintf.texi: Update.
45749         * doc/functions/vsprintf.texi: Update.
45750         Reported by Eric Blake.
45751
45752 2007-05-06  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
45755         padding ourselves for the floating-point directives.
45756         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
45757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
45758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45759         gl_PRINTF_FLAG_ZERO and test its result. Invoke
45760         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
45761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45768         * tests/test-snprintf-posix.h (test_function): Also check the width
45769         and some flags in the %f directive.
45770         * tests/test-sprintf-posix.h (test_function): Likewise.
45771         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45772         * tests/test-vasprintf-posix.c (test_function): Likewise.
45773         * doc/functions/fprintf.texi: Update.
45774         * doc/functions/printf.texi: Update.
45775         * doc/functions/snprintf.texi: Update.
45776         * doc/functions/sprintf.texi: Update.
45777         * doc/functions/vfprintf.texi: Update.
45778         * doc/functions/vprintf.texi: Update.
45779         * doc/functions/vsnprintf.texi: Update.
45780         * doc/functions/vsprintf.texi: Update.
45781
45782 2007-05-06  Bruno Haible  <bruno@clisp.org>
45783
45784         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
45785         pass the ' flag character to sprintf or snprintf.
45786         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
45787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
45788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45789         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
45790         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
45791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45798         * tests/test-snprintf-posix.h (test_function): Also check the grouping
45799         flag.
45800         * tests/test-sprintf-posix.h (test_function): Likewise.
45801         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45802         * tests/test-vasprintf-posix.c (test_function): Likewise.
45803         * doc/functions/fprintf.texi: Update.
45804         * doc/functions/printf.texi: Update.
45805         * doc/functions/snprintf.texi: Update.
45806         * doc/functions/sprintf.texi: Update.
45807         * doc/functions/vfprintf.texi: Update.
45808         * doc/functions/vprintf.texi: Update.
45809         * doc/functions/vsnprintf.texi: Update.
45810         * doc/functions/vsprintf.texi: Update.
45811
45812 2007-05-01  Bruno Haible  <bruno@clisp.org>
45813
45814         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
45815
45816 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
45817
45818         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
45819         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
45820
45821 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45822
45823         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
45824         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
45825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
45826
45827 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
45828
45829         * lib/argp-help.c (struct hol_entry): New member `ord'.
45830         (HOL_ENTRY_PTRCMP): Use ord for comparison
45831         (hol_sort): Initialize ord.
45832
45833 2007-05-01  Bruno Haible  <bruno@clisp.org>
45834
45835         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
45836         Reported by Eric Blake.
45837         * doc/gnulib.texi (Function Substitutes): Update.
45838
45839 2007-05-01  Bruno Haible  <bruno@clisp.org>
45840
45841         * doc/functions.texi: Remove file, now redundant through
45842         doc/functions/*.texi.
45843
45844 2007-05-01  Bruno Haible  <bruno@clisp.org>
45845
45846         * modules/argp (Depends-on): Add sleep.
45847
45848 2007-05-01  Bruno Haible  <bruno@clisp.org>
45849
45850         * modules/sleep-tests: New file.
45851         * tests/test-sleep.c: New file.
45852
45853         * modules/sleep: New file.
45854         * lib/sleep.c: New file.
45855         * m4/sleep.m4: New file.
45856         * lib/unistd_.h (sleep): New declaration.
45857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
45858         HAVE_SLEEP.
45859         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
45860         * doc/functions/sleep.texi: Document the sleep module.
45861
45862 2007-05-01  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/sigprocmask.h: Remove file.
45865         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
45866         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
45867         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
45868         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
45869         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45870         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
45871         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
45872         HAVE_SIGSET_T as a shell variable.
45873         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
45874         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
45875         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
45876         (Depends-on): Add signal. Remove verify.
45877         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
45878         (Include): Mention <signal.h> instead of sigprocmask.h.
45879         * NEWS: Mention the change.
45880         * lib/fatal-signal.c: Don't include sigprocmask.h.
45881
45882 2007-05-01  Bruno Haible  <bruno@clisp.org>
45883
45884         * modules/signal: New file.
45885         * lib/signal_.h: New file.
45886         * m4/signal_h.m4: New file.
45887
45888 2007-05-01  Bruno Haible  <bruno@clisp.org>
45889
45890         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
45891         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
45892         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
45893         HAVE_WCTYPE_CTMP_BUG into wctype.h.
45894
45895 2007-05-01  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
45898         configure time.
45899         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
45900         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
45901         * modules/sys_stat (Makefile.am): Substitute their values into
45902         sys/stat.h.
45903
45904 2007-05-01  Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
45907         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
45908         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
45909
45910 2007-05-01  Bruno Haible  <bruno@clisp.org>
45911
45912         * doc/header/assert.texi: Undo last change: don't mention the gnulib
45913         'assert' module here.
45914
45915 2007-05-01  Bruno Haible  <bruno@clisp.org>
45916
45917         * doc/functions/*.texi: New files.
45918         * doc/functions/google-ranking.txt: New file.
45919         * doc/gnulib.texi (Function Substitutes): New chapter.
45920         (ctime, inet_ntoa): Remove sections.
45921         * doc/ctime.texi: Remove file.
45922         * doc/inet_ntoa.texi: Remove file.
45923         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
45924         dependencies.
45925         (%.info): New rule, specifying a --reference-limit.
45926
45927 2007-05-01  Bruno Haible  <bruno@clisp.org>
45928
45929         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
45930
45931 2007-05-01  Bruno Haible  <bruno@clisp.org>
45932
45933         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
45934         the portability of 'mkdir' to mingw systems.
45935
45936 2007-05-01  Bruno Haible  <bruno@clisp.org>
45937
45938         * doc/headers/google-ranking.txt: New file.
45939
45940 2007-04-30  Eric Blake  <ebb9@byu.net>
45941
45942         Prefer fseeko to fseek.
45943         * modules/getpass (Depends-on): Add fseeko.
45944         * lib/getpass.c (getpass): Use fseeko, not fseek.
45945
45946 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
45947
45948         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
45949         assumes the sorting is stable, while most qsort implementations
45950         are not.  Use argument addresses to ensure they never compare as
45951         equal.
45952
45953         * tests/test-argp-2.sh (usage-indent test): Fix output
45954         (func_compare): Restore diff options
45955         * tests/test-argp.c: Restore #include "progname.h"
45956
45957 2007-04-29  Bruno Haible  <bruno@clisp.org>
45958
45959         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
45960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45961         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
45962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45963         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
45964         (configure.ac): Define CHECK_SNPRINTF_POSIX.
45965         (TESTS, check_PROGRAMS): Add test-snprintf.
45966         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
45967         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
45968         (TESTS, check_PROGRAMS): Add test-vsnprintf.
45969         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
45970         assertions that fail on HP-UX, OSF/1, or IRIX.
45971         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
45972
45973 2007-04-29  Bruno Haible  <bruno@clisp.org>
45974
45975         * MODULES.html.sh (posix_functions): Remove 'contents'.
45976
45977 2007-04-29  Karl Berry  <karl@gnu.org>
45978
45979         * config/srclist.txt (gendocs_template_min): new entry.
45980
45981 2007-04-29  Bruno Haible  <bruno@clisp.org>
45982
45983         Work around fpurge bug on BSD systems.
45984         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
45985         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
45986         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
45987         fpurge to rpl_fpurge if the system already has this function.
45988         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
45989         the case where the system already has this function. Correct invariants
45990         on BSD systems.
45991         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
45992         BSD systems.
45993
45994 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45995
45996         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
45997         proposed by Sven Verdoolaege.
45998
45999         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
46000         options.
46001         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
46002         (usage and help tests): Update
46003
46004 2007-04-29  Bruno Haible  <bruno@clisp.org>
46005
46006         * tests/test-fflush.c (main): Use a file of size 17, not 10.
46007         Print more information in case of failure. Disable a test on BeOS.
46008
46009 2007-04-29  Bruno Haible  <bruno@clisp.org>
46010
46011         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
46012         This helps debugging on systems on which no gdb is available.
46013
46014 2007-04-29  Bruno Haible  <bruno@clisp.org>
46015
46016         * lib/freading.h: Improve comments.
46017         * lib/fwriting.h: Likewise.
46018         * tests/test-freading.c (main): Don't check freading immediately after
46019         repositioning. Needed for glibc.
46020
46021 2007-04-29  Bruno Haible  <bruno@clisp.org>
46022
46023         * lib/freading.c (freading): Trivial simplification.
46024
46025 2007-04-28  Bruno Haible  <bruno@clisp.org>
46026
46027         * tests/test-fwriting.c (main): Also test the interaction between
46028         fflush and fwriting.
46029         * modules/fwriting-tests (Depends-on): Add fflush.
46030
46031         * tests/test-freading.c (main): Also test the interaction between
46032         fflush and freading.
46033         * modules/freading-tests (Depends-on): Add fflush.
46034
46035 2007-04-28  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
46038         fseeko and ftello.
46039         Suggested by Eric Blake.
46040
46041 2007-04-28  Jim Meyering  <jim@meyering.net>
46042
46043         Avoid false-negative in gl_STDINT_H's C99 conformance test.
46044         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
46045         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
46046
46047 2007-04-27  Eric Blake  <ebb9@byu.net>
46048
46049         * doc/headers/assert.texi (assert.h): Document assert module use.
46050
46051 2007-04-27  Bruno Haible  <bruno@clisp.org>
46052
46053         * doc/headers/*.texi: New files.
46054         * doc/gnulib.texi (Header File Substitutes): New chapter.
46055         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
46056         dependencies.
46057         (standards.info ,standards.html, standards.dvi): Update dependencies.
46058         (mostlyclean, clean): New targets.
46059
46060 2007-04-27  Bruno Haible  <bruno@clisp.org>
46061
46062         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
46063         * modules/sysexits (Files, Makefile.am): Update.
46064
46065         * lib/sys_socket_.h: Renamed from lib/socket_.h.
46066         * modules/sys_socket (Files, Makefile.am): Update.
46067
46068         * lib/sys_stat_.h: Renamed from lib/stat_.h.
46069         * modules/sys_stat (Files, Makefile.am): Update.
46070
46071 2007-04-27  Eric Blake  <ebb9@byu.net>
46072
46073         * lib/freading.h: Improve comments.
46074         * lib/fwriting.h: Likewise.
46075         * lib/fflush.c: Likewise.
46076
46077         Fix closein for mingw.
46078         * modules/closein-tests: Add tests for closein.
46079         * tests/test-closein.c: New file.
46080         * tests/test-closein.sh: Likewise.
46081         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
46082         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
46083
46084 2007-04-27  Bruno Haible  <bruno@clisp.org>
46085
46086         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
46087         version is < 6.
46088         * lib/math_.h [__DECC]: Likewise.
46089         * lib/stdio_.h [__DECC]: Likewise.
46090         * lib/stdlib_.h [__DECC]: Likewise.
46091         * lib/string_.h [__DECC]: Likewise.
46092         * lib/time_.h [__DECC]: Likewise.
46093         * lib/wchar_.h [__DECC]: Likewise.
46094         * lib/wctype_.h [__DECC]: Likewise.
46095
46096 2007-04-27  Bruno Haible  <bruno@clisp.org>
46097
46098         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
46099
46100 2007-04-27  Bruno Haible  <bruno@clisp.org>
46101
46102         * lib/fflush.c: Add comments.
46103         * modules/fpurge-tests (Depends-on): Add fflush.
46104         * modules/freadable-tests (Depends-on): Likewise.
46105         * modules/fwritable-tests (Depends-on): Likewise.
46106
46107 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
46108
46109         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
46110         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
46111         Report by Bruno Haible <bruno@clisp.org>.
46112
46113 2007-04-26  Eric Blake  <ebb9@byu.net>
46114
46115         Fix fflush on mingw.
46116         * modules/fflush (Depends-on): Add freading.
46117         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
46118         but unread data.
46119
46120 2007-04-26  Eric Blake  <ebb9@byu.net>
46121         and Bruno Haible  <bruno@clisp.org>
46122
46123         Implement freading and fwriting.
46124         * lib/freading.c: New file.
46125         * lib/freading.h: Likewise.
46126         * m4/freading.m4: Likewise.
46127         * modules/freading: Likewise.
46128         * modules/freading-tests: Likewise.
46129         * tests/test-freading.c: Likewise.
46130         * lib/fwriting.c: New file.
46131         * lib/fwriting.h: Likewise.
46132         * m4/fwriting.m4: Likewise.
46133         * modules/fwriting: Likewise.
46134         * modules/fwriting-tests: Likewise.
46135         * tests/test-fwriting.c: Likewise.
46136         * MODULES.html.sh (File stream based Input/Output): Mention them.
46137
46138 2007-04-26  Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
46141         'long' when we assume it.
46142         Suggested by Eric Blake.
46143
46144 2007-04-26  Bruno Haible  <bruno@clisp.org>
46145
46146         Ensure fseeko, ftello are declared on glibc systems.
46147         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
46148         * modules/fseeko (configure.ac-early): Likewise.
46149         * modules/ftello (configure.ac-early): Likewise.
46150         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
46151         AC_FUNC_FSEEKO for this.
46152         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
46153         (gl_CHECK_FSEEKO): Remove macro.
46154
46155 2007-04-26  Bruno Haible  <bruno@clisp.org>
46156
46157         * tests/test-fflush.c (main): Also check the ftell result after
46158         fflush and fseek/fseeko.
46159         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
46160         file descriptor position cache in the stream.
46161         * lib/fseeko.c (rpl_fseeko): Likewise.
46162
46163 2007-04-26  Bruno Haible  <bruno@clisp.org>
46164
46165         * modules/fflush-tests (Depends-on): Add fseeko.
46166
46167 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
46168             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46169
46170         * lib/argz_.h: ensure error_t definition is obtained in same
46171         mechanism system argz.h would have.
46172         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
46173         argz facilities are known bad.  Err on the side of caution if
46174         cross-compiling.
46175
46176 2007-04-25  Eric Blake  <ebb9@byu.net>
46177
46178         * lib/fpurge.c (includes): Use stdlib.h for free.
46179         * tests/test-fflush.c (main): Also test fflush-fseeko.
46180
46181 2007-04-25  Bruno Haible  <bruno@clisp.org>
46182
46183         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
46184         * lib/fseeko.c: New file.
46185         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
46186         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
46187         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
46188         gl_FUNC_FSEEKO.
46189         (gl_FUNC_FSEEKO): Invoke it.
46190         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
46191         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
46192         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
46193
46194 2007-04-25  Bruno Haible  <bruno@clisp.org>
46195
46196         * modules/fflush (Depends-on): Add ftello.
46197
46198 2007-04-25  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/ftello-tests: New file.
46201         * tests/test-ftello.c: New file.
46202
46203         * modules/ftello: New file.
46204         * m4/ftello.m4: New file.
46205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
46206         HAVE_FTELLO.
46207         * lib/stdio_.h (ftello): New declaration.
46208         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
46209         HAVE_FTELLO.
46210
46211 2007-04-25  Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/fseeko-tests: New file.
46214         * tests/test-fseeko.c: New file.
46215
46216         * modules/fseeko: New file.
46217         * m4/fseeko.m4: New file.
46218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
46219         HAVE_FSEEKO.
46220         * lib/stdio_.h (fseeko): New declaration.
46221         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
46222         HAVE_FSEEKO.
46223
46224 2007-04-25  Bruno Haible  <bruno@clisp.org>
46225
46226         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
46227
46228 2007-04-25  Bruno Haible  <bruno@clisp.org>
46229
46230         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
46231         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
46232         * tests/test-unistd.c: Likewise.
46233         * tests/test-fcntl.c: Likewise.
46234
46235 2007-04-23  Eric Blake  <ebb9@byu.net>
46236
46237         * lib/fflush.c: Fix missing include.
46238         Reported by Bruno Haible.
46239
46240 2007-04-23  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
46243         Reported by Eric Blake.
46244
46245 2007-04-23  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
46248
46249 2007-04-23  Bruno Haible  <bruno@clisp.org>
46250
46251         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
46252
46253 2007-04-23  Bruno Haible  <bruno@clisp.org>
46254
46255         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
46256         Needed on HP-UX 11.
46257
46258 2007-04-16  Eric Blake  <ebb9@byu.net>
46259
46260         Make fflush rely on fpurge.
46261         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
46262         open coding all variants.
46263         * modules/fflush (Depends-on): Add fpurge and unistd.
46264         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
46265         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
46266
46267         Fix --with-tests compilation on cygwin.
46268         * modules/argmatch-tests (Makefile.am): List gnulib library first
46269         in LDADD.
46270         * modules/argp-tests (Makefile.am): Likewise.
46271         * modules/array-list-tests (Makefile.am): Likewise.
46272         * modules/array-oset-tests (Makefile.am): Likewise.
46273         * modules/avltree-list-tests (Makefile.am): Likewise.
46274         * modules/avltree-oset-tests (Makefile.am): Likewise.
46275         * modules/avltreehash-list-tests (Makefile.am): Likewise.
46276         * modules/carray-list-tests (Makefile.am): Likewise.
46277         * modules/dirname-tests (Makefile.am): Likewise.
46278         * modules/frexp-tests (Makefile.am): Likewise.
46279         * modules/isnanl-tests (Makefile.am): Likewise.
46280         * modules/linked-list-tests (Makefile.am): Likewise.
46281         * modules/linkedhash-list-tests (Makefile.am): Likewise.
46282         * modules/lock-tests (Makefile.am): Likewise.
46283         * modules/rbtree-list-tests (Makefile.am): Likewise.
46284         * modules/rbtree-oset-tests (Makefile.am): Likewise.
46285         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
46286         * modules/tls-tests (Makefile.am): Likewise.
46287         * modules/tsearch-tests (Makefile.am): Likewise.
46288         * modules/xvasprintf-tests (Makefile.am): Likewise.
46289
46290         Fix fpurge for cygwin.
46291         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
46292         value.
46293         * modules/fpurge-tests (Depends-on): Clean up trash.
46294
46295 2007-04-16  Simon Josefsson  <simon@josefsson.org>
46296
46297         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
46298
46299         * m4/autobuild.m4: Re-indent.
46300
46301 2007-04-13  Bruno Haible  <bruno@clisp.org>
46302
46303         * modules/fpurge-tests: New file.
46304         * tests/test-fpurge.c: New file.
46305
46306         * modules/fpurge: New file.
46307         * lib/fpurge.h: New file.
46308         * lib/fpurge.c: New file.
46309         * m4/fpurge.m4: New file.
46310
46311 2007-04-13  Bruno Haible  <bruno@clisp.org>
46312
46313         * modules/fbufmode-tests: New file.
46314         * tests/test-fbufmode.c: New file.
46315
46316         * modules/fbufmode: New file.
46317         * lib/fbufmode.h: New file.
46318         * lib/fbufmode.c: New file.
46319         * m4/fbufmode.m4: New file.
46320
46321 2007-04-13  Bruno Haible  <bruno@clisp.org>
46322
46323         * modules/fwritable-tests: New file.
46324         * tests/test-fwritable.c: New file.
46325
46326         * modules/fwritable: New file.
46327         * lib/fwritable.h: New file.
46328         * lib/fwritable.c: New file.
46329         * m4/fwritable.m4: New file.
46330
46331 2007-04-13  Bruno Haible  <bruno@clisp.org>
46332
46333         * modules/freadable-tests: New file.
46334         * tests/test-freadable.c: New file.
46335
46336         * modules/freadable: New file.
46337         * lib/freadable.h: New file.
46338         * lib/freadable.c: New file.
46339         * m4/freadable.m4: New file.
46340
46341 2007-04-13  Bruno Haible  <bruno@clisp.org>
46342
46343         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
46344         MOSTLYCLEANFILES.
46345
46346 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46347
46348         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
46349         gzip bootstrap.conf to avoid dragging in i18n machinery.
46350         (gnulib_tool_option): Use it.
46351
46352 2007-04-13  Bruno Haible  <bruno@clisp.org>
46353
46354         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
46355         %F directives.
46356         * tests/test-vasprintf-posix.c (test_function): Likewise.
46357         * tests/test-snprintf-posix.h (test_function): Likewise.
46358         * tests/test-sprintf-posix.h (test_function): Likewise.
46359         * tests/test-fprintf-posix.h (test_function): Likewise.
46360         * tests/test-printf-posix.h (test_function): Likewise.
46361         * tests/test-fprintf-posix.out: Likewise.
46362
46363 2007-04-13  Bruno Haible  <bruno@clisp.org>
46364
46365         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
46366         * modules/tls-tests (configure.ac): Likewise.
46367         Reported by Arto C. Nirkko <anirkko@insel.ch>.
46368
46369 2007-04-13  Bruno Haible  <bruno@clisp.org>
46370
46371         * lib/tls.c (glthread_tls_get): Fix return type.
46372         Patch by Arto C. Nirkko <anirkko@insel.ch>.
46373
46374 2007-04-12  Eric Blake  <ebb9@byu.net>
46375
46376         * modules/gettime (Depends-on): Remove gettime.
46377         Reported by Dmitry V. Levin.
46378
46379 2007-04-12  Bruno Haible  <bruno@clisp.org>
46380
46381         * modules/fflush (Include): Mention <stdio.h>.
46382         * modules/strtoimax (Include): Mention <inttypes.h>.
46383         * modules/strtoumax (Include): Likewise.
46384
46385 2007-04-12  Eric Blake  <ebb9@byu.net>
46386
46387         * .cvsignore: New file.
46388         * .gitignore: Likewise.
46389
46390 2007-04-12  Bruno Haible  <bruno@clisp.org>
46391
46392         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
46393         not before, since $(LDADD) often contains libgnu.a.
46394         * modules/striconv-tests (test_striconv_LDADD): Likewise.
46395         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
46396         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
46397         Needed on Cygwin.
46398
46399 2007-04-12  Eric Blake  <ebb9@byu.net>
46400
46401         Work around glibc's failure to flush stdin on fclose.
46402         * lib/closein.c (close_stdin): Flush stdin before closing.
46403
46404         Work around glibc's failure to reset seekable stdin on exit.
46405         * modules/closein: New module.
46406         * lib/closein.c: New file.
46407         * lib/closein.h: Likewise.
46408         * m4/closein.m4: Likewise.
46409         * MODULES.html.sh (File stream based Input/Output): Document it.
46410
46411 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46412
46413         * gnulib-tool: Rename generated 'autobuild' script to
46414         'do-autobuild' in --create-megatestdir output.
46415
46416         * doc/gnulib.texi (Build robot for gnulib): Fix.
46417
46418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46419
46420         * modules/sysexits (Depends-on): Add absolute-header.
46421
46422 2007-04-12  Eric Blake  <ebb9@byu.net>
46423
46424         No need to preserve errno on success.
46425         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
46426         Reported by Bruno Haible.
46427
46428 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46429
46430         * MODULES.html.sh (Support for maintaining and releasing
46431         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
46432
46433 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46434
46435         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
46436
46437 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46438
46439         * modules/autobuild: New module.
46440
46441         * m4/autobuild.m4: New file.
46442
46443 2007-04-11  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
46446         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
46447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
46448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
46449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
46456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
46459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
46462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
46465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
46468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
46471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46473         Reported by Eric Blake.
46474
46475 2007-04-11  Bruno Haible  <bruno@clisp.org>
46476
46477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
46478
46479 2007-04-10  Bruno Haible  <bruno@clisp.org>
46480
46481         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
46482         for NaN and Infinity. Needed on FreeBSD 6.1.
46483         * tests/test-vasnprintf-posix.c (test_function): Undo last change
46484         regarding results for "%010a" of Infinity and NaN.
46485         * tests/test-vasprintf-posix.c (test_function): Likewise.
46486         * tests/test-snprintf-posix.h (test_function): Likewise.
46487         * tests/test-sprintf-posix.h (test_function): Likewise.
46488         * tests/test-fprintf-posix.h (test_function): Likewise.
46489         * tests/test-printf-posix.h (test_function): Likewise.
46490         * tests/test-fprintf-posix.out: Likewise.
46491
46492 2007-04-10  Bruno Haible  <bruno@clisp.org>
46493
46494         * modules/locale-tests: New file.
46495         * tests/test-locale.c: New file.
46496
46497         * modules/locale: New file.
46498         * lib/locale_.h: New file.
46499         * m4/locale_h.m4: New file.
46500
46501 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
46502             Bruno Haible  <bruno@clisp.org>
46503
46504         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
46505         be determined, test for availability of the copysignf, copysign,
46506         copysignl functions.
46507         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
46508         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
46509         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
46510
46511 2007-04-09  Eric Blake  <ebb9@byu.net>
46512
46513         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
46514         * modules/stdio (Makefile.am): Support fflush.
46515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46516         * modules/fflush: New file.
46517         * lib/fflush.c: Likewise.
46518         * m4/fflush.m4: Likewise.
46519         * modules/fflush-tests: New test.
46520         * tests/test-fflush.c: Likewise.
46521         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
46522
46523 2007-04-06  Bruno Haible  <bruno@clisp.org>
46524
46525         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
46526         (VASNPRINTF): Use signbit for faster determination whether to print a
46527         minus sign.
46528         * modules/vasnprintf (Files): Remove lib/float+.h.
46529         * modules/fprintf-posix (Depends-on): Add signbit.
46530         * modules/snprintf-posix (Depends-on): Likewise.
46531         * modules/sprintf-posix (Depends-on): Likewise.
46532         * modules/vasnprintf-posix (Depends-on): Likewise.
46533         * modules/vasprintf-posix (Depends-on): Likewise.
46534         * modules/vfprintf-posix (Depends-on): Likewise.
46535         * modules/vsnprintf-posix (Depends-on): Likewise.
46536         * modules/vsprintf-posix (Depends-on): Likewise.
46537
46538 2007-04-06  Bruno Haible  <bruno@clisp.org>
46539
46540         * tests/test-frexp.c (main): Test also the sign bit of zero results.
46541         * tests/test-frexpl.c (main): Likewise.
46542         * tests/test-ldexpl.c (main): Likewise.
46543         * modules/frexp-tests (Depends-on): Add signbit.
46544         * modules/frexpl-tests (Depdends-on): Likewise.
46545         * modules/ldexpl-tests (Depdends-on): Likewise.
46546
46547 2007-04-06  Bruno Haible  <bruno@clisp.org>
46548
46549         * modules/signbit-tests: New file.
46550         * tests/test-signbit.c: New file.
46551
46552         * modules/signbit: New file.
46553         * lib/signbitf.c: New file.
46554         * lib/signbitd.c: New file.
46555         * lib/signbitl.c: New file.
46556         * m4/signbit.m4: New file.
46557         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
46558         (signbit): New macro.
46559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
46560         REPLACE_SIGNBIT.
46561         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
46562         REPLACE_FREXPL into math.h.
46563
46564 2007-04-06  Bruno Haible  <bruno@clisp.org>
46565
46566         * modules/isnanf-nolibm-tests: New file.
46567         * tests/test-isnanf.c: New file.
46568
46569         * modules/isnanf-nolibm: New file.
46570         * lib/isnanf.h: New file.
46571         * lib/isnanf.c: New file.
46572         * lib/isnan.c: Consider the USE_FLOAT macro.
46573         * m4/isnanf.m4: New file.
46574
46575 2007-04-06  Bruno Haible  <bruno@clisp.org>
46576
46577         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
46578         (Link): New section.
46579
46580         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
46581
46582 2007-04-06  Bruno Haible  <bruno@clisp.org>
46583
46584         Assume the 'long double' type.
46585         * m4/longdouble.m4: Remove file.
46586         * config/srclist.txt: Don't mention longdouble.m4.
46587         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
46588         * lib/float+.h: Likewise.
46589         * lib/frexp.c: Likewise.
46590         * lib/printf-args.h: Likewise.
46591         * lib/printf-args.c: Likewise.
46592         * lib/printf-frexp.c: Likewise.
46593         * lib/printf-parse.c: Likewise.
46594         * lib/vasnprintf.c: Likewise.
46595         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
46596         * m4/intl.m4: Likewise.
46597         * m4/isnanl.m4: Likewise.
46598         * m4/printf.m4: Likewise.
46599         * m4/printf-frexpl.m4: Likewise.
46600         * m4/vasnprintf.m4: Likewise.
46601         * modules/allocsa (Files): Remove m4/longdouble.m4.
46602         * modules/gettext (Files): Likewise.
46603         * modules/relocatable-prog-wrapper (Files): Likewise.
46604         * modules/vasnprintf (Files): Likewise.
46605         * modules/isnanl (Files): Likewise.
46606         (Include): Simplify.
46607         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
46608         (Include): Simplify.
46609         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
46610         (Include): Simplify.
46611         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
46612         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46613         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
46614         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46615         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46616         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46617         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
46618         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46619         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46620         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46621         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
46622         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46623         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
46624         * tests/test-isnanl.c: Likewise.
46625         * tests/test-snprintf-posix.h: Likewise.
46626         * tests/test-sprintf-posix.h: Likewise.
46627         * tests/test-vasnprintf-posix.c: Likewise.
46628         * tests/test-vasnprintf-posix2.c: Likewise.
46629         * tests/test-vasprintf-posix.c: Likewise.
46630
46631 2007-04-06  Bruno Haible  <bruno@clisp.org>
46632
46633         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
46634         * lib/math_.h [__DECC]: Include the overridden include file through
46635         #include_next, outside the double-inclusion guard.
46636         * lib/stdio_.h [__DECC]: Likewise.
46637         * lib/stdlib_.h [__DECC]: Likewise.
46638         * lib/string_.h [__DECC]: Likewise.
46639         * lib/time_.h [__DECC]: Likewise.
46640         * lib/wchar_.h [__DECC]: Likewise.
46641         * lib/wctype_.h [__DECC]: Likewise.
46642         * lib/inttypes_.h [__DECC]: Likewise.
46643         Reported by Albert Chin <china@thewrittenword.com> in
46644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
46645
46646 2007-04-04  Eric Blake  <ebb9@byu.net>
46647
46648         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
46649         1.5.x.
46650
46651 2007-04-04  Bruno Haible  <bruno@clisp.org>
46652
46653         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
46654         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
46655
46656 2007-04-04  Bruno Haible  <bruno@clisp.org>
46657
46658         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
46659         results for "%010a" of Infinity and NaN.
46660         * tests/test-vasprintf-posix.c (test_function): Likewise.
46661         * tests/test-snprintf-posix.h (test_function): Likewise.
46662         * tests/test-sprintf-posix.h (test_function): Likewise.
46663         * tests/test-fprintf-posix.h (test_function): Remove these tests.
46664         * tests/test-printf-posix.h (test_function): Likewise.
46665         * tests/test-fprintf-posix.out: Update.
46666         Needed for FreeBSD 6.1.
46667
46668 2007-04-04  Bruno Haible  <bruno@clisp.org>
46669
46670         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
46671         directly used by the gnulib modules nor by gnulib-tool.
46672
46673 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46674
46675         * DEPENDENCIES: Give overall description of version dependency
46676         desirability.  Use more-typical names for apps.
46677         Add shell, coreutils, diffutils, grep, tar, gzip.
46678
46679 2007-04-04  Simon Josefsson  <simon@josefsson.org>
46680
46681         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
46682
46683 2007-04-04  Karl Berry  <karl@gnu.org>
46684
46685         * MODULES.html.sh (func_module): missing '.
46686
46687 2007-04-03  Bruno Haible  <bruno@clisp.org>
46688
46689         * modules/argmatch-tests (Makefile.am): New variable
46690         test_argmatch_LDADD.
46691         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
46692         * modules/array-list-tests (Makefile.am): New variable
46693         test_array_list_LDADD.
46694         * modules/array-oset-tests (Makefile.am): New variable
46695         test_array_oset_LDADD.
46696         * modules/avltree-list-tests (Makefile.am): New variable
46697         test_avltree_list_LDADD.
46698         * modules/avltree-oset-tests (Makefile.am): New variable
46699         test_avltree_oset_LDADD.
46700         * modules/avltreehash-list-tests (Makefile.am): New variable
46701         test_avltreehash_list_LDADD.
46702         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
46703         test_canonicalize_lgpl_LDADD.
46704         * modules/carray-list-tests (Makefile.am): New variable
46705         test_carray_list_LDADD.
46706         * modules/dirname-tests (Makefile.am): New variable
46707         test_dirname_LDADD.
46708         * modules/linked-list-tests (Makefile.am): New variable
46709         test_linked_list_LDADD.
46710         * modules/linkedhash-list-tests (Makefile.am): New variable
46711         test_linkedhash_list_LDADD.
46712         * modules/rbtree-list-tests (Makefile.am): New variable
46713         test_rbtree_list_LDADD.
46714         * modules/rbtree-oset-tests (Makefile.am): New variable
46715         test_rbtree_oset_LDADD.
46716         * modules/rbtreehash-list-tests (Makefile.am): New variable
46717         test_rbtreehash_list_LDADD.
46718         * modules/xvasprintf-tests (Makefile.am): New variable
46719         test_xvasprintf_LDADD.
46720         Reported by Eric Blake.
46721
46722 2007-04-03  Eric Blake  <ebb9@byu.net>
46723
46724         * DEPENDENCIES: Weaken m4 requirements.
46725
46726 2007-04-03  Bruno Haible  <bruno@clisp.org>
46727
46728         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
46729         * modules/isnanl-tests (configure.ac): Likewise.
46730
46731 2007-04-03  Ben Pfaff  <blp@gnu.org>
46732
46733         * modules/iconv_open: Add $(srcdir)/ to source directory
46734         references in Makefile fragments that call gperf, to fix VPATH
46735         builds.
46736
46737 2007-04-03  Bruno Haible  <bruno@clisp.org>
46738
46739         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
46740         * lib/ldexpl.c: Undo last change.
46741
46742 2007-04-03  Bruno Haible  <bruno@clisp.org>
46743
46744         * modules/printf-frexpl (Depends-on): Undo last change.
46745         (Files): Add m4/ldexpl.m4.
46746
46747 2007-04-03  Bruno Haible  <bruno@clisp.org>
46748
46749         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
46750         * modules/isnanl (Link): New section.
46751
46752         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
46753         * modules/frexp (Link): New section.
46754
46755         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
46756         * modules/frexpl (Link): New section.
46757
46758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
46759         * modules/ldexpl (Link): New section.
46760
46761 2007-04-03  Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/TEMPLATE-EXTENDED: New file.
46764         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
46765
46766 2007-04-03  Bruno Haible  <bruno@clisp.org>
46767
46768         * DEPENDENCIES: New file.
46769         Suggested by Simon Josefsson.
46770
46771 2007-04-03  Bruno Haible  <bruno@clisp.org>
46772
46773         * doc/gnulib.texi: Escape @.
46774
46775 2007-04-03  James Youngman  <jay@gnu.org>
46776         and Paul Eggert  <eggert@cs.ucla.edu>
46777
46778         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
46779         birthtime on all systems that have birthtime, not just those which
46780         use st_birthtimensec rather than st_birthtim.  Putting zero in
46781         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
46782         that the birth time is not available for files on an NFS mount.
46783
46784 2007-04-03  Simon Josefsson  <simon@josefsson.org>
46785
46786         * modules/memxor: Move back from crypto/, suggested by Bruno.
46787         * modules/crypto/hmac-sha1: Fix memxor dependency.
46788
46789         * modules/crypto/gc: Moved from ../.
46790
46791 2007-04-02  Eric Blake  <ebb9@byu.net>
46792
46793         * lib/ldexpl.c (includes): Avoid libm.
46794
46795         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
46796
46797 2007-04-02  Bruno Haible  <bruno@clisp.org>
46798
46799         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
46800         on IRIX.
46801
46802 2007-04-02  Bruno Haible  <bruno@clisp.org>
46803
46804         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
46805         x86 or x86_64 platforms running MacOS X.
46806         Reported by Ryan Schmidt <@ryandesign.com>.
46807
46808 2007-04-02  Bruno Haible  <bruno@clisp.org>
46809
46810         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
46811         i386.
46812
46813 2007-04-01  Simon Josefsson  <simon@josefsson.org>
46814
46815         * modules/crypto/arcfour: Moved from ../.
46816         * modules/crypto/arcfour-tests: Moved from ../.
46817         * modules/crypto/arctwo: Moved from ../.
46818         * modules/crypto/arctwo-tests: Moved from ../.
46819         * modules/crypto/des: Moved from ../.
46820         * modules/crypto/des-tests: Moved from ../.
46821         * modules/crypto/gc-arcfour: Moved from ../.
46822         * modules/crypto/gc-arcfour-tests: Moved from ../.
46823         * modules/crypto/gc-arctwo: Moved from ../.
46824         * modules/crypto/gc-arctwo-tests: Moved from ../.
46825         * modules/crypto/gc-des: Moved from ../.
46826         * modules/crypto/gc-des-tests: Moved from ../.
46827         * modules/crypto/gc-hmac-md5: Moved from ../.
46828         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
46829         * modules/crypto/gc-hmac-sha1: Moved from ../.
46830         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
46831         * modules/crypto/gc-md2: Moved from ../.
46832         * modules/crypto/gc-md2-tests: Moved from ../.
46833         * modules/crypto/gc-md4: Moved from ../.
46834         * modules/crypto/gc-md4-tests: Moved from ../.
46835         * modules/crypto/gc-md5: Moved from ../.
46836         * modules/crypto/gc-md5-tests: Moved from ../.
46837         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
46838         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
46839         * modules/crypto/gc-random: Moved from ../.
46840         * modules/crypto/gc-rijndael: Moved from ../.
46841         * modules/crypto/gc-rijndael-tests: Moved from ../.
46842         * modules/crypto/gc-sha1: Moved from ../.
46843         * modules/crypto/gc-sha1-tests: Moved from ../.
46844         * modules/crypto/gc-tests: Moved from ../.
46845         * modules/crypto/hmac-md5: Moved from ../.
46846         * modules/crypto/hmac-md5-tests: Moved from ../.
46847         * modules/crypto/hmac-sha1: Moved from ../.
46848         * modules/crypto/hmac-sha1-tests: Moved from ../.
46849         * modules/crypto/md2: Moved from ../.
46850         * modules/crypto/md2-tests: Moved from ../.
46851         * modules/crypto/md4: Moved from ../.
46852         * modules/crypto/md4-tests: Moved from ../.
46853         * modules/crypto/md5: Moved from ../.
46854         * modules/crypto/md5-tests: Moved from ../.
46855         * modules/crypto/memxor: Moved from ../.
46856         * modules/crypto/rijndael: Moved from ../.
46857         * modules/crypto/rijndael-tests: Moved from ../.
46858         * modules/crypto/sha1: Moved from ../.
46859
46860 2007-03-30  James Youngman  <jay@gnu.org>
46861
46862         * tests/test-stat-time.c (prepare_test): use chmod() rather than
46863         rename() to change the ctime of a file (because ctime is unaffected
46864         by rename on jfs2 on AIX 5.1).
46865         (main): Start by doing cleanup, in case a previous run failed leaving
46866         test files behind.
46867
46868 2007-03-31  Bruno Haible  <bruno@clisp.org>
46869
46870         Support old proprietary implementations of iconv.
46871         * modules/iconv_open: New file.
46872         * lib/iconv_.h: New file.
46873         * m4/iconv_h.m4: New file.
46874         * lib/iconv_open.c: New file.
46875         * lib/iconv_open-aix.gperf: New file.
46876         * lib/iconv_open-hpux.gperf: New file.
46877         * lib/iconv_open-irix.gperf: New file.
46878         * lib/iconv_open-osf.gperf: New file.
46879         * m4/iconv_open.m4: New file.
46880         * modules/linebreak (Depends-on): Add iconv_open.
46881         * modules/striconv (Depends-on): Likewise.
46882         * modules/striconveh (Depends-on): Likewise.
46883         * modules/unicodeio (Depends-on): Likewise.
46884         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
46885         (iconv_t)(-1).
46886         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
46887         conversion if cd is (iconv_t)(-1).
46888         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
46889         is not possible.
46890
46891 2007-03-31  Bruno Haible  <bruno@clisp.org>
46892
46893         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46894         work on Solaris either. Protect also second use of "autodetect_jp".
46895
46896 2007-03-31  Bruno Haible  <bruno@clisp.org>
46897
46898         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
46899         the function is not present.
46900
46901 2007-03-31  Bruno Haible  <bruno@clisp.org>
46902
46903         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
46904         the function is not present.
46905
46906 2007-03-31  Bruno Haible  <bruno@clisp.org>
46907
46908         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
46909         a bug in HP-UX iconv_open().
46910
46911 2007-03-31  Bruno Haible  <bruno@clisp.org>
46912
46913         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
46914         (Mathematics <math.h>): New section, add fpieee.
46915         (Input/output <stdio.h>): Add fseterr.
46916         (Mathematics <math.h>): New section, add printf-frexp.
46917         (Container data structures): Add sublist.
46918         (Core language properties): Add fpucw, inline.
46919         (Functions for greatest-width integer types <inttypes.h>): Add
46920         imaxabs, imaxdiv, inttypes.
46921         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
46922         isnanl-nolibm, ldexp.
46923         (Mathematics <math.h>): New section, add printf-frexpl.
46924         (Support for systems lacking POSIX:2001): Add fprintf-posix,
46925         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
46926         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
46927         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
46928         (Unicode string functions): Add unistr/u*-mbtoucr.
46929         (Java): Add javacomp-script, javaexec-script.
46930         (C#): Add csharpcomp-script, csharpexec-script.
46931         (Support for building libraries and executables): Add havelib,
46932         relocatable-*.
46933         (Support for maintaining and releasing projects): Renamed from
46934         'Support for maintaining and release projects'. Add announce-gen.
46935
46936 2007-03-31  Bruno Haible  <bruno@clisp.org>
46937
46938         * README: Talk primarily about git.
46939         (git and CVS): Renamed from CVS.
46940         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
46941         gnulib is available through git.
46942         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
46943
46944 2007-03-30  Bruno Haible  <bruno@clisp.org>
46945
46946         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
46947         * lib/poll_.h: Likewise.
46948         * lib/stat_.h: Likewise.
46949         * lib/sys_time_.h: Likewise.
46950         * lib/sysexit_.h: Likewise.
46951         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
46952         * lib/stdbool_.h: Likewise.
46953         * lib/byteswap_.h: Add double-inclusion guard.
46954
46955 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
46956
46957         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
46958
46959 2007-03-30  Karl Berry  <karl@gnu.org>
46960
46961         * config/srclist-update: double space after USA in the license
46962         substitution, since that's how it's usually (?) written.
46963
46964 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46965
46966         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
46967         reported by Bruno Haible.
46968
46969 2007-03-29  Bruno Haible  <bruno@clisp.org>
46970
46971         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
46972         a bug in AIX iconv().
46973
46974 2007-03-29  Bruno Haible  <bruno@clisp.org>
46975
46976         * modules/ldexpl-tests: New file.
46977         * tests/test-ldexpl.c: New file.
46978
46979 2007-03-29  Bruno Haible  <bruno@clisp.org>
46980
46981         * lib/ldexpl.c: Include fpucw.h.
46982         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
46983         multiplication.
46984         * modules/ldexpl (Depends-on): Add fpucw.
46985
46986 2007-03-29  Bruno Haible  <bruno@clisp.org>
46987
46988         * modules/ldexpl: New file.
46989         * m4/ldexpl.m4: New file.
46990         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
46991         set.
46992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
46993         REPLACE_LDEXPL.
46994         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
46995         REPLACE_LDEXPL.
46996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46997         gl_FUNC_LDEXPL_WORKS.
46998         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
46999         * modules/mathl (Files): Remove lib/ldexpl.c.
47000         (Depends-on): Add ldexpl.
47001
47002 2007-03-29  Bruno Haible  <bruno@clisp.org>
47003
47004         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
47005
47006 2007-03-29  Bruno Haible  <bruno@clisp.org>
47007
47008         * tests/test-striconveh.c (main): Don't assume that a direct conversion
47009         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
47010         and possibly also HP-UX.
47011         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47012         work on AIX, IRIX, HP-UX, OSF/1.
47013         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47014         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47015         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47016         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47017         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
47018         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47019
47020 2007-03-29  Bruno Haible  <bruno@clisp.org>
47021
47022         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
47023
47024 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47025
47026         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
47027         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
47028
47029 2007-03-29  Eric Blake  <ebb9@byu.net>
47030
47031         * lib/acl-internal.h: Remove redundant include.
47032         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
47033         Cygwin when a file is locked.
47034
47035 2007-03-29  Bruno Haible  <bruno@clisp.org>
47036
47037         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
47038         file.
47039         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
47040
47041 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47042
47043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
47044         try to remove a parent directory if the child couldn't be removed
47045         (except for the first rmdir, which could fail because the child
47046         doesn't exist).  Problem reported by Jeff Blaine in
47047         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
47048
47049 2007-03-28  Bruno Haible  <bruno@clisp.org>
47050
47051         * lib/striconveh.c (utf8conv_carefully): New function.
47052         (mem_cd_iconveh_internal): Invoke it.
47053
47054 2007-03-28  Bruno Haible  <bruno@clisp.org>
47055
47056         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
47057         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
47058         input.
47059         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
47060         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
47061         unistr/u8-uctomb.
47062
47063 2007-03-28  Bruno Haible  <bruno@clisp.org>
47064
47065         * modules/unistr/u8-mbtoucr: New file.
47066         * lib/unistr/u8-mbtoucr.c: New file.
47067         * modules/unistr/u16-mbtoucr: New file.
47068         * lib/unistr/u16-mbtoucr.c: New file.
47069         * modules/unistr/u16-mbtoucr: New file.
47070         * lib/unistr/u16-mbtoucr.c: New file.
47071         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
47072
47073 2007-03-27  Simon Josefsson  <simon@josefsson.org>
47074             Bruno Haible  <bruno@clisp.org>
47075
47076         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
47077         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
47078         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
47079
47080         * m4/stdio_h.m4: Add stubs for vasprintf too.
47081
47082         * modules/stdio: Support vasprintf in sed command.
47083
47084         * modules/vasprintf: Depend on stdio for prototypes.  Remove
47085         vasprintf.h.  Add stdio module indicator.
47086
47087         * lib/stdio_.h: Declare asprintf and vasprintf, based on
47088         vasprintf.h.
47089
47090         * lib/vasprintf.h: File removed.
47091
47092         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
47093         * lib/vasprintf.c: Ditto.
47094         * lib/xvasprintf.c: Ditto.
47095         * tests/test-vasprintf-posix.c: Ditto.
47096         * tests/test-vasprintf.c: Ditto.
47097
47098 2007-03-27  Bruno Haible  <bruno@clisp.org>
47099
47100         Make vasnprintf multithread-safe.
47101         * lib/vasnprintf.c (decimal_point_char): New function.
47102         (VASNPRINTF): Use it.
47103         Suggested by Simon Josefsson.
47104
47105 2007-03-27  Eric Blake  <ebb9@byu.net>
47106
47107         Support sub-second birthtime on cygwin.
47108         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
47109         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
47110         (get_stat_birthtime): Also work with st_birthtim.
47111
47112 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
47113
47114         * lib/stat-time.h (USE_BIRTHTIME): Remove.
47115         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
47116         (get_stat_birthtime_ns): Do not try to use "spare" fields.
47117         (get_stat_birthtime_ns): Simplify compile-time tests.
47118         (get_stat_birthtime): Change the API to look like
47119         get_stat_mtime etc., except return a negative tv_nsec on error.
47120         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
47121         Don't check for "spare" fields.
47122         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
47123         or for struct stat.st_birthtime, as these tests aren't used.
47124         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
47125
47126 2007-03-27  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/stat-time.h: Include <sys/stat.h>.
47129
47130 2007-03-27  James Youngman  <jay@gnu.org>
47131
47132         * lib/stat-time.h (get_stat_birthtime): New function for
47133           retrieving st_birthtime as provided by UFS2 (hence *BSD).
47134         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
47135           and its variants.
47136         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
47137         * modules/stat-time-test: New file.
47138         * tests/test-stat-time.c: New test, devised by Bruno Haible.
47139
47140 2007-03-26  Bruno Haible  <bruno@clisp.org>
47141
47142         Better support of signalling NaNs.
47143         * lib/atanl.c: Include isnanl.h.
47144         (atanl): Perform test for NaN at the beginning of the function and
47145         through a call to isnanl.
47146         * lib/cosl.c: Include isnanl.h.
47147         (cosl): Perform test for NaN at the beginning of the function and
47148         through a call to isnanl.
47149         * lib/ldexpl.c: Include isnanl.h.
47150         (ldexpl): Perform test for NaN through a call to isnanl.
47151         * lib/logl.c: Include isnanl.h.
47152         (logl): Perform test for NaN at the beginning of the function and
47153         through a call to isnanl.
47154         * lib/sinl.c: Include isnanl.h.
47155         (sinl): Perform test for NaN at the beginning of the function and
47156         through a call to isnanl.
47157         * lib/sqrtl.c: Include isnanl.h.
47158         (sqrtl): Perform test for NaN at the beginning of the function and
47159         through a call to isnanl.
47160         * lib/tanl.c: Include isnanl.h.
47161         (tanl): Perform test for NaN at the beginning of the function and
47162         through a call to isnanl.
47163         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
47164         * modules/mathl (Depends-on): Add isnanl.
47165
47166 2007-03-26  Eric Blake  <ebb9@byu.net>
47167
47168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
47169         regression in logic sense of previous patch.
47170
47171 2007-03-26  Bruno Haible  <bruno@clisp.org>
47172
47173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
47174         unportable shell command "if ! ...".
47175         Reported by Ralf Wildenhues.
47176
47177 2007-03-25  Bruno Haible  <bruno@clisp.org>
47178
47179         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
47180         <sysexits.h> file, and only add EX_CONFIG.
47181         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
47182         absolute file name and whether it is sufficient. Substitute also
47183         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
47184         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
47185         ABSOLUTE_SYSEXITS_H into sysexits.h.
47186
47187 2007-03-25  Bruno Haible  <bruno@clisp.org>
47188
47189         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
47190         hints is NULL.
47191
47192 2007-03-25  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
47195         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
47196
47197 2007-03-25  Bruno Haible  <bruno@clisp.org>
47198
47199         * lib/vasnprintf.c: Include langinfo.h.
47200         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
47201         multithread-safe.
47202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
47203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
47204         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47205         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47207         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47208         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
47210         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47211         Reported by Simon Josefsson.
47212
47213 2007-03-25  Bruno Haible  <bruno@clisp.org>
47214
47215         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
47216         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
47217         * modules/vasnprintf (Depends-on): Add stdint.
47218
47219 2007-03-25  Bruno Haible  <bruno@clisp.org>
47220
47221         * modules/fpieee: New file.
47222         * m4/fpieee.m4: New file.
47223         * modules/isnan-nolibm (Depends-on): Add fpieee.
47224         * modules/isnanl-nolibm (Depends-on): Add fpieee.
47225         * modules/isnanl (Depends-on): Add fpieee.
47226
47227 2007-03-25  Bruno Haible  <bruno@clisp.org>
47228
47229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
47230
47231 2007-03-25  Bruno Haible  <bruno@clisp.org>
47232
47233         Avoid test failures on IRIX 6.5.
47234         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
47235         (main): Use it.
47236         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
47237         macros.
47238         (main): Use them.
47239
47240 2007-03-25  Bruno Haible  <bruno@clisp.org>
47241
47242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
47243         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
47244         exists but doesn't work.
47245         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
47246         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
47247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
47248         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
47249
47250 2007-03-25  Bruno Haible  <bruno@clisp.org>
47251
47252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
47253         returns inf. Needed on IRIX 6.5.
47254
47255 2007-03-25  Bruno Haible  <bruno@clisp.org>
47256
47257         * tests/test-frexpl.c: Include isnanl-nolibm.h.
47258         (main): Use isnanl instead of x != x idiom.
47259         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
47260
47261         * tests/test-frexp.c: Include isnan.h.
47262         (main): Use isnan instead of x != x idiom.
47263         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
47264
47265 2007-03-25  Bruno Haible  <bruno@clisp.org>
47266
47267         * tests/test-frexp.c (NaN): New function/macro.
47268         (main): Use it instead of 0.0 / 0.0.
47269         * tests/test-isnan.c (NaN): New function/macro.
47270         (main): Use it instead of 0.0 / 0.0.
47271         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
47272         (test_function): Use it instead of 0.0 / 0.0.
47273         * tests/test-vasprintf-posix.c (NaN): New function/macro.
47274         (test_function): Use it instead of 0.0 / 0.0.
47275         * tests/test-snprintf-posix.h (NaN): New function/macro.
47276         (test_function): Use it instead of 0.0 / 0.0.
47277         * tests/test-sprintf-posix.h (NaN): New function/macro.
47278         (test_function): Use it instead of 0.0 / 0.0.
47279         * tests/test-fprintf-posix.h (NaN): New function/macro.
47280         (test_function): Use it instead of 0.0 / 0.0.
47281         * tests/test-printf-posix.h (NaN): New function/macro.
47282         (test_function): Use it instead of 0.0 / 0.0.
47283
47284         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
47285
47286 2007-03-25  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
47289
47290 2007-03-25  Bruno Haible  <bruno@clisp.org>
47291
47292         * lib/regexec.c (merge_state_with_log): Make static.
47293
47294 2007-03-25  Bruno Haible  <bruno@clisp.org>
47295
47296         * lib/trigl.c (kernel_rem_pio2): Make static.
47297
47298 2007-03-25  Bruno Haible  <bruno@clisp.org>
47299
47300         * lib/sincosl.c (sincosl_table): Make static.
47301
47302 2007-03-25  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
47305         if the compiler does not support C99.
47306
47307 2007-03-25  Bruno Haible  <bruno@clisp.org>
47308
47309         * modules/time (Makefile.am): Ensure all rule action lines start with a
47310         tab.
47311
47312 2007-03-24  Bruno Haible  <bruno@clisp.org>
47313
47314         * modules/tsearch-tests: New file.
47315         * tests/test-tsearch.sh: New file.
47316         * tests/test-tsearch.c: New file, mostly copied from glibc.
47317
47318         * modules/search-tests: New file.
47319         * tests/test-search.c: New file.
47320
47321         * modules/search: New file.
47322         * lib/search_.h: New file, incorporating lib/tsearch.h.
47323         * m4/search_h.m4: New file.
47324         * lib/tsearch.h: Remove file.
47325         * lib/tsearch.c: Include search.h instead of tsearch.h.
47326         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
47327         HAVE_TSEARCH.
47328         * modules/tsearch (Files): Remove lib/tsearch.h.
47329         (Depends-on): Add search.
47330         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
47331         (Include): Change tsearch.h into search.h.
47332
47333 2007-03-24  Bruno Haible  <bruno@clisp.org>
47334
47335         * modules/fpucw: New file.
47336         * lib/fpucw.h: New file.
47337         * lib/frexp.c: Include fpucw.h.
47338         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47339         (FUNC): Use them.
47340         * lib/printf-frexp.c: Include fpucw.h.
47341         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47342         (FUNC): Use them.
47343         * lib/vasnprintf.c: Include fpucw.h.
47344         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
47345         'long double' calculations.
47346         * tests/test-frexpl.c: Include fpucw.h.
47347         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47348         * tests/test-printf-frexpl.c: Include fpucw.h.
47349         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47350         * modules/frexpl (Depends-on): Add fpucw.
47351         * modules/printf-frexpl (Depends-on): Likewise.
47352         * modules/fprintf-posix (Depends-on): Likewise.
47353         * modules/snprintf-posix (Depends-on): Likewise.
47354         * modules/sprintf-posix (Depends-on): Likewise.
47355         * modules/vasnprintf-posix (Depends-on): Likewise.
47356         * modules/vasprintf-posix (Depends-on): Likewise.
47357         * modules/vfprintf-posix (Depends-on): Likewise.
47358         * modules/vsnprintf-posix (Depends-on): Likewise.
47359         * modules/vsprintf-posix (Depends-on): Likewise.
47360         * modules/frexpl-tests (Depends-on): Likewise.
47361         * modules/printf-frexpl-tests (Depends-on): Likewise.
47362
47363 2007-03-24  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/float+.h: New file.
47366         * lib/isnan.c: Include float+.h.
47367         (SIZE): New macro.
47368         (FUNC): Compare only SIZE bytes of the value.
47369         * lib/vasnprintf.c: Include float+.h.
47370         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
47371         SIZEOF_LDBL or SIZEOF_DBL bytes.
47372         * modules/isnan-nolibm (Files): Add lib/float+.h.
47373         * modules/isnanl-nolibm (Files): Add lib/float+.h.
47374         * modules/isnanl (Files): Add lib/float+.h.
47375         * modules/vasnprintf (Files): Add lib/float+.h.
47376
47377 2007-03-24  Bruno Haible  <bruno@clisp.org>
47378
47379         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
47380         include isnanl-nolibm.h.
47381
47382 2007-03-24  Bruno Haible  <bruno@clisp.org>
47383
47384         * tests/test-read-file.c (main): Don't produce spurious output for
47385         expected situations. Make the test fail if it encountered unexpected
47386         results.
47387
47388 2007-03-24  Bruno Haible  <bruno@clisp.org>
47389
47390         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
47391         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
47392
47393 2007-03-24  Bruno Haible  <bruno@clisp.org>
47394
47395         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
47396
47397 2007-03-24  Bruno Haible  <bruno@clisp.org>
47398
47399         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
47400         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
47401
47402         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
47403         * modules/utf8-ucs4: Turn into a symbolic link to module
47404         unistr/u8-mbtouc.
47405
47406         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
47407         utf8-ucs4-unsafe.
47408         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
47409         unistr/u8-mbtouc-unsafe.
47410
47411         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
47412         * modules/utf16-ucs4: Turn into a symbolic link to module
47413         unistr/u16-mbtouc.
47414
47415         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
47416         utf16-ucs4-unsafe.
47417         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
47418         unistr/u16-mbtouc-unsafe.
47419
47420         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
47421         * modules/ucs4-utf8: Turn into a symbolic link to module
47422         unistr/u8-ubtomb.
47423
47424         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
47425         * modules/ucs4-utf16: Turn into a symbolic link to module
47426         unistr/u16-ubtomb.
47427
47428 2007-03-24  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
47431         Enable the function only if HAVE_INLINE.
47432         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
47433         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47434         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
47435         Enable the function only if HAVE_INLINE.
47436         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
47437         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47438         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
47439         Enable the function only if HAVE_INLINE.
47440         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
47441         Enable the function only if HAVE_INLINE.
47442         * modules/utf8-ucs4: Update.
47443         * modules/utf8-ucs4-unsafe: Update.
47444         * modules/utf16-ucs4: Update.
47445         * modules/utf16-ucs4-unsafe: Update.
47446         * modules/ucs4-utf8: Update.
47447         * modules/ucs4-utf16: Update.
47448
47449 2007-03-24  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/utf8-ucs4.h: Remove file.
47452         * lib/utf8-ucs4-unsafe.h: Remove file.
47453         * lib/utf16-ucs4.h: Remove file.
47454         * lib/utf16-ucs4-unsafe.h: Remove file.
47455         * lib/ucs4-utf8.h: Remove file.
47456         * lib/ucs4-utf16.h: Remove file.
47457         * lib/unistr.h: Include their previous contents.
47458         * m4/utf-ucs4.m4: Remove file.
47459         * m4/ucs4-utf.m4: Remove file.
47460         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
47461         (Depends-on): Add unistr/base.
47462         (configure.ac): Remove gl_UTF_UCS4.
47463         (Makefile.am): Update.
47464         (Include): Change to unistr.h.
47465         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
47466         (Depends-on): Add unistr/base.
47467         (configure.ac): Remove gl_UTF_UCS4.
47468         (Makefile.am): Update.
47469         (Include): Change to unistr.h.
47470         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
47471         (Depends-on): Add unistr/base.
47472         (configure.ac): Remove gl_UTF_UCS4.
47473         (Makefile.am): Update.
47474         (Include): Change to unistr.h.
47475         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
47476         (Depends-on): Add unistr/base.
47477         (configure.ac): Remove gl_UTF_UCS4.
47478         (Makefile.am): Update.
47479         (Include): Change to unistr.h.
47480         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
47481         (Depends-on): Add unistr/base.
47482         (configure.ac): Remove gl_UCS4_UTF.
47483         (Makefile.am): Update.
47484         (Include): Change to unistr.h.
47485         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
47486         (Depends-on): Add unistr/base.
47487         (configure.ac): Remove gl_UCS4_UTF.
47488         (Makefile.am): Update.
47489         (Include): Change to unistr.h.
47490         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
47491         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
47492         utf8-ucs4-unsafe.h.
47493         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
47494         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
47495         utf16-ucs4-unsafe.h.
47496         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
47497         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
47498         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
47499         * lib/unistr/u8-strchr.c: Likewise.
47500         * lib/unistr/u8-strrchr.c: Likewise.
47501         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
47502         * lib/unistr/u16-strchr.c: Likewise.
47503         * lib/unistr/u16-strrchr.c: Likewise.
47504         * lib/striconveh.c: Update.
47505         * lib/linebreak.c: Update.
47506
47507 2007-03-24  Bruno Haible  <bruno@clisp.org>
47508
47509         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
47510         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
47511
47512 2007-03-22  Bruno Haible  <bruno@clisp.org>
47513
47514         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
47515
47516 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
47517
47518         * MODULES.html.sh (File system functions): New module write-any-file.
47519         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
47520         * m4/write-any-file.m4: New files.
47521
47522 2007-03-23  Eric Blake  <ebb9@byu.net>
47523
47524         * gnulib-tool: Rearrange space-tab sequences, since some editors
47525         like to eat them.
47526
47527 2007-03-23  Eric Blake  <ebb9@byu.net>
47528
47529         * lib/version-etc.c (version_etc_va): Update license wording to
47530         be more concise.  Recommended by Richard Stallman.
47531
47532 2007-03-22  Bruno Haible  <bruno@clisp.org>
47533
47534         * lib/poll.c (MSG_PEEK): New fallback definition.
47535
47536 2007-03-22  Bruno Haible  <bruno@clisp.org>
47537
47538         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
47539         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
47540         (main): Update.
47541         Fixes a compilation error on BeOS.
47542
47543 2007-03-22  Bruno Haible  <bruno@clisp.org>
47544
47545         * modules/frexpl-tests: New file.
47546         * tests/test-frexpl.c: New file.
47547
47548         * modules/frexpl: New file.
47549         * m4/frexpl.m4: New file.
47550         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
47551         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
47552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
47553         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
47554         (Depends-on): Add frexpl. Remove isnanl-nolibm.
47555         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
47556
47557 2007-03-22  Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/frexpl.c: Share code with lib/frexp.c.
47560         * modules/mathl (Files): Add lib/frexp.c.
47561         (Depends-on): Add isnanl-nolibm.
47562
47563 2007-03-22  Bruno Haible  <bruno@clisp.org>
47564
47565         * modules/printf-frexp (Files): Add m4/frexp.m4.
47566         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
47567         only if the found frexp function actually works.
47568
47569 2007-03-22  Bruno Haible  <bruno@clisp.org>
47570
47571         * lib/frexp.c: Remove older implementation that uses divisions.
47572
47573 2007-03-21  Bruno Haible  <bruno@clisp.org>
47574
47575         * modules/frexp-tests: New file.
47576         * tests/test-frexp.c: New file.
47577
47578         * modules/frexp: New file.
47579         * lib/frexp.c: New file.
47580         * m4/frexp.m4: New file.
47581         * lib/math_.h (frexp): New declaration.
47582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
47583         REPLACE_FREXP.
47584         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
47585
47586 2007-03-21  Bruno Haible  <bruno@clisp.org>
47587
47588         * modules/isnanl-tests: New file.
47589         * tests/test-isnanl.c: New file.
47590
47591         * modules/isnanl: New file.
47592         * lib/isnanl.h: New file.
47593         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
47594         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
47595         gl_FUNC_ISNANL_WORKS.
47596         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
47597         New macros.
47598
47599 2007-03-21  Bruno Haible  <bruno@clisp.org>
47600
47601         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
47602         lib/isnanl.h.
47603         (Include): Update.
47604         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
47605         * lib/vasnprintf.c: Update.
47606         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
47607         tests/test-isnanl.h, remove tests/test-isnanl.c.
47608         (Makefile.am): Update.
47609         * tests/test-isnanl-nolibm.c: New file.
47610         * tests/test-isnanl.h: New file.
47611         * tests/test-isnanl.c: Remove file.
47612
47613 2007-03-21  Jim Meyering  <jim@meyering.net>
47614
47615         When trying to open ".", treat ESTALE like EACCES.
47616         * lib/savewd.c (savewd_save): Resort to forking not just upon
47617         failure with EACCES, but also when errno is ESTALE.
47618
47619 2007-03-20  Bruno Haible  <bruno@clisp.org>
47620
47621         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
47622         Needed on AIX 5.1. Reported by Matthew Woehlke.
47623
47624 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47625
47626         Suggestions by Bruno Haible:
47627         * lib/acl-internal.h: Include "gettext.h" rather than rolling
47628         our own.
47629         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
47630         * modules/acl (Depends-on): Add gettext.
47631
47632 2007-03-19  Bruno Haible  <bruno@clisp.org>
47633
47634         * modules/iconvme: Remove file.
47635         * lib/iconvme.h: Remove file.
47636         * lib/iconvme.c: Remove file.
47637         * m4/iconvme.m4: Remove file.
47638
47639 2007-03-19  Bruno Haible  <bruno@clisp.org>
47640
47641         * doc/relocatable-maint.texi: Break long shell script line.
47642         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47643
47644 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47645
47646         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
47647         handle file_has_acl.
47648         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
47649         * lib/acl.c: Move header inclusions and related macro defns into
47650         lib/acl-internal.h.
47651         (S_ISLNK): Remove defn, since that's now done for us.
47652         (file_has_acl): Move to lib/file-has-acl.c.
47653         Call acl_trivial if available.  This is the crucial part of the fix.
47654         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
47655         shared within the library.  Rewrite a bit, partly to make it compatible
47656         with the GNU coding style.
47657         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
47658         Remove unnecessary double-quotes.
47659         Don't test for acl_to_text; the build will catch that.
47660         Replace acl_entries if it doesn't exist and it is needed.
47661         Check for -lsec and acl_trivial (as used on Solaris 10).
47662         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
47663         lib/file-has-acl.c.
47664         (Depends-on): Add sys_stat, for S_ISLNK.
47665
47666 2007-03-19  Ben Pfaff  <blp@gnu.org>
47667
47668         * doc/gnulib.texi: Fix typos.
47669         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47670
47671 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47672
47673         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
47674         If size is zero here, buf must be zero.
47675
47676 2007-03-19  Simon Josefsson  <simon@josefsson.org>
47677
47678         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
47679         <bruno@clisp.org>.
47680
47681 2007-03-18  Bruno Haible  <bruno@clisp.org>
47682
47683         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
47684         Suggested by Eric Blake.
47685
47686 2007-03-18  Ben Pfaff  <blp@gnu.org>
47687
47688         * doc/relocatable.texi: Recommend using as prefix a directory
47689         that does not exist and will never be created.  Based on
47690         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
47691         and others.
47692
47693 2007-03-17  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/fchownat.c: Include lchown.h.
47696
47697 2007-03-17  Bruno Haible  <bruno@clisp.org>
47698
47699         Fix endless loop when the given allocated size was > INT_MAX.
47700         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
47701         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
47702         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
47703         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
47704         * lib/sprintf.c (sprintf): Likewise.
47705
47706 2007-03-17  Bruno Haible  <bruno@clisp.org>
47707
47708         * tests/test-argp-2.sh (func_compare): Output a context diff.
47709
47710 2007-03-17  Bruno Haible  <bruno@clisp.org>
47711
47712         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
47713         locale's decimal-point character.
47714
47715 2007-03-17  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
47718         before comparing it. Needed because on some platforms (e.g. x86) a
47719         'long double' occupies less bytes than sizeof (long double).
47720
47721 2007-03-17  Bruno Haible  <bruno@clisp.org>
47722
47723         * tests/test-crc.c (main): Make printf statements 64-bit clean.
47724         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
47725         * tests/test-getaddrinfo.c (simple): Likewise.
47726         * tests/test-read-file.c (main): Likewise.
47727
47728 2007-03-17  Bruno Haible  <bruno@clisp.org>
47729
47730         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
47731
47732 2007-03-17  Bruno Haible  <bruno@clisp.org>
47733
47734         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
47735         unused variable.
47736
47737 2007-03-17  Bruno Haible  <bruno@clisp.org>
47738
47739         * tests/test-c-strcasecmp.c: Include c-strcase.h.
47740         * tests/test-c-strncasecmp.c: Likewise.
47741
47742 2007-03-17  Bruno Haible  <bruno@clisp.org>
47743
47744         * modules/stdlib (Depends-on): Add unistd.
47745         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
47746         Needed for MacOS X 10.3.
47747
47748 2007-03-17  Bruno Haible  <bruno@clisp.org>
47749
47750         * lib/unistr/u-strdup.h: Include <stdlib.h>.
47751
47752 2007-03-17  Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47755
47756 2007-03-17  Bruno Haible  <bruno@clisp.org>
47757
47758         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
47759         to reflect files copied from gnulib (with or without modifications).
47760         Suggested by Jim Meyering.
47761
47762 2007-03-17  Eric Blake  <ebb9@byu.net>
47763
47764         * NEWS: Document stdlib change from 2007-02-18.
47765
47766 2007-03-17  Jim Meyering  <jim@meyering.net>
47767
47768         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
47769         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
47770         someone uses a name containing shell meta-characters.
47771         Reported by Alfred M. Szmidt.
47772
47773         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
47774
47775 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47776
47777         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
47778         and copy gettext configuration files only if configure.ac contains
47779         a use of AM_GNU_GETTEXT_VERSION.
47780
47781 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47782
47783         * build-aux/bootstrap (gnulib_name): New variable.
47784         (gnulib_tool_options): Use it.
47785
47786 2007-03-13  Simon Josefsson  <simon@josefsson.org>
47787
47788         * tests/test-des.c: Use new namespace.
47789
47790 2007-03-15  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
47793         Reported by James Youngman <jay@gnu.org>.
47794
47795 2007-03-15  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
47798         declared prototype. Needed with cc on OSF/1 5.1.
47799
47800 2007-03-15  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
47803         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
47804         (struct gl_list_implementation): Add dispose_fn argument to the
47805         'create_empty', 'create' methods.
47806         (struct gl_list_impl_base): Add field 'dispose_fn'.
47807         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
47808         argument.
47809         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
47810         dispose_fn argument.
47811         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
47812         dispose_fn on the dropped values.
47813         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
47814         dispose_fn argument.
47815         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
47816         dropped values.
47817         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
47818         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47819         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
47820         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47821         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
47822         argument.
47823         (gl_tree_list_free): Call dispose_fn on the dropped values.
47824         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
47825         the dropped values.
47826         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47827         Add dispose_fn argument.
47828         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
47829         Call dispose_fn on the dropped values.
47830         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
47831         Add dispose_fn argument.
47832         (gl_sublist_create): Initialize the 'dispose_fn' field.
47833         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
47834         * tests/test-array_list.c (main): Update.
47835         * tests/test-carray_list.c (main): Update.
47836         * tests/test-avltree_list.c (main): Update.
47837         * tests/test-rbtree_list.c (main): Update.
47838         * tests/test-avltreehash_list.c (main): Update.
47839         * tests/test-rbtreehash_list.c (main): Update.
47840         * tests/test-linked_list.c (main): Update.
47841         * tests/test-linkedhash_list.c (main): Update.
47842         * tests/test-array_oset.c (main): Update.
47843
47844 2007-03-15  Bruno Haible  <bruno@clisp.org>
47845
47846         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
47847         (gl_oset_create_empty): Add dispose_fn argument.
47848         (struct gl_oset_implementation): Add dispose_fn argument to
47849         'create_empty' method.
47850         (struct gl_oset_impl_base): Add dispose_fn field.
47851         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
47852         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
47853         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
47854         values.
47855         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
47856         (gl_tree_oset_free): Call dispose_fn on the dropped values.
47857         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47858         dropped value.
47859         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47860         dropped value.
47861         * tests/test-array_oset.c (main): Update.
47862         * tests/test-avltree_oset.c (main): Update.
47863         * tests/test-rbtree_oset.c (main): Update.
47864         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
47865
47866 2007-03-13  Bruno Haible  <bruno@clisp.org>
47867
47868         * tests/test-stdbool.c (i): Update after last patch.
47869
47870 2007-03-12  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/quotearg.c: Include <wctype.h> early, before the definition of
47873         the iswprint macro. Needed on Solaris 2.5.1.
47874
47875 2007-03-12  Bruno Haible  <bruno@clisp.org>
47876
47877         * tests/test-printf-frexp.c (main): Declare x as volatile.
47878
47879 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47880
47881         * doc/gnulib.texi (Build robot for gnulib): New section.
47882
47883 2007-03-12  Jim Meyering  <jim@meyering.net>
47884
47885         * build-aux/bootstrap: New file.
47886         * build-aux/bootstrap.conf: New file, from coreutils.
47887
47888 2007-03-11  Bruno Haible  <bruno@clisp.org>
47889
47890         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
47891
47892 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47893
47894         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
47895         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
47896         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
47897
47898 2007-03-11  Bruno Haible  <bruno@clisp.org>
47899
47900         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
47901         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
47902
47903 2007-03-11  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
47906         formula. Needed for SunPRO C 5.0.
47907
47908 2007-03-11  Bruno Haible  <bruno@clisp.org>
47909
47910         * modules/long-options (Depends-on): Add getopt.
47911
47912 2007-03-11  Bruno Haible  <bruno@clisp.org>
47913
47914         * modules/modechange (Depends-on): Add stdbool.
47915
47916 2007-03-11  Bruno Haible  <bruno@clisp.org>
47917
47918         * modules/i-ring (Depends-on): Add stdbool.
47919
47920 2007-03-11  Bruno Haible  <bruno@clisp.org>
47921
47922         * modules/gc-des (Depends-on): Add stdbool.
47923
47924 2007-03-11  Bruno Haible  <bruno@clisp.org>
47925
47926         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
47927
47928 2007-03-11  Bruno Haible  <bruno@clisp.org>
47929
47930         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
47931
47932 2007-03-11  Bruno Haible  <bruno@clisp.org>
47933
47934         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
47935
47936 2007-03-11  Bruno Haible  <bruno@clisp.org>
47937
47938         * lib/vasnprintf.c (sprintf): Undefine.
47939
47940 2007-03-11  Bruno Haible  <bruno@clisp.org>
47941
47942         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
47943         initializers in SunPRO C and Compaq C compilers.
47944
47945 2007-03-11  Bruno Haible  <bruno@clisp.org>
47946
47947         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
47948         decrementing code ANSI C compliant.
47949
47950 2007-03-11  Bruno Haible  <bruno@clisp.org>
47951
47952         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
47953         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
47954
47955 2007-03-11  Bruno Haible  <bruno@clisp.org>
47956
47957         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
47958         <stdbool.h> substitute doesn't pass.
47959
47960 2007-03-11  Bruno Haible  <bruno@clisp.org>
47961
47962         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
47963
47964 2007-03-11  Bruno Haible  <bruno@clisp.org>
47965
47966         * gnulib-tool (func_create_megatestdir): Create also an autobuild
47967         script, for submission to autobuild.josefsson.org.
47968
47969 2007-03-10  Bruno Haible  <bruno@clisp.org>
47970
47971         * modules/canonicalize-lgpl-tests: New file.
47972         * tests/test-canonicalize-lgpl.sh: New file.
47973         * tests/test-canonicalize-lgpl.c: New file.
47974
47975         * modules/c-strcase-tests: New file.
47976         * tests/test-c-strcase.sh: New file.
47977         * tests/test-c-strcasecmp.c: New file.
47978         * tests/test-c-strncasecmp.c: New file.
47979
47980         * modules/atexit-tests: New file.
47981         * tests/test-atexit.sh: New file.
47982         * tests/test-atexit.c: New file.
47983
47984 2007-03-10  Bruno Haible  <bruno@clisp.org>
47985
47986         * tests/test-binary-io.sh: Use temporary filenames that are not so
47987         likely to clash with those of other tests (in a parallel make).
47988         * tests/test-binary-io.c: Likewise.
47989
47990 2007-03-10  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
47993         fallback; use #error instead.
47994         Suggested by Simon Josefsson.
47995
47996 2007-03-10  Bruno Haible  <bruno@clisp.org>
47997
47998         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
47999         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
48000         first and the last.
48001
48002 2007-03-10  Bruno Haible  <bruno@clisp.org>
48003
48004         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
48005
48006 2007-03-10  Bruno Haible  <bruno@clisp.org>
48007
48008         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
48009         "make distcheck".
48010         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
48011         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
48012         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
48013
48014 2007-03-10  Bruno Haible  <bruno@clisp.org>
48015
48016         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
48017         variable.
48018         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
48019         variable.
48020
48021 2007-03-09  Eric Blake  <ebb9@byu.net>
48022         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
48023
48024         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
48025         types are not being provided by gnulib.
48026         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
48027         types are supported.
48028
48029 2007-03-10  Bruno Haible  <bruno@clisp.org>
48030
48031         * lib/stdio_.h (__attribute__): New macro.
48032         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
48033         vsprintf): Specify __attribute__ __format__ for GCC.
48034         Suggested by Eric Blake.
48035
48036 2007-03-09  Bruno Haible  <bruno@clisp.org>
48037
48038         * modules/printf-posix-tests: New file.
48039         * tests/test-printf-posix.sh: New file.
48040         * tests/test-printf-posix.c: New file.
48041
48042         * modules/printf-posix: New file.
48043         * lib/printf.c: New file.
48044         * m4/printf-posix-rpl.m4: New file.
48045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
48046         REPLACE_PRINTF.
48047         * lib/stdio_.h (printf): New declaration.
48048         (format, __format__, ____printf____, ____scanf____, ____strftime____,
48049         ____strfmon____): New macros.
48050         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
48051         REPLACE_PRINTF.
48052
48053 2007-03-09  Bruno Haible  <bruno@clisp.org>
48054
48055         * tests/test-vasnprintf-posix2.sh: New file.
48056         * tests/test-vasnprintf-posix2.c: New file.
48057         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
48058         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48059         (Makefile.am): Activate test-vasnprintf-posix2.sh.
48060
48061         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
48062         a locale dependent decimal point, rather than always '.'.
48063
48064 2007-03-09  Eric Blake  <ebb9@byu.net>
48065
48066         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
48067         spite of platforms like Tandem/NSK that define it to -1.
48068
48069 2007-03-08  Bruno Haible  <bruno@clisp.org>
48070
48071         * modules/vprintf-posix-tests: New file.
48072         * tests/test-vprintf-posix.sh: New file.
48073         * tests/test-vprintf-posix.c: New file.
48074         * tests/test-printf-posix.h: New file.
48075
48076         * modules/vprintf-posix: New file.
48077         * lib/vprintf.c: New file.
48078         * m4/vprintf-posix.m4: New file.
48079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
48080         REPLACE_VPRINTF.
48081         * lib/stdio_.h (vprintf): New declaration.
48082         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
48083         REPLACE_VPRINTF.
48084
48085 2007-03-08  Bruno Haible  <bruno@clisp.org>
48086
48087         * modules/fprintf-posix-tests: New file.
48088         * tests/test-fprintf-posix.sh: New file.
48089         * tests/test-fprintf-posix.c: New file.
48090
48091         * modules/fprintf-posix: New file.
48092         * lib/fprintf.c: New file.
48093         * m4/fprintf-posix.m4: New file.
48094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
48095         REPLACE_FPRINTF.
48096         * lib/stdio_.h (fprintf): New declaration.
48097         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
48098         REPLACE_FPRINTF.
48099
48100 2007-03-08  Bruno Haible  <bruno@clisp.org>
48101
48102         * modules/vfprintf-posix-tests: New file.
48103         * tests/test-vfprintf-posix.sh: New file.
48104         * tests/test-vfprintf-posix.c: New file.
48105         * tests/test-fprintf-posix.h: New file.
48106         * tests/test-fprintf-posix.out: New file.
48107
48108         * modules/vfprintf-posix: New file.
48109         * lib/vfprintf.c: New file.
48110         * m4/vfprintf-posix.m4: New file.
48111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
48112         REPLACE_VFPRINTF.
48113         * lib/stdio_.h (vfprintf): New declaration.
48114         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
48115         REPLACE_VFPRINTF.
48116
48117 2007-03-08  Bruno Haible  <bruno@clisp.org>
48118
48119         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
48120
48121 2007-03-08  Bruno Haible  <bruno@clisp.org>
48122
48123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
48124         instead of 'expr' invocations.
48125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48130         Suggested by Paul Eggert.
48131
48132 2007-03-08  Bruno Haible  <bruno@clisp.org>
48133
48134         * modules/fseterr-tests: New file.
48135         * tests/test-fseterr.c: New file.
48136
48137         * modules/fseterr: New file.
48138         * lib/fseterr.h: New file.
48139         * lib/fseterr.c: New file.
48140
48141 2007-03-08  Bruno Haible  <bruno@clisp.org>
48142
48143         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
48144         * lib/getopt_.h: Likewise.
48145         * lib/mbswidth.h: Likewise.
48146         * lib/setenv.h: Likewise.
48147         * lib/vasnprintf.h: Likewise.
48148         * lib/vasprintf.h: Likewise.
48149         * lib/verror.h: Likewise.
48150         * lib/xsetenv.h: Likewise.
48151         * lib/xvasprintf.h: Likewise.
48152
48153 2007-03-08  Jim Meyering  <jim@meyering.net>
48154
48155         * users.txt: Add parted.
48156
48157         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
48158
48159 2007-03-07  Bruno Haible  <bruno@clisp.org>
48160
48161         * m4/printf.m4: Make the shell script snippets copy&pastable.
48162
48163 2007-03-02  Bruno Haible  <bruno@clisp.org>
48164
48165         * lib/netinet_in_.h: New file.
48166         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
48167         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
48168         * modules/netinet_in (Files): Add lib/netinet_in_.h.
48169         (Depends-on): Add absolute-header.
48170         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
48171         into netinet/in.h.
48172
48173 2007-03-03  Bruno Haible  <bruno@clisp.org>
48174
48175         * lib/sys_select_.h: New file.
48176         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
48177         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
48178         * modules/sys_select (Files): Add lib/sys_select_.h.
48179         (Depends-on): Add absolute-header.
48180         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
48181         into sys/select.h.
48182
48183 2007-03-02  Bruno Haible  <bruno@clisp.org>
48184
48185         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
48186         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
48187         values.
48188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
48189         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
48190         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
48191         * modules/sys_socket (Depends-on): Add absolute-header.
48192         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
48193         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
48194         (Include): Remove requirement of inclusion of <sys/types.h>.
48195
48196 2007-03-02  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/byteswap_.h (bswap_32): Fix formula.
48199
48200 2007-03-06  Bruno Haible  <bruno@clisp.org>
48201
48202         * modules/sprintf-posix-tests: New file.
48203         * tests/test-sprintf-posix.c: New file.
48204
48205         * modules/sprintf-posix: New file.
48206         * lib/sprintf.c: New file.
48207         * m4/sprintf-posix.m4: New file.
48208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
48209         REPLACE_SPRINTF.
48210         * lib/stdio_.h (sprintf): New declaration.
48211         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
48212         REPLACE_SPRINTF.
48213
48214 2007-03-06  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/vsprintf-posix-tests: New file.
48217         * tests/test-vsprintf-posix.c: New file.
48218         * tests/test-sprintf-posix.h: New file.
48219
48220         * modules/vsprintf-posix: New file.
48221         * lib/vsprintf.c: New file.
48222         * m4/vsprintf-posix.m4: New file.
48223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
48224         REPLACE_VSPRINTF.
48225         * lib/stdio_.h (vsprintf): New declaration.
48226         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
48227         REPLACE_VSPRINTF.
48228
48229 2007-03-06  Bruno Haible  <bruno@clisp.org>
48230
48231         * modules/vsnprintf (Depend-on): Remove minmax.
48232
48233 2007-03-06  Bruno Haible  <bruno@clisp.org>
48234
48235         * modules/snprintf-posix-tests: New file.
48236         * tests/test-snprintf-posix.c: New file.
48237
48238         * modules/snprintf-posix: New file.
48239         * m4/snprintf-posix.m4: New file.
48240         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
48241         gl_FUNC_SNPRINTF.
48242         (gl_FUNC_SNPRINTF): Invoke it.
48243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
48244         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
48245         is set.
48246         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
48247
48248 2007-03-06  Bruno Haible  <bruno@clisp.org>
48249
48250         * modules/vsnprintf-posix-tests: New file.
48251         * tests/test-vsnprintf-posix.c: New file.
48252         * tests/test-snprintf-posix.h: New file.
48253
48254         * modules/vsnprintf-posix: New file.
48255         * m4/vsnprintf-posix.m4: New file.
48256         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
48257         gl_FUNC_VSNPRINTF.
48258         (gl_FUNC_VSNPRINTF): Invoke it.
48259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
48260         * lib/stdio_.h (vsnprintf): Define as a replacement if
48261         REPLACE_VSNPRINTF is set.
48262         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
48263
48264 2007-03-06  Bruno Haible  <bruno@clisp.org>
48265
48266         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
48267         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
48268
48269 2007-03-06  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
48272         (asinl): Declare also if HAVE_DECL_ASINL is set.
48273         (atanl): Declare also if HAVE_DECL_ATANL is set.
48274         (ceill): Declare also if HAVE_DECL_CEILL is set.
48275         (cosl): Declare also if HAVE_DECL_COSL is set.
48276         (expl): Declare also if HAVE_DECL_EXPL is set.
48277         (floorl): Declare also if HAVE_DECL_FLOORL is set.
48278         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
48279         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
48280         (logl): Declare also if HAVE_DECL_LOGL is set.
48281         (sinl): Declare also if HAVE_DECL_SINL is set.
48282         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
48283         (tanl): Declare also if HAVE_DECL_TANL is set.
48284         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
48285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
48286         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
48287         declaration of frexpl, ldexpl.
48288         * modules/printf-frexpl (Depends-on): Add math.
48289         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
48290
48291 2007-03-05  Bruno Haible  <bruno@clisp.org>
48292
48293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
48294         frexpl and ldexpl are declared.
48295         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
48296
48297 2007-03-05  Bruno Haible  <bruno@clisp.org>
48298
48299         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
48300         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
48301
48302 2007-03-05  Bruno Haible  <bruno@clisp.org>
48303
48304         * lib/stdio_.h: Include <stddef.h>.
48305
48306 2007-03-05  Bruno Haible  <bruno@clisp.org>
48307
48308         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
48309
48310 2007-03-05  Bruno Haible  <bruno@clisp.org>
48311
48312         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
48313         NetBSD 4, from Ralf Wildenhues.
48314
48315 2007-03-04  Bruno Haible  <bruno@clisp.org>
48316
48317         * lib/vasprintf.h: Update #if logic for the case when the functions
48318         exist but are overridden.
48319
48320 2007-03-04  Bruno Haible  <bruno@clisp.org>
48321
48322         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
48323         implementations: glibc-2.4 and MacOS X 10.3.
48324         * tests/test-vasnprintf-posix.c (test_function): Test also the case
48325         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
48326         * tests/test-vasprintf-posix.c (test_function): Likewise.
48327
48328 2007-03-04  Bruno Haible  <bruno@clisp.org>
48329
48330         * modules/vasprintf-posix-tests: New file.
48331         * tests/test-vasprintf-posix.c: New file.
48332
48333         * modules/vasprintf-posix: New file.
48334         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
48335         defined.
48336         * m4/vasprintf-posix.m4: New file.
48337         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
48338         gl_FUNC_VASPRINTF.
48339         (gl_FUNC_VASPRINTF): Invoke it.
48340         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
48341         here.
48342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
48343
48344 2007-03-04  Bruno Haible  <bruno@clisp.org>
48345
48346         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
48347         REPLACE_GETTIMEOFDAY.
48348         * modules/sys_time (Makefile.am): Likewise.
48349         * m4/sys_time_h.m4: Likewise.
48350         * m4/gettimeofday.m4: Likewise.
48351
48352 2007-03-04  Bruno Haible  <bruno@clisp.org>
48353
48354         * modules/vasnprintf-posix-tests: New file.
48355         * tests/test-vasnprintf-posix.c: New file.
48356
48357         * modules/vasnprintf-posix: New file.
48358         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
48359         printf-frexpl.h.
48360         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
48361         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
48362         REPLACE_VASNPRINTF is defined.
48363         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
48364         gl_FUNC_VASNPRINTF.
48365         (gl_FUNC_VASNPRINTF): Invoke it.
48366         * m4/vasnprintf-posix.m4: New file.
48367         * m4/printf.m4: New file.
48368
48369 2007-03-04  Bruno Haible  <bruno@clisp.org>
48370
48371         Compile progreloc.c only if --enable-relocatable is specified.
48372         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
48373         if --enable-relocatable was specified.
48374         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
48375         lib_SOURCES.
48376
48377 2007-03-04  Jim Meyering  <jim@meyering.net>
48378
48379         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
48380         Use it consistently, rather than enumerating errno constants.
48381
48382 2007-03-04  Bruno Haible  <bruno@clisp.org>
48383
48384         * modules/xvasprintf-tests: New file.
48385         * tests/test-xvasprintf.c: New file.
48386
48387         * modules/vasprintf-tests: New file.
48388         * tests/test-vasprintf.c: New file.
48389
48390         * modules/vasnprintf-tests: New file.
48391         * tests/test-vasnprintf.c: New file.
48392
48393         * modules/vsnprintf-tests: New file.
48394         * tests/test-vsnprintf.c: New file.
48395
48396         * modules/snprintf-tests: New file.
48397         * tests/test-snprintf.c: New file.
48398
48399 2007-03-04  Bruno Haible  <bruno@clisp.org>
48400
48401         Compile relocatable.c only if --enable-relocatable is specified.
48402         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
48403         gl_RELOCATABLE_LIBRARY.
48404         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
48405         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
48406         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
48407         gl_RELOCATABLE_LIBRARY.
48408         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
48409         (Makefile.am): Remove lib_SOURCES.
48410         * modules/relocatable-lib-lgpl (configure.ac): Invoke
48411         gl_RELOCATABLE_LIBRARY.
48412         (Makefile.am): Remove lib_SOURCES.
48413         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
48414         always.
48415         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48416         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
48417
48418 2007-03-04  Bruno Haible  <bruno@clisp.org>
48419
48420         * modules/argmatch-tests: New file.
48421         * tests/test-argmatch.c: New file.
48422
48423         * tests/test-allocsa.c (main): Halve the number of loop runs.
48424
48425         * modules/alloca-opt-tests: New file.
48426         * tests/test-alloca-opt.c: New file.
48427
48428 2007-03-04  Jim Meyering  <jim@meyering.net>
48429
48430         Work around difference between Linux ACLs and Solaris 10 ZFS.
48431         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
48432         for EINVAL.
48433
48434 2007-03-03  Bruno Haible  <bruno@clisp.org>
48435
48436         * modules/relocatable-prog (Depends-on): Add back progreloc's
48437         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
48438
48439 2007-03-03  Bruno Haible  <bruno@clisp.org>
48440
48441         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
48442         * modules/relocatable-lib: New file.
48443
48444 2007-03-03  Bruno Haible  <bruno@clisp.org>
48445
48446         * modules/relocatable-prog: Renamed from modules/relocatable.
48447         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
48448
48449 2007-03-03  Bruno Haible  <bruno@clisp.org>
48450
48451         * modules/relocatable-script (Files): Add doc/relocatable.texi,
48452         m4/relocatable-lib.m4.
48453         (Depends-on): Remove 'relocatable'.
48454         (configure.ac): Add gl_RELOCATABLE_NOP.
48455
48456 2007-03-03  Bruno Haible  <bruno@clisp.org>
48457
48458         * modules/relocatable-prog-wrapper: New file.
48459         * modules/relocatable (Depends-on): Add it. Remove all other
48460         dependencies except progname.
48461         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
48462
48463         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
48464         (gl_FUNC_STRERROR): Nop.
48465         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
48466
48467         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
48468         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
48469
48470         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
48471         (gl_FUNC_READLINK): Update.
48472
48473         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
48474
48475 2007-03-03  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/xreadlink.c: Include <unistd.h> unconditionally.
48478         * modules/xreadlink (Depends-on): Add unistd.
48479         * modules/xreadlink-with-size (Depends-on): Likewise.
48480
48481 2007-03-03  Bruno Haible  <bruno@clisp.org>
48482
48483         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
48484         extracted from gt_FUNC_SETENV.
48485         (gt_FUNC_SETENV): Remove macro.
48486         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
48487         remove gt_FUNC_SETENV.
48488
48489 2007-03-03  Bruno Haible  <bruno@clisp.org>
48490
48491         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
48492         ENABLE_RELOCATABLE here.
48493         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
48494
48495 2007-03-03  Bruno Haible  <bruno@clisp.org>
48496
48497         * modules/rbtreehash-list-tests (Depends-on): Add progname.
48498         * tests/test-rbtreehash_list.c: Include progname.h.
48499         (main): Call set_program_name.
48500
48501         * modules/rbtree-oset-tests (Depends-on): Add progname.
48502         * tests/test-rbtree_oset.c: Include progname.h.
48503         (main): Call set_program_name.
48504
48505         * modules/rbtree-list-tests (Depends-on): Add progname.
48506         * tests/test-rbtree_list.c: Include progname.h.
48507         (main): Call set_program_name.
48508
48509         * modules/linked-list-tests (Depends-on): Add progname.
48510         * tests/test-linked_list.c: Include progname.h.
48511         (main): Call set_program_name.
48512
48513 2007-03-03  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
48516         All uses of __restrict changed to _Restrict_.
48517         * lib/glob_.h (__restrict): Remove macro.
48518
48519 2007-03-02  Bruno Haible  <bruno@clisp.org>
48520
48521         * modules/gettext (configure.ac): Require gettext infrastructure
48522         from version 0.16.1.
48523
48524 2007-03-02  Bruno Haible  <bruno@clisp.org>
48525
48526         * modules/linkedhash-list-tests (Depends-on): Add progname.
48527         * tests/test-linkedhash_list.c: Include progname.h.
48528         (main): Call set_program_name.
48529
48530         * modules/carray-list-tests (Depends-on): Add progname.
48531         * tests/test-carray_list.c: Include progname.h.
48532         (main): Call set_program_name.
48533
48534         * modules/avltreehash-list-tests (Depends-on): Add progname.
48535         * tests/test-avltreehash_list.c: Include progname.h.
48536         (main): Call set_program_name.
48537
48538         * modules/avltree-oset-tests (Depends-on): Add progname.
48539         * tests/test-avltree_oset.c: Include progname.h.
48540         (main): Call set_program_name.
48541
48542         * modules/avltree-list-tests (Depends-on): Add progname.
48543         * tests/test-avltree_list.c: Include progname.h.
48544         (main): Call set_program_name.
48545
48546         * modules/array-oset-tests (Depends-on): Add progname.
48547         * tests/test-array_oset.c: Include progname.h.
48548         (main): Call set_program_name.
48549
48550         * modules/array-list-tests (Depends-on): Add progname.
48551         * tests/test-array_list.c: Include progname.h.
48552         (main): Call set_program_name.
48553
48554         * modules/argp-tests (Depends-on): Add progname.
48555         * tests/test-argp.c: Include argp.h first. Include progname.h.
48556         (main): Call set_program_name.
48557
48558 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
48559
48560         * doc/gnulib-tool.texi (Initial import): Reword description of
48561         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
48562         limited effect even if defined after the first system include.
48563
48564 2007-03-01  Bruno Haible  <bruno@clisp.org>
48565
48566         * build-aux/config.libpath: Update to libtool-1.5.22.
48567         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48568
48569 2007-03-01  Bruno Haible  <bruno@clisp.org>
48570
48571         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
48572         foo_CFLAGS.
48573         Reported by Ralf Wildenhues.
48574
48575 2007-03-01  Bruno Haible  <bruno@clisp.org>
48576
48577         * build-aux/install-reloc: Remove object files left over by some
48578         compilers.
48579         Reported by Ralf Wildenhues.
48580
48581 2007-03-01  Bruno Haible  <bruno@clisp.org>
48582
48583         * build-aux/install-reloc: Break long lines.
48584
48585 2007-03-01  Bruno Haible  <bruno@clisp.org>
48586
48587         * doc/relocatable.texi: Document that it may not work on OpenBSD.
48588         Reported by Ralf Wildenhues.
48589
48590 2007-03-01  Bruno Haible  <bruno@clisp.org>
48591
48592         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
48593         include ordering constraints.
48594
48595 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48596
48597         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
48598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
48599         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
48600         as another example.
48601         * lib/time_.h: Fix misspelling.
48602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48603         Require gl_HEADER_TIME_H_DEFAULTS.
48604         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
48605         * m4/time_r.m4 (gl_TIME_R): Likewise.
48606         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
48607
48608 2007-03-01  Bruno Haible  <bruno@clisp.org>
48609
48610         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
48611         * m4/utimens.m4 (gl_UTIMENS): Likewise.
48612
48613 2007-03-01  Jim Meyering  <jim@meyering.net>
48614
48615         * modules/xreadlink (Maintainer): Add my name.
48616         * modules/xreadlink-with-size (Depends-on): Alphabetize.
48617
48618 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
48619             Bruno Haible  <bruno@clisp.org>
48620
48621         * build-aux/install-reloc: Compile also c-ctype.c.
48622         * build-aux/relocatable.sh.in: New file.
48623         * doc/relocatable.texi: New file.
48624         * doc/relocatable-maint.texi: New file.
48625         * doc/gnulib.texi: Include relocatable-maint.texi.
48626         * lib/progreloc.c: Include unistd.h unconditionally.
48627         * lib/relocwrapper.c: Include unistd.h unconditionally.
48628         Include c-ctype.h.
48629         (add_dotbin): Use c_tolower.
48630         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
48631         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
48632         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
48633         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
48634         to m4/relocatable-lib.m4.
48635         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
48636         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
48637         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
48638         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
48639         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
48640         * modules/relocatable: New file.
48641         * modules/relocatable-lib: New file.
48642         * modules/relocatable-script: New file.
48643
48644 2007-02-28  Bruno Haible  <bruno@clisp.org>
48645
48646         Import --enable-relocatable infrastructure.
48647         * build-aux/config.libpath: New file, from GNU gettext.
48648         * build-aux/install-reloc: New file, from GNU gettext.
48649         * build-aux/reloc-ldflags: New file, from GNU gettext.
48650         * lib/relocatable.h: New file, from GNU gettext.
48651         * lib/relocatable.c: New file, from GNU gettext.
48652         * lib/relocwrapper.c: New file, from GNU gettext.
48653         * m4/relocatable.m4: New file, from GNU gettext.
48654
48655 2007-02-28  Bruno Haible  <bruno@clisp.org>
48656
48657         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
48658
48659         * modules/xreadlink: New file, from GNU gettext with modifications.
48660         * lib/xreadlink.c: New file, from GNU gettext.
48661         * lib/xreadlink.h: Add comments.
48662         (xreadlink): New declaration.
48663
48664         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
48665         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
48666         lib/xreadlink-with-size.c.
48667         (configure.ac): Remove gl_XREADLINK invocation.
48668         (Makefile.am): Augment lib_SOURCES.
48669         * m4/xreadlink.m4: Remove file.
48670         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
48671         (xreadlink_with_size): Renamed from xreadink.
48672         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
48673         * modules/canonicalize (Depends-on): Replace xreadlink with
48674         xreadlink-with-size.
48675         * lib/canonicalize.c (canonicalize_filename_mode): Update.
48676
48677 2007-02-25  Jim Meyering  <jim@meyering.net>
48678
48679         * build-aux/announce-gen: When complaining about excess arguments,
48680         list them.
48681
48682 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48683
48684         * README: Document signed integer overflow situation more
48685         accurately.
48686
48687 2007-02-25  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
48690         'a' or 'A' conversion.
48691
48692 2007-02-25  Bruno Haible  <bruno@clisp.org>
48693
48694         * modules/filename: Renamed from modules/pathname.
48695         (Files): Replace lib/pathname.h with lib/filename.h. Replace
48696         lib/concatpath.c with lib/concat-filename.c.
48697         (Makefile.am): Update.
48698         (Include): Replace pathname.h with filename.h.
48699         * lib/filename.h: Renamed from lib/pathname.h.
48700         (concatenated_filename): Renamed from concatenated_pathname.
48701         * lib/concat-filename.c: Renamed from lib/concatpath.c.
48702         (concatenated_filename): Renamed from concatenated_pathname.
48703         * lib/findprog.c: Include filename.h instead of pathname.h.
48704         (find_in_path): Update.
48705         * lib/javacomp.c: Include filename.h instead of pathname.h.
48706         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48707         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48708         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48709         is_oldgcj_14_13_usable, is_javac_usable): Update.
48710         * lib/javaexec.c: Include filename.h instead of pathname.h.
48711         (execute_java_class): Update.
48712         * modules/findprog: Update.
48713         * modules/javacomp: Update.
48714         * modules/javaexec: Update.
48715         * MODULES.html.sh (File system functions): Add 'filename', remove
48716         'pathname'.
48717
48718 2007-02-25  Bruno Haible  <bruno@clisp.org>
48719
48720         * modules/printf-frexpl-tests: New file.
48721         * tests/test-printf-frexpl.c: New file.
48722
48723         * modules/printf-frexpl: New file.
48724         * lib/printf-frexpl.h: New file.
48725         * lib/printf-frexpl.c: New file.
48726         * m4/printf-frexpl.m4: New file.
48727
48728 2007-02-25  Bruno Haible  <bruno@clisp.org>
48729
48730         * modules/printf-frexp-tests: New file.
48731         * tests/test-printf-frexp.c: New file.
48732
48733         * modules/printf-frexp: New file.
48734         * lib/printf-frexp.h: New file.
48735         * lib/printf-frexp.c: New file.
48736         * m4/printf-frexp.m4: New file.
48737
48738 2007-02-25  Bruno Haible  <bruno@clisp.org>
48739
48740         Assume automake >= 1.10 for the tests.
48741         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
48742         * modules/arctwo-tests: Likewise.
48743         * modules/argp-tests: Likewise.
48744         * modules/avltree-list-tests: Likewise.
48745         * modules/avltree-oset-tests: Likewise.
48746         * modules/avltreehash-list-tests: Likewise.
48747         * modules/carray-list-tests: Likewise.
48748         * modules/crc-tests: Likewise.
48749         * modules/des-tests: Likewise.
48750         * modules/gc-arcfour-tests: Likewise.
48751         * modules/gc-arctwo-tests: Likewise.
48752         * modules/gc-des-tests: Likewise.
48753         * modules/gc-hmac-md5-tests: Likewise.
48754         * modules/gc-hmac-sha1-tests: Likewise.
48755         * modules/gc-md2-tests: Likewise.
48756         * modules/gc-md4-tests: Likewise.
48757         * modules/gc-md5-tests: Likewise.
48758         * modules/gc-pbkdf2-sha1-tests: Likewise.
48759         * modules/gc-rijndael-tests: Likewise.
48760         * modules/gc-sha1-tests: Likewise.
48761         * modules/gc-tests: Likewise.
48762         * modules/getaddrinfo-tests: Likewise.
48763         * modules/hmac-md5-tests: Likewise.
48764         * modules/hmac-sha1-tests: Likewise.
48765         * modules/linked-list-tests: Likewise.
48766         * modules/linkedhash-list-tests: Likewise.
48767         * modules/lock-tests: Likewise.
48768         * modules/md2-tests: Likewise.
48769         * modules/md4-tests: Likewise.
48770         * modules/md5-tests: Likewise.
48771         * modules/rbtree-list-tests: Likewise.
48772         * modules/rbtree-oset-tests: Likewise.
48773         * modules/rbtreehash-list-tests: Likewise.
48774         * modules/read-file-tests: Likewise.
48775         * modules/rijndael-tests: Likewise.
48776         * modules/stdint-tests: Likewise.
48777         * modules/tls-tests: Likewise.
48778
48779 2007-02-24  Bruno Haible  <bruno@clisp.org>
48780
48781         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
48782         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
48783         function; instead check whether isnan with a double argument links.
48784         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
48785         function; instead check whether isnan with a 'long double' argument
48786         links.
48787         Reported by Eric Blake <ebb9@byu.net>.
48788
48789 2007-02-24  Bruno Haible  <bruno@clisp.org>
48790
48791         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
48792         defined.
48793         * lib/isnanl.c: Remove all code. Just include isnan.c.
48794         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
48795
48796 2007-02-25  Jim Meyering  <jim@meyering.net>
48797
48798         Avoid conflicting types for 'unsetenv' on FreeBSD.
48799         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
48800         conflicting with FreeBSD's (5.0 and 6.1) function declaration
48801         in stdlib.h.
48802
48803 2007-02-24  Bruno Haible  <bruno@clisp.org>
48804
48805         * modules/isnanl-nolibm-tests: New file.
48806         * tests/test-isnanl.c: New file.
48807
48808         * modules/isnanl-nolibm: New file.
48809         * lib/isnanl.h: New file.
48810         * lib/isnanl.c: New file.
48811         * m4/isnanl.m4: New file.
48812
48813 2007-02-24  Bruno Haible  <bruno@clisp.org>
48814
48815         * modules/isnan-nolibm-tests: New file.
48816         * tests/test-isnan.c: New file.
48817
48818         * modules/isnan-nolibm: New file.
48819         * lib/isnan.h: New file.
48820         * lib/isnan.c: New file.
48821         * m4/isnan.m4: New file.
48822
48823 2007-02-24  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
48826         assume that an exponent fits in 20 bits.
48827
48828 2007-02-24  Jim Meyering  <jim@meyering.net>
48829
48830         * m4/regex.m4: Update the description of the configure-time option,
48831         --without-included-regex, to state accurately what the defaults are,
48832         and perhaps to give people an idea why using this option is risky.
48833
48834 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48835
48836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
48837         loops on small arguments.  This attempts to avoid the problem
48838         Bruno Haible reported for AIX 4.3.2 in
48839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
48840
48841 2007-02-23  Bruno Haible  <bruno@clisp.org>
48842
48843         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
48844         Needed for help2man.
48845
48846 2007-02-23  Karl Berry  <karl@gnu.org>
48847
48848         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
48849         exists, foo.h should be cvs-ignored, not committed.
48850
48851 2007-02-23  Eric Blake  <ebb9@byu.net>
48852
48853         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
48854         * lib/stat-time.h (includes): Likewise.
48855         * lib/utimecmp.c (includes): Likewise.
48856         * lib/utimens.h (includes): Likewise.
48857         * lib/getdate.y (includes): Also include "timespec.h" for use
48858         internal to the module.
48859         * modules/utimens (Depends-on): Revert yesterday's patch.
48860         * modules/nanosleep (Depends-on): Add missing dependency.
48861
48862 2007-02-22  Bruno Haible  <bruno@clisp.org>
48863
48864         * lib/glob.c: Don't include getlogin_r.h.
48865
48866 2007-02-22  Jim Meyering  <jim@meyering.net>
48867
48868         * modules/utimens (Depends-on): Add timespec, required for
48869         utimens.h's inclusion of timespec.h.
48870
48871 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
48872
48873         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
48874         long unreadable paths in GNU/Linux.  Problem reported by Andreas
48875         Schwab in
48876         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
48877         I'll try to think of a better way to fix the Solaris problem.
48878
48879         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
48880         like glibc; on Solaris 10, it fails with errno == EINVAL.
48881         POSIX says the behavior is unspecified if the first argument is NULL,
48882         so play it safe and never pass NULL to the system getcwd.
48883
48884 2007-02-21  Jim Meyering  <jim@meyering.net>
48885
48886         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
48887         of gettimeofday.  It would conflict with the one now always
48888         provided via sys_time_.h.  Reported by Matthew Woehlke, as
48889         an IRIX 6.5 build failure.
48890
48891 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48892
48893         Minor fixups to port to Solaris 10 with Sun C 5.8.
48894         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
48895         * modules/getcwd (Depends-on): Add dirfd.
48896         * lib/putenv.c (putenv): #undef it.
48897         (rpl_putenv): New decl.
48898         (malloc, free): Include <stdlib.h> rather than prototyping separately.
48899
48900 2007-02-20  Bruno Haible  <bruno@clisp.org>
48901
48902         * modules/stdio-tests: New file.
48903         * tests/test-stdio.c: New file.
48904
48905         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
48906         (Depends-on): Add stdio.
48907         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48908         (Include): Use <stdio.h> instead of vsnprintf.h.
48909         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48910         HAVE_DECL_VSNPRINTF.
48911         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
48912
48913         * modules/snprintf (Files): Remove lib/snprintf.h.
48914         (Depends-on): Add stdio.
48915         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48916         (Include): Use <stdio.h> instead of snprintf.h.
48917         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48918         HAVE_DECL_SNPRINTF.
48919         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
48920         * lib/getaddrinfo.c: Likewise.
48921
48922         * modules/stdio: New file.
48923         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
48924         * lib/snprintf.h: Remove file.
48925         * lib/vsnprintf.h: Remove file.
48926         * lib/.cppi-disable: Remove snprintf.h.
48927         * m4/stdio_h.m4: New file.
48928         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
48929
48930 2007-02-20  Jim Meyering  <jim@meyering.net>
48931
48932         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
48933         used by e.g., mingw.  From Bruno Haible.
48934
48935 2007-02-19  Bruno Haible  <bruno@clisp.org>
48936
48937         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
48938         warnings.
48939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48940
48941 2007-02-19  Bruno Haible  <bruno@clisp.org>
48942
48943         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
48944         from mingw users.
48945
48946 2007-02-19  Bruno Haible  <bruno@clisp.org>
48947
48948         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
48949         warnings.
48950         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
48951
48952 2007-02-19  Jim Meyering  <jim@meyering.net>
48953
48954         Don't use FD after a successful "fdopendir (fd)".
48955         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
48956         Reset it by calling dirfd on the just-obtained DIR*.
48957
48958         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
48959         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
48960
48961 2007-02-18  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/readlink.c: Include <unistd.h>.
48964         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
48965         HAVE_READLINK.
48966         * modules/readlink (Depends-on): Add unistd.
48967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48968         (Include): Add <unistd.h>.
48969
48970         * lib/getlogin_r.h: Remove file.
48971         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
48972         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
48973         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
48974         HAVE_DECL_GETLOGIN_R.
48975         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
48976         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48977         (Include): Use <unistd.h> instead of getlogin_r.h.
48978
48979         * lib/getcwd.h: Remove file.
48980         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
48981         * lib/xgetcwd.c: Likewise.
48982         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
48983         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
48984         * modules/getcwd (Files): Remove lib/getcwd.h.
48985         (Depends-on): Add unistd.
48986         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48987         (Include): Use <unistd.h> instad of getcwd.h.
48988
48989         * lib/ftruncate.c: Include <unistd.h> first.
48990         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
48991         Set HAVE_FTRUNCATE.
48992         * modules/ftruncate (Depends-on): Add unistd.
48993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48994
48995         * lib/fchdir.c: Include <unistd.h> first.
48996         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
48997         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
48998         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
48999         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49000         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
49001
49002         * lib/dup2.c: Include <unistd.h> first.
49003         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
49004         HAVE_DUP2.
49005         * modules/dup2 (Depends-on): Add unistd.
49006         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49007
49008         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
49009         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
49010         REPLACE_CHOWN. Don't define chown as a macro here.
49011         * modules/chown (Depends-on): Add unistd.
49012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49013
49014         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
49015         Add definition for GL_LINK_WARNING.
49016         (chown, dup2): New declarations.
49017         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
49018         link warning.
49019         (ftruncate): New declaration.
49020         (getcwd): New declaration, taken from old getcwd.h.
49021         (getlogin_r): New declaration, taken from old getlogin_r.h.
49022         (readlink): New declaration.
49023         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
49024         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
49025         (gl_PREREQ_UNISTD): Remove macro.
49026         (gl_UNISTD_MODULE_INDICATOR): New macro.
49027         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
49028         many new variables. Don't set UNISTD_H.
49029         * modules/unistd (Description): Change.
49030         (Depends-on): Add link-warning.
49031         (configure.ac): Update.
49032         (Makefile.am): Create unistd.h always. Substitute many new variables
49033         into it.
49034
49035 2007-02-18  Bruno Haible  <bruno@clisp.org>
49036
49037         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
49038         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
49039         HAVE_GETSUBOPT.
49040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
49041         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
49042         * lib/getsubopt.h: Remove file.
49043         * modules/getsubopt (Files): Remove lib/getsubopt.h.
49044         (Depends-on): Add stdlib.
49045         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49046         (Includes): Use <stdlib.h> instead of getsubopt.h.
49047         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
49048         Set HAVE_GETSUBOPT.
49049         * lib/getsubopt.c: Don't include getsubopt.h.
49050
49051 2007-02-18  Bruno Haible  <bruno@clisp.org>
49052
49053         * modules/fchdir (Depends-on): Add dup2.
49054
49055 2007-02-18  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/stdlib_.h: Handle glibc's special invocation convention
49058         specially.
49059
49060 2007-02-18  Bruno Haible  <bruno@clisp.org>
49061
49062         * modules/stdlib-tests: New file.
49063         * tests/test-stdlib.c: New file.
49064
49065         * modules/mkstemp (Files): Remove lib/mkstemp.h.
49066         (Depends-on): Add stdlib.
49067         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49068         (Includes): Use <stdlib.h> instead of mkstemp.h.
49069         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49070         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
49071         * lib/mkstemp.c: Don't include mkstemp.h.
49072         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
49073         * lib/stdlib--.h: Don't include mkstemp.h.
49074
49075         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
49076         (Depends-on): Add stdlib.
49077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49078         (Includes): Use <stdlib.h> instead of mkdtemp.h.
49079         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49080         HAVE_MKDTEMP.
49081         * lib/mkdtemp.c: Don't include mkdtemp.h.
49082         * lib/clean-temp.c: Don't include mkdtemp.h.
49083
49084         * modules/exit (Files): Remove lib/exit.h.
49085         (Depends-on): Add stdlib.
49086         (Makefile.am): Remove lib_SOURCES.
49087         (Include): Use <stdlib.h> instead of exit.h.
49088         * lib/argmatch.c: Don't include exit.h.
49089         * lib/execute.c: Likewise.
49090         * lib/pagealign_alloc.c: Likewise.
49091         * lib/pipe.c: Likewise.
49092         * lib/wait-process.c: Likewise.
49093         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
49094         * lib/exitfail.c: Likewise.
49095         * lib/savewd.c: Likewise.
49096         * lib/xsetenv.c: Likewise.
49097
49098         * modules/stdlib: New file.
49099         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
49100         and extra comments about mkstemp().
49101         * lib/exit.h: Remove file.
49102         * lib/mkdtemp.h: Remove file.
49103         * lib/mkstemp.h: Remove file.
49104         * m4/stdlib_h.m4: New file.
49105         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
49106
49107 2007-02-18  Bruno Haible  <bruno@clisp.org>
49108
49109         * modules/math-tests: New file.
49110         * tests/test-math.c: New file.
49111
49112         * modules/math: New file.
49113         * modules/mathl (Files): Remove lib/mathl.h.
49114         (Depends-on): Add math.
49115         (Makefile.am): Don't mention mathl.h.
49116         (Include): Use <math.h> instead of mathl.h.
49117         * lib/math_.h: New file.
49118         * lib/mathl.h: Remove file.
49119         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
49120         mathl.h.
49121         * lib/asinl.c: Likewise.
49122         * lib/atanl.c: Likewise.
49123         * lib/ceill.c: Likewise.
49124         * lib/cosl.c: Likewise.
49125         * lib/expl.c: Likewise.
49126         * lib/floorl.c: Likewise.
49127         * lib/frexpl.c: Likewise.
49128         * lib/ldexpl.c: Likewise.
49129         * lib/logl.c: Likewise.
49130         * lib/sincosl.c: Likewise.
49131         * lib/sinl.c: Likewise.
49132         * lib/sqrtl.c: Likewise.
49133         * lib/tanl.c: Likewise.
49134         * lib/trigl.c: Likewise.
49135         * m4/math_h.m4: New file.
49136         * MODULES.html.sh (Mathematics): Add math.
49137
49138 2007-02-17  Bruno Haible  <bruno@clisp.org>
49139
49140         * modules/wctype-tests: New file.
49141         * tests/test-wctype.c: New file.
49142
49143         * modules/wchar-tests: New file.
49144         * tests/test-wchar.c: New file.
49145
49146         * modules/unistd-tests: New file.
49147         * tests/test-unistd.c: New file.
49148
49149         * modules/time-tests: New file.
49150         * tests/test-time.c: New file.
49151
49152         * modules/sysexits-tests: New file.
49153         * tests/test-sysexits.c: New file.
49154
49155         * modules/sys_time-tests: New file.
49156         * tests/test-sys_time.c: New file.
49157
49158         * modules/sys_stat-tests: New file.
49159         * tests/test-sys_stat.c: New file.
49160
49161         * modules/sys_socket-tests: New file.
49162         * tests/test-sys_socket.c: New file.
49163
49164         * modules/sys_select-tests: New file.
49165         * tests/test-sys_select.c: New file.
49166
49167         * modules/string-tests: New file.
49168         * tests/test-string.c: New file.
49169
49170         * modules/stdbool-tests: New file.
49171         * tests/test-stdbool.c: New file.
49172
49173         * modules/netinet_in-tests: New file.
49174         * tests/test-netinet_in.c: New file.
49175
49176         * modules/inttypes-tests: New file.
49177         * tests/test-inttypes.c: New file.
49178
49179         * modules/fcntl-tests: New file.
49180         * tests/test-fcntl.c: New file.
49181
49182         * modules/byteswap-tests: New file.
49183         * tests/test-byteswap.c: New file.
49184
49185         * modules/arpa_inet-tests: New file.
49186         * tests/test-arpa_inet.c: New file.
49187
49188 2007-02-17  Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
49191         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
49192         if the corresponding module is not enabled. Emit link warnings if
49193         the function is used nevertheless.
49194         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
49195         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
49196         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
49197         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
49198         * modules/inttypes (Depends-on): Add link-warning.
49199         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49200         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
49201         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
49202         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
49203         * modules/imaxdiv (configure.ac): Likewise.
49204         * modules/strtoimax (configure.ac): Likewise.
49205         * modules/strtoumax (configure.ac): Likewise.
49206
49207 2007-02-17  Bruno Haible  <bruno@clisp.org>
49208
49209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
49210         gl_STRING_MODULE_INDICATOR_DEFAULTS.
49211         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
49212         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
49213
49214 2007-02-17  Bruno Haible  <bruno@clisp.org>
49215
49216         * modules/link-warning: New file.
49217         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
49218         * lib/string_.h (GL_LINK_WARNING): Remove definition.
49219         * modules/string (Depends-on): Add link-warning.
49220         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49221         string.h.
49222         * MODULES.html.sh (Support for building libraries and executables): Add
49223         link-warning.
49224
49225 2007-02-17  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
49228         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
49229         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
49230         long lines.
49231
49232 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
49233             Bruno Haible  <bruno@clisp.org>
49234
49235         * modules/tmpfile: New file.
49236         * lib/tmpfile.c: New file.
49237         * m4/tmpfile.m4: New file.
49238         * MODULES.html.sh (func_all_modules): New section "Input/output".
49239
49240 2007-02-15  Bruno Haible  <bruno@clisp.org>
49241
49242         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
49243         (supports_delete_on_close): New function.
49244         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
49245
49246 2007-02-14  Bruno Haible  <bruno@clisp.org>
49247
49248         * modules/mbspcasecmp-tests: New file.
49249         * tests/test-mbspcasecmp.sh: New file.
49250         * tests/test-mbspcasecmp.c: New file.
49251
49252         New module mbspcasecmp.
49253         * modules/mbspcasecmp: New file.
49254         * lib/mbspcasecmp.c: New file.
49255         * lib/string_.h (strncasecmp): Change warning message.
49256         (mbspcasecmp): New declaration.
49257         * m4/mbspcasecmp.m4: New file.
49258         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49259         GNULIB_MBSPCASECMP.
49260         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
49261         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
49262
49263 2007-02-14  Bruno Haible  <bruno@clisp.org>
49264
49265         * modules/mbsncasecmp-tests: New file.
49266         * tests/test-mbsncasecmp.sh: New file.
49267         * tests/test-mbsncasecmp.c: New file.
49268
49269         New module mbsncasecmp.
49270         * modules/mbsncasecmp: New file.
49271         * lib/mbsncasecmp.c: New file.
49272         * lib/string_.h (mbsncasecmp): New declaration.
49273         * m4/mbsncasecmp.m4: New file.
49274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49275         GNULIB_MBSNCASECMP.
49276         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
49277         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
49278
49279 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
49280
49281         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
49282         Verify that it doesn't overlap with our flags.
49283         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
49284         do not have the desired effect in multibyte locales; instead, use
49285         mbscasecmp.
49286         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
49287         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
49288         we don't require GNU fnmatch ourselves (if our users require it, they
49289         should do so explicitly).
49290
49291         Fix regex code so it doesn't rely on strcasecmp.
49292         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
49293         Otherwise, include gnulib's langinfo.h.
49294         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
49295         undesirable behavior in non-C locales.  Instead, rely on localecharset.
49296         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
49297         * modules/regex (FILES): Remove m4/codeset.m4.
49298         (Depends-on): Add localcharset.  Remove strcase.
49299
49300 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49301
49302         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
49303         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
49304
49305 2007-02-13  Bruno Haible  <bruno@clisp.org>
49306
49307         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
49308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49309
49310 2007-02-12  Bruno Haible  <bruno@clisp.org>
49311
49312         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49313         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
49314         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
49315         time warning rather than a link error.
49316
49317 2007-02-12  Bruno Haible  <bruno@clisp.org>
49318
49319         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
49320         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49322
49323 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49324
49325         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
49326         args, not 2.
49327
49328 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49329
49330         New module 'time', so that apps can include <time.h> as per
49331         POSIX and GNU instead of separate include files like time_r.h
49332         and timegm.h.  This implementation tries out a simpler approach
49333         for replacing decls in standard include files (as compared to
49334         the string module), somewhat as an experiment.
49335
49336         * config/srclist.txt: Comment out mktime.c for now.
49337         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
49338         since it doesn't apply any more.  Use generic wording instead.
49339         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
49340         'time'.
49341         * lib/time_.h, m4/time_h.m4, modules/time: New files.
49342         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
49343         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
49344         Don't include <sys/types.h>; no longer needed since we assume C89.
49345         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
49346         * lib/strftime.c: Likewise.
49347         * lib/time_r.c: Likewise.
49348         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
49349         * lib/nanosleep.c: Include <time.h> first, to check interface.
49350         * lib/strptime.c: Likewise.
49351         * lib/time_r.c: Likewise.
49352         * lib/timegm.c: Likewise.
49353         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
49354         needed.
49355         * lib/timegm.c: Don't include timegm.h; no longer needed.
49356         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
49357         time.h now handles any problems in that area.
49358         (struct timespec, nanosleep): Remove; time.h now arranges for these.
49359         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
49360         that time.h defines struct timespec.
49361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
49362         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
49363         handles that.
49364         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
49365         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
49366         needed.  Set REPLACE_LOCALTIME.
49367         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
49368         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
49369         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
49370         nanosleep; time_h.m4 now does that.  Don't require
49371         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
49372         module handles this now.
49373         * modules/getdate (Depends-on): Remove timespec.  Add time.
49374         * modules/nanosleep (Depends-on): Likewise.
49375         * modules/stat-time (Depends-on): Likewise.
49376         * modules/nanosleep (Include): Include time.h, not timespec.h.
49377         * modules/strptime (Files): Remove lib/strptime.h.
49378         (Depends-on): Add extensions, time.
49379         (Include): Include time.h, not strptime.h.
49380         * modules/time_r (Files): Remove lib/time_r.h.
49381         (Depends-on): Add time.
49382         (Include): Include time.h, not time_r.h.
49383         * modules/timegm: Likewise.
49384         * modules/timespec (Description): Now does timespec-related decls
49385         of our own, instead of struct timespec itself.
49386         (Depends-on): Add time; remove extensions.
49387         (Maintainer): Add self.
49388         * modules/utimecmp (Depends-on): Add time; remove timespec.
49389         * modules/utimens (Depends-on): Likewise.
49390         * modules/xnanosleep (Depends-on): Likewise.
49391
49392 2007-02-11  Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/c-strstr.c: Include allocsa.h.
49395         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49396         * lib/c-strcasestr.c: Include allocsa.h.
49397         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49398         * lib/strcasestr.c: Include allocsa.h.
49399         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49400         * lib/mbsstr.c: Include allocsa.h.
49401         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49402         allocsa/freesa instead of malloc/free.
49403         * lib/mbscasestr.c: Include allocsa.h.
49404         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49405         allocsa/freesa instead of malloc/free.
49406         * modules/c-strstr (Depends-on): Add allocsa.
49407         * modules/c-strcasestr (Depends-on): Likewise.
49408         * modules/strcasestr (Depends-on): Likewise.
49409         * modules/mbsstr (Depends-on): Likewise.
49410         * modules/mbscasestr (Depends-on): Likewise.
49411
49412 2007-02-11  Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
49415
49416         * modules/mbsspn-tests: New file.
49417         * tests/test-mbsspn.sh: New file.
49418         * tests/test-mbsspn.c: New file.
49419
49420 2007-02-11  Bruno Haible  <bruno@clisp.org>
49421
49422         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
49423
49424         * modules/mbspbrk-tests: New file.
49425         * tests/test-mbspbrk.sh: New file.
49426         * tests/test-mbspbrk.c: New file.
49427
49428 2007-02-11  Bruno Haible  <bruno@clisp.org>
49429
49430         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
49431         unneeded cast.
49432
49433         * modules/mbscspn-tests: New file.
49434         * tests/test-mbscspn.sh: New file.
49435         * tests/test-mbscspn.c: New file.
49436
49437 2007-02-11  Bruno Haible  <bruno@clisp.org>
49438
49439         * modules/mbscasecmp-tests: New file.
49440         * tests/test-mbscasecmp.sh: New file.
49441         * tests/test-mbscasecmp.c: New file.
49442
49443 2007-02-11  Bruno Haible  <bruno@clisp.org>
49444
49445         Ensure O(n) worst-case complexity of mbscasestr.
49446         * lib/mbscasestr.c: Include stdbool.h.
49447         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49448         functions.
49449         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
49450         the bookkeeping indicates that it's worth it.
49451         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
49452
49453         * modules/mbscasestr-tests: New file.
49454         * tests/test-mbscasestr1.c: New file.
49455         * tests/test-mbscasestr2.sh: New file.
49456         * tests/test-mbscasestr2.c: New file.
49457         * tests/test-mbscasestr3.sh: New file.
49458         * tests/test-mbscasestr3.c: New file.
49459         * tests/test-mbscasestr4.sh: New file.
49460         * tests/test-mbscasestr4.c: New file.
49461         * m4/locale-tr.m4: New file.
49462
49463 2007-02-11  Bruno Haible  <bruno@clisp.org>
49464
49465         Ensure O(n) worst-case complexity of mbsstr.
49466         * lib/mbsstr.c: Include stdbool.h.
49467         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49468         functions.
49469         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
49470         bookkeeping indicates that it's worth it.
49471         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
49472
49473         * modules/mbsstr-tests: New file.
49474         * tests/test-mbsstr1.c: New file.
49475         * tests/test-mbsstr2.sh: New file.
49476         * tests/test-mbsstr2.c: New file.
49477         * tests/test-mbsstr3.sh: New file.
49478         * tests/test-mbsstr3.c: New file.
49479         * m4/locale-fr.m4: New file.
49480
49481 2007-02-11  Bruno Haible  <bruno@clisp.org>
49482
49483         * lib/mbsrchr.c (mbsrchr): Fix bug.
49484
49485         * modules/mbsrchr-tests: New file.
49486         * tests/test-mbsrchr.sh: New file.
49487         * tests/test-mbsrchr.c: New file.
49488
49489 2007-02-11  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/mbschr.c (mbschr): Fix bug.
49492
49493         * modules/mbschr-tests: New file.
49494         * tests/test-mbschr.sh: New file.
49495         * tests/test-mbschr.c: New file.
49496         * m4/locale-zh.m4: New file.
49497
49498 2007-02-11  Bruno Haible  <bruno@clisp.org>
49499
49500         Support for copying multibyte string iterators.
49501         * lib/mbiter.h: Include <string.h>.
49502         (mbiter_multi_copy): New function.
49503         (mbi_copy): New macro.
49504         * lib/mbuiter.h: Include <string.h>.
49505         (mbuiter_multi_copy): New function.
49506         (mbui_copy): New macro.
49507
49508 2007-02-11  Bruno Haible  <bruno@clisp.org>
49509
49510         New module mbslen.
49511         * modules/mbslen: New file.
49512         * lib/mbslen.c: New file.
49513         * lib/string_.h (mbslen): New declaration.
49514         * m4/mbslen.m4: New file.
49515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49516         GNULIB_MBSLEN.
49517         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
49518         * MODULES.html.sh (Internationalization functions): Add mbslen.
49519
49520 2007-02-11  Bruno Haible  <bruno@clisp.org>
49521
49522         Ensure O(n) worst-case complexity of strcasestr substitute.
49523         * lib/strcasestr.c: Include stdbool.h.
49524         (knuth_morris_pratt): New function.
49525         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49526         bookkeeping indicates that it's worth it.
49527         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
49528
49529         * modules/strcasestr-tests: New file.
49530         * tests/test-strcasestr.c: New file.
49531
49532 2007-02-11  Bruno Haible  <bruno@clisp.org>
49533
49534         Ensure O(n) worst-case complexity of c_strcasestr.
49535         * lib/c-strcasestr.c: Include stdbool.h, string.h.
49536         (knuth_morris_pratt): New function.
49537         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
49538         the bookkeeping indicates that it's worth it.
49539         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
49540
49541         * modules/c-strcasestr-tests: New file.
49542         * tests/test-c-strcasestr.c: New file.
49543
49544 2007-02-11  Bruno Haible  <bruno@clisp.org>
49545
49546         Ensure O(n) worst-case complexity of c_strstr.
49547         * lib/c-strstr.c: Include stdbool.h, string.h.
49548         (knuth_morris_pratt): New function.
49549         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49550         bookkeeping indicates that it's worth it.
49551         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
49552
49553         * lib/c-strstr.c: Complete rewrite for maintainability.
49554
49555         * modules/c-strstr-tests: New file.
49556         * tests/test-c-strstr.c: New file.
49557
49558 2007-02-11  Bruno Haible  <bruno@clisp.org>
49559
49560         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
49561         5.2.1 and earlier, whereby \055 was treated just like the range
49562         delimiter '-'.
49563         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49564
49565 2007-02-08  Bruno Haible  <bruno@clisp.org>
49566
49567         * modules/regex (Depends-on): Add stdbool.
49568         Reported by Dalibor Topic <robilad@kaffe.org>.
49569
49570 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
49571
49572         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
49573         Prefer returning from main to exiting from it.
49574         Remove unnecessary parens after sizeof.
49575
49576 2007-02-05  Bruno Haible  <bruno@clisp.org>
49577
49578         New module mbssep.
49579         * modules/mbssep: New file.
49580         * lib/mbssep.c: New file.
49581         * lib/string_.h (strsep): Add a conditional link warning.
49582         (mbssep): New declaration.
49583         * m4/mbssep.m4: New file.
49584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49585         GNULIB_MBSSEP.
49586         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
49587         * MODULES.html.sh (Internationalization functions): Add mbssep.
49588
49589 2007-02-05  Bruno Haible  <bruno@clisp.org>
49590
49591         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
49592         Optimize search in case of 1 delimiter.
49593
49594 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49595
49596         * lib/acl.h: Include sys/types.h before sys/acl.h.
49597
49598 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49599
49600         Merge upstream fix for glibc bugzilla #3957:
49601
49602         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
49603
49604         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
49605         bit for RE_HAT_LISTS_NOT_NEWLINE.
49606         (build_charclass_op): Remove bogus comment.
49607
49608 2007-02-05  Simon Josefsson  <simon@josefsson.org>
49609
49610         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
49611
49612 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49613
49614         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
49615         * lib/memmem.c [!defined _LIBC]: Include config.h.
49616
49617 2007-02-04  Bruno Haible  <bruno@clisp.org>
49618
49619         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
49620         warning message.
49621
49622 2007-02-04  Bruno Haible  <bruno@clisp.org>
49623
49624         New module mbstok_r.
49625         * modules/mbstok_r: New file.
49626         * lib/mbstok_r.c: New file.
49627         * lib/string_.h (strtok_r): Change argument names to match the
49628         comments. Add a conditional link warning.
49629         (mbstok_r): New declaration.
49630         * m4/mbstok_r.m4: New file.
49631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49632         GNULIB_MBSTOK_R.
49633         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
49634         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
49635
49636 2007-02-04  Bruno Haible  <bruno@clisp.org>
49637
49638         New module mbsspn.
49639         * modules/mbsspn: New file.
49640         * lib/mbsspn.c: New file.
49641         * lib/string_.h (strspn): Add a conditional link warning.
49642         (mbsspn): New declaration.
49643         * m4/mbsspn.m4: New file.
49644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49645         GNULIB_MBSSPN.
49646         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
49647         * MODULES.html.sh (Internationalization functions): Add mbsspn.
49648
49649 2007-02-04  Bruno Haible  <bruno@clisp.org>
49650
49651         New module mbspbrk.
49652         * modules/mbspbrk: New file.
49653         * lib/mbspbrk.c: New file.
49654         * lib/string_.h (strpbrk): Add a conditional link warning.
49655         (mbspbrk): New declaration.
49656         * m4/mbspbrk.m4: New file.
49657         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49658         GNULIB_MBSPBRK.
49659         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
49660         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
49661
49662 2007-02-04  Bruno Haible  <bruno@clisp.org>
49663
49664         New module mbscspn.
49665         * modules/mbscspn: New file.
49666         * lib/mbscspn.c: New file.
49667         * lib/string_.h (strcspn): Add a conditional link warning.
49668         (mbscspn): New declaration.
49669         * m4/mbscspn.m4: New file.
49670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49671         GNULIB_MBSCSPN.
49672         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
49673         * MODULES.html.sh (Internationalization functions): Add mbscspn.
49674
49675 2007-02-04  Bruno Haible  <bruno@clisp.org>
49676
49677         New module mbscasestr, reduced goal of strcasestr.
49678         * modules/mbscasestr: New file.
49679         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
49680         (mbscasestr): Renamed from strcasestr.
49681         * lib/strcasestr.c: Don't include mbuiter.h.
49682         (strcasestr): Remove support for multibyte locales.
49683         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
49684         Change the conditional link warning.
49685         (mbscasestr): New declaration.
49686         * m4/mbscasestr.m4: New file.
49687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
49688         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
49689         REPLACE_STRCASESTR.
49690         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
49691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49692         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49693         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
49694         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
49695         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49696         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
49697         (Depends-on): Remove mbuiter.
49698         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
49699
49700 2007-02-04  Bruno Haible  <bruno@clisp.org>
49701
49702         Simplify handling of strncasecmp.
49703         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
49704         the conditional link warning.
49705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49706         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
49707         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
49708         * modules/strcase (configure.ac): Don't invoke
49709         gl_STRING_MODULE_INDICATOR.
49710         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
49711
49712 2007-02-04  Bruno Haible  <bruno@clisp.org>
49713
49714         New module mbscasecmp, reduced goal of strcasecmp.
49715         * modules/mbscasecmp: New file.
49716         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
49717         (mbscasecmp): Renamed from strcasecmp.
49718         * lib/strcasecmp.c: Don't include mbuiter.h.
49719         (strcasecmp): Remove support for multibyte locales.
49720         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
49721         Change the conditional link warning.
49722         (mbscasecmp): New declaration.
49723         * m4/mbscasecmp.m4: New file.
49724         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
49725         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
49726         REPLACE_STRCASECMP.
49727         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
49728         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49729         GNULIB_MBSCASECMP.
49730         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
49731         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
49732         * modules/strcase (Files): Remove m4/mbrtowc.m4.
49733         (Depends-on): Remove mbuiter.
49734         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
49735
49736 2007-02-04  Bruno Haible  <bruno@clisp.org>
49737
49738         New module mbsstr. Remove module strstr.
49739         * modules/mbsstr: New file.
49740         * modules/strstr: Remove file.
49741         * lib/mbsstr.c: Renamed from lib/strstr.c.
49742         (mbsstr): Renamed from strstr.
49743         * lib/string_.h (strstr): Remove declaration. Change the conditional
49744         link warning.
49745         (mbsstr): New declaration.
49746         * m4/mbsstr.m4: New file.
49747         * m4/strstr.m4: Remove file.
49748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49749         REPLACE_STRSTR.
49750         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49751         Don't initialize GNULIB_STRSTR.
49752         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
49753         substitute GNULIB_STRSTR and REPLACE_STRSTR.
49754         * MODULES.html.sh (Internationalization functions): Add mbsstr.
49755         (Support for systems lacking ANSI C 89): Remove strstr.
49756
49757 2007-02-04  Bruno Haible  <bruno@clisp.org>
49758
49759         New module mbsrchr.
49760         * modules/mbsrchr: New file.
49761         * lib/mbsrchr.c: New file.
49762         * lib/string_.h (strrchr): Add a conditional link warning.
49763         (mbsrchr): New declaration.
49764         * m4/mbsrchr.m4: New file.
49765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49766         GNULIB_MBSRCHR.
49767         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
49768         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
49769
49770 2007-02-04  Bruno Haible  <bruno@clisp.org>
49771
49772         New module mbschr.
49773         * modules/mbschr: New file.
49774         * lib/mbschr.c: New file.
49775         * lib/string_.h (strchr): Add a conditional link warning.
49776         (mbschr): New declaration.
49777         * m4/mbschr.m4: New file.
49778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49779         GNULIB_MBSCHR.
49780         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
49781         * MODULES.html.sh (Internationalization functions): Add mbschr.
49782
49783 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49784
49785         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
49786
49787         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
49788
49789 2007-02-04  Bruno Haible  <bruno@clisp.org>
49790
49791         New module description section 'configure.ac-early'.
49792         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
49793         (func_get_autoconf_early_snippet): New function.
49794         (func_import, func_create_testdir): Use it. Remove special cases for
49795         modules 'extensions' and 'lock'.
49796         * modules/extensions (configure.ac-early): Require
49797         gl_USE_SYSTEM_EXTENSIONS.
49798         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
49799
49800 2007-02-04  Bruno Haible  <bruno@clisp.org>
49801
49802         Make use of gcj-4.3's -fsource and -ftarget option.
49803         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
49804         and if so try the options -fsource and -ftarget.
49805         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
49806         source_version, ftarget_option, target_version arguments.
49807         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
49808         (is_envjavac_oldgcj_14_14_usable): Renamed from
49809         is_envjavac_gcj_14_14_usable.
49810         (is_envjavac_oldgcj_14_13_usable): Renamed from
49811         is_envjavac_gcj_14_13_usable.
49812         (is_gcj_present): Update.
49813         (is_gcj_43, is_gcj43_usable): New functions.
49814         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
49815         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
49816         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
49817         try the options -fsource and -ftarget.
49818
49819 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49820
49821         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
49822         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
49823         larger value.
49824
49825 2007-02-03  Jim Meyering  <jim@meyering.net>
49826
49827         Give tools a better chance to allocate space for very large buffers.
49828         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
49829
49830         Make pwd and readlink work also when run with an unreadable parent dir
49831         on systems with openat support.
49832         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
49833         provided getcwd function, even when we have openat support.
49834         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
49835
49836 2007-02-02  Bruno Haible  <bruno@clisp.org>
49837
49838         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49839         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
49840         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
49841         portability problems if one of these functions is only used on specific
49842         platforms.
49843         Reported by Paul Eggert.
49844
49845 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
49846
49847         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
49848         is causing more trouble than it's curing.
49849         * lib/regex_internal.h (__mempcpy): Remove.
49850         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
49851         (and make the code a tad smaller to boot).
49852         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
49853
49854 2007-02-02  Jim Meyering  <jim@meyering.net>
49855
49856         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
49857         section, not in the Makefile.am: one.
49858
49859 2007-02-02  Eric Blake  <ebb9@byu.net>
49860
49861         * lib/strchrnul.c: Always include config.h first.
49862
49863         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
49864         gnulib strstr is not necessary here.
49865
49866 2007-02-02  Simon Josefsson  <simon@josefsson.org>
49867
49868         * m4/socklen.m4: Fix typo.
49869
49870 2007-02-02  Eric Blake  <ebb9@byu.net>
49871
49872         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
49873         * modules/netinet_in (Makefile.am): Likewise.
49874
49875 2007-02-01  Bruno Haible  <bruno@clisp.org>
49876
49877         * lib/string_.h (GL_LINK_WARNING): New macro.
49878         (strcasecmp, strstr, strcasestr): If provided by the system,
49879         conditionally define as a macro that leads to a warning instead of to
49880         an error.
49881         (strncasecmp): Conditionally define as a macro that leads to a warning.
49882
49883 2007-02-01  Karl Berry  <karl@gnu.org>
49884
49885         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
49886
49887 2007-02-01  Bruno Haible  <bruno@clisp.org>
49888
49889         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
49890         renamings.
49891
49892 2007-02-01  Eric Blake  <ebb9@byu.net>
49893
49894         * modules/regex (Depends-on): Revert dependence on mempcpy.
49895         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
49896         module's definition of mempcpy.
49897         Reported by Paul Eggert.
49898
49899 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49900
49901         * lib/string_.h: If the gnulib module XYZ is not present, undefine
49902         the symbol XYZ before redefining it.  This fixes a problem with
49903         programs that don't use XYZ, when compiled on systems that define
49904         XYZ to something else.
49905
49906 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
49907
49908         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
49909         occurs when "mkdir -m foo" creates a setgid directory that is (1)
49910         writeable to group or other and (2) is intended to have a special
49911         mode bit that is set or cleared.  In such a case, the directory
49912         should be neither group- nor other-writeable until the special
49913         mode bits are right.
49914
49915 2007-01-31  Eric Blake  <ebb9@byu.net>
49916
49917         * modules/mountlist (Depends-on): Add strstr.
49918
49919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
49920         bug.
49921         * modules/string (Makefile.am): Remove redundant replacement.
49922         * modules/regex (Depends-on): Add mempcpy.
49923
49924 2007-01-31  Bruno Haible  <bruno@clisp.org>
49925
49926         New module description field 'Link'.
49927         * gnulib-tool (func_usage): Document --extract-link-directive.
49928         (sed_extract_prog): Recognize 'Link' directive.
49929         (func_get_link_directive): New function.
49930         (func_import): Show summary of link directives.
49931         Handle --extract-link-directive option.
49932         * modules/acl (Link): New section.
49933         * modules/clock-time (Link): New section.
49934         * modules/euidaccess (Link): New section.
49935         * modules/gettext (Link): New section.
49936         * modules/iconv (Link): New section.
49937         * modules/lock (Link): New section.
49938         * modules/nanosleep (Link): New section.
49939         * modules/readline (Link): New section.
49940
49941 2007-01-27  Bruno Haible  <bruno@clisp.org>
49942
49943         Enforce the use of gnulib modules for unportable <string.h> functions.
49944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
49945         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
49946         (gl_HEADER_STRING_H_BODY): Require it.
49947         * lib/string_.h: If the gnulib module XYZ is not present, redefine
49948         the symbol XYZ to one that gives a link error.
49949         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
49950         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
49951         * modules/mempcpy (configure.ac): Likewise.
49952         * modules/memrchr (configure.ac): Likewise.
49953         * modules/stpcpy (configure.ac): Likewise.
49954         * modules/stpncpy (configure.ac): Likewise.
49955         * modules/strcase (configure.ac): Likewise.
49956         * modules/strcasestr (configure.ac): Likewise.
49957         * modules/strchrnul (configure.ac): Likewise.
49958         * modules/strdup (configure.ac): Likewise.
49959         * modules/strndup (configure.ac): Likewise.
49960         * modules/strnlen (configure.ac): Likewise.
49961         * modules/strpbrk (configure.ac): Likewise.
49962         * modules/strsep (configure.ac): Likewise.
49963         * modules/strstr (configure.ac): Likewise.
49964         * modules/strtok_r (configure.ac): Likewise.
49965
49966 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
49967
49968         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
49969
49970 2007-01-30  Jim Meyering  <jim@meyering.net>
49971
49972         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
49973
49974 2007-01-29  Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
49977         * lib/execute.c: Likewise.
49978         * lib/pipe.c: Likewise.
49979         * lib/printf-args.h: Likewise.
49980         * lib/printf-args.c: Likewise.
49981         * lib/printf-parse.c: Likewise.
49982         * lib/vasnprintf.c: Likewise.
49983
49984 2007-01-29  Eric Blake  <ebb9@byu.net>
49985
49986         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
49987         declaration.
49988
49989 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49990
49991         * lib/strptime.h (strptime): Use 'restrict' for args where
49992         POSIX requires this.
49993         * lib/strptime.c (strptime): Likewise.
49994         Change license notice from LGPL to GPL, since gnulib-tool will
49995         change this as needed.
49996         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
49997         defined.
49998         Include "strptime.h" first, to check interface.
49999         Do not #undef _LIBC and _NL_CURRENT.
50000         Do not include <stdlib.h>; no longer needed.
50001         Include "time_r.h" and declare ptime_locale_status
50002         only if _LIBC is not defined.
50003         (__P): Remove unused macro.
50004         (match_string): Bring back glibc version, but use it only if _LIBC
50005         is defined.
50006         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
50007         Remove unnecessary assertion and abort() call.
50008         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
50009         * m4/strptime.m4: Fix serial number comment.
50010         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
50011         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
50012         (Depends-on): Add time_r.
50013
50014 2007-01-29  Bruno Haible  <bruno@clisp.org>
50015
50016         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50017         strptime.
50018         * modules/strptime (Depends-on): Add stdbool.
50019         * lib/strptime.h: Include <time.h> always. Add comments.
50020
50021 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50022
50023         * modules/strptime: New file.
50024         * lib/strptime.h: New file.
50025         * lib/strptime.c: New file.
50026         * m4/strptime.m4: New file.
50027
50028 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
50029
50030         * MODULES.html.sh: New module mpsort.
50031         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
50032
50033         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
50034         a circularity problem with HP-UX ia64 reported by Bob Proulx in
50035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
50036         All uses changed.
50037         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
50038         All uses changed.
50039         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
50040         to _Restrict_.
50041         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
50042         the parameter matches the prototype.
50043
50044 2007-01-28  Jim Meyering  <jim@meyering.net>
50045
50046         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
50047         sys/time.h here, reverting that part of the previous patch:
50048         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
50049
50050 2007-01-28  Bruno Haible  <bruno@clisp.org>
50051
50052         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
50053         value of $(SYS_TIME_H).
50054         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
50055         remove it conditionally, too. [added by Jim Meyering]
50056         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
50057         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50058         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
50059         GETTIMEOFDAY_REPLACEMENT to 1.
50060
50061 2007-01-28  Bruno Haible  <bruno@clisp.org>
50062
50063         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
50064         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
50065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
50066         Set UNISTD_H instead of UNISTD_H2.
50067         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
50068
50069 2007-01-28  Bruno Haible  <bruno@clisp.org>
50070
50071         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
50072         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
50073
50074 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50075
50076         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
50077         (func_create_testdir): Ensure C locale for `grep' and `tr'
50078         character ranges.
50079         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
50080         ACLOCAL_AMFLAGS parsing state machine.
50081
50082 2007-01-27  Bruno Haible  <bruno@clisp.org>
50083
50084         * modules/unistr/base: Update.
50085
50086 2007-01-27  Bruno Haible  <bruno@clisp.org>
50087
50088         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
50089         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
50090         * modules/unistr/u32-mbtouc-unsafe: Renamed from
50091         modules/unistr/u32-mbtouc.
50092         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
50093         * lib/unistr.h: Update.
50094         * lib/linebreak.c: Update.
50095         * modules/unistr/u32-mbtouc: Renamed from
50096         modules/unistr/u32-mbtouc-safe.
50097         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
50098         * lib/unistr.h: Update.
50099         * lib/unistr/u32-to-u8.c: Update.
50100         * lib/unistr/u32-to-u16.c: Update.
50101
50102 2007-01-27  Bruno Haible  <bruno@clisp.org>
50103
50104         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
50105         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
50106         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
50107         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
50108         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
50109         * modules/unistr/u16-mbtouc-unsafe: Renamed from
50110         modules/unistr/u16-mbtouc.
50111         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
50112         * lib/unistr.h: Update.
50113         * lib/linebreak.c: Update.
50114         * modules/linebreak: Update.
50115         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
50116         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
50117         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
50118         * modules/unistr/u16-mbtouc: Renamed from
50119         modules/unistr/u16-mbtouc-safe.
50120         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
50121         * lib/unistr.h: Update.
50122         * lib/unistr/u16-to-u8.c: Update.
50123         * modules/unistr/u16-to-u8: Update.
50124         * lib/unistr/u16-to-u32.c: Update.
50125         * modules/unistr/u16-to-u32: Update.
50126
50127 2007-01-27  Bruno Haible  <bruno@clisp.org>
50128
50129         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
50130         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
50131         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
50132         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
50133         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
50134         * modules/unistr/u8-mbtouc-unsafe: Renamed from
50135         modules/unistr/u8-mbtouc.
50136         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
50137         * lib/unistr.h: Update.
50138         * lib/striconveh.c: Update.
50139         * modules/striconveh: Update.
50140         * lib/linebreak.c: Update.
50141         * modules/linebreak: Update.
50142         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
50143         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
50144         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
50145         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
50146         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
50147         * lib/unistr.h: Update.
50148         * lib/striconveh.c: Update.
50149         * modules/striconveh: Update.
50150         * lib/unistr/u8-to-u16.c: Update.
50151         * modules/unistr/u8-to-u16: Update.
50152         * lib/unistr/u8-to-u32.c: Update.
50153         * modules/unistr/u8-to-u32: Update.
50154
50155 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50156
50157         Sync from Libtool.
50158         * lib/argz.c: Do not include strings.h nor memory.h, include
50159         string.h unconditionally.  Patch by Simon Josefsson.
50160
50161 2007-01-27  Bruno Haible  <bruno@clisp.org>
50162
50163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
50164         from gl_HEADER_STRING_H_BODY.
50165         (gl_HEADER_STRING_H_BODY): Require it.
50166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
50167         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50168         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50169         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50170         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50171         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
50172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50173         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50174         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
50175         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50176         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50177         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
50178         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50179         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50180         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50181
50182 2007-01-27  Bruno Haible  <bruno@clisp.org>
50183
50184         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
50185         check_PROGRAMS into noinst_PROGRAMS.
50186         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
50187         check_PROGRAMS in this case.
50188         (func_import): Set for_test to false.
50189         (func_create_testdir): Set for_test to true.
50190
50191 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50192             Bruno Haible  <bruno@clisp.org>
50193
50194         * modules/strcasestr (Files): Remove lib/strcasestr.h.
50195         (Depends-on): Add string.
50196         (Includes): Use <string.h> instead of strcasestr.h.
50197         * modules/string (Makefile.am): Also substitute the value of
50198         REPLACE_STRCASESTR.
50199         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
50200         assume strcasestr is declared in <string.h> not <strings.h>. Also
50201         set REPLACE_STRCASESTR.
50202         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
50203         REPLACE_STRCASESTR.
50204         * lib/strcasestr.h: Remove file.
50205         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
50206         * lib/string_.h (strcasestr): New declaration.
50207
50208 2007-01-27  Bruno Haible  <bruno@clisp.org>
50209
50210         * lib/string_.h: Use 'extern'.
50211
50212 2007-01-27  Jim Meyering  <jim@meyering.net>
50213
50214         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
50215         of set-but-not-used local, "q".
50216
50217         * lib/mempcpy.c: Include <config.h> before <string.h>.
50218         This fixes a compilation error on HP-UX, due to the system's
50219         "restrict"-using mempcpy prototype.
50220
50221 2007-01-26  Bruno Haible  <bruno@clisp.org>
50222
50223         Small optimization.
50224         * lib/javacomp.c: Include c-strstr.h.
50225          (is_envjavac_gcj): Use c_strstr instead of strstr.
50226         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
50227
50228 2007-01-26  Bruno Haible  <bruno@clisp.org>
50229
50230         * MODULES.html.sh (Unicode string functions): Add the new modules.
50231
50232         * modules/uniconv/u32-strconv-to-locale: New file.
50233         * lib/uniconv/u32-strconv-to-locale.c: New file.
50234
50235         * modules/uniconv/u16-strconv-to-locale: New file.
50236         * lib/uniconv/u16-strconv-to-locale.c: New file.
50237
50238         * modules/uniconv/u8-strconv-to-locale: New file.
50239         * lib/uniconv/u8-strconv-to-locale.c: New file.
50240
50241         * modules/uniconv/u32-strconv-from-locale: New file.
50242         * lib/uniconv/u32-strconv-from-locale.c: New file.
50243
50244         * modules/uniconv/u16-strconv-from-locale: New file.
50245         * lib/uniconv/u16-strconv-from-locale.c: New file.
50246
50247         * modules/uniconv/u8-strconv-from-locale: New file.
50248         * lib/uniconv/u8-strconv-from-locale.c: New file.
50249
50250         * modules/uniconv/u32-strconv-to-enc: New file.
50251         * lib/uniconv/u32-strconv-to-enc.c: New file.
50252         * modules/uniconv/u32-strconv-to-enc-tests: New file.
50253         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
50254
50255         * modules/uniconv/u16-strconv-to-enc: New file.
50256         * lib/uniconv/u16-strconv-to-enc.c: New file.
50257         * lib/uniconv/u-strconv-to-enc.h: New file.
50258         * modules/uniconv/u16-strconv-to-enc-tests: New file.
50259         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
50260
50261         * modules/uniconv/u8-strconv-to-enc: New file.
50262         * lib/uniconv/u8-strconv-to-enc.c: New file.
50263         * modules/uniconv/u8-strconv-to-enc-tests: New file.
50264         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
50265
50266         * modules/uniconv/u32-strconv-from-enc: New file.
50267         * lib/uniconv/u32-strconv-from-enc.c: New file.
50268         * modules/uniconv/u32-strconv-from-enc-tests: New file.
50269         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
50270
50271         * modules/uniconv/u16-strconv-from-enc: New file.
50272         * lib/uniconv/u16-strconv-from-enc.c: New file.
50273         * modules/uniconv/u16-strconv-from-enc-tests: New file.
50274         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
50275
50276         * modules/uniconv/u8-strconv-from-enc: New file.
50277         * lib/uniconv/u8-strconv-from-enc.c: New file.
50278         * lib/uniconv/u-strconv-from-enc.h: New file.
50279         * modules/uniconv/u8-strconv-from-enc-tests: New file.
50280         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
50281
50282         * modules/uniconv/u32-conv-from-enc: New file.
50283         * lib/uniconv/u32-conv-from-enc.c: New file.
50284         * modules/uniconv/u32-conv-from-enc-tests: New file.
50285         * tests/uniconv/test-u32-conv-from-enc.c: New file.
50286
50287         * modules/uniconv/u16-conv-from-enc: New file.
50288         * lib/uniconv/u16-conv-from-enc.c: New file.
50289         * lib/uniconv/u-conv-from-enc.h: New file.
50290         * modules/uniconv/u16-conv-from-enc-tests: New file.
50291         * tests/uniconv/test-u16-conv-from-enc.c: New file.
50292
50293         * modules/uniconv/u8-conv-from-enc: New file.
50294         * lib/uniconv/u8-conv-from-enc.c: New file.
50295         * modules/uniconv/u8-conv-from-enc-tests: New file.
50296         * tests/uniconv/test-u8-conv-from-enc.c: New file.
50297
50298         * modules/uniconv/base: New file.
50299         * lib/uniconv.h: New file.
50300
50301 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
50302
50303         * doc/gnulib-tool.texi (Initial import): Update to match current
50304         behavior with strdup module.
50305         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
50306         * lib/memmem.h: Remove; all uses removed.  This is now done
50307         by <string.h>.
50308         * lib/mempcpy.h: Likewise.
50309         * lib/memrchr.h: Likewise.
50310         * lib/stpcpy.h: Likewise.
50311         * lib/stpncpy.h: Likewise.
50312         * lib/strcase.h: Likewise.
50313         * lib/strchrnul.h: Likewise.
50314         * lib/strdup.h: Likewise.
50315         * lib/strndup.h: Likewise.
50316         * lib/strnlen.h: Likewise.
50317         * lib/strpbrk.h: Likewise.
50318         * lib/strsep.h: Likewise.
50319         * lib/strstr.h: Likewise.
50320         * lib/strtok_r.h: Likewise.
50321         * lib/string_.h: New file.
50322         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
50323         Rely on <string.h> instead.
50324         * lib/canon-host.c: Likewise.
50325         * lib/chdir-long.c: Likewise.
50326         * lib/concatpath.c: Likewise.
50327         * lib/exclude.c: Likewise.
50328         * lib/fchdir.c: Likewise.
50329         * lib/getaddrinfo.c: Likewise.
50330         * lib/getcwd.c: Likewise.
50331         * lib/getsubopt.c: Likewise.
50332         * lib/glob.c: Likewise.
50333         * lib/hard-locale.c: Likewise.
50334         * lib/iconvme.c: Likewise.
50335         * lib/javacomp.c: Likewise.
50336         * lib/mempcpy.c: Likewise.
50337         * lib/memrchr.c: Likewise.
50338         * lib/regex_internal.h: Likewise.
50339         * lib/stpncpy.c: Likewise.
50340         * lib/strcasecmp.c: Likewise.
50341         * lib/strchrnul.c: Likewise.
50342         * lib/strdup.c: Likewise.
50343         * lib/striconv.c: Likewise.
50344         * lib/striconveh.c: Likewise.
50345         * lib/striconveha.c: Likewise.
50346         * lib/strncasecmp.c: Likewise.
50347         * lib/strndup.c: Likewise.
50348         * lib/strnlen.c: Likewise.
50349         * lib/strsep.c: Likewise.
50350         * lib/strstr.c: Likewise.
50351         * lib/strtok_r.c: Likewise.
50352         * lib/userspec.c: Likewise.
50353         * lib/w32spawn.h: Likewise.
50354         * lib/xstrndup.c: Likewise.
50355         * lib/mountlist.c (strstr): Remove decl.
50356         * m4/string_h.m4: New file.
50357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
50358         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
50359         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
50360         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
50361         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
50362         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
50363         Set REPLACE_STRCASECMP if necessary.
50364         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
50365         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
50366         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
50367         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
50368         HAVE_DECL_STRDUP if necessary.
50369         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
50370         since gl_FUNC_STRNDUP does that now.
50371         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
50372         Check for decl here...
50373         (gl_PREREQ_STRNLEN): ... not here.
50374         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
50375         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
50376         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
50377         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
50378         necessary.
50379         * modules/string: New file.
50380         * modules/memmem (Files): Remove special-purpose include file.
50381         (Depends-on): Add string.
50382         (Include): Include <string.h>, not the removed file.
50383         * modules/mempcpy: Likewise.
50384         * modules/memrchr: Likewise.
50385         * modules/stpcpy: Likewise.
50386         * modules/stpncpy: Likewise.
50387         * modules/strcase: Likewise.
50388         * modules/strchrnul: Likewise.
50389         * modules/strdup: Likewise.
50390         * modules/strndup: Likewise.
50391         * modules/strnlen: Likewise.
50392         * modules/strpbrk: Likewise.
50393         * modules/strsep: Likewise.
50394         * modules/strstr: Likewise.
50395         * modules/strtok_r: Likewise.
50396         * tests/test-dirname.c: Don't include "strdup.h", since
50397         <string.h> now suffices.
50398         * tests/test-memmem.c: Don't include "memmem.h", since
50399         <string.h> now suffices.
50400
50401 2007-01-25  Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
50404         *resultp is 0.
50405
50406         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
50407         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
50408         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
50409         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
50410
50411         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
50412         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
50413         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
50414         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
50415         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
50416         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
50417
50418 2007-01-24  Bruno Haible  <bruno@clisp.org>
50419
50420         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
50421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
50422         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
50423         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
50424         gl_FUNC_FTS_CORE.
50425         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
50426         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
50427         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50428         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
50429         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
50430         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
50431         gl_FUNC_FCHOWNAT.
50432         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
50433         gl_FUNC_STRFTIME.
50434         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
50435         Reported by Ralf Wildenhues.
50436
50437 2007-01-24  Bruno Haible  <bruno@clisp.org>
50438
50439         Drop AC_REQUIRE calls that are redundant with the module dependencies.
50440         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
50441         gl_GETADDRINFO.
50442         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
50443         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
50444         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
50445
50446 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
50447
50448         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
50449         Don't use 'exit'; just return from 'main'.
50450         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
50451
50452         * lib/fnmatch_.h: Readjust white space and comments to match
50453         glibc, to avoid spurious diffs.
50454
50455 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
50458         2004-12-01 change by Jakub Jelinek, since this code won't compile
50459         if !LIBC.  Problem reported by Bob Proulx.
50460
50461 2007-01-23  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/striconveh.c: Include c-strcaseeq.h.
50464         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
50465         * modules/striconveh (Depends-on): Add c-strcaseeq.
50466
50467 2007-01-23  Bruno Haible  <bruno@clisp.org>
50468
50469         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
50470
50471         * modules/c-strcaseeq: New file.
50472         * lib/c-strcaseeq.h: New file.
50473
50474         * modules/streq: New file.
50475         * lib/streq.h: New file.
50476
50477 2007-01-23  Bruno Haible  <bruno@clisp.org>
50478
50479         * modules/striconveha-tests: New file.
50480         * tests/test-striconveha.c: New file.
50481
50482         * lib/striconveha.h: Include <stdbool.h>.
50483         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
50484         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
50485         (mem_iconveha_notranslit): Renamed from mem_iconveha.
50486         (mem_iconveha): New function.
50487         (str_iconveha_notranslit): Renamed from str_iconveha.
50488         (str_iconveha): New function.
50489         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
50490         c-strcase.
50491
50492 2007-01-23  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
50495         encodings without forgiving before trying any encoding with handler.
50496         (str_iconveha): Try all encodings without forgiving before trying any
50497         encoding with handler.
50498
50499 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50500
50501         Import the following changes from libc.
50502
50503         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50504
50505         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
50506
50507         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50508
50509         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
50510         normal_bracket label.
50511
50512         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
50513
50514         [BZ #361]
50515         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
50516         to normal_bracket after fetching the next character.
50517
50518 2007-01-22  Bruno Haible  <bruno@clisp.org>
50519
50520         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
50521         argument.
50522         * lib/striconveh.c (iconv_carefully_1): New function.
50523         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
50524         argument.
50525         (str_cd_iconveh): Update.
50526         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
50527         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
50528         * tests/test-striconveh.c (MAGIC): New macro.
50529         (new_offsets): New function.
50530         (main): Test call with and without offsets.
50531
50532 2007-01-22  Bruno Haible  <bruno@clisp.org>
50533
50534         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
50535         * modules/sys_select (Makefile.am): Likewise.
50536         * modules/sys_socket (Makefile.am): Likewise.
50537         * modules/sys_time (Makefile.am): Likewise.
50538
50539 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
50540
50541         * modules/gettimeofday (License): Change from GPL to LGPL, since
50542         gettimeofday is a library function.
50543
50544 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50545
50546         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
50547
50548 2007-01-21  Bruno Haible  <bruno@clisp.org>
50549
50550         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
50551
50552 2007-01-21  Bruno Haible  <bruno@clisp.org>
50553
50554         * modules/striconveha: New file.
50555         * lib/striconveha.h: New file.
50556         * lib/striconveha.c: New file.
50557         * MODULES.html.sh (Internationalization functions): Add striconveha.
50558         * lib/striconv.c (str_iconv): Optimize the case of an empty input
50559         string.
50560         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
50561
50562 2007-01-21  Bruno Haible  <bruno@clisp.org>
50563
50564         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
50565         * lib/striconveh.c (str_iconveh): Likewise.
50566
50567 2007-01-21  Bruno Haible  <bruno@clisp.org>
50568
50569         * lib/striconveh.h (mem_iconveh): New declaration.
50570         * lib/striconveh.c (mem_iconveh): New function.
50571         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
50572
50573 2007-01-21  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
50576
50577         * lib/striconveh.h (mem_cd_iconveh): Change specification.
50578         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
50579         original result buffer.
50580         (str_cd_iconveh): Update.
50581         * tests/test-striconveh.c (main): Update.
50582
50583         * lib/striconv.h (mem_cd_iconv): Change specification.
50584         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
50585         result buffer.
50586         (str_cd_iconv): Update.
50587         * tests/test-striconv.c (main): Update.
50588
50589 2007-01-21  Bruno Haible  <bruno@clisp.org>
50590
50591         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
50592
50593 2007-01-20  Jim Meyering  <jim@meyering.net>
50594
50595         * lib/userspec.c (parse_with_separator): If a user or group string
50596         starts with "+", skip the corresponding name-to-ID look-up, since
50597         such a look-up must fail: user and group names may not include "+".
50598
50599 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50600
50601         * lib/poll.c: Include sys/time.h and time.h unconditionally,
50602         since we now assume the sys_time module.
50603         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
50604         check for sys/time.h; no longer needed.
50605         * modules/poll (Depends-on): Depend on sys_time.
50606
50607 2007-01-18  Bruno Haible  <bruno@clisp.org>
50608
50609         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
50610         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50611
50612         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
50613         gettimeofday.
50614
50615         * tests/test-gettimeofday.c: Include <time.h>.
50616         (dummy): Remove variable.
50617
50618         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
50619         gl_HEADER_SYS_TIME_H.
50620         (gl_HEADER_SYS_TIME_H): New macro.
50621
50622         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
50623         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50624         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50625         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
50626         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50627         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
50628         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
50629         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50630         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
50631         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
50632         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50633
50634         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
50635         last change; it caused a compilation error when cross-compiling to
50636         Cygwin.
50637
50638 2007-01-18  Jim Meyering  <jim@meyering.net>
50639
50640         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
50641         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
50642         than the race-prone "test -d sys || mkdir sys".
50643         (configure.ac): Use AC_PROG_MKDIR_P.
50644         * modules/sys_select: Likewise.
50645         * modules/sys_socket: Likewise.
50646         * modules/sys_time: Likewise.
50647
50648 2007-01-18  Eric Blake  <ebb9@byu.net>
50649
50650         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
50651         replace gettimeofday.
50652         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
50653         name, to avoid infinite recursion.
50654
50655 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
50658         module sys_time.
50659         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
50660         assume timespec.h defines struct timeval.
50661         * lib/settime.c: Likewise.
50662         * lib/utimens.c: Likewise.
50663         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
50664         since we now assume the gettimeofday module.
50665         * lib/tempname.c (__gen_tempname): Likewise.
50666         * lib/gettimeofday.h: Remove.
50667         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
50668         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
50669         Include <time.h>, for 'time()'.
50670         (localtime_buffer_addr): Also use this workaround if
50671         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
50672         to simplify the uses.  All uses changed.
50673         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
50674         that #undef is inside {}, and 'const' follows type name consistently.
50675         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
50676         (gettimeofday): Do not use the maximum possible value for
50677         tv->tv_usec, since that might break usages other than ls.c.
50678         Instead, we'll leave ls.c alone.  This undoes today's patch
50679         by Bruno.  Add a compile-time warning for 1s-clock resolution;
50680         we've never observed the problem but might as well keep the
50681         canary.
50682         * lib/nanosleep.c: Include timespec.h first, for interface check.
50683         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
50684         now assume the sys_time module.
50685         * lib/tempname.c: Likewise.
50686         * lib/timespec.h: Likewise.
50687         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
50688         needed.
50689         * lib/strftime.c: Likewise.
50690         * lib/timespec.h: Likewise.
50691         * lib/posixtm.c: Include posixtm.h first, for interface check.
50692         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
50693         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
50694         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
50695         * lib/sys_time_.h: New file.
50696         * lib/timespec.h (struct timespec): Use long int, not long.
50697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50698         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
50699         Remove obsolescent call to AC_HEADER_TIME.
50700         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
50701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50702         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50703         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
50704         Likewise.
50705         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
50706         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
50707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
50708         into the sys_time module.  Check for gettimeofday just once.
50709         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
50710         for gettimeofday signature to just check the signature.  Merely
50711         compile it, since linking doesn't test signature.  Improve test for
50712         whether gettimeofday.o is actually needed.
50713         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
50714         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
50715         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
50716         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50717         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
50718         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
50719         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
50720         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
50721         than worrying about sys/time.h.
50722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50723         Don't bother worrying about TIME_WITH_SYS_TIME.
50724         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
50725         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
50726         * m4/sys_time_h.m4: New file.
50727         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
50728         Don't include sys/time.h.  Return from main rather than exiting.
50729         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
50730         all uses changed.
50731         * modules/gethrxtime (Depends-on): Add sys_time.
50732         * modules/gettime (Depends-on): Likewise.
50733         * modules/gettimeofday (Depends-on): Likewise.
50734         * modules/nanosleep (Depends-on): Likewise.
50735         * modules/settime (Depends-on): Likewise.
50736         * modules/tempname (Depends-on): Likewise.
50737         * modules/utimens (Depends-on): Likewise.
50738         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
50739         (Include:) Change back to <sys/time.h>.
50740         (Maintainer:) Add self.
50741         * modules/sys_time: New file.
50742         * modules/tempname (Depends-on): Add gettimeofday.
50743         * tests/test-gettimeofday.c: Include <sys/time.h>
50744         rather than gettimeofday.h.
50745
50746 2007-01-17  Bruno Haible  <bruno@clisp.org>
50747
50748         * gnulib-tool (func_get_license): Revert last patch. Instead, let
50749         the license default to GPL.
50750         (func_create_testdir): Don't complain if a module is LGPL and its
50751         tests module depends on GPLed modules.
50752
50753 2007-01-17  Bruno Haible  <bruno@clisp.org>
50754
50755         * lib/gettimeofday.c (gettimeofday): Add code for the case
50756         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
50757         maximum possible value for tv->tv_usec, rather than the minimum one.
50758
50759 2005-10-08  Martin Lambers  <marlam@marlam.de>
50760 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50761 2007-01-16  Bruno Haible  <bruno@clisp.org>
50762
50763         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
50764         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
50765         gl_FUNC_GETTIMEOFDAY.
50766         (Include): Add gettimeofday.h.
50767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
50768         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
50769         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
50770         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
50771         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
50772         * lib/gettimeofday.h: New file.
50773         * lib/gettimeofday.c: Include <sys/timeb.h>.
50774         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
50775         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50776         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
50777         fall back on time().
50778
50779         * tests/test-gettimeofday.c: New file.
50780         * modules/gettimeofday-tests: New file.
50781
50782 2007-01-16  Eric Blake  <ebb9@byu.net>
50783
50784         * modules/fnmatch (Depends-on): Depend on wchar.
50785         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
50786         * m4/fnmatch.m4: Likewise.
50787         * modules/mbchar (Makefile.am): Assume <wchar.h>.
50788         * m4/mbchar.m4: Likewise.
50789         * modules/mbswidth (Depends-on): Depend on wchar.
50790         * lib/mbswidth.c: Assume <wchar.h>.
50791         * m4/mbswidth.m4: Likewise.
50792         * modules/quotearg (Depends-on): Depend on wchar.
50793         * lib/quotearg.c: Assume <wchar.h>.
50794         * m4/quotearg.m4: Likewise.
50795         * modules/regex (Depends-on): Depend on wchar.
50796         * lib/regex_internal.h: Assume <wchar.h>.
50797         * m4/regex.m4: Likewise.
50798         * modules/stdint (Depends-on): Depend on wchar.
50799         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
50800         * m4/stdint.m4: Likewise.
50801         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
50802         * modules/strftime (Depends-on): Depend on wchar.
50803         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
50804         * modules/strtol (Depends-on): Depend on wchar.
50805         * lib/strtol.c: Assume <wchar.h>.
50806         * modules/wcwidth (Depends-on): Depend on wchar.
50807         * lib/wcwidth.h: Assume <wchar.h>.
50808         * m4/wcwidth.m4: Likewise.
50809
50810 2007-01-16  Bruno Haible  <bruno@clisp.org>
50811
50812         * modules/csharpexec-script: New, created from...
50813         * modules/csharpexec: ... this.
50814
50815 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50816
50817         * modules/javaexec-script: New, created from...
50818         * modules/javaexec: ... this.
50819
50820 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50821
50822         * modules/poll (Dependencies): Add sys_select.
50823
50824 2007-01-15  Jim Meyering  <jim@meyering.net>
50825
50826         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
50827         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
50828         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
50829         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
50830
50831 2007-01-15  Bruno Haible  <bruno@clisp.org>
50832
50833         * modules/striconveh: New file.
50834         * lib/striconveh.h: New file.
50835         * lib/striconveh.c: New file.
50836         * MODULES.html.sh (Internationalization functions): Add striconveh.
50837
50838         * modules/striconveh-tests: New file.
50839         * tests/test-striconveh.c: New file.
50840
50841 2007-01-15  Bruno Haible  <bruno@clisp.org>
50842
50843         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
50844         not from GNU libiconv or GNU libc.
50845
50846 2007-01-15  Bruno Haible  <bruno@clisp.org>
50847
50848         * doc/gnulib-intro.texi (Copyright): Explain the different license
50849         terms for module descriptions, autoconf macros, tests, documentation.
50850
50851 2007-01-14  Bruno Haible  <bruno@clisp.org>
50852
50853         * modules/striconv-tests: New file.
50854         * tests/test-striconv.c: New file.
50855
50856 2007-01-14  Bruno Haible  <bruno@clisp.org>
50857
50858         * modules/iconv-tests: New file.
50859         * tests/test-iconv.c: New file.
50860
50861 2007-01-14  Bruno Haible  <bruno@clisp.org>
50862
50863         * gnulib-tool (func_get_license): For test modules, use the license of
50864         the main module.
50865
50866 2007-01-14  Bruno Haible  <bruno@clisp.org>
50867
50868         * modules/iconv (Include): Clarify that <iconv.h> can only be included
50869         if iconv is found to exist.
50870
50871 2007-01-14  Bruno Haible  <bruno@clisp.org>
50872
50873         * modules/c-ctype-tests: New file.
50874         * tests/test-c-ctype.c: New file.
50875
50876 2007-01-14  Bruno Haible  <bruno@clisp.org>
50877
50878         * modules/binary-io-tests: New file.
50879         * tests/test-binary-io.sh: New file.
50880         * tests/test-binary-io.c: New file.
50881
50882 2007-01-14  Bruno Haible  <bruno@clisp.org>
50883
50884         * modules/array-oset-tests: New file.
50885         * tests/test-array_oset.c: New file.
50886
50887 2007-01-14  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/array-list-tests: New file.
50890         * tests/test-array_list.c: New file.
50891
50892 2007-01-14  Bruno Haible  <bruno@clisp.org>
50893
50894         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
50895         and make.
50896         Reported by Simon Josefsson in
50897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
50898
50899 2007-01-14  Bruno Haible  <bruno@clisp.org>
50900
50901         * modules/allocsa-tests: New file.
50902         * tests/test-allocsa.c: New file.
50903
50904 2007-01-14  Bruno Haible  <bruno@clisp.org>
50905
50906         * modules/fchdir (Depends-on): Add absolute-header.
50907         * modules/unistd (Depends-on): Likewise.
50908
50909 2006-12-30  Bruno Haible  <bruno@clisp.org>
50910
50911         * modules/fchdir: New file.
50912         * modules/unistd (Files): Add lib/unistd_.h.
50913         (Makefile.am): Generate unistd.h from unistd_.h.
50914         * lib/fchdir.c: New file.
50915         * lib/dirent_.h: New file.
50916         * lib/unistd_.h: New file.
50917         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
50918         * m4/fchdir.m4: New file.
50919         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
50920         (gl_HEADER_UNISTD): Invoke it.
50921         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
50922         function.
50923         * lib/backupfile.c (opendir, closedir): Undefine.
50924         * lib/chown.c (open, close): Undefine.
50925         * lib/clean-temp.c (open, close): Undefine.
50926         * lib/copy-file.c (open, close): Undefine.
50927         * lib/execute.c (open, close): Undefine.
50928         * lib/fsusage.c (open, close): Undefine.
50929         * lib/gc-gnulib.c (open, close): Undefine.
50930         * lib/getcwd.c (opendir, closedir): Undefine.
50931         * lib/glob.c (opendir, closedir): Undefine.
50932         * lib/javacomp.c (open, close): Undefine.
50933         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
50934         * lib/openat-proc.c (open, close): Undefine.
50935         * lib/pagealign_alloc.c (open, close): Undefine.
50936         * lib/pipe.c (open, close): Undefine.
50937         * lib/progreloc.c (open, close): Undefine.
50938         * lib/savedir.c (opendir, closedir): Undefine.
50939         * lib/utime.c (open, close): Undefine.
50940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
50941
50942 2007-01-10  Bruno Haible  <bruno@clisp.org>
50943
50944         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
50945
50946 2007-01-12  Eric Blake  <ebb9@byu.net>
50947
50948         Provide a robust <wchar.h>.  Further simplifications are now
50949         possible in other modules, but not included here.
50950         * modules/wchar: New module.
50951         * m4/wchar.m4: New file.
50952         * lib/wchar_.h: Likewise.
50953         * modules/mbchar (Depends-on): Depend on wchar, as the first use
50954         of the new module.
50955         * MODULES.html.sh (Extended multibyte and wide character utilities):
50956         New section.
50957
50958 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
50959
50960         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
50961         to a reasonable default for memory allocation.
50962         (xreadlink): Don't allocate a huge buffer, to work around a buggy
50963         file system that reports garbage st_size values for symlinks.
50964         Problem reported by Liyang Hu.
50965
50966 2007-01-11  Simon Josefsson  <simon@josefsson.org>
50967
50968         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
50969         Emacs .#* auto-save files).
50970
50971 2007-01-11  Bruno Haible  <bruno@clisp.org>
50972
50973         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
50974         directory.
50975
50976 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50977
50978         Use @...@ consistently in lib/wctype_.h.
50979         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
50980         on it being set to 1 or 0.
50981         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
50982         go back to AC_SUBSTing it.
50983         * modules/wctype (Makefile.am): Undo previous change.
50984
50985 2007-01-10  Eric Blake  <ebb9@byu.net>
50986
50987         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
50988         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
50989         * modules/wctype (Makefile.am): Likewise.
50990         Reported by Chris McGuire.
50991
50992 2007-01-10  Jim Meyering  <jim@meyering.net>
50993
50994         fts.c: a small readability/maintainability improvement
50995         * lib/fts.c (fts_read): Make this code slightly more readable and
50996         maintainable by hoisting the "sp->fts_cur = p" assignments to
50997         immediately follow the statements that set P.  Derived from
50998         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
50999
51000 2007-01-10  Eric Blake  <ebb9@byu.net>
51001
51002         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
51003         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
51004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51005         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51006         Reported by Chris McGuire.
51007
51008 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51009
51010         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
51011         in sed script.
51012
51013 2007-01-09  Bruno Haible  <bruno@clisp.org>
51014
51015         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
51016         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
51017         variables.
51018         (func_module): Use them.
51019
51020 2007-01-09  Bruno Haible  <bruno@clisp.org>
51021
51022         * modules/unistr/base: New file.
51023         * lib/unistr.h: New file.
51024
51025         * modules/unistr/u8-to-u16: New file.
51026         * lib/unistr/u8-to-u16.c: New file.
51027
51028         * modules/unistr/u8-to-u32: New file.
51029         * lib/unistr/u8-to-u32.c: New file.
51030
51031         * modules/unistr/u16-to-u8: New file.
51032         * lib/unistr/u16-to-u8.c: New file.
51033
51034         * modules/unistr/u16-to-u32: New file.
51035         * lib/unistr/u16-to-u32.c: New file.
51036
51037         * modules/unistr/u32-to-u8: New file.
51038         * lib/unistr/u32-to-u8.c: New file.
51039
51040         * modules/unistr/u32-to-u16: New file.
51041         * lib/unistr/u32-to-u16.c: New file.
51042
51043         * modules/unistr/u8-check: New file.
51044         * modules/unistr/u16-check: New file.
51045         * modules/unistr/u32-check: New file.
51046         * lib/unistr/u8-check.c: New file.
51047         * lib/unistr/u16-check.c: New file.
51048         * lib/unistr/u32-check.c: New file.
51049
51050         * modules/unistr/u8-chr: New file.
51051         * modules/unistr/u16-chr: New file.
51052         * modules/unistr/u32-chr: New file.
51053         * lib/unistr/u8-chr.c: New file.
51054         * lib/unistr/u16-chr.c: New file.
51055         * lib/unistr/u32-chr.c: New file.
51056
51057         * modules/unistr/u8-cmp: New file.
51058         * modules/unistr/u16-cmp: New file.
51059         * modules/unistr/u32-cmp: New file.
51060         * lib/unistr/u8-cmp.c: New file.
51061         * lib/unistr/u16-cmp.c: New file.
51062         * lib/unistr/u32-cmp.c: New file.
51063
51064         * modules/unistr/u8-cpy: New file.
51065         * modules/unistr/u16-cpy: New file.
51066         * modules/unistr/u32-cpy: New file.
51067         * lib/unistr/u8-cpy.c: New file.
51068         * lib/unistr/u16-cpy.c: New file.
51069         * lib/unistr/u32-cpy.c: New file.
51070         * lib/unistr/u-cpy.h: New file.
51071
51072         * modules/unistr/u8-cpy-alloc: New file.
51073         * modules/unistr/u16-cpy-alloc: New file.
51074         * modules/unistr/u32-cpy-alloc: New file.
51075         * lib/unistr/u8-cpy-alloc.c: New file.
51076         * lib/unistr/u16-cpy-alloc.c: New file.
51077         * lib/unistr/u32-cpy-alloc.c: New file.
51078         * lib/unistr/u-cpy-alloc.h: New file.
51079
51080         * modules/unistr/u8-endswith: New file.
51081         * modules/unistr/u16-endswith: New file.
51082         * modules/unistr/u32-endswith: New file.
51083         * lib/unistr/u8-endswith.c: New file.
51084         * lib/unistr/u16-endswith.c: New file.
51085         * lib/unistr/u32-endswith.c: New file.
51086         * lib/unistr/u-endswith.h: New file.
51087
51088         * modules/unistr/u8-mblen: New file.
51089         * modules/unistr/u16-mblen: New file.
51090         * modules/unistr/u32-mblen: New file.
51091         * lib/unistr/u8-mblen.c: New file.
51092         * lib/unistr/u16-mblen.c: New file.
51093         * lib/unistr/u32-mblen.c: New file.
51094
51095         * modules/unistr/u8-mbtouc: New file.
51096         * modules/unistr/u16-mbtouc: New file.
51097         * modules/unistr/u32-mbtouc: New file.
51098         * lib/unistr/u8-mbtouc.c: New file.
51099         * lib/unistr/u16-mbtouc.c: New file.
51100         * lib/unistr/u32-mbtouc.c: New file.
51101
51102         * modules/unistr/u8-mbtouc-safe: New file.
51103         * modules/unistr/u16-mbtouc-safe: New file.
51104         * modules/unistr/u32-mbtouc-safe: New file.
51105         * lib/unistr/u8-mbtouc-safe.c: New file.
51106         * lib/unistr/u16-mbtouc-safe.c: New file.
51107         * lib/unistr/u32-mbtouc-safe.c: New file.
51108
51109         * modules/unistr/u8-move: New file.
51110         * modules/unistr/u16-move: New file.
51111         * modules/unistr/u32-move: New file.
51112         * lib/unistr/u8-move.c: New file.
51113         * lib/unistr/u16-move.c: New file.
51114         * lib/unistr/u32-move.c: New file.
51115         * lib/unistr/u-move.h: New file.
51116
51117         * modules/unistr/u8-next: New file.
51118         * modules/unistr/u16-next: New file.
51119         * modules/unistr/u32-next: New file.
51120         * lib/unistr/u8-next.c: New file.
51121         * lib/unistr/u16-next.c: New file.
51122         * lib/unistr/u32-next.c: New file.
51123
51124         * modules/unistr/u8-prev: New file.
51125         * modules/unistr/u16-prev: New file.
51126         * modules/unistr/u32-prev: New file.
51127         * lib/unistr/u8-prev.c: New file.
51128         * lib/unistr/u16-prev.c: New file.
51129         * lib/unistr/u32-prev.c: New file.
51130
51131         * modules/unistr/u8-set: New file.
51132         * modules/unistr/u16-set: New file.
51133         * modules/unistr/u32-set: New file.
51134         * lib/unistr/u8-set.c: New file.
51135         * lib/unistr/u16-set.c: New file.
51136         * lib/unistr/u32-set.c: New file.
51137         * lib/unistr/u-set.h: New file.
51138
51139         * modules/unistr/u8-startswith: New file.
51140         * modules/unistr/u16-startswith: New file.
51141         * modules/unistr/u32-startswith: New file.
51142         * lib/unistr/u8-startswith.c: New file.
51143         * lib/unistr/u16-startswith.c: New file.
51144         * lib/unistr/u32-startswith.c: New file.
51145         * lib/unistr/u-startswith.h: New file.
51146
51147         * modules/unistr/u8-stpcpy: New file.
51148         * modules/unistr/u16-stpcpy: New file.
51149         * modules/unistr/u32-stpcpy: New file.
51150         * lib/unistr/u8-stpcpy.c: New file.
51151         * lib/unistr/u16-stpcpy.c: New file.
51152         * lib/unistr/u32-stpcpy.c: New file.
51153         * lib/unistr/u-stpcpy.h: New file.
51154
51155         * modules/unistr/u8-stpncpy: New file.
51156         * modules/unistr/u16-stpncpy: New file.
51157         * modules/unistr/u32-stpncpy: New file.
51158         * lib/unistr/u8-stpncpy.c: New file.
51159         * lib/unistr/u16-stpncpy.c: New file.
51160         * lib/unistr/u32-stpncpy.c: New file.
51161         * lib/unistr/u-stpncpy.h: New file.
51162
51163         * modules/unistr/u8-strcat: New file.
51164         * modules/unistr/u16-strcat: New file.
51165         * modules/unistr/u32-strcat: New file.
51166         * lib/unistr/u8-strcat.c: New file.
51167         * lib/unistr/u16-strcat.c: New file.
51168         * lib/unistr/u32-strcat.c: New file.
51169         * lib/unistr/u-strcat.h: New file.
51170
51171         * modules/unistr/u8-strchr: New file.
51172         * modules/unistr/u16-strchr: New file.
51173         * modules/unistr/u32-strchr: New file.
51174         * lib/unistr/u8-strchr.c: New file.
51175         * lib/unistr/u16-strchr.c: New file.
51176         * lib/unistr/u32-strchr.c: New file.
51177
51178         * modules/unistr/u8-strcmp: New file.
51179         * modules/unistr/u16-strcmp: New file.
51180         * modules/unistr/u32-strcmp: New file.
51181         * lib/unistr/u8-strcmp.c: New file.
51182         * lib/unistr/u16-strcmp.c: New file.
51183         * lib/unistr/u32-strcmp.c: New file.
51184
51185         * modules/unistr/u8-strcpy: New file.
51186         * modules/unistr/u16-strcpy: New file.
51187         * modules/unistr/u32-strcpy: New file.
51188         * lib/unistr/u8-strcpy.c: New file.
51189         * lib/unistr/u16-strcpy.c: New file.
51190         * lib/unistr/u32-strcpy.c: New file.
51191         * lib/unistr/u-strcpy.h: New file.
51192
51193         * modules/unistr/u8-strcspn: New file.
51194         * modules/unistr/u16-strcspn: New file.
51195         * modules/unistr/u32-strcspn: New file.
51196         * lib/unistr/u8-strcspn.c: New file.
51197         * lib/unistr/u16-strcspn.c: New file.
51198         * lib/unistr/u32-strcspn.c: New file.
51199         * lib/unistr/u-strcspn.h: New file.
51200
51201         * modules/unistr/u8-strdup: New file.
51202         * modules/unistr/u16-strdup: New file.
51203         * modules/unistr/u32-strdup: New file.
51204         * lib/unistr/u8-strdup.c: New file.
51205         * lib/unistr/u16-strdup.c: New file.
51206         * lib/unistr/u32-strdup.c: New file.
51207         * lib/unistr/u-strdup.h: New file.
51208
51209         * modules/unistr/u8-strlen: New file.
51210         * modules/unistr/u16-strlen: New file.
51211         * modules/unistr/u32-strlen: New file.
51212         * lib/unistr/u8-strlen.c: New file.
51213         * lib/unistr/u16-strlen.c: New file.
51214         * lib/unistr/u32-strlen.c: New file.
51215         * lib/unistr/u-strlen.h: New file.
51216
51217         * modules/unistr/u8-strmblen: New file.
51218         * modules/unistr/u16-strmblen: New file.
51219         * modules/unistr/u32-strmblen: New file.
51220         * lib/unistr/u8-strmblen.c: New file.
51221         * lib/unistr/u16-strmblen.c: New file.
51222         * lib/unistr/u32-strmblen.c: New file.
51223
51224         * modules/unistr/u8-strmbtouc: New file.
51225         * modules/unistr/u16-strmbtouc: New file.
51226         * modules/unistr/u32-strmbtouc: New file.
51227         * lib/unistr/u8-strmbtouc.c: New file.
51228         * lib/unistr/u16-strmbtouc.c: New file.
51229         * lib/unistr/u32-strmbtouc.c: New file.
51230
51231         * modules/unistr/u8-strncat: New file.
51232         * modules/unistr/u16-strncat: New file.
51233         * modules/unistr/u32-strncat: New file.
51234         * lib/unistr/u8-strncat.c: New file.
51235         * lib/unistr/u16-strncat.c: New file.
51236         * lib/unistr/u32-strncat.c: New file.
51237         * lib/unistr/u-strncat.h: New file.
51238
51239         * modules/unistr/u8-strncmp: New file.
51240         * modules/unistr/u16-strncmp: New file.
51241         * modules/unistr/u32-strncmp: New file.
51242         * lib/unistr/u8-strncmp.c: New file.
51243         * lib/unistr/u16-strncmp.c: New file.
51244         * lib/unistr/u32-strncmp.c: New file.
51245
51246         * modules/unistr/u8-strncpy: New file.
51247         * modules/unistr/u16-strncpy: New file.
51248         * modules/unistr/u32-strncpy: New file.
51249         * lib/unistr/u8-strncpy.c: New file.
51250         * lib/unistr/u16-strncpy.c: New file.
51251         * lib/unistr/u32-strncpy.c: New file.
51252         * lib/unistr/u-strncpy.h: New file.
51253
51254         * modules/unistr/u8-strnlen: New file.
51255         * modules/unistr/u16-strnlen: New file.
51256         * modules/unistr/u32-strnlen: New file.
51257         * lib/unistr/u8-strnlen.c: New file.
51258         * lib/unistr/u16-strnlen.c: New file.
51259         * lib/unistr/u32-strnlen.c: New file.
51260         * lib/unistr/u-strnlen.h: New file.
51261
51262         * modules/unistr/u8-strpbrk: New file.
51263         * modules/unistr/u16-strpbrk: New file.
51264         * modules/unistr/u32-strpbrk: New file.
51265         * lib/unistr/u8-strpbrk.c: New file.
51266         * lib/unistr/u16-strpbrk.c: New file.
51267         * lib/unistr/u32-strpbrk.c: New file.
51268         * lib/unistr/u-strpbrk.h: New file.
51269
51270         * modules/unistr/u8-strrchr: New file.
51271         * modules/unistr/u16-strrchr: New file.
51272         * modules/unistr/u32-strrchr: New file.
51273         * lib/unistr/u8-strrchr.c: New file.
51274         * lib/unistr/u16-strrchr.c: New file.
51275         * lib/unistr/u32-strrchr.c: New file.
51276
51277         * modules/unistr/u8-strspn: New file.
51278         * modules/unistr/u16-strspn: New file.
51279         * modules/unistr/u32-strspn: New file.
51280         * lib/unistr/u8-strspn.c: New file.
51281         * lib/unistr/u16-strspn.c: New file.
51282         * lib/unistr/u32-strspn.c: New file.
51283         * lib/unistr/u-strspn.h: New file.
51284
51285         * modules/unistr/u8-strstr: New file.
51286         * modules/unistr/u16-strstr: New file.
51287         * modules/unistr/u32-strstr: New file.
51288         * lib/unistr/u8-strstr.c: New file.
51289         * lib/unistr/u16-strstr.c: New file.
51290         * lib/unistr/u32-strstr.c: New file.
51291         * lib/unistr/u-strstr.h: New file.
51292
51293         * modules/unistr/u8-strtok: New file.
51294         * modules/unistr/u16-strtok: New file.
51295         * modules/unistr/u32-strtok: New file.
51296         * lib/unistr/u8-strtok.c: New file.
51297         * lib/unistr/u16-strtok.c: New file.
51298         * lib/unistr/u32-strtok.c: New file.
51299         * lib/unistr/u-strtok.h: New file.
51300
51301         * modules/unistr/u8-uctomb: New file.
51302         * modules/unistr/u16-uctomb: New file.
51303         * modules/unistr/u32-uctomb: New file.
51304         * lib/unistr/u8-uctomb.c: New file.
51305         * lib/unistr/u16-uctomb.c: New file.
51306         * lib/unistr/u32-uctomb.c: New file.
51307
51308         * MODULES.html.sh (Unicode string functions): Add the new modules.
51309
51310 2007-01-08  Bruno Haible  <bruno@clisp.org>
51311
51312         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
51313         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
51314         subdirectories.
51315
51316 2007-01-08  Karl Berry  <karl@gnu.org>
51317
51318         * doc/error.texi: mention that main() fns must set program_name
51319         when progname is used.
51320
51321 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
51322
51323         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
51324         WCTYPE_H is empty, for the benefit of builds from non-distclean
51325         directories.  Problem reported by Eric Blake in
51326         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
51327
51328 2007-01-08  Bruno Haible  <bruno@clisp.org>
51329
51330         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
51331         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
51332         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
51333         PROVIDE_CANONICALIZE_FILENAME_MODE.
51334         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
51335
51336 2007-01-08  Bruno Haible  <bruno@clisp.org>
51337
51338         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
51339         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
51340         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
51341         * lib/fts.c: Likewise.
51342         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
51343
51344 2006-12-25  Bruno Haible  <bruno@clisp.org>
51345
51346         * modules/utf8-ucs4-safe: New file.
51347         * lib/utf8-ucs4-safe.h: New file.
51348         * lib/unistr/utf8-ucs4-safe.c: New file.
51349
51350         * modules/utf16-ucs4-safe: New file.
51351         * lib/utf16-ucs4-safe.h: New file.
51352         * lib/unistr/utf16-ucs4-safe.c: New file.
51353
51354         * MODULES.html.sh (Unicode string functions): Add the new modules.
51355
51356 2007-01-08  Bruno Haible  <bruno@clisp.org>
51357
51358         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
51359         (Depends-on): Add unitypes.
51360         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51361         (u8_mbtouc_aux): Move out to separate file.
51362         (u8_mbtouc): Use ucs4_t, uint8_t types.
51363         * lib/unistr/utf8-ucs4.c: New file.
51364
51365         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
51366         (Depends-on): Add unitypes.
51367         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51368         (u16_mbtouc_aux): Move out to separate file.
51369         (u16_mbtouc): Use ucs4_t, uint16_t types.
51370         * lib/unistr/utf16-ucs4.c: New file.
51371
51372         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
51373         (Depends-on): Add unitypes.
51374         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
51375         (u8_uctomb_aux): Move out to separate file.
51376         (u8_uctomb): Use ucs4_t, uint8_t types.
51377         * lib/unistr/ucs4-utf8.c: New file.
51378
51379         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
51380         (Depends-on): Add unitypes.
51381         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
51382         (u16_uctomb_aux): Move out to separate file.
51383         (u16_uctomb): Use ucs4_t, uint16_t types.
51384         * lib/unistr/ucs4-utf16.c: New file.
51385
51386 2006-12-25  Bruno Haible  <bruno@clisp.org>
51387
51388         * modules/unitypes: New file.
51389         * lib/unitypes.h: New file.
51390         * MODULES.html.sh (func_all_modules): New section "Unicode string
51391         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
51392         this section. Add unitypes.
51393
51394 2007-01-08  Bruno Haible  <bruno@clisp.org>
51395
51396         Avoid variable names that conflict with those from libtool.
51397         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
51398         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
51399         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
51400         library_names_spec to acl_library_names_spec, hardcode_* to
51401         acl_hardcode_*.
51402         Reported by Ralf Wildenhues.
51403
51404 2007-01-08  Bruno Haible  <bruno@clisp.org>
51405
51406         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
51407         definition.
51408         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
51409         definition.
51410         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
51411         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
51412         definition.
51413         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
51414         definition.
51415         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
51416         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
51417         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
51418         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
51419         definition.
51420         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
51421         definition.
51422         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
51423         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
51424         GC_USE_<algorithm>.
51425         * lib/gc-libgcrypt.c: Likewise.
51426         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
51427         * modules/gc-arctwo (configure.ac): Likewise.
51428         * modules/gc-des (configure.ac): Likewise.
51429         * modules/gc-hmac-md5 (configure.ac): Likewise.
51430         * modules/gc-hmac-sha1 (configure.ac): Likewise.
51431         * modules/gc-md2 (configure.ac): Likewise.
51432         * modules/gc-md4 (configure.ac): Likewise.
51433         * modules/gc-md5 (configure.ac): Likewise.
51434         * modules/gc-random (configure.ac): Likewise.
51435         * modules/gc-rijndael (configure.ac): Likewise.
51436         * modules/gc-sha1 (configure.ac): Likewise.
51437
51438 2007-01-08  Bruno Haible  <bruno@clisp.org>
51439
51440         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
51441         macro definition.
51442         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
51443         definition.
51444         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
51445         definition.
51446         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
51447         * modules/fcntl-safer (configure.ac): Likewise.
51448         * modules/fopen-safer (configure.ac): Likewise.
51449         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
51450         GNULIB_FWRITEERROR macro definition.
51451
51452 2007-01-08  Bruno Haible  <bruno@clisp.org>
51453
51454         * m4/gnulib-common.m4: New file.
51455         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
51456         (func_get_filelist): Add m4/gnulib-common.m4.
51457
51458 2007-01-08  Bruno Haible  <bruno@clisp.org>
51459
51460         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
51461         command.
51462
51463 2007-01-08  Jim Meyering  <jim@meyering.net>
51464
51465         Use a more robust test for a "can't happen" condition.
51466         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
51467         narrowed the st_size value.  Presuming the "can't happen" condition
51468         is true, that narrowing could conceivably convert an invalid st_size
51469         value into a valid one.  Instead, use a change based on Matthew
51470         Woehlke's original patch.
51471
51472         Slight readability improvement: use an assert-like macro
51473         in place of literal "abort ()" uses.
51474         * lib/fts.c (fts_assert): Define.
51475         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
51476         Use this macro instead of a bare 'abort'.
51477
51478 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         Don't worry about using IRIX 5.3's wctype.h broken definitions;
51481         simply work around them.
51482         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
51483         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
51484         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
51485         declaring.
51486         Don't bother to define as macros, since the standard doesn't require it.
51487         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
51488         longer worry about IRIX 5.3.
51489         (HAVE_WCTYPE_CTMP_BUG): Remove.
51490
51491 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51492
51493         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
51494         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
51495         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51496         Problems reported by Georg Schwarz for IRIX 5.3.
51497
51498         * gnulib-tool (autoconf_minversion): Take the maximum version number
51499         found, not the minimum.  Problem reported by James Youngman.
51500
51501 2007-01-03  Karl Berry  <karl@gnu.org>
51502
51503         * doc/error.texi: new file, explaining interaction with progname.
51504         * doc/gnulib.texi: include it.  Update copyright.
51505
51506 2007-01-03  Simon Josefsson  <simon@josefsson.org>
51507
51508         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
51509         AC_CANONICAL_HOST, to improve autobuild outputs.
51510
51511 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
51512             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51513
51514         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
51515         sockets, server sockets, and other file descriptors.  Count errors
51516         to compute the return value.  Reorder the code a bit to be easier
51517         to follow.  Don't set event bits that were not requested (except
51518         POLLERR and POLLHUP).
51519
51520 2007-01-01  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
51523
51524 2007-01-03  Jim Meyering  <jim@meyering.net>
51525
51526         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
51527
51528 2007-01-02  Bruno Haible  <bruno@clisp.org>
51529
51530         * modules/settime (Include): Require timespec.h.
51531         * modules/nanosleep (Include): Likewise.
51532
51533 2007-01-01  Bruno Haible  <bruno@clisp.org>
51534
51535         * gnulib-tool (func_emit_copyright_notice): Bump year.
51536         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
51537
51538 2007-01-01  Bruno Haible  <bruno@clisp.org>
51539
51540         Improve support for OpenBSD.
51541         * build-aux/config.rpath (libname_spec): Export.
51542         (library_names_spec): New variable. Export.
51543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
51544         library_names_spec from the config.rpath output. Locate shared library
51545         through the name pattern in library_names_spec.
51546
51547 2007-01-01  Eric Blake  <ebb9@byu.net>
51548
51549         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
51550
51551 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
51554         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
51555         assume the C locale, and avoid an "eval" that could cause trouble.
51556         Problem with SORT reported by Bob Proulx.
51557
51558         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
51559         Define.  Trivial patch from Henning Nielsen Lund, originally
51560         sent to bug-grep@gnu.org today.
51561
51562 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51563
51564         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
51565         struct stat.  Problem reported by Henning Nielsen Lund.
51566         * lib/acl.c: Include acl.h first, to check interface.  Don't
51567         bother to include sys/types.h and sys/stat.h again.
51568
51569 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51570
51571         Import the following change from libc; problem reported by
51572         Sven Verdoolaege.
51573
51574         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
51575
51576         [BZ #1373]
51577         * lib/argp.h: Remove __NTH for __argp_usage inline function.
51578
51579 2006-12-28  Jim Meyering  <jim@meyering.net>
51580
51581         * build-aux/announce-gen: Do not assume that the package
51582         builds any of tar.gz, tar.bz2, and .xdelta files.
51583         Suggestion from Simon Josefsson.
51584
51585 2006-12-28  Simon Josefsson  <simon@josefsson.org>
51586
51587         * modules/announce-gen: New file.
51588
51589 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51590
51591         * lib/mbchar.h: Just include <wctype.h>; the wctype module
51592         handles its gotchas now.
51593         * lib/mbswidth.c: Likewise.
51594         * lib/wcwidth.h: Likewise.
51595         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
51596         and iswcntrl; the wctype module does this stuff now.
51597         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51599         * modules/mbchar (Depends-on): Add wctype.
51600         * modules/mbswidth (Depends-on): Likewise.
51601         * modules/wcwidth (Depends-on): Likewise.
51602
51603 2006-12-27  Eric Blake  <ebb9@byu.net>
51604
51605         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
51606         module uses more than what <wctype.h> is required to provide.
51607
51608 2006-12-26  Eric Blake  <ebb9@byu.net>
51609
51610         * gnulib-tool (sed_extract_prog): Avoid space-tab.
51611
51612 2006-12-26  Eric Blake  <ebb9@byu.net>
51613
51614         * modules/absolute-header: New module.
51615         * modules/fcntl (Depends-on): Depend on it.
51616         * modules/inttypes (Depends-on): Likewise.
51617         * modules/stdint (Depends-on): Likewise.
51618         * modules/sys_stat (Depends-on): Likewise.
51619         * modules/wctype (Depends-on): Likewise.
51620         * MODULES.html.sh (Support for building libraries and
51621         executables): Document it.
51622
51623 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         * gnulib-tool (SED): Remove, undoing previous change.
51626         The problem was that it broke coreutils on Solaris, because
51627         "sed --posix" leaked into a makefile.
51628         (sed): New alias, if 'alias' and GNU sed.
51629
51630 2006-12-24  Jim Meyering  <jim@meyering.net>
51631
51632         Work around an fchownat bug in glibc-2.4:
51633         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
51634         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
51635         in spite of the -P option.
51636         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
51637         New macros.
51638         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
51639         * modules/openat (Files): Add lib/fchownat.c.
51640         * lib/openat.c (fchownat): Don't define here.  Move to...
51641         * lib/fchownat.c: ...this new file.
51642
51643 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51644
51645         Fix bug reported by Bruno Haible in
51646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
51647         where quotearg.c didn't compile on Mac OS X 10.2 because it
51648         lacks <wchar.h> and wint_t.
51649         * lib/wctype_.h (__wctype_wint_t): New type.
51650         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
51651         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
51652         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
51653         Arg is now of type __wctype_wint_t, not wint_t.
51654         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
51655         substitute HAVE_WINT_T.
51656         * modules/wctype (Files): Add m4/wint_t.m4.
51657         (wctype.h): Substitute HAVE_WINT_T.
51658
51659 2006-12-23  Bruno Haible  <bruno@clisp.org>
51660
51661         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
51662
51663 2006-12-23  Bruno Haible  <bruno@clisp.org>
51664
51665         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
51666         S_ISLNK.
51667         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
51668         mingw.
51669
51670 2006-12-22  Bruno Haible  <bruno@clisp.org>
51671
51672         * lib/copy-file.c: Include acl.h.
51673         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
51674         Close the file descriptors only after being done with copy_acl.
51675         * modules/copy-file (Depends-on): Add acl.
51676
51677 2006-12-22  Bruno Haible  <bruno@clisp.org>
51678
51679         * gnulib-tool (SED): New variable.
51680         Use $SED instead of sed everywhere.
51681
51682 2006-12-22  Bruno Haible  <bruno@clisp.org>
51683
51684         * modules/no-c++: New file.
51685         * m4/no-c++.m4: New file.
51686         * MODULES.html.sh (Support for building libraries and executables):
51687         Add no-c++.
51688
51689 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51692         Include <limits.h>, and use its INT_MAX to rewrite the
51693         j loop so that it does not overflow 'int'.  Problem reported by
51694         Ralf Wildenhues in
51695         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
51696         Play it safe by shifting left by 1 rather than multiplying by 2,
51697         as GCC is less likely to optimize this away when the value
51698         is signed (when it assumes overflow leads to undefined behavior).
51699         Also, don't assume time_t uses two's complement.
51700
51701 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51702
51703         * MODULES.html.sh: New module wctype.
51704         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
51705         * lib/fnmatch.c: Don't bother to include <wchar.h> before
51706         <wctype.h>, since the new wctype module should fix this.
51707         * lib/quotearg.c: Include <wctype.h> unconditionally, since
51708         the wctype module should arrange for it.
51709         * lib/regex_internal.h: Likewise.
51710         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
51711         since the wctype module should handle this now.
51712         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
51713         * modules/fnmatch (Depends-on): Add wctype.
51714         * modules/quotearg (Depends-on): Likewise.
51715         * modules/regex (Depends-on): Likewise.
51716
51717 2006-12-19  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/strdup.h [C++]: Wrap definitions in extern "C".
51720         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
51721
51722 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51723
51724         * modules/savewd (Depends-on): Fix dependency on fcntl.
51725
51726 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51727
51728         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
51729         conforms to C99, rather than relying on the user's environment
51730         setting of STDINT_H.
51731
51732 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51733         and Eric Blake  <ebb9@byu.net>
51734
51735         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
51736         This is more consistent with the other defines here.
51737         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
51738         Port to z/OS.  Problem reported by Paul Gilmartin.
51739         Change local vars to use gl_ prefix rather than ac_.
51740         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
51741         with other defines.
51742         * modules/double-slash-root: New module.
51743         * modules/dirname (Files): Remove m4/double-slash-root.m4.
51744         (Depends-on): Add double-slash-root.
51745         * MODULES.html.sh (File system functions): Mention new module.
51746
51747 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
51750         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
51751         This is for the benefit of gzip, which doesn't do i18n.
51752
51753 2006-12-12  Jim Meyering  <jim@meyering.net>
51754
51755         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
51756         Reported by Andreas Schwab <schwab@suse.de>.
51757
51758 2006-12-12  Bruno Haible  <bruno@clisp.org>
51759
51760         Merge these changes.
51761         2006-09-05  Bruno Haible  <bruno@clisp.org>
51762         * lib/iconvme.c (iconv_string): No need to save and restore errno when
51763         iconv_alloc succeeded.
51764         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
51765         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
51766         test for " && dest " at the end - dest is always != NULL there. Call
51767         iconv with 4xNULL arguments initially, to reset the state. Call iconv
51768         with 2xNULL arguments, also to flush the state storage. Handle the
51769         IRIX iconv behaviour. Realloc the final result, to throw away unused
51770         memory.
51771
51772 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
51773
51774         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
51775         and fchmodat unconditionally, since glibc 2.4 has them.
51776         Problem reported by Arkadiusz Miskiewicz.
51777
51778 2006-12-10  Bruno Haible  <bruno@clisp.org>
51779
51780         * gnulib-tool (func_import): Show the include files only for those
51781         modules that are copied and specified.
51782         Reported by Karl Berry.
51783
51784 2006-12-08  Jim Meyering  <jim@meyering.net>
51785
51786         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
51787         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
51788
51789         * build-aux/announce-gen: Add two new options, both optional:
51790         --bootstrap-tools=TOOL_LIST
51791               a comma-separated list of tools, e.g.,
51792               autoconf,automake,bison,gnulib
51793         --gnulib-snapshot-date=DATE
51794               if gnulib is in the bootstrap tool list,
51795               then report this as the snapshot date.
51796               If not specified, use the current date/time.
51797               If you specify a date here, be sure it's UTC.
51798
51799 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51800
51801         * tests/test-argp-2.sh: Fix test to match actual output.
51802         (func_compare): Fix sed script to be portable.
51803
51804 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
51805
51806         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
51807         workaround for this case.  It is not autoconfigured now; offhand
51808         it's hard to see how to autoconfigure it.
51809
51810 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51811
51812         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
51813         a directory that is about to be chowned.  Such a directory's
51814         initial file permissions should permit the owner only and this
51815         should not be changed until after the chown, since the group and
51816         other bits would be incorrect if they granted permission before
51817         the chown.
51818
51819         Fix porting problem for iswctype reported by Georg Schwarz in:
51820         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
51821         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
51822         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
51823         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
51824         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51825
51826 2006-12-03  Jim Meyering  <jim@meyering.net>
51827
51828         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
51829         p->fts_statp may not yet be defined.
51830         (fts_read): Instead, set it in the caller, once p->fts_statp is
51831         sure to be defined, and corresponds to a top-level directory.
51832         This bug made du -x fail.  Here's the coreutils test case:
51833         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
51834         Reported by Mike Frysinger.
51835
51836 2006-12-01  Jim Meyering  <jim@meyering.net>
51837
51838         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
51839         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
51840         Reported by Simon Josefsson.
51841
51842 2006-11-30  Jim Meyering  <jim@meyering.net>
51843
51844         * m4/warning.m4: Use the all-permissive copyright notice
51845         recommended by RMS (rather than LGPL).
51846         * m4/vararrays.m4: Likewise.
51847         * m4/flexmember.m4: Likewise.
51848
51849 2006-11-29  Bruno Haible  <bruno@clisp.org>
51850
51851         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51852         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
51853         using +=.
51854         Reported by Simon Josefsson <simon@josefsson.org>.
51855
51856 2006-11-28  James Youngman <jay@gnu.org>
51857
51858         * README: Advise users that they might find the bug-gnulib@gnu.org
51859         and autotools-announce@gnu.org mailing lists useful.
51860
51861 2006-11-28  Bruno Haible  <bruno@clisp.org>
51862
51863         * m4/ptrdiff_max.m4: Remove file.
51864
51865 2006-11-21  Bruno Haible  <bruno@clisp.org>
51866
51867         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
51868         _AC_COMPUTE_INT.
51869         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51870         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
51871         _AC_COMPUTE_INT.
51872         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51873         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
51874         _AC_COMPUTE_INT.
51875         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51876
51877 2006-11-28  Jim Meyering  <jim@meyering.net>
51878
51879         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
51880         warning from "gcc -Wshadow" about shadowing the builtin.
51881
51882 2006-11-27  Bruno Haible  <bruno@clisp.org>
51883
51884         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
51885         _AC_COMPUTE_INT.
51886         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51887
51888 2006-11-27  Bruno Haible  <bruno@clisp.org>
51889             Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
51892
51893 2006-11-26  Bruno Haible  <bruno@clisp.org>
51894
51895         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51896         noinst_LTLIBRARIES.
51897
51898 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51899             Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
51902         if compiling with "gcc -ansi".
51903
51904 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         Fix some incompatibilities with gcc -ansi -pedantic.
51907         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
51908         if compiling pedantically with GCC, unless it's C99 or later.
51909         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
51910         it mishandles gcc -ansi -pedantic as well.
51911         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
51912         if gcc -pedantic.
51913         * lib/regexec.c (check_node_accept_bytes): Don't use auto
51914         initializers for struct if -pedantic, unless it's C99 or later.
51915
51916 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
51917
51918         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
51919         Don't close an fd more than once. Identical atimes indicate
51920         success, not failure.
51921
51922 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
51923
51924         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
51925
51926 2006-11-23  Jim Meyering  <jim@meyering.net>
51927
51928         * build-aux/announce-gen: New file.  From coreutils.
51929
51930 2006-11-22  Jim Meyering  <jim@meyering.net>
51931
51932         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
51933         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
51934         (fts_read): Use a temporary to narrow the overused st_size member
51935         before using it in a switch statement.  Reported by Matthew Woehlke.
51936
51937         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
51938         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
51939
51940 2006-11-20  Bruno Haible  <bruno@clisp.org>
51941
51942         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
51943         changequote instead of pairs of brackets.
51944         Reported by Andreas Schwab <schwab@suse.de>.
51945
51946 2006-11-21  Jim Meyering  <jim@meyering.net>
51947
51948         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
51949         so as to remain compatible with older compilers.
51950         Patch from Michael Deutschmann.
51951
51952 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51953
51954         * MODULES.html.sh (File system functions): Add openat.
51955
51956         * lib/openat.h (rpl_fstatat): New macro, if
51957         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
51958         (fstatat): Define to rpl_fstatat under the same conditions,
51959         unless COMPILING_FSTATAT.
51960         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
51961         seems to have the bug.
51962         * lib/fstatat.c: New file.
51963         * modules/openat (Files): Add it.
51964
51965 2006-11-20  Bruno Haible  <bruno@clisp.org>
51966
51967         * Makefile: New file.
51968
51969 2006-11-20  Jim Meyering  <jim@meyering.net>
51970
51971         The beginnings of syntax-related checks for gnulib.
51972         * lib/Makefile: New file.
51973         * lib/t-idcache: New script.  Ensure that the two halves of
51974         idcache.c stay in sync.
51975
51976         * lib/idcache.c: Adjust comments in user- and group- portions to
51977         be more accurate, and to be consistent with one another.
51978
51979 2006-11-20  Jim Meyering  <jim@meyering.net>
51980
51981         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
51982         continue using the flexible array member (thus, this module performs
51983         half as many malloc calls), with the addition that...
51984         (getgroup, getuser): Consistently record a non-match via an empty
51985         "name" string, and map an empty string match to a NULL return value.
51986         * modules/idcache (Depends-on): Re-add flexmember.
51987
51988         * lib/idcache.c (getuser): Remove all uses of the register keyword.
51989         (getuidbyname, getgroup, getgidbyname): Likewise.
51990
51991         Use cleaner syntax: NULL rather than 0.
51992         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
51993
51994 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
51997         It mishandled the case where the group was missing.
51998         Problem reported by Greg Schafer.
51999         * modules/idcache: Likewise.
52000
52001 2006-11-18  Jim Meyering  <jim@meyering.net>
52002
52003         * check-module (%exempt_header): Add exception for some
52004         conditionally-included headers.
52005
52006         * modules/i-ring (Depends-on): Add verify.
52007         (License): Change to LGPL.
52008
52009 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52010
52011         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
52012         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
52013         and inttostr.h.  Use snprintf rather than uinttostr, so that
52014         LGPLed code doesn't depend on GPLed.
52015
52016 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52017
52018         * modules/inline (License): Change from GPL to LGPL.
52019
52020 2006-11-17  Jim Meyering  <jim@meyering.net>
52021
52022         * modules/d-type (License): Switch to LGPL.
52023
52024 2006-11-15  Bruno Haible  <bruno@clisp.org>
52025
52026         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
52027
52028 2006-11-15  Eric Blake  <ebb9@byu.net>
52029
52030         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
52031         the module dependency.
52032
52033 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52034             Bruno Haible  <bruno@clisp.org>
52035
52036         * gnulib-tool (func_create_testdir): Add license consistency check.
52037
52038 2006-11-15  Eric Blake  <ebb9@byu.net>
52039
52040         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
52041         random "(cached)" in configure output.
52042
52043 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52044
52045         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
52046         test for conforming inttypes.h is both announced and cached.
52047
52048         * MODULES.html.sh (seen_modules, seen_files): New variables.
52049         (func_module): Rewrite to use a few less gnulib-tool and sed
52050         invocations.  Avoid a couple of quadratic algorithms for ...
52051         (missed_modules, missed_files): ... these, with ...
52052         (func_append, func_tmpdir): ... these new functions, from
52053         gnulib-tool.  Analogously, install traps for cleanup.
52054
52055         * tests/test-gc.c (main): Remove unused variables.
52056         * tests/test-read-file.c: Include stdlib.h, for 'free'.
52057
52058 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * modules/inttostr (License): Change to LGPL.
52061
52062 2006-11-14  Eric Blake  <ebb9@byu.net>
52063
52064         * modules/tempname (License): Change to LGPL.
52065
52066 2006-11-14  Eric Blake  <ebb9@byu.net>
52067
52068         * doc/functions.texi (Function Portability): *printf functions on
52069         Cygwin now understand all POSIX size specifiers.
52070
52071 2006-11-14  Bruno Haible  <bruno@clisp.org>
52072
52073         * modules/c-ctype (License): Change to LGPL.
52074
52075 2006-11-12  Bruno Haible  <bruno@clisp.org>
52076
52077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52078         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
52079         for GNOME libraries, for which the include files are installed in
52080         subdirectories of $prefix/include.
52081
52082 2006-11-12  Bruno Haible  <bruno@clisp.org>
52083
52084         * m4/lib-link.m4: Require at least autoconf-2.54.
52085         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
52086         name to underscores for the --with option.
52087
52088 2006-11-13  Bruno Haible  <bruno@clisp.org>
52089
52090         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
52091         the tests directory.
52092         Reported by Ralf Wildenhues.
52093
52094 2006-11-13  Bruno Haible  <bruno@clisp.org>
52095
52096         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
52097         (func_emit_initmacro_end): Undo the override here.
52098         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
52099         Works around the famous automake error in coreutils.
52100
52101 2006-11-13  Eric Blake  <ebb9@byu.net>
52102
52103         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
52104         element, not its node.
52105
52106 2006-11-12  Bruno Haible  <bruno@clisp.org>
52107
52108         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
52109         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
52110
52111 2006-11-12  Bruno Haible  <bruno@clisp.org>
52112
52113         * gnulib-tool: New option --local-symlink.
52114         (func_usage): Document it.
52115         (lsymbolic): New variable.
52116         (func_import, func_create_testdir): If --symlink was not specified,
52117         test whether --local-symlink was specified and the file comes from
52118         the local_gnulib_dir.
52119
52120 2006-11-12  Bruno Haible  <bruno@clisp.org>
52121
52122         * gnulib-tool (func_ln): New function.
52123         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
52124
52125 2006-11-12  Bruno Haible  <bruno@clisp.org>
52126
52127         Finish support for source files in subdirectories.
52128         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
52129         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
52130         AUTOMAKE_OPTIONS.
52131         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
52132
52133 2006-11-12  Bruno Haible  <bruno@clisp.org>
52134
52135         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52136         EXTRA_lib_SOURCES augmentation.
52137         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
52138
52139 2006-11-12  Jim Meyering  <jim@meyering.net>
52140
52141         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
52142         file descriptors.  This also averts a failure on systems with
52143         native openat support when a traversed directory lacks "x" access.
52144         * lib/fts_.h: Include "i-ring.h"
52145         (struct FTS) [fts_fd_ring]: New member.
52146         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
52147         (FCHDIR): Add parentheses.
52148         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
52149         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
52150         When descending, rather than simply closing the previous
52151         fts_cwd_fd value, push that file descriptor onto the ring.
52152         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
52153         (fts_open): Initialize the new fd_ring member.
52154         (fts_close): Clear the ring.
52155         (fts_safe_changedir): When possible, use our new fd_ring to skip
52156         the diropen and fstat and dev/ino comparison that would normally
52157         accompany a virtual `chdir ("..")'.
52158
52159         * modules/fts (Depends-on): Add i-ring.
52160         * modules/i-ring: New module.
52161         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
52162         * m4/i-ring.m4: New file.
52163
52164 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52165
52166         * gnulib-tool (func_create_testdir): Fix replacement of
52167         `build-aux' in configure.ac.  Run autotools in gltests
52168         subdirectory.
52169         (func_create_testdir, func_create_megatestdir, test): There is
52170         no need for '--force' in most autotool invocations in a new
52171         tree.  Actually fail the whole test if any of the tools, or the
52172         configure or make stages fail.
52173
52174         Sync from Automake.
52175         * build-aux/gnupload: Revert last change.  Add pointer to upload
52176         instructions of the GNU Maintenance Instructions.
52177         Suggestion by Karl Berry.
52178
52179 2006-11-10  Jim Meyering  <jim@meyering.net>
52180
52181         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
52182
52183 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
52186         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
52187         (bind_textdomain_codeset) [! ENABLE_NLS]:
52188         Evaluate all the arguments.  That way, callers get compatible behavior
52189         if the arguments have side effects.  Also, it avoids some GCC
52190         diagnostics in some cases; Joel E. Denny reported problems when Bison
52191         was configured with --enable-gcc-warnigs.
52192
52193 2006-11-10  Jim Meyering  <jim@meyering.net>
52194
52195         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
52196         relevant options in CFLAGS (like -O, -fno-inline) are taken into
52197         account.
52198
52199 2006-11-10  Jim Meyering  <jim@meyering.net>
52200
52201         * modules/inline: New file/module.
52202         * modules/xalloc (Files): Remove m4/inline.m4.
52203         (Depends-on): Add inline, instead.
52204         * modules/oset: Likewise.
52205         * modules/list: Likewise.
52206
52207 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52208
52209         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
52210         Problem reported by Matthew Woehlke.
52211
52212 2006-11-09  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/tempname.c (gen_tempname): Remove variant that invokes
52215         __gen_tempname.
52216         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
52217         __gen_tempname.
52218
52219 2006-11-08  Bruno Haible  <bruno@clisp.org>
52220
52221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
52222         to 'yes' instead of 'cross-compiling'.
52223
52224 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
52225
52226         * lib/quotearg.h (quotearg_free): New decl.
52227         * lib/quotearg.c (quotearg_free): New function.
52228         (slot0, nslots, slotvec0, slotvec):
52229         Now file-scope so that quotearg_free can get at them.
52230
52231 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52232
52233         Sync from Automake.
52234         * build-aux/gnupload: Add missing 'gnu' to example URL.
52235         Report by Karl Berry.
52236
52237 2006-11-08  Bruno Haible  <bruno@clisp.org>
52238
52239         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
52240         Suggested by Paul Eggert.
52241
52242 2006-11-08  Jim Meyering  <jim@meyering.net>
52243
52244         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
52245         It's already included if !_LIBC.
52246         (fts_safe_changedir): Add a comment.
52247
52248 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52249
52250         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
52251         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
52252         Matthew Woehlke.
52253
52254         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
52255         definitions up, to avoid colliding with change below.
52256         (static_inline) [HAVE_INLINE]: New macro.
52257         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
52258         Provide extern decls when !HAVE_INLINE.  Do not define unless
52259         static_inline is defined, either by us or by xmalloc.c.  Use
52260         static_inline rather than static inline.
52261         (XCALLOC): Optimize sizeof(T) = 1 case.
52262         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
52263
52264 2006-11-07  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
52267         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
52268         AC_C_INLINE.
52269         * modules/xalloc (Files): Add m4/inline.m4.
52270
52271 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52272
52273         * README: Fix typo.
52274         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
52275         (Miscellanous Notes): ...from this.
52276
52277 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52278
52279         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
52280         Mention that offsetof should be used instead of sizeof.
52281         From Bruno Haible.
52282
52283 2006-11-07  Bruno Haible  <bruno@clisp.org>
52284
52285         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
52286
52287 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52288
52289         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52290         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
52291         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52292         (gl_tree_add_before, gl_tree_add_after):
52293         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
52294         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
52295         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52296         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
52297         (gl_linked_add_after, gl_linked_add_at): Likewise.
52298         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
52299         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52300         (gl_tree_add_before, gl_tree_add_after): Likewise.
52301         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
52302         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
52303         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
52304
52305 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52306
52307         * lib/gl_oset.h: Use C comment style, not C++ comment style.
52308
52309 2006-11-06  Bruno Haible  <bruno@clisp.org>
52310
52311         * m4/inline.m4: New file.
52312         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
52313         * modules/list (Files): Add m4/inline.m4.
52314         * modules/oset (Files): Likewise.
52315
52316 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52317
52318         * lib/idcache.c: Include <stddef.h>, for offsetof.
52319         (struct userid.name): Change from char * to a flexible array member.
52320         All uses changed.
52321         * modules/idcache (Depends-on): Add flexmember.
52322
52323         * MODULES.html.sh (Core language properties): New module flexmember.
52324         * modules/flexmember, m4/flexmember.m4: New files.
52325
52326         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
52327         inline functions that are identical with the old xnmalloc_inline,
52328         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
52329         that we can avoid some unnecessary integer multiplications and
52330         divisions in the common case where the element size is known at
52331         compile time.
52332         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
52333         needed.
52334         (xnboundedmalloc): Remove.
52335         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
52336         arguments, for consistency with rest of this header.
52337         (xcharalloc): Rewrite using XNMALLOC.
52338         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
52339         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
52340         versions have been moved to lib/xalloc.h and renamed to be the
52341         non-*_inline versions.
52342         (xmalloc, xrealloc): Implement without reference to the xnmalloc
52343         and xnrealloc functions, since those functions are now inline and
52344         now call us.
52345         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
52346         renaming described above.
52347         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
52348         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
52349         captures the dependency in AC_C_INLINE.
52350
52351         New module canonicalize-lgpl, proposed by Charles Wilson in
52352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
52353         with a few small changes afterwards.
52354         * MODULES.html.sh (File system functions): New module
52355         canonicalize-lgpl.
52356         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
52357         and canonicalize_file_name.
52358         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
52359         * modules/canonicalize-lgpl: New files.
52360
52361 2006-11-05  Bruno Haible  <bruno@clisp.org>
52362
52363         * gnulib-tool (func_import, func_create_testdir): Create directories
52364         also for files in subdirectories of lib/.
52365
52366 2006-11-05  Bruno Haible  <bruno@clisp.org>
52367
52368         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
52369         ANSI C compliant.
52370
52371 2006-11-03  Bruno Haible  <bruno@clisp.org>
52372
52373         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52374         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
52375         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
52376         (xnboundedmalloc): New inline function.
52377         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
52378         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
52379         xmalloc.
52380         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
52381         xmalloc.
52382         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
52383         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
52384         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
52385         xmalloc.
52386         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52387         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
52388         xmalloc.
52389         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
52390         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52391         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
52392         xmalloc.
52393         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52394         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
52395         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52396         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
52397         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
52398         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
52399         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
52400
52401 2006-11-03  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/c-ctype.h [C++]: Define functions without name mangling.
52404         * lib/fwriteerror.h [C++]: Likewise.
52405         * lib/gcd.h [C++]: Likewise.
52406         * lib/linebreak.h [C++]: Likewise.
52407
52408 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52409
52410         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
52411         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
52412         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
52413         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52414         Check for functions and headers just once.
52415         Check for declaration of canonicalize_file_name.
52416         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
52417
52418 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52419
52420         * gnulib-tool (func_import): Fix typo in actioncmd.
52421
52422 2006-11-02  Bruno Haible  <bruno@clisp.org>
52423
52424         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
52425         newline sequence in the Makefile.am snippet as a space, like "make"
52426         does.
52427         Reported by Roger Persson <perrog@gmail.com>.
52428
52429 2006-11-01  Bruno Haible  <bruno@clisp.org>
52430
52431         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
52432         already declared in <string.h>.
52433         * lib/strcase.h (strncasecmp): Don't declare it if yes.
52434
52435 2006-11-01  Bruno Haible  <bruno@clisp.org>
52436
52437         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
52438         * lib/strcase.h: Include <string.h>.
52439         (strcasecmp): Define to rpl_strcasecmp here.
52440
52441 2006-11-01  Bruno Haible  <bruno@clisp.org>
52442
52443         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
52444
52445 2006-11-01  Eric Blake  <ebb9@byu.net>
52446
52447         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
52448
52449         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
52450
52451 2006-10-29  Bruno Haible  <bruno@clisp.org>
52452
52453         Make it compile in C++ mode.
52454         * lib/full-write.c (full_rw): Add a cast.
52455
52456 2006-11-01  Bruno Haible  <bruno@clisp.org>
52457
52458         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
52459         be POSIX compliant.
52460         Reported by Roger Persson <perrog@gmail.com>.
52461
52462 2006-11-01  Eric Blake  <ebb9@byu.net>
52463
52464         * lib/getopt_.h: Fix comments.
52465
52466 2006-10-31  Eric Blake  <ebb9@byu.net>
52467
52468         * modules/tmpdir (Depends-on): Add sys_stat.
52469         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
52470         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
52471         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
52472         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
52473         tempname.
52474
52475 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         Avoid some C++ diagnostics reported by Bruno Haible.
52478         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
52479         xmalloc.
52480         (quotearg_alloc): Use xcharalloc rather than xmalloc.
52481         (struct slotvec): Move to top level.
52482         (quotearg_n_options): Rewrite to avoid xmalloc.
52483         * lib/xalloc.h (xcharalloc): New function.
52484         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
52485         [defined __cplusplus]: Add function template that provides result
52486         type propagation.  This part of the change is from Bruno Haible.
52487
52488 2006-10-29  Bruno Haible  <bruno@clisp.org>
52489
52490         Make it compile in C++ mode.
52491         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
52492         * lib/strnlen1.c (strnlen1): Cast memchr result.
52493         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
52494         * lib/clean-temp.c (string_equals, string_hash): Add casts.
52495         (create_temp_dir): Rename local variable 'template'.
52496         (compile_csharp_using_sscli): Add cast.
52497         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
52498         * lib/findprog.c (find_in_path): Likewise.
52499         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
52500         * lib/wait-process.c (register_slave_subprocess): Likewise.
52501
52502 2006-10-22  Bruno Haible  <bruno@clisp.org>
52503
52504         * modules/tsearch: New file.
52505         * lib/tsearch.h: New file.
52506         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
52507         * m4/tsearch.m4: New file.
52508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
52509
52510 2006-10-29  Eric Blake  <ebb9@byu.net>
52511
52512         * lib/arcfour.c: Assume config.h.
52513         * lib/arctwo.c: Likewise.
52514         * lib/base64.c: Likewise.
52515         * lib/check-version.c: Likewise.
52516         * lib/crc.c: Likewise.
52517         * lib/des.c: Likewise.
52518         * lib/gc-gnulib.c: Likewise.
52519         * lib/gc-libgcrypt.c: Likewise.
52520         * lib/gc-pbkdf2-sha1.c: Likewise.
52521         * lib/getaddrinfo.c: Likewise.
52522         * lib/getdelim.c: Likewise.
52523         * lib/getline.c: Likewise.
52524         * lib/hmac-md5.c: Likewise.
52525         * lib/hmac-sha1.c: Likewise.
52526         * lib/iconvme.c: Likewise.
52527         * lib/md2.c: Likewise.
52528         * lib/md4.c: Likewise.
52529         * lib/memxor.c: Likewise.
52530         * lib/read-file.c: Likewise.
52531         * lib/readline.c: Likewise.
52532         * lib/rijndael-alg-fst.c: Likewise.
52533         * lib/rijndael-api-fst.c: Likewise.
52534         * lib/xgetdomainname.c: Likewise.
52535
52536 2006-10-28  Eric Blake  <ebb9@byu.net>
52537
52538         * lib/xstrndup.c: Assume config.h.
52539
52540 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52541
52542         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
52543         stat-macros.h is now for our own macros, whereas stat_h is for
52544         macros in the <sys/stat.h> name space.
52545         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
52546         (STAT_MACROS_H): Remove.
52547         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
52548         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
52549         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
52550         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
52551         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
52552         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
52553         Move these macros to ...
52554         * lib/stat_.h: here.  Don't include stat-macros.h.
52555         * lib/canonicalize.c: Don't include stat-macros.h.
52556         * lib/chown.c: Likewise.
52557         * lib/euidaccess.c: Likewise.
52558         * lib/file-type.c: Likewise.
52559         * lib/filemode.c: Likewise.
52560         * lib/glob.c: Likewise.
52561         * lib/isapipe.c: Likewise.
52562         * lib/lchown.c: Likewise.
52563         * lib/lstat.c: Likewise.
52564         * lib/mkdir-p.c: Likewise.
52565         * lib/rmdir.c: Likewise.
52566         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
52567         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
52568         unless mkdir isn't declared, to speed up 'configure'.
52569         Always create sys/stat.h, since it's unlikely any real sys/stat.h
52570         would define all the S_* symbols.
52571         * modules/canonicalize (Depends-on):
52572         Depend on sys_stat, not stat-macros.
52573         * modules/chown: Likewise.
52574         * modules/euidaccess: Likewise.
52575         * modules/filemode: Likewise.
52576         * modules/file-type: Likewise.
52577         * modules/glob: Likewise.
52578         * modules/isapipe: Likewise.
52579         * modules/lchown: Likewise.
52580         * modules/lstat: Likewise.
52581         * modules/mkancesdirs: Likewise.
52582         * modules/rmdir: Likewise.
52583         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
52584         * modules/modechange: Likewise.
52585         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
52586         (configure.ac): Remove gl_STAT_MACROS.
52587         * modules/sys_stat (Depends-on): Remove stat-macros.
52588
52589 2006-10-27  Bruno Haible  <bruno@clisp.org>
52590
52591         * m4/signed.m4: Remove file.
52592         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
52593         invocation.
52594         * modules/vasnprintf (Files): Remove m4/signed.m4.
52595
52596 2006-10-27  Bruno Haible  <bruno@clisp.org>
52597
52598         Update to GNU gettext 0.16.
52599         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
52600         m4/inttypes-h.m4, m4/signed.m4.
52601         * m4/gettext.m4: Update to GNU gettext 0.16.
52602         * m4/intl.m4: New file, from GNU gettext.
52603         * m4/intldir.m4: New file, from GNU gettext.
52604         * config/srclist.txt: Update
52605
52606 2006-10-27  Eric Blake  <ebb9@byu.net>
52607
52608         * MODULES.html.sh: Document tempname.
52609         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
52610         dependencies.
52611         (Files): Move lib/tempname.c...
52612         * modules/tempname: ...to this new module.
52613         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
52614         (gl_PREREQ_TEMPNAME): Move...
52615         * m4/tempname.m4: ...to this new file.
52616         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
52617         * modules/sys_stat (Depends-on): Add stat-macros.
52618         * lib/stat_.h (includes): Pick up stat macros.
52619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
52620         if stat macros are broken.
52621         * lib/tempname.c (includes): No need to include "stat-macros.h".
52622         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
52623         (direxists, __path_search) [!_LIBC]: Don't compile these in
52624         gnulib; the tmpdir module covers that.
52625         * lib/tempname.h: New file.
52626
52627 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52628
52629         * COPYING: Explain how gnulib-tool converts licence headers.
52630         Almost all wording by Eric Blake.
52631
52632 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * lib/mbchar.h (is_basic_table): Make read-only.
52635         * lib/mbchar.c (is_basic_table): Likewise.
52636         Reported by John Darrington.
52637
52638 2006-10-25  Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/progname.h (set_program_name): Undefine before defining.
52641
52642 2006-10-25  Bruno Haible  <bruno@clisp.org>
52643
52644         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
52645         false for non-gcc C++ compilers.
52646         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52647
52648 2006-10-24  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
52651         iconv implementations like Irix iconv.
52652
52653 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         * modules/vararrays: New file.
52656         * m4/vararrays.m4: New file, taken from diffutils.
52657         * MODULES.html.sh: New module vararrays.
52658
52659 2006-10-24  Karl Berry  <karl@gnu.org>
52660
52661         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
52662         Don't call GNU Unix.
52663
52664 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52665
52666         * users.txt: Add Libtool.
52667
52668         Sync from Libtool:
52669
52670         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52671
52672         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
52673         to gnulib's policy of including config.h unconditionally.
52674
52675 2006-10-24  Bruno Haible  <bruno@clisp.org>
52676
52677         * modules/wcwidth (Files): Add m4/wint_t.m4.
52678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
52679         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
52680
52681 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
52684         to pacify GCC with some -W flags enabled.  Problem reported by
52685         Bruno Haible.
52686
52687 2006-10-24  Jim Meyering  <jim@meyering.net>
52688
52689         * MODULES.html.sh: Remove uinttostr.  It's not a module.
52690         Reported by Karl Berry.
52691
52692 2006-10-23  Bruno Haible  <bruno@clisp.org>
52693
52694         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
52695
52696 2006-10-24  Bruno Haible  <bruno@clisp.org>
52697
52698         * lib/gl_list.h: Use C comment style, not C++ comment style.
52699
52700 2006-10-23  Eric Blake  <ebb9@byu.net>
52701
52702         * lib/getaddrinfo.c (includes): Add missing include.
52703
52704 2006-10-23  Bruno Haible  <bruno@clisp.org>
52705             Paul Eggert  <eggert@cs.ucla.edu>
52706
52707         Ability to rename obstack_free.
52708         * lib/obstack.h (__obstack_free): New macro. Declare instead of
52709         obstack_free.
52710         (obstack_free): Invoke the __obstack_free macro.
52711         * lib/obstack.c (obstack_free): Use __obstack_free macro.
52712
52713 2006-10-23  Bruno Haible  <bruno@clisp.org>
52714             Paul Eggert  <eggert@cs.ucla.edu>
52715
52716         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
52717         __argc, __argv from the declaration. (They are defined as macros on
52718         mingw.)
52719
52720 2006-10-22  Bruno Haible  <bruno@clisp.org>
52721
52722         * doc/gnulib-intro.texi: New file.
52723         * doc/gnulib.texi: Include it.
52724
52725 2006-10-21  Bruno Haible  <bruno@clisp.org>
52726
52727         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
52728         "Introduction", "Miscellanous Notes", "Particular Modules".
52729
52730 2006-10-21  Bruno Haible  <bruno@clisp.org>
52731
52732         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52733         Change mostlyclean-local rule to avoid sh syntax error from bash
52734         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
52735
52736 2006-10-23  Jim Meyering  <jim@meyering.net>
52737
52738         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
52739         in place of snprintf.
52740
52741         * modules/inttostr (Files): Add lib/uinttostr.c.
52742         * lib/uinttostr.c (inttostr): New file/function.
52743         * lib/inttostr.h (uinttostr): Declare.
52744         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
52745         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52746         Add uinttostr.
52747         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
52748
52749 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52750
52751         * lib/canonicalize.c (ELOOP): Define if not already defined.
52752         Problem reported by Bruno Haible in
52753         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
52754
52755 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
52758         Problem reported by Perry Smith and Ville Laurikari.
52759
52760         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
52761         uses.
52762
52763 2006-10-19  Bruno Haible  <bruno@clisp.org>
52764
52765         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
52766         for mingw.
52767
52768 2006-10-19  Bruno Haible  <bruno@clisp.org>
52769
52770         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
52771         Needed for mingw.
52772
52773 2006-10-19  Bruno Haible  <bruno@clisp.org>
52774
52775         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
52776
52777 2006-10-19  Bruno Haible  <bruno@clisp.org>
52778
52779         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
52780         it.
52781
52782 2006-10-19  Bruno Haible  <bruno@clisp.org>
52783
52784         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
52785         invocation.
52786
52787 2006-10-19  Bruno Haible  <bruno@clisp.org>
52788
52789         * gnulib-tool (func_create_testdir): Don't include ftruncate and
52790         mountlist by default.
52791
52792 2006-10-16  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/c-strstr.c: Include c-strstr.h.
52795
52796 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52797
52798         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
52799         in a slash.
52800
52801 2006-10-18  Bruno Haible  <bruno@clisp.org>
52802
52803         * lib/lock.h [C++]: Wrap definitions in extern "C".
52804
52805 2006-10-18  Bruno Haible  <bruno@clisp.org>
52806
52807         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
52808         gl_LIBOBJS list.
52809
52810 2006-10-18  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
52813
52814 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
52815
52816         * lib/xstrtol.h: Include gettext.h.
52817         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
52818         Problem reported by Eric Blake.
52819         * modules/xstrtol (Depends-on): Add gettext-h.
52820
52821 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
52822
52823         * lib/strftime.c (advance): New macro.
52824         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
52825         incomplete type, so you can't add 0 to it.  Problem and patch
52826         reported by Eelco Dolstra for dietlibc.
52827
52828 2006-10-18  Jim Meyering  <jim@meyering.net>
52829
52830         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
52831         type for a local, and rename it: s/up/user_proc/.
52832
52833 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52834
52835         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
52836         READ_UTMP_USER_PROCESS.
52837         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
52838
52839 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
52842         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
52843
52844 2006-10-17  Eric Blake  <ebb9@byu.net>
52845
52846         * lib/sigprocmask.c (sigprocmask): Fix typo.
52847
52848         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
52849
52850         * modules/clean-temp (Makefile.am): Don't add to make output...
52851         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
52852         config.h.
52853
52854 2006-10-17  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
52857         differently if DEFAULT_TEXT_DOMAIN is set.
52858
52859 2006-10-16  Bruno Haible  <bruno@clisp.org>
52860
52861         * lib/clean-temp.c: Include fwriteerror.h.
52862
52863 2006-10-16  Bruno Haible  <bruno@clisp.org>
52864
52865         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
52866
52867 2006-10-16  Bruno Haible  <bruno@clisp.org>
52868
52869         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
52870         * lib/sigprocmask.h: Include <sys/types.h>.
52871         (sigset_t): Use the system's definition if present.
52872
52873 2006-10-17  Eric Blake  <ebb9@byu.net>
52874
52875         * lib/xvasprintf.c (includes): Assume config.h.
52876         * lib/xasprintf.c (includes): Likewise.
52877
52878 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52879
52880         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
52881         at least as wide as intmax_t.
52882
52883 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
52884
52885         (Imported from Automake.)
52886         * build-aux/gnupload: Update to version 1.1 of directive file.
52887
52888 2006-10-16  Eric Blake  <ebb9@byu.net>
52889
52890         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
52891         match Automake 1.10a.
52892
52893 2006-10-14  Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/sigprocmask: New file.
52896         * lib/sigprocmask.h: New file.
52897         * lib/sigprocmask.c: New file.
52898         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
52899         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
52900         request sigprocmask.o.
52901         (gl_PREREQ_SIGPROCMASK): New macro.
52902         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
52903         (Depends-on): Add sigprocmask.
52904         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
52905         gt_SIGNALBLOCKING. Test for 'raise' only once.
52906         * lib/fatal-signal.c: Include sigprocmask.h.
52907         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
52908         unblock_fatal_signals): Define always.
52909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52910         sigprocmask.
52911
52912 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52913
52914         Sync from Automake.
52915         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
52916         which incorrectly sets the mode of an existing destination
52917         directory.  In some cases the unpatched install-sh could do the
52918         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
52919         system.  We hope this is rare in practice, but it's clearly worth
52920         fixing.  Problem reported by Alex Unleashed in
52921         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
52922         Also, don't bother to check for -m bugs unless we're using -m;
52923         suggested by Stepan Kasal.
52924
52925 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52926
52927         Sync from Automake.
52928         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
52929         `-c' flag, so they appear at the same position as in %FASTDEP%
52930         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
52931         which ignores unknown options only after the first non-option.
52932         Bug report against M4 by Nelson H. F. Beebe.
52933
52934 2006-10-13  Jim Meyering  <jim@meyering.net>
52935
52936         Fix a bug in yesterday's change.
52937         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
52938         p->fts_statp->st_dev would be used uninitialized.
52939         Ensures that we always call fts_stat on the very first entry.
52940         Miklos Szeredi reported that find -xdev stopped working.
52941
52942 2006-10-12  Bruno Haible  <bruno@clisp.org>
52943
52944         * gnulib-tool (func_get_automake_snippet): Append an automatically
52945         computed EXTRA_DIST augmentation.
52946         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
52947         * modules/alloca-opt (Makefile.am): Likewise.
52948         * modules/allocsa (Makefile.am): Likewise.
52949         * modules/arcfour (Makefile.am): Likewise.
52950         * modules/arctwo (Makefile.am): Likewise.
52951         * modules/argmatch (Makefile.am): Likewise.
52952         * modules/argz (Makefile.am): Likewise.
52953         * modules/atexit (Makefile.am): Likewise.
52954         * modules/backupfile (Makefile.am): Likewise.
52955         * modules/byteswap (Makefile.am): Likewise.
52956         * modules/c-strtod (Makefile.am): Likewise.
52957         * modules/c-strtold (Makefile.am): Likewise.
52958         * modules/calloc (Makefile.am): Likewise.
52959         * modules/canon-host (Makefile.am): Likewise.
52960         * modules/canonicalize (Makefile.am): Likewise.
52961         * modules/chdir-long (Makefile.am): Likewise.
52962         * modules/chdir-safer (Makefile.am): Likewise.
52963         * modules/check-version (Makefile.am): Likewise.
52964         * modules/chown (Makefile.am): Likewise.
52965         * modules/cloexec (Makefile.am): Likewise.
52966         * modules/close-stream (Makefile.am): Likewise.
52967         * modules/closeout (Makefile.am): Likewise.
52968         * modules/crc (Makefile.am): Likewise.
52969         * modules/csharpexec (Makefile.am): Likewise.
52970         * modules/cycle-check (Makefile.am): Likewise.
52971         * modules/des (Makefile.am): Likewise.
52972         * modules/dev-ino (Makefile.am): Likewise.
52973         * modules/dirfd (Makefile.am): Likewise.
52974         * modules/dirname (Makefile.am): Likewise.
52975         * modules/dup2 (Makefile.am): Likewise.
52976         * modules/eealloc (Makefile.am): Likewise.
52977         * modules/error (Makefile.am): Likewise.
52978         * modules/euidaccess (Makefile.am): Likewise.
52979         * modules/exclude (Makefile.am): Likewise.
52980         * modules/exitfail (Makefile.am): Likewise.
52981         * modules/fcntl-safer (Makefile.am): Likewise.
52982         * modules/fcntl (Makefile.am): Likewise.
52983         * modules/file-type (Makefile.am): Likewise.
52984         * modules/fileblocks (Makefile.am): Likewise.
52985         * modules/filemode (Makefile.am): Likewise.
52986         * modules/filenamecat (Makefile.am): Likewise.
52987         * modules/fnmatch (Makefile.am): Likewise.
52988         * modules/fopen-safer (Makefile.am): Likewise.
52989         * modules/fpending (Makefile.am): Likewise.
52990         * modules/fprintftime (Makefile.am): Likewise.
52991         * modules/free (Makefile.am): Likewise.
52992         * modules/fsusage (Makefile.am): Likewise.
52993         * modules/ftruncate (Makefile.am): Likewise.
52994         * modules/fts (Makefile.am): Likewise.
52995         * modules/gc-arcfour (Makefile.am): Likewise.
52996         * modules/gc-des (Makefile.am): Likewise.
52997         * modules/gc-hmac-md5 (Makefile.am): Likewise.
52998         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
52999         * modules/gc-md4 (Makefile.am): Likewise.
53000         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53001         * modules/gc-sha1 (Makefile.am): Likewise.
53002         * modules/gc (Makefile.am): Likewise.
53003         * modules/getaddrinfo (Makefile.am): Likewise.
53004         * modules/getcwd (Makefile.am): Likewise.
53005         * modules/getdelim (Makefile.am): Likewise.
53006         * modules/getdomainname (Makefile.am): Likewise.
53007         * modules/getgroups (Makefile.am): Likewise.
53008         * modules/gethostname (Makefile.am): Likewise.
53009         * modules/gethrxtime (Makefile.am): Likewise.
53010         * modules/getline (Makefile.am): Likewise.
53011         * modules/getloadavg (Makefile.am): Likewise.
53012         * modules/getlogin_r (Makefile.am): Likewise.
53013         * modules/getndelim2 (Makefile.am): Likewise.
53014         * modules/getopt (Makefile.am): Likewise.
53015         * modules/getpagesize (Makefile.am): Likewise.
53016         * modules/getpass-gnu (Makefile.am): Likewise.
53017         * modules/getpass (Makefile.am): Likewise.
53018         * modules/getsubopt (Makefile.am): Likewise.
53019         * modules/gettime (Makefile.am): Likewise.
53020         * modules/gettimeofday (Makefile.am): Likewise.
53021         * modules/getugroups (Makefile.am): Likewise.
53022         * modules/getusershell (Makefile.am): Likewise.
53023         * modules/glob (Makefile.am): Likewise.
53024         * modules/group-member (Makefile.am): Likewise.
53025         * modules/hard-locale (Makefile.am): Likewise.
53026         * modules/hash (Makefile.am): Likewise.
53027         * modules/hmac-md5 (Makefile.am): Likewise.
53028         * modules/hmac-sha1 (Makefile.am): Likewise.
53029         * modules/human (Makefile.am): Likewise.
53030         * modules/idcache (Makefile.am): Likewise.
53031         * modules/imaxabs (Makefile.am): Likewise.
53032         * modules/imaxdiv (Makefile.am): Likewise.
53033         * modules/inet_ntop (Makefile.am): Likewise.
53034         * modules/inet_pton (Makefile.am): Likewise.
53035         * modules/intprops (Makefile.am): Likewise.
53036         * modules/inttostr (Makefile.am): Likewise.
53037         * modules/inttypes (Makefile.am): Likewise.
53038         * modules/isapipe (Makefile.am): Likewise.
53039         * modules/javaversion (Makefile.am): Likewise.
53040         * modules/lchmod (Makefile.am): Likewise.
53041         * modules/lchown (Makefile.am): Likewise.
53042         * modules/localcharset (Makefile.am): Likewise.
53043         * modules/long-options (Makefile.am): Likewise.
53044         * modules/lstat (Makefile.am): Likewise.
53045         * modules/malloc (Makefile.am): Likewise.
53046         * modules/mathl (Makefile.am): Likewise.
53047         * modules/mbchar (Makefile.am): Likewise.
53048         * modules/md2 (Makefile.am): Likewise.
53049         * modules/md4 (Makefile.am): Likewise.
53050         * modules/md5 (Makefile.am): Likewise.
53051         * modules/memcasecmp (Makefile.am): Likewise.
53052         * modules/memchr (Makefile.am): Likewise.
53053         * modules/memcmp (Makefile.am): Likewise.
53054         * modules/memcoll (Makefile.am): Likewise.
53055         * modules/memcpy (Makefile.am): Likewise.
53056         * modules/memmem (Makefile.am): Likewise.
53057         * modules/memmove (Makefile.am): Likewise.
53058         * modules/mempcpy (Makefile.am): Likewise.
53059         * modules/memrchr (Makefile.am): Likewise.
53060         * modules/memset (Makefile.am): Likewise.
53061         * modules/memxor (Makefile.am): Likewise.
53062         * modules/mkancesdirs (Makefile.am): Likewise.
53063         * modules/mkdir-p (Makefile.am): Likewise.
53064         * modules/mkdir (Makefile.am): Likewise.
53065         * modules/mkdtemp (Makefile.am): Likewise.
53066         * modules/mkstemp (Makefile.am): Likewise.
53067         * modules/mktime (Makefile.am): Likewise.
53068         * modules/modechange (Makefile.am): Likewise.
53069         * modules/mountlist (Makefile.am): Likewise.
53070         * modules/nanosleep (Makefile.am): Likewise.
53071         * modules/obstack (Makefile.am): Likewise.
53072         * modules/openat (Makefile.am): Likewise.
53073         * modules/pagealign_alloc (Makefile.am): Likewise.
53074         * modules/pathmax (Makefile.am): Likewise.
53075         * modules/physmem (Makefile.am): Likewise.
53076         * modules/poll (Makefile.am): Likewise.
53077         * modules/posixtm (Makefile.am): Likewise.
53078         * modules/posixver (Makefile.am): Likewise.
53079         * modules/putenv (Makefile.am): Likewise.
53080         * modules/quote (Makefile.am): Likewise.
53081         * modules/quotearg (Makefile.am): Likewise.
53082         * modules/raise (Makefile.am): Likewise.
53083         * modules/read-file (Makefile.am): Likewise.
53084         * modules/readline (Makefile.am): Likewise.
53085         * modules/readlink (Makefile.am): Likewise.
53086         * modules/readtokens (Makefile.am): Likewise.
53087         * modules/readutmp (Makefile.am): Likewise.
53088         * modules/realloc (Makefile.am): Likewise.
53089         * modules/regex (Makefile.am): Likewise.
53090         * modules/rename-dest-slash (Makefile.am): Likewise.
53091         * modules/rename (Makefile.am): Likewise.
53092         * modules/rijndael (Makefile.am): Likewise.
53093         * modules/rmdir (Makefile.am): Likewise.
53094         * modules/rpmatch (Makefile.am): Likewise.
53095         * modules/safe-read (Makefile.am): Likewise.
53096         * modules/safe-write (Makefile.am): Likewise.
53097         * modules/same-inode (Makefile.am): Likewise.
53098         * modules/same (Makefile.am): Likewise.
53099         * modules/save-cwd (Makefile.am): Likewise.
53100         * modules/savedir (Makefile.am): Likewise.
53101         * modules/setenv (Makefile.am): Likewise.
53102         * modules/settime (Makefile.am): Likewise.
53103         * modules/sha1 (Makefile.am): Likewise.
53104         * modules/sig2str (Makefile.am): Likewise.
53105         * modules/snprintf (Makefile.am): Likewise.
53106         * modules/stat-macros (Makefile.am): Likewise.
53107         * modules/stat-time (Makefile.am): Likewise.
53108         * modules/stdbool (Makefile.am): Likewise.
53109         * modules/stdint (Makefile.am): Likewise.
53110         * modules/stdlib-safer (Makefile.am): Likewise.
53111         * modules/stpcpy (Makefile.am): Likewise.
53112         * modules/stpncpy (Makefile.am): Likewise.
53113         * modules/strcase (Makefile.am): Likewise.
53114         * modules/strcasestr (Makefile.am): Likewise.
53115         * modules/strchrnul (Makefile.am): Likewise.
53116         * modules/strcspn (Makefile.am): Likewise.
53117         * modules/strdup (Makefile.am): Likewise.
53118         * modules/strerror (Makefile.am): Likewise.
53119         * modules/strftime (Makefile.am): Likewise.
53120         * modules/strndup (Makefile.am): Likewise.
53121         * modules/strnlen (Makefile.am): Likewise.
53122         * modules/strpbrk (Makefile.am): Likewise.
53123         * modules/strsep (Makefile.am): Likewise.
53124         * modules/strstr (Makefile.am): Likewise.
53125         * modules/strtod (Makefile.am): Likewise.
53126         * modules/strtoimax (Makefile.am): Likewise.
53127         * modules/strtok_r (Makefile.am): Likewise.
53128         * modules/strtol (Makefile.am): Likewise.
53129         * modules/strtoll (Makefile.am): Likewise.
53130         * modules/strtoul (Makefile.am): Likewise.
53131         * modules/strtoull (Makefile.am): Likewise.
53132         * modules/strtoumax (Makefile.am): Likewise.
53133         * modules/strverscmp (Makefile.am): Likewise.
53134         * modules/sys_socket (Makefile.am): Likewise.
53135         * modules/sys_stat (Makefile.am): Likewise.
53136         * modules/sysexits (Makefile.am): Likewise.
53137         * modules/time_r (Makefile.am): Likewise.
53138         * modules/timegm (Makefile.am): Likewise.
53139         * modules/timespec (Makefile.am): Likewise.
53140         * modules/tmpfile-safer (Makefile.am): Likewise.
53141         * modules/trim (Makefile.am): Likewise.
53142         * modules/unistd-safer (Makefile.am): Likewise.
53143         * modules/unlinkdir (Makefile.am): Likewise.
53144         * modules/unlocked-io (Makefile.am): Likewise.
53145         * modules/userspec (Makefile.am): Likewise.
53146         * modules/utime (Makefile.am): Likewise.
53147         * modules/utimecmp (Makefile.am): Likewise.
53148         * modules/utimens (Makefile.am): Likewise.
53149         * modules/vasnprintf (Makefile.am): Likewise.
53150         * modules/vasprintf (Makefile.am): Likewise.
53151         * modules/vsnprintf (Makefile.am): Likewise.
53152         * modules/xalloc (Makefile.am): Likewise.
53153         * modules/xgetcwd (Makefile.am): Likewise.
53154         * modules/xnanosleep (Makefile.am): Likewise.
53155         * modules/xreadlink (Makefile.am): Likewise.
53156         * modules/xstrtod (Makefile.am): Likewise.
53157         * modules/xstrtol (Makefile.am): Likewise.
53158         * modules/xstrtold (Makefile.am): Likewise.
53159         * modules/yesno (Makefile.am): Likewise.
53160         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
53161
53162 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53163
53164         * modules/error (Makefile.am): Distribute files through
53165         EXTRA_DIST, not lib_SOURCES.
53166
53167 2006-10-12  Eric Blake  <ebb9@byu.net>
53168
53169         * modules/error (Makefile.am): Distribute files in /lib.
53170         * modules/obstack (Makefile.am): Likewise.
53171
53172 2006-10-12  Bruno Haible  <bruno@clisp.org>
53173
53174         * modules/acl (Makefile.am): Distribute all files in lib/ through
53175         EXTRA_DIST.
53176         * modules/arcfour (Makefile.am): Likewise.
53177         * modules/arctwo (Makefile.am): Likewise.
53178         * modules/argmatch (Makefile.am): Likewise.
53179         * modules/argz (Makefile.am): Likewise.
53180         * modules/atexit (Makefile.am): Likewise.
53181         * modules/backupfile (Makefile.am): Likewise.
53182         * modules/c-strtod (Makefile.am): Likewise.
53183         * modules/c-strtold (Makefile.am): Likewise.
53184         * modules/calloc (Makefile.am): Likewise.
53185         * modules/canon-host (Makefile.am): Likewise.
53186         * modules/canonicalize (Makefile.am): Likewise.
53187         * modules/chdir-long (Makefile.am): Likewise.
53188         * modules/chdir-safer (Makefile.am): Likewise.
53189         * modules/check-version (Makefile.am): Likewise.
53190         * modules/chown (Makefile.am): Likewise.
53191         * modules/cloexec (Makefile.am): Likewise.
53192         * modules/close-stream (Makefile.am): Likewise.
53193         * modules/closeout (Makefile.am): Likewise.
53194         * modules/crc (Makefile.am): Likewise.
53195         * modules/cycle-check (Makefile.am): Likewise.
53196         * modules/des (Makefile.am): Likewise.
53197         * modules/dirfd (Makefile.am): Likewise.
53198         * modules/dirname (Makefile.am): Likewise.
53199         * modules/dup2 (Makefile.am): Likewise.
53200         * modules/euidaccess (Makefile.am): Likewise.
53201         * modules/exclude (Makefile.am): Likewise.
53202         * modules/exitfail (Makefile.am): Likewise.
53203         * modules/fcntl-safer (Makefile.am): Likewise.
53204         * modules/file-type (Makefile.am): Likewise.
53205         * modules/fileblocks (Makefile.am): Likewise.
53206         * modules/filemode (Makefile.am): Likewise.
53207         * modules/filenamecat (Makefile.am): Likewise.
53208         * modules/fnmatch (Makefile.am): Likewise.
53209         * modules/fopen-safer (Makefile.am): Likewise.
53210         * modules/fpending (Makefile.am): Likewise.
53211         * modules/fprintftime (Makefile.am): Likewise.
53212         * modules/free (Makefile.am): Likewise.
53213         * modules/fsusage (Makefile.am): Likewise.
53214         * modules/ftruncate (Makefile.am): Likewise.
53215         * modules/fts (Makefile.am): Likewise.
53216         * modules/gc (Makefile.am): Likewise.
53217         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53218         * modules/getaddrinfo (Makefile.am): Likewise.
53219         * modules/getcwd (Makefile.am): Likewise.
53220         * modules/getdelim (Makefile.am): Likewise.
53221         * modules/getdomainname (Makefile.am): Likewise.
53222         * modules/getgroups (Makefile.am): Likewise.
53223         * modules/gethostname (Makefile.am): Likewise.
53224         * modules/gethrxtime (Makefile.am): Likewise.
53225         * modules/getline (Makefile.am): Likewise.
53226         * modules/getloadavg (Makefile.am): Likewise.
53227         * modules/getlogin_r (Makefile.am): Likewise.
53228         * modules/getopt (Makefile.am): Likewise.
53229         * modules/getpass (Makefile.am): Likewise.
53230         * modules/getpass-gnu (Makefile.am): Likewise.
53231         * modules/getsubopt (Makefile.am): Likewise.
53232         * modules/gettime (Makefile.am): Likewise.
53233         * modules/gettimeofday (Makefile.am): Likewise.
53234         * modules/getugroups (Makefile.am): Likewise.
53235         * modules/getusershell (Makefile.am): Likewise.
53236         * modules/glob (Makefile.am): Likewise.
53237         * modules/group-member (Makefile.am): Likewise.
53238         * modules/hard-locale (Makefile.am): Likewise.
53239         * modules/hash (Makefile.am): Likewise.
53240         * modules/hmac-md5 (Makefile.am): Likewise.
53241         * modules/hmac-sha1 (Makefile.am): Likewise.
53242         * modules/human (Makefile.am): Likewise.
53243         * modules/idcache (Makefile.am): Likewise.
53244         * modules/imaxabs (Makefile.am): Likewise.
53245         * modules/imaxdiv (Makefile.am): Likewise.
53246         * modules/inet_ntop (Makefile.am): Likewise.
53247         * modules/inet_pton (Makefile.am): Likewise.
53248         * modules/inttostr (Makefile.am): Likewise.
53249         * modules/isapipe (Makefile.am): Likewise.
53250         * modules/lchown (Makefile.am): Likewise.
53251         * modules/long-options (Makefile.am): Likewise.
53252         * modules/lstat (Makefile.am): Likewise.
53253         * modules/malloc (Makefile.am): Likewise.
53254         * modules/mathl (Makefile.am): Likewise.
53255         * modules/mbchar (Makefile.am): Likewise.
53256         * modules/md2 (Makefile.am): Likewise.
53257         * modules/md4 (Makefile.am): Likewise.
53258         * modules/md5 (Makefile.am): Likewise.
53259         * modules/memcasecmp (Makefile.am): Likewise.
53260         * modules/memchr (Makefile.am): Likewise.
53261         * modules/memcmp (Makefile.am): Likewise.
53262         * modules/memcoll (Makefile.am): Likewise.
53263         * modules/memcpy (Makefile.am): Likewise.
53264         * modules/memmem (Makefile.am): Likewise.
53265         * modules/memmove (Makefile.am): Likewise.
53266         * modules/mempcpy (Makefile.am): Likewise.
53267         * modules/memrchr (Makefile.am): Likewise.
53268         * modules/memset (Makefile.am): Likewise.
53269         * modules/memxor (Makefile.am): Likewise.
53270         * modules/mkancesdirs (Makefile.am): Likewise.
53271         * modules/mkdir (Makefile.am): Likewise.
53272         * modules/mkdir-p (Makefile.am): Likewise.
53273         * modules/mkdtemp (Makefile.am): Likewise.
53274         * modules/mkstemp (Makefile.am): Likewise.
53275         * modules/mktime (Makefile.am): Likewise.
53276         * modules/modechange (Makefile.am): Likewise.
53277         * modules/mountlist (Makefile.am): Likewise.
53278         * modules/nanosleep (Makefile.am): Likewise.
53279         * modules/openat (Makefile.am): Likewise.
53280         * modules/pagealign_alloc (Makefile.am): Likewise.
53281         * modules/physmem (Makefile.am): Likewise.
53282         * modules/poll (Makefile.am): Likewise.
53283         * modules/posixtm (Makefile.am): Likewise.
53284         * modules/posixver (Makefile.am): Likewise.
53285         * modules/putenv (Makefile.am): Likewise.
53286         * modules/quote (Makefile.am): Likewise.
53287         * modules/quotearg (Makefile.am): Likewise.
53288         * modules/raise (Makefile.am): Likewise.
53289         * modules/read-file (Makefile.am): Likewise.
53290         * modules/readline (Makefile.am): Likewise.
53291         * modules/readlink (Makefile.am): Likewise.
53292         * modules/readtokens (Makefile.am): Likewise.
53293         * modules/readutmp (Makefile.am): Likewise.
53294         * modules/realloc (Makefile.am): Likewise.
53295         * modules/regex (Makefile.am): Likewise.
53296         * modules/rename (Makefile.am): Likewise.
53297         * modules/rename-dest-slash (Makefile.am): Likewise.
53298         * modules/rijndael (Makefile.am): Likewise.
53299         * modules/rmdir (Makefile.am): Likewise.
53300         * modules/rpmatch (Makefile.am): Likewise.
53301         * modules/safe-read (Makefile.am): Likewise.
53302         * modules/safe-write (Makefile.am): Likewise.
53303         * modules/same (Makefile.am): Likewise.
53304         * modules/save-cwd (Makefile.am): Likewise.
53305         * modules/savedir (Makefile.am): Likewise.
53306         * modules/setenv (Makefile.am): Likewise.
53307         * modules/settime (Makefile.am): Likewise.
53308         * modules/sha1 (Makefile.am): Likewise.
53309         * modules/sig2str (Makefile.am): Likewise.
53310         * modules/snprintf (Makefile.am): Likewise.
53311         * modules/stdlib-safer (Makefile.am): Likewise.
53312         * modules/stpcpy (Makefile.am): Likewise.
53313         * modules/stpncpy (Makefile.am): Likewise.
53314         * modules/strcase (Makefile.am): Likewise.
53315         * modules/strcasestr (Makefile.am): Likewise.
53316         * modules/strchrnul (Makefile.am): Likewise.
53317         * modules/strcspn (Makefile.am): Likewise.
53318         * modules/strdup (Makefile.am): Likewise.
53319         * modules/strerror (Makefile.am): Likewise.
53320         * modules/strftime (Makefile.am): Likewise.
53321         * modules/strndup (Makefile.am): Likewise.
53322         * modules/strnlen (Makefile.am): Likewise.
53323         * modules/strpbrk (Makefile.am): Likewise.
53324         * modules/strsep (Makefile.am): Likewise.
53325         * modules/strstr (Makefile.am): Likewise.
53326         * modules/strtod (Makefile.am): Likewise.
53327         * modules/strtoimax (Makefile.am): Likewise.
53328         * modules/strtok_r (Makefile.am): Likewise.
53329         * modules/strtol (Makefile.am): Likewise.
53330         * modules/strtoll (Makefile.am): Likewise.
53331         * modules/strtoul (Makefile.am): Likewise.
53332         * modules/strtoull (Makefile.am): Likewise.
53333         * modules/strtoumax (Makefile.am): Likewise.
53334         * modules/strverscmp (Makefile.am): Likewise.
53335         * modules/time_r (Makefile.am): Likewise.
53336         * modules/timegm (Makefile.am): Likewise.
53337         * modules/tmpfile-safer (Makefile.am): Likewise.
53338         * modules/unistd-safer (Makefile.am): Likewise.
53339         * modules/unlinkdir (Makefile.am): Likewise.
53340         * modules/userspec (Makefile.am): Likewise.
53341         * modules/utime (Makefile.am): Likewise.
53342         * modules/utimecmp (Makefile.am): Likewise.
53343         * modules/utimens (Makefile.am): Likewise.
53344         * modules/vasnprintf (Makefile.am): Likewise.
53345         * modules/vasprintf (Makefile.am): Likewise.
53346         * modules/vsnprintf (Makefile.am): Likewise.
53347         * modules/xalloc (Makefile.am): Likewise.
53348         * modules/xgetcwd (Makefile.am): Likewise.
53349         * modules/xnanosleep (Makefile.am): Likewise.
53350         * modules/xreadlink (Makefile.am): Likewise.
53351         * modules/xstrtod (Makefile.am): Likewise.
53352         * modules/xstrtol (Makefile.am): Likewise.
53353         * modules/xstrtold (Makefile.am): Likewise.
53354         * modules/yesno (Makefile.am): Likewise.
53355
53356 2006-10-12  Jim Meyering  <jim@meyering.net>
53357
53358         * m4/getloadavg.m4: Revert the change below.
53359
53360         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
53361         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
53362         fail with a symlink, which is what coreutils' ./bootstrap now
53363         creates by default.
53364
53365 2006-10-12  Bruno Haible  <bruno@clisp.org>
53366
53367         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
53368         mingw.
53369         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
53370         MSVC and mingw explicitly.
53371
53372 2006-10-11  Simon Josefsson  <jas@extundo.com>
53373             Bruno Haible  <bruno@clisp.org>
53374
53375         Add support for multiple gnulib-tool invocations in the scope of a
53376         single configure.ac file.
53377         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
53378         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
53379         with the same contents as the _LIBADD variable.
53380         (func_emit_initmacro_start, func_emit_initmacro_end,
53381         func_emit_initmacro_done): New functions.
53382         (func_import, func_create_testdir): Invoke them. Allow the identifiers
53383         gl_LIBOBJS and gl_LTLIBOBJS.
53384
53385 2006-10-11  Bruno Haible  <bruno@clisp.org>
53386
53387         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
53388         (func_create_testdir): Don't create po/Makefile.am, don't invoke
53389         autoreconf. Instead, invoke autopoint explicitly but move back the
53390         *.m4 files from gnulib.
53391
53392 2006-10-11  Bruno Haible  <bruno@clisp.org>
53393
53394         * gnulib-tool (func_usage): Make module names after --create-testdir
53395         optional.
53396         (func_create_testdir): If no module was specified, use nearly all
53397         modules.
53398
53399 2006-10-12  Jim Meyering  <jim@meyering.net>
53400
53401         Big performance improvement for fts-based tools that use FTS_NOSTAT.
53402         Avoid spurious inode-mismatch problems on non-POSIX file systems.
53403         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
53404         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
53405         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
53406         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
53407         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
53408         (fts_set_stat_required): New function.
53409         (fts_open): Defer the calls to fts_stat, if possible or requested.
53410         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
53411         into fts_stat itself.
53412         (fts_read): Perform any required (deferred) fts_stat call.
53413         (fts_build): Likewise, for the directory we're about to open and read.
53414         In the readdir loop, carefully decide whether each entry will require
53415         an eventual call to fts_stat, using dirent.d_type info if available.
53416         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
53417         a command line argument into this function.  Update all callers.
53418         Map a return value of FTS_DOT to FTS_D for a command line argument.
53419         * modules/fts (Depends-on): Add d-type.  Alphabetize.
53420         Thanks to Miklos Szeredi for his tenacity and for the initial
53421         bug report about "find" failing on a FUSE-based file system.
53422
53423         * lib/fts.c (fts_open): Use consistent indentation.
53424
53425 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
53428         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
53429         reported by Jim Meyering.  All uses of cache variables renamed
53430         to match Autoconf's.
53431         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
53432         the other one.
53433
53434         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
53435         Fix misspelling in diagnostic.
53436
53437 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53438
53439         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
53440         defined.  Problem reported by Matthew Woehlke.
53441
53442         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
53443         Add support for Tandem NonStop R series.
53444         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
53445         Use new macro.
53446
53447         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
53448         (has_trailing_slash): Omit size arg; all callers changed.
53449         Omit 'inline', since it doesn't help performance and we'd
53450         need to configure it.
53451         Don't count //, ///, etc. as having a trailing slash.
53452         As a side effect, this removes a C99ism reported by Matthew Woehlke.
53453         (rpl_rename_dest_slash): On failure, use rename's errno rather
53454         than (in some cases) an incorrect or junk errno.
53455         Simplify code by removing need to compute length; this does
53456         cause it to make two passes instead of one over the file name,
53457         but it's worth it.
53458
53459         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
53460         change, since Autoconf's version may no longer be appropriate now
53461         that we are using CVS Autoconf's version.  Add support for Tandem.
53462
53463 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53464             Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
53467         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
53468         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
53469         gl_AC_TYPE_LONG_LONG.
53470
53471         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
53472         instead of HAVE_LONG_LONG.
53473         * lib/printf-args.c (printf_fetchargs): Likewise.
53474         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
53475         * lib/vasnprintf.c (VASNPRINTF): Likewise.
53476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
53477         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
53478         gl_AC_TYPE_LONG_LONG.
53479
53480 2006-10-11  Bruno Haible  <bruno@clisp.org>
53481
53482         * m4/longlong.m4: Add comments.
53483         * m4/ulonglong.m4: Likewise.
53484
53485 2006-10-10  Bruno Haible  <bruno@clisp.org>
53486
53487         Make it possible to #define stpcpy, strdup to aliases.
53488         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
53489         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
53490
53491 2006-10-10  Bruno Haible  <bruno@clisp.org>
53492
53493         Make it possible to #define gcd to an alias.
53494         * lib/gcd.c: Include config.h.
53495
53496 2006-10-10  Bruno Haible  <bruno@clisp.org>
53497
53498         Make it possible to #define c_isascii to an alias.
53499         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
53500         defined. Undefine the macros before defining them, to avoid gcc
53501         warnings.
53502         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
53503         define NO_C_CTYPE_MACROS early.
53504
53505 2006-10-10  Bruno Haible  <bruno@clisp.org>
53506
53507         Make it possible to #define set_program_name to an alias.
53508         * lib/progname.c: Don't undefine set_program_name; instead, undefine
53509         ENABLE_RELOCATABLE early.
53510
53511 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         Port to Tandem NSK OSS, which has 64-bit signed int but at most
53514         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
53515         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
53516         More generally, don't assume that 64-bit signed int is available
53517         if unsigned int is, and vice versa.
53518         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
53519         unsigned symbols, not on their signed counterparts.
53520         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
53521         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
53522         (UINT64_C, UINTMAX_C):
53523         Likewise.
53524         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
53525         unsigned counterparts.
53526         (Have_long_long, Unsigned): New macros.
53527         (Int): Renamed from INT.
53528         (strtoimax): Use the new macros.
53529         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
53530         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
53531         * modules/inttypes (inttypes.h): Substitute
53532         HAVE_UNSIGNED_LONG_LONG_INT.
53533         * modules/stdint (stdint.h): Likewise.
53534         (Files): Add m4/ulonglong.m4.
53535
53536 2006-10-10  Bruno Haible  <bruno@clisp.org>
53537
53538         Fix a gcc -Wshadow warning.
53539         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
53540         to 'bucket'.
53541         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
53542         gl_linked_indexof_from_to): Likewise.
53543         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
53544         Likewise.
53545         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
53546         Likewise.
53547         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
53548         Reported by Eric Blake.
53549
53550 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
53551
53552         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
53553         for NetBSD.  Problem reported by Bruno Haible.
53554
53555 2006-10-09  Jim Meyering  <jim@meyering.net>
53556
53557         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
53558         Patch from Bruno Haible.
53559
53560 2006-10-09  Jim Meyering  <jim@meyering.net>
53561
53562         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
53563         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
53564         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
53565
53566 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53567
53568         Don't include <config.h> twice; this doesn't work in some cases,
53569         e.g., when config.h has "#define intmax_t long long int" and
53570         we include <config.h>, <inttypes.h>, <config.h> in that order.
53571         Problem reported by Matthew Woehlke in:
53572         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
53573         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
53574         * lib/fts-cycle.c: Don't include config.h.
53575         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
53576         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
53577         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
53578         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
53579         inttypes.h.
53580         * lib/xstrtoumax.c: Likewise.
53581         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
53582         __strtol and the like, so that this module is more like its siblings.
53583         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
53584         Remove; no longer needed now that we assume gnulib inttypes.h.
53585
53586 2006-10-08  Bruno Haible  <bruno@clisp.org>
53587
53588         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
53589         option.
53590
53591 2006-10-07  Jim Meyering  <jim@meyering.net>
53592
53593         * modules/inttypes (inttypes.h): Revert what seems to have been
53594         an inadvertent part of today's change: use "|", not "/" in the
53595         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
53596
53597 2006-10-07  Bruno Haible  <bruno@clisp.org>
53598
53599         * modules/sublist: New file.
53600
53601 2006-10-07  Bruno Haible  <bruno@clisp.org>
53602
53603         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
53604         * modules/argz (argz.h): Likewise.
53605         * modules/arpa_inet (arpa/inet.h): Likewise.
53606         * modules/byteswap (byteswap.h): Likewise.
53607         * modules/configmake (configmake.h): Likewise.
53608         * modules/fcntl (fcntl.h): Likewise.
53609         * modules/fnmatch (fnmatch.h): Likewise.
53610         * modules/getopt (getopt.h): Likewise.
53611         * modules/glob (glob.h): Likewise.
53612         * modules/inttypes (inttypes.h): Likewise.
53613         * modules/netinet_in (netinet/in.h): Likewise.
53614         * modules/poll (poll.h): Likewise.
53615         * modules/stdbool (stdbool.h): Likewise.
53616         * modules/stdint (stdint.h): Likewise.
53617         * modules/sys_select (sys/select.h): Likewise.
53618         * modules/sys_socket (sys/socket.h): Likewise.
53619         * modules/sys_stat (sys/stat.h): Likewise.
53620         * modules/sysexits (sysexits.h): Likewise.
53621         * modules/unistd (unistd.h): Likewise.
53622         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53623         Add a "DO NOT EDIT" comment to the generated file.
53624         (func_import): Likewise for gnulib-comp.m4.
53625
53626 2006-10-07  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/gl_sublist.h: New file.
53629         * lib/gl_sublist.c: New file.
53630
53631 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53632
53633         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
53634         name (relative to the original working directory) and the file
53635         name component (relative to the temporary working directory).  All
53636         callers changed.
53637         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
53638         * lib/mkdir-p.c (make_dir_parents): Likewise.
53639         * lib/mkdir-p.h (make_dir_parents): Likewise.
53640
53641 2006-10-06  Eric Blake  <ebb9@byu.net>
53642
53643         Define several macros for use by the clean-temp module.
53644         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
53645         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
53646         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
53647
53648         * lib/clean-temp.h (close_stream_temp): New declaration.
53649         * lib/clean-temp.c (includes): Pull in headers according to what
53650         other modules are in use.
53651         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
53652
53653 2006-10-06  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
53656         instead of fopen, fwriteerror.
53657
53658 2006-10-06  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
53661         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
53662         int.
53663         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
53664         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
53665         Return an error indicator.
53666         Suggested by Eric Blake.
53667
53668 2006-10-06  Bruno Haible  <bruno@clisp.org>
53669
53670         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
53671         Reported by Eric Blake.
53672
53673 2006-10-06  Bruno Haible  <bruno@clisp.org>
53674
53675         * modules/closeout (Description): Mention stderr too.
53676
53677 2006-10-06  Bruno Haible  <bruno@clisp.org>
53678         and Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * lib/closeout.c (close_stdout): Also close stderr.
53681         * lib/closeout.h: Update comment.
53682
53683 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
53686         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
53687         * lib/dirchownmod.c: Include lchown.h.
53688         * lib/lchown.c: Don't include files that lchown.h now includes.
53689         Don't declare chown, since lchown.h now does that.
53690         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
53691         (lchown): Define to rpl_chown if lchown is declared but
53692         does not exist.  Declare using a prototype if lchown is not
53693         declared.  Add a copyright notice.
53694         * lib/mkstemp.h: Include <unistd.h>.
53695         * lib/openat.c: Include lchown.h.
53696
53697         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
53698         we now test for that separately.
53699         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
53700         rather than O_NOFOLLOW, when testing whether it's possible to
53701         avoid a race condition reliably.
53702         * lib/savewd.c (savewd_chdir): Likewise.
53703
53704         Remove macros that are no longer needed now that stdint.h is
53705         reliable.
53706         * lib/fsusage.c (UINTMAX_MAX): Remove.
53707         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
53708         * lib/utimecmp.c (SIZE_MAX): Remove.
53709
53710         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
53711
53712         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
53713         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
53714         O_NOATIME works.
53715
53716 2006-10-05  Bruno Haible  <bruno@clisp.org>
53717
53718         * lib/gl_list.h (gl_sortedlist_search_from_to,
53719         gl_sortedlist_indexof_from_to): New declarations.
53720         (gl_list_implementation): New fields sortedlist_search_from_to,
53721         sortedlist_indexof_from_to.
53722         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
53723         inline functions.
53724         * lib/gl_list.c (gl_sortedlist_search_from_to,
53725         gl_sortedlist_indexof_from_to): New functions.
53726         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
53727         function.
53728         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
53729         (gl_array_sortedlist_search_from_to): New function.
53730         (gl_array_list_implementation): Update.
53731         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
53732         function.
53733         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
53734         (gl_carray_sortedlist_search_from_to): New function.
53735         (gl_carray_list_implementation): Update.
53736         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
53737         gl_linked_sortedlist_indexof_from_to): New functions.
53738         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53739         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53740         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
53741         gl_tree_sortedlist_indexof_from_to): New functions.
53742         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53743         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53744         Update.
53745         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53746         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
53747         Update.
53748
53749 2006-10-05  Bruno Haible  <bruno@clisp.org>
53750
53751         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
53752         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
53753         (struct gl_list_implementation): Add fields search_from_to,
53754         indexof_from_to. Remove fields search, indexof.
53755         (gl_list_search): Use the search_from_to method.
53756         (gl_list_search_from, gl_list_search_from_to): New functions.
53757         (gl_list_indexof): Use the indexof_from_to method.
53758         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53759         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
53760         (gl_list_search_from, gl_list_search_from_to): New functions.
53761         (gl_list_indexof): Use the indexof_from_to method.
53762         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53763         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
53764         gl_array_indexof. Add start_index, end_index arguments.
53765         (gl_array_search_from_to): Renamed from gl_array_search. Add
53766         start_index, end_index arguments.
53767         (gl_array_remove, gl_array_list_implementation): Update.
53768         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
53769         gl_carray_indexof. Add start_index, end_index arguments.
53770         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
53771         start_index, end_index arguments.
53772         (gl_carray_remove, gl_carray_list_implementation): Update.
53773         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
53774         gl_linked_search. Add start_index, end_index arguments.
53775         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
53776         start_index, end_index arguments.
53777         (gl_linked_remove): Update.
53778         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53779         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53780         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
53781         field to 'size_t'.
53782         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
53783         gl_tree_search. Add start_index, end_index arguments.
53784         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53785         start_index, end_index arguments.
53786         (gl_tree_remove): Update.
53787         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53788         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53789         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
53790         function.
53791         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
53792         gl_tree_search. Add start_index, end_index arguments.
53793         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53794         start_index, end_index arguments.
53795         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53796         Update.
53797         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53798
53799 2006-10-05  Bruno Haible  <bruno@clisp.org>
53800
53801         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
53802
53803         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
53804         fwriteerror_temp): New declarations.
53805         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
53806         (descriptors): New variable.
53807         (cleanup): First, close the descriptors.
53808         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
53809         fclose_temp, fwriteerror_temp): New functions.
53810
53811 2006-10-04  Jim Meyering  <jim@meyering.net>
53812
53813         * lib/fts.c (fts_open): Tiny comment change.
53814
53815 2006-10-04  Bruno Haible  <bruno@clisp.org>
53816
53817         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
53818         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
53819         gl_LOCK_BODY.
53820         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
53821         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
53822         gl_LOCK_EARLY_BODY.
53823         (gl_LOCK): Require gl_LOCK_BODY.
53824
53825 2006-10-04  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
53828         (gl_oset_search_atleast): New declaration.
53829         (struct gl_oset_implementation): Add field 'search_atleast'.
53830         (gl_oset_search_atleast): New inline function.
53831         * lib/gl_oset.c (gl_oset_search_atleast): New function.
53832         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
53833         (gl_array_oset_implementation): Update.
53834         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
53835         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
53836         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
53837
53838 2006-10-04  Bruno Haible  <bruno@clisp.org>
53839
53840         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
53841
53842 2006-10-03  Bruno Haible  <bruno@clisp.org>
53843
53844         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
53845         from gl_avltreehash_list_implementation.
53846
53847 2006-10-03  Bruno Haible  <bruno@clisp.org>
53848
53849         * lib/gl_oset.c (gl_oset_add): Fix return type.
53850
53851 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
53852
53853         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
53854
53855 2006-10-02  Eric Blake  <ebb9@byu.net>
53856
53857         * modules/strnlen (Depends-on): Add extensions.
53858
53859 2006-10-02  Eric Blake  <ebb9@byu.net>
53860
53861         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
53862         definition in 2.60+.
53863
53864 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
53865
53866         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
53867         checks.
53868
53869 2006-10-02  Bruno Haible  <bruno@clisp.org>
53870
53871         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
53872         to the AUTOMAKE_OPTIONS.
53873         Reported by Jim Meyering.
53874
53875 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53876
53877         Work around bug in Solaris 10 /proc file system:
53878         /proc/self/fd/NNN/.. isn't the parent directory of
53879         the directory whose file descriptor is NNN.  This needs to
53880         be worked around at run time, not compile time, since a
53881         program might be built on Solaris 8, where things work, and
53882         run on Solaris 10.
53883         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
53884         to use the following interface instead:
53885         (OPENAT_BUFFER_SIZE): New macro.
53886         (openat_proc_name): New function.
53887         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
53888         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
53889         Likewise.
53890         * lib/openat-proc.c: New file.
53891         * modules/openat (Files): Add lib/openat-proc.c.
53892         (Depends-on): Add same-inode, stdbool.
53893         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
53894
53895 2006-09-29  Bruno Haible  <bruno@clisp.org>
53896
53897         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
53898         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
53899         argument. Set stdout_closed before testing for ferror, not after.
53900         (fwriteerror, fwriteerror_no_ebadf): New functions.
53901
53902 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53903
53904         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
53905
53906 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
53907
53908         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
53909         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
53910
53911 2006-09-28  Jim Meyering  <jim@meyering.net>
53912
53913         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
53914         Include <unistd.h>.
53915
53916 2006-09-28  Bruno Haible  <bruno@clisp.org>
53917
53918         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
53919         * modules/linkedhash-list (Depends-on): Likewise.
53920         * modules/rbtreehash-list (Depends-on): Likewise.
53921
53922 2006-09-28  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/strndup.h: Simplify the redefinition of strndup.
53925         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
53926         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
53927
53928 2006-09-28  Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
53931         * lib/gl_linkedhash_list.c: Likewise.
53932         * lib/gl_rbtreehash_list.c: Likewise.
53933
53934 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53935
53936         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
53937         getaddrinfo.
53938
53939         * lib/__fpending.h: Don't include <stdio_ext.h> unless
53940         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
53941         it causes <stdio_ext.h> to cause a compile-time error.
53942         Problem reported by Nelson H. F. Beebe.
53943         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
53944         of HAVE_DECL___PENDING.
53945
53946         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
53947         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
53948         declaration.
53949
53950 2006-09-27  Jim Meyering  <jim@meyering.net>
53951
53952         This file could end up with a definition for a function
53953         named __strndup, rather than rpl_strndup on a system with
53954         incomplete weak_alias support.
53955         * lib/strndup.c (strndup): Rename from __strndup.
53956         Remove #defines that used to map __strndup to strndup.
53957         Don't use K&R prototypes.
53958         Remove LIBC-related code, since this file is not sync'd with glibc.
53959         * lib/strndup.h: Revamp, accordingly.
53960         * m4/strndup.m4: Modernize.
53961
53962 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53963
53964         * modules/savewd (Depends-on): Add 'raise'.
53965         * lib/savewd.c: Include <signal.h>, for 'raise'.
53966
53967 2006-09-26  Jim Meyering  <jim@meyering.net>
53968
53969         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
53970         when we detect Darwin 8.7.0's acl_get_file bug.
53971         Rearrange to perform the new (below) run-test while $LIBS
53972         contains any acl-related library.  Set USE_ACL at the end.
53973         (gl_ACL_GET_FILE): New function.
53974
53975 2006-09-26  Eric Blake  <ebb9@byu.net>
53976
53977         * lib/verror.c: Include <config.h> unconditionally.
53978
53979 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
53980
53981         * modules/clock-time (Maintainer): Add self.
53982         * modules/getlogin_r (Depends-on): Add extensions.
53983
53984 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53985
53986         * modules/clock-time: New module.
53987         * modules/nanosleep (Depends-on): Add clock-time.
53988         * modules/gethrxtime (Depends-on): Likewise.
53989         * modules/gettime (Depends-on): Likewise.
53990         * modules/settime (Depends-on): Likewise.
53991
53992         * modules/fts-lgpl: Depend on openat.
53993         * modules/mkancesdirs: Depend on savewd.
53994         * modules/mkdir-p: Likewise.
53995
53996 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53997
53998         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
53999
54000         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
54001         `gl_have_arbitrary_file_name_length_limit' to
54002         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
54003         actually works between configure runs.
54004
54005 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54006             Bruno Haible  <bruno@clisp.org>
54007
54008         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
54009
54010 2006-09-25  Jim Meyering  <jim@meyering.net>
54011
54012         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
54013         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
54014
54015 2006-09-25  Eric Blake  <ebb9@byu.net>
54016
54017         * gnulib-tool (func_import, func_create_testdir): Fix typos in
54018         exec's in 2006-09-18 patch when shuffling fds.
54019
54020 2006-09-25  Bruno Haible  <bruno@clisp.org>
54021
54022         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
54023         Reported by Jim Meyering.
54024
54025 2006-09-24  Jim Meyering  <jim@meyering.net>
54026
54027         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
54028         compare a pointer against a literal "0".  That caused failures with
54029         at least HP-UX's hpcc.
54030
54031 2006-09-22  Simon Josefsson  <jas@extundo.com>
54032
54033         * modules/gc-sha1:
54034         * modules/gc-md4:
54035         * modules/gc-hmac-sha1:
54036         * modules/gc-hmac-md5:
54037         * modules/gc-des:
54038         * modules/gc-arcfour: Distribute more files.
54039
54040 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54041
54042         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
54043         (gl_linked_iterator_from_to): Initialize struct completely.
54044         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
54045         (gl_tree_iterator_from_to): Likewise
54046         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
54047         * lib/gl_array_list.c [lint] (gl_array_iterator)
54048         (gl_array_iterator_from_to): Likewise.
54049         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
54050         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
54051         (gl_carray_iterator_from_to): Likewise.
54052
54053         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
54054         * lib/md4.c (md4_process_block): Remove unused variable.
54055         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
54056         parentheses for clarity.
54057
54058 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54059
54060         * modules/bison-i18n (Depends-on): Add gettext.
54061
54062 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54063
54064         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
54065         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
54066         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
54067         also add missing comma that caused broken test.
54068         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
54069         stdlib.h, for `abort'.
54070         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
54071         variables.
54072         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
54073         include unistd.h if present, for `rmdir'.
54074         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
54075         variables.
54076         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
54077         in the process include standard headers for prototypes.
54078         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
54079         gets declared on GNU/Linux.
54080         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
54081         unistd.h, for `rmdir'.
54082         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
54083
54084         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
54085         always true.
54086         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
54087
54088         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
54089
54090 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54091
54092         * gnulib-tool (func_version): Create output all at once.  This
54093         may help avoid triggering unnecessary SIGPIPEs, and at any
54094         rate it doesn't hurt.
54095
54096 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54097             Bruno Haible  <bruno@clisp.org>
54098
54099         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
54100         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54101         * m4/signed.m4 (bh_C_SIGNED): Likewise.
54102
54103         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
54104         (gl_FUNC_VASPRINTF): Invoke it.
54105
54106 2006-09-22  Bruno Haible  <bruno@clisp.org>
54107
54108         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
54109         getloadavg.c as first argument.
54110
54111 2006-09-22  Bruno Haible  <bruno@clisp.org>
54112
54113         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
54114         at the beginning of the gl_INIT macro.
54115         * modules/getloadavg (configure.ac): Pass $gl_source_base to
54116         gl_GETLOADAVG.
54117
54118 2006-09-22  Bruno Haible  <bruno@clisp.org>
54119
54120         * gnulib-tool (func_create_megatestdir): Don't include the config-h
54121         module.
54122         Suggested by Ralf Wildenhues.
54123
54124 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54125
54126         Import this patch from libc:
54127
54128         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
54129
54130         * lib/regex_internal.c (re_string_reconstruct): Handle
54131         offset < pstr->valid_raw_len && pstr->offsets_needed case.
54132         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
54133         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
54134         re_string_context_at.
54135
54136         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
54137         now requires it.
54138         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
54139         gl_REGEX now does it for us.
54140         (gl_REGEX): Add test taken from
54141         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
54142
54143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
54144         Check that large offsets work.  Modernize Autoconf usages.
54145         Prefer "yes" to mean a good thing rather than a bad.
54146         Don't put "#define mkstemp" in config.h, as this might interfere
54147         with standard system headers that "#define mkstemp mkstemp64".
54148
54149         * modules/mkstemp (Depends-on): Add extensions, so that
54150         mkstemp is visible on some platforms.
54151         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
54152         (Include): Change to "mkstemp.h" from <stdlib.h>.
54153         (Files): Add mkstemp.h.
54154
54155         * lib/mkstemp.h: New file, since some standard headers
54156         #define mkstemp.
54157         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
54158         Include "mkstemp.h".
54159         Make the _LIBC code resemble glibc original more,
54160         e.g., use K&R style.
54161         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
54162         (mkstemp): Remove, since mkstemp.h does this for us.
54163         * lib/stdlib--.h: Include mkstemp.h.
54164
54165         Import this patch from libc:
54166
54167         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54168
54169         * lib/tempname.c (__gen_tempname): Change attempts_min
54170         into a macro.  Use preprocessor to decide how to initialize
54171         attempts [Coverity CID 67].
54172
54173 2006-09-20  Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/mkdtemp.c: Import from libc.
54176         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54177                 * sysdeps/posix/tempname.c (__gen_tempname): Change
54178                 attempts_min into a macro.  Use preprocessor to decide how to
54179                 initialize attempts [Coverity CID 67].
54180         2001-11-27  Paul Eggert  <eggert@twinsun.com>
54181                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
54182                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
54183
54184 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54185
54186         * gnulib-tool (func_exit): New function, to allow to pass the
54187         exit status portably through the trap.  Use everywhere.
54188         (--help, --version): Signal a write error.
54189         (trap): catch SIGPIPE, for write errors.
54190         Exit at the end of the trap, with the correct exit status.
54191
54192 2006-09-19  Karl Berry  <karl@gnu.org>
54193
54194         * doc/gnulib.texi: note about the license texinfo files.
54195
54196 2006-09-19  Eric Blake  <ebb9@byu.net>
54197
54198         * gnulib-tool: Avoid space-tab.
54199
54200 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54201
54202         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
54203         that prevented coreutils 6.1 from building.  Problem reported
54204         by Petter Reinholdtsen.
54205
54206 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54207
54208         * gnulib-tool (avoidlist): Fix typo that broke options like
54209         --avoid=lock that are used by coreutils bootstrap.
54210
54211 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
54212
54213         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
54214         more systematically.
54215
54216 2006-09-18  Jim Meyering  <jim@meyering.net>
54217
54218         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
54219
54220 2006-09-18  Bruno Haible  <bruno@clisp.org>
54221
54222         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
54223
54224 2006-09-18  Bruno Haible  <bruno@clisp.org>
54225
54226         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
54227         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
54228         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
54229         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
54230         * m4/gettext.m4: Require autoconf >= 2.52.
54231         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
54232         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
54233         of gl_cv_header_inttypes_h.
54234
54235 2006-09-18  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/javaversion.c: Include configmake.h.
54238
54239 2006-09-18  Bruno Haible  <bruno@clisp.org>
54240
54241         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
54242         avoid that the while loops be executed in a subshell.
54243
54244 2006-09-18  Bruno Haible  <bruno@clisp.org>
54245
54246         * MODULES.html.sh (func_module): Break long lines.
54247         Suggested by Bruce Korb <bkorb@gnu.org>.
54248
54249 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54250
54251         Speed up by a factor of 1.12.
54252         * gnulib-tool (nl): New variable.
54253         (func_import): Rewrite include directive extraction to only read each
54254         directive once.
54255
54256 2006-09-17  Bruno Haible  <bruno@clisp.org>
54257
54258         * modules/javaversion (Makefile.am): Remove DEFS setting.
54259         (Depends-on): Add configmake, for PKGDATADIR definition.
54260
54261 2006-09-17  Bruno Haible  <bruno@clisp.org>
54262
54263         * gnulib-tool (func_create_testdir): Rewrite all files at once.
54264
54265 2006-09-17  Bruno Haible  <bruno@clisp.org>
54266
54267         * gnulib-tool (func_append): New function, stolen from libtool.m4.
54268         (func_modules_transitive_closure, func_modules_add_dummy,
54269         func_modules_to_filelist, func_import, func_create_testdir,
54270         func_create_megatestdir, ...): Use it wherever possible.
54271         Suggested by Ralf Wildenhues.
54272
54273 2006-09-16  Karl Berry  <karl@gnu.org>
54274
54275         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
54276         to avoid sectioning errors.
54277         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
54278         [ifinfo]: blank line after @center-ed titles.
54279         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
54280         Spell FSF address consistently with others.
54281         (These changes approved by rms.)
54282
54283 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54284
54285         Speed up by a factor of 1.61.
54286         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
54287         already checked module names again.
54288
54289 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54290
54291         Speed up by a factor of 1.13.
54292         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
54293         for new_files, and the input to func_add_or_update.
54294
54295 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54296
54297         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
54298         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
54299
54300 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54301
54302         * modules/mkancesdirs (Depends-on): Add fcntl.
54303         * modules/savewd: New file.
54304         * MODULES.html.sh (File system functions): Add savewd.
54305
54306         * modules/configmake (Makefile.am): Add support for the
54307         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
54308
54309 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54310
54311         * m4/savewd.m4: New file.
54312
54313 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54314
54315         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
54316         (dirchownmod): New arg FD.  All callers changed.
54317         Use FD rather than opening the directory ourself, as opening is
54318         now the caller's responsibility.
54319         * lib/dirchownmod.h: Likewise.
54320         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
54321         hosts that require <sys/types.h> before <sys/stat.h>.  Include
54322         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
54323         (test_dir): Remove.
54324         (mkancesdirs): Return length of prefix of FILE that has already
54325         been made, or -2 if there is a child doing the work.  Redo
54326         algorithm so that it is O(N) rather than O(N**2).  Optimize away
54327         ".", and treat ".." specially since it might stray back into
54328         already-created areas.  Use a subprocess if necessary.  New arg
54329         WD; all users changed.  MAKE_DIR function should now return 1
54330         if it creates a directory that is not readable.  Return -2 if
54331         a child process is spun off.
54332         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
54333         Adjust signature to match code.
54334         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
54335         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
54336         all users changed.
54337         * lib/savewd.c, lib/savewd.h: New files.
54338
54339 2006-09-15  Jim Meyering  <jim@meyering.net>
54340
54341         * modules/rename-dest-slash: New module.
54342         * MODULES.html.sh (posix_compat): Add it here.
54343
54344         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
54345
54346 2006-09-15  Jim Meyering  <jim@meyering.net>
54347
54348         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
54349         file.
54350
54351         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
54352
54353 2006-09-15  Jim Meyering  <jim@meyering.net>
54354
54355         * lib/rename-dest-slash.c (has_trailing_slash): Use
54356         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
54357         (rpl_rename_dest_slash): Perform the cheaper trailing slash
54358         test before testing whether SRC is a directory.
54359         Suggestions from Bruno Haible.
54360
54361         Avoid a warning about an unused variable.
54362         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
54363         into the #ifdef block where it's used.
54364
54365         * lib/rename-dest-slash.c: New file.
54366
54367 2006-09-14  Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/allocsa.c: Include <config.h> unconditionally.
54370         * lib/asnprintf.c: Likewise.
54371         * lib/asprintf.c: Likewise.
54372         * lib/c-strcasecmp.c: Likewise.
54373         * lib/c-strcasestr.c: Likewise.
54374         * lib/c-strncasecmp.c: Likewise.
54375         * lib/c-strstr.c: Likewise.
54376         * lib/classpath.c: Likewise.
54377         * lib/clean-temp.c: Likewise.
54378         * lib/concatpath.c: Likewise.
54379         * lib/copy-file.c: Likewise.
54380         * lib/csharpcomp.c: Likewise.
54381         * lib/csharpexec.c: Likewise.
54382         * lib/execute.c: Likewise.
54383         * lib/fatal-signal.c: Likewise.
54384         * lib/findprog.c: Likewise.
54385         * lib/fwriteerror.c: Likewise.
54386         * lib/gl_array_list.c: Likewise.
54387         * lib/gl_array_oset.c: Likewise.
54388         * lib/gl_avltree_list.c: Likewise.
54389         * lib/gl_avltree_oset.c: Likewise.
54390         * lib/gl_avltreehash_list.c: Likewise.
54391         * lib/gl_carray_list.c: Likewise.
54392         * lib/gl_linked_list.c: Likewise.
54393         * lib/gl_linkedhash_list.c: Likewise.
54394         * lib/gl_list.c: Likewise.
54395         * lib/gl_oset.c: Likewise.
54396         * lib/gl_rbtree_list.c: Likewise.
54397         * lib/gl_rbtree_oset.c: Likewise.
54398         * lib/gl_rbtreehash_list.c: Likewise.
54399         * lib/imaxabs.c: Likewise.
54400         * lib/imaxdiv.c: Likewise.
54401         * lib/javacomp.c: Likewise.
54402         * lib/javaexec.c: Likewise.
54403         * lib/javaversion.c: Likewise.
54404         * lib/linebreak.c: Likewise.
54405         * lib/localcharset.c: Likewise.
54406         * lib/lock.c: Likewise.
54407         * lib/mbchar.c: Likewise.
54408         * lib/mbswidth.c: Likewise.
54409         * lib/mkdtemp.c: Likewise.
54410         * lib/pipe.c: Likewise.
54411         * lib/printf-args.c: Likewise.
54412         * lib/printf-parse.c: Likewise.
54413         * lib/progname.c: Likewise.
54414         * lib/progreloc.c: Likewise.
54415         * lib/readlink.c: Likewise.
54416         * lib/sh-quote.c: Likewise.
54417         * lib/stpcpy.c: Likewise.
54418         * lib/stpncpy.c: Likewise.
54419         * lib/strcasecmp.c: Likewise.
54420         * lib/strcasestr.c: Likewise.
54421         * lib/strcspn.c: Likewise.
54422         * lib/striconv.c: Likewise.
54423         * lib/strncasecmp.c: Likewise.
54424         * lib/strnlen1.c: Likewise.
54425         * lib/strstr.c: Likewise.
54426         * lib/strtok_r.c: Likewise.
54427         * lib/tls.c: Likewise.
54428         * lib/tmpdir.c: Likewise.
54429         * lib/unicodeio.c: Likewise.
54430         * lib/unsetenv.c: Likewise.
54431         * lib/vasnprintf.c: Likewise.
54432         * lib/vasprintf.c: Likewise.
54433         * lib/wait-process.c: Likewise.
54434         * lib/xallocsa.c: Likewise.
54435         * lib/xsetenv.c: Likewise.
54436         * lib/xstriconv.c: Likewise.
54437
54438 2006-09-13  Simon Josefsson  <jas@extundo.com>
54439
54440         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
54441         that internally, suggested by Ralf Wildenhues
54442         <Ralf.Wildenhues@gmx.de>.
54443
54444 2006-09-13  Simon Josefsson  <jas@extundo.com>
54445
54446         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
54447         @LIBOBJS@.
54448         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54449
54450 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54451
54452         * lib/_fpending.c: Include <config.h> unconditionally, since we no
54453         longer worry about uses that don't define HAVE_CONFIG_H.
54454         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
54455         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
54456         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
54457         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
54458         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
54459         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
54460         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
54461         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
54462         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
54463         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
54464         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
54465         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
54466         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
54467         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
54468         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
54469         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
54470         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
54471         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
54472         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
54473         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
54474         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
54475         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
54476         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
54477         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
54478         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
54479         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
54480         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
54481         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
54482         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
54483         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
54484         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
54485         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
54486         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
54487         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
54488         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
54489         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
54490         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
54491         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
54492         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
54493         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
54494         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
54495         Likewise.
54496
54497 2006-09-13  Eric Blake  <ebb9@byu.net>
54498
54499         * lib/getopt.c: Fix typo in last commit.
54500
54501 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54502
54503         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
54504         dgettext.
54505
54506 2006-09-12  Jim Meyering  <jim@meyering.net>
54507
54508         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
54509         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
54510         Reported by Nelson H. F. Beebe.
54511
54512 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54513
54514         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
54515         program_invocation_name and program_invocation_short_name are
54516         initialized.
54517         * lib/argp-namefrob.h: Move declarations of program_invocation_name
54518         and program_invocation_short_name to argp.h, so they are visible
54519         to user programs.
54520         * lib/argp.h: Likewise
54521
54522 2006-09-10  Bruno Haible  <bruno@clisp.org>
54523
54524         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54525         m4/inttypes_h.m4, m4/uintmax_t.m4.
54526
54527 2006-09-10  Bruno Haible  <bruno@clisp.org>
54528
54529         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
54530         gl_AC_TYPE_UINTMAX_T.
54531
54532 2006-09-10  Bruno Haible  <bruno@clisp.org>
54533
54534         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
54535
54536 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54537
54538         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
54539         convention.  Text proposed by Bruno Haible.
54540         (struct argp_option): Document the use of N_() wrappers.
54541
54542         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
54543         '\v', and translate the two parts separately, instead of feeding
54544         the whole string to gettext.  This allows to exclude
54545         '\v' from the strings visible to the translator by writing doc
54546         strings as N_("..") "\v" N_("..").
54547
54548 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         * config/srclist.txt: Undo latest change; the bug was fixed.
54551
54552 2006-09-09  Bruno Haible  <bruno@clisp.org>
54553
54554         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
54555         assignments if building a library without libtool.
54556         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
54557         in func_emit_lib_Makefile_am.
54558         (func_import): When building a static library libfoo.a, arrange to
54559         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
54560         (func_create_testdir): Likewise.
54561         * modules/gc (configure.ac, Makefile.am): If building statically,
54562         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
54563         * modules/iconvme (configure.ac, Makefile.am): Likewise.
54564         * modules/striconv (configure.ac, Makefile.am): Likewise.
54565         Based on a suggestion by Ralf Wildenhues.
54566
54567 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54568
54569         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54570         Check for unistd.h too, since Autoconf doesn't assume POSIX.
54571         Also:
54572
54573         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54574         Add year_2050_test to catch glibc bug 2821
54575         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54576
54577         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54578         Prefer #ifdef to #if.
54579
54580         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
54581         Return from 'main' instead of calling 'exit'.
54582
54583 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         * lib/mktime.c (guess_time_tm): Fix bug where mktime
54586         returned the maximum time_t value rather than (time_t) -1.
54587         Problem originally reported by William Bardwell
54588         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54589
54590         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54591         Moved to here ...
54592         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54593         ... from here.
54594
54595 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54596
54597         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
54598         2821 is fixed.
54599
54600 2006-09-08  Jim Meyering  <jim@meyering.net>
54601
54602         Don't make generated files read-only.  That would bother too many
54603         people.  However, do retain the ability to work when targets are
54604         read-only: remove the destination and temporary files before writing
54605         them (when generated via sed or echo), or by using the -f option for
54606         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
54607         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54608         * modules/byteswap, modules/configmake, modules/fcntl:
54609         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54610         * modules/localcharset, modules/netinet_in, modules/poll:
54611         * modules/stdbool, modules/stdint, modules/sys_select:
54612         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54613
54614 2006-09-08  Jim Meyering  <jim@meyering.net>
54615
54616         Avoid new build failure on FreeBSD 6.0.
54617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
54618         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
54619         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
54620
54621 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54622
54623         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
54624
54625 2006-09-07  Jim Meyering  <jim@meyering.net>
54626
54627         Fix global typo in last change: use chmod u-w, not chmod u-x.
54628         Spotted by Paul Eggert and Bruce Korb.
54629         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54630         * modules/byteswap, modules/configmake, modules/fcntl:
54631         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54632         * modules/localcharset, modules/netinet_in, modules/poll:
54633         * modules/stdbool, modules/stdint, modules/sys_select:
54634         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54635
54636 2006-09-06  Jim Meyering  <jim@meyering.net>
54637
54638         Make generated files be read-only.
54639         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
54640         Ensure that each generated file is now read-only.
54641         * modules/argz: Likewise.
54642         * modules/arpa_inet: Likewise.
54643         * modules/byteswap: Likewise.
54644         * modules/configmake: Likewise.
54645         * modules/fcntl: Likewise.
54646         * modules/fnmatch: Likewise.
54647         * modules/getopt: Likewise.
54648         * modules/glob: Likewise.
54649         * modules/inttypes: Likewise.
54650         * modules/netinet_in: Likewise.
54651         * modules/poll: Likewise.
54652         * modules/stdbool: Likewise.
54653         * modules/stdint: Likewise.
54654         * modules/sys_select: Likewise.
54655         * modules/sys_socket: Likewise.
54656         * modules/sys_stat: Likewise.
54657         * modules/sysexits: Likewise.
54658         * modules/localcharset: Same as above, but continue using temporary
54659         file named "t-$@" (why different?) rather than the "$@-t" used
54660         everywhere else.
54661
54662         * modules/sysexits (Makefile.am): Replace literal occurrences
54663         of "sysexit.h" more readable, and more consistent, "$@".
54664
54665 2006-09-06  Bruno Haible  <bruno@clisp.org>
54666
54667         * modules/striconv: New file.
54668         * modules/xstriconv: New file.
54669         * MODULES.html.sh (Internationalization functions): Add striconv,
54670         xstriconv.
54671
54672 2006-09-06  Bruno Haible  <bruno@clisp.org>
54673
54674         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
54675         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
54676         not using libtool correctly.
54677
54678 2006-09-06  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/striconv.h: New file.
54681         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
54682         iconvstring.c.
54683         * lib/xstriconv.h: New file.
54684         * lib/xstriconv.c: New file.
54685
54686 2006-09-06  Bruno Haible  <bruno@clisp.org>
54687
54688         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54689         lib_..._LDFLAGS.
54690
54691 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54692
54693         * lib/argz_.h: Sync from Libtool.
54694
54695         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
54696                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54697
54698         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
54699
54700 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54701
54702         * modules/trim: New file.
54703
54704 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54705
54706         * lib/trim.h: New file.
54707         * lib/trim.c: New file.
54708
54709 2006-09-05  Bruno Haible  <bruno@clisp.org>
54710
54711         * MODULES.html.sh (String handling): Add trim.
54712
54713 2006-09-04  Karl Berry  <karl@gnu.org>
54714
54715         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
54716         until next release.
54717
54718 2006-09-03  Bruno Haible  <bruno@clisp.org>
54719
54720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
54721         correctly.
54722
54723 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54724
54725         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
54726         not gl_GETLOADAVG.  Omit unneeded semicolons.
54727         Problems reported by Ralf Wildenhues in
54728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54729         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
54730         at the end, which is the usual gnulib style.
54731
54732         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
54733         of doing all the work ourselves.
54734         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
54735         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
54736
54737 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54738
54739         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
54740         Problem reported by Ralf Wildenhues in
54741         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54742
54743         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
54744         HAVE_STRUCT_STATFS_F_FSTYPENAME.
54745
54746 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54747
54748         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
54749         yesterday's patch by changing test -n to test -z.
54750
54751 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54752
54753         * modules/getloadavg (Files): Add m4/getloadavg.m4.
54754         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
54755         the former is now obsolescent.
54756
54757         * modules/chdir-long (Depends-on): Add fcntl.
54758
54759 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
54762         obsolescent, and programs should use gnulib instead.
54763         * m4/getloadavg.m4: New file, with contents taken from Autoconf
54764         but with prefixes changed.
54765
54766 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54767
54768         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
54769         or stdbool.h, because they might not exist while configuring.
54770
54771         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
54772         Don't include unistd.h or limits.h; not needed, since chdir-long.h
54773         does that for us.
54774         (O_DIRECTORY): Remove.
54775
54776 2006-08-31  Eric Blake  <ebb9@byu.net>
54777
54778         * gnulib-tool: Don't let emacs change spaces to TAB.
54779
54780 2006-08-31  Bruno Haible  <bruno@clisp.org>
54781
54782         * gnulib-tool: When calling func_import more than once, do it in a
54783         subshell.
54784         Reported by Eric Blake <ebb9@byu.net>.
54785
54786 2006-08-31  Bruno Haible  <bruno@clisp.org>
54787
54788         * gnulib-tool (nl): Remove variable.
54789         (sed_transform_lib_file): Use more robust test for config-h module.
54790         (func_import): Fix typo in 2006-08-25 patch.
54791
54792 2006-08-31  Bruno Haible  <bruno@clisp.org>
54793
54794         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
54795         specified, augment Makefile.am variables instead of assigning them.
54796
54797 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54798
54799         Work around a bug in both the Linux and SunOS 64-bit kernels:
54800         nanosleep mishandles sleeps for longer than 2**31 seconds.
54801         Problem reported by Frank v Waveren in
54802         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
54804         Check for nanosleep bug.
54805         (LIB_NANOSLEEP): Append clock_gettime library if needed.
54806
54807 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54808
54809         Work around a bug in both the Linux and SunOS 64-bit kernels:
54810         nanosleep mishandles sleeps for longer than 2**31 seconds.
54811         Problem reported by Frank v Waveren in
54812         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54813         * lib/nanosleep.c (BILLION): New constant.
54814         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
54815         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
54816         implementation.
54817
54818 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         * modules/nanosleep (Depends-on): Add gettime.
54821
54822 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54823         and Simon Josefsson  <jas@extundo.com>
54824         and Oskar Liljeblad  <oskar@osk.mine.nu>
54825
54826         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
54827         * gnulib-tool (func_import): New license type 'unmodifiable license
54828         text'.
54829         * modules/fdl: Use it.  Longer description.
54830         * module/gpl, module/lgpl: New files.
54831
54832 2006-08-30  Jim Meyering  <jim@meyering.net>
54833
54834         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
54835         shadowing the parameter.
54836
54837 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54838
54839         Sync from Libtool:
54840
54841         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54842
54843         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
54844         sharing with gnulib.  Report by Eric Blake.
54845
54846 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54847
54848         * modules/isapipe: New file.
54849         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
54850
54851 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54852
54853         * modules/configmake (Makefile.am): Add a comment, and omit
54854         the CONFIGMAKE_ prefix from generated macro names.  Suggested
54855         by Bruno Haible.
54856
54857 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54858
54859         * m4/isapipe.m4: New file.
54860
54861 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * lib/isapipe.c, lib/isapipe.h: New files.
54864
54865 2006-08-29  Jim Meyering  <jim@meyering.net>
54866
54867         * modules/configmake (Makefile.am): Make configmake.h depend on
54868         Makefile.  Otherwise, a stale configmake.h could hang around.
54869
54870 2006-08-29  Eric Blake  <ebb9@byu.net>
54871
54872         * lib/error.c (error_at_line, print_errno_message): Match libc, after
54873         resolution of upstream bug 3044.
54874
54875 2006-08-29  Bruno Haible  <bruno@clisp.org>
54876
54877         * modules/localcharset (Depends-on): Add configmake.
54878         (Makefile.am): Remove setting of LIBDIR through DEFS.
54879
54880 2006-08-29  Bruno Haible  <bruno@clisp.org>
54881
54882         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
54883         defined.
54884
54885 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54886
54887         * modules/fcntl: New file.
54888         * modules/chdir-safer (Depends-on): Add fcntl.
54889         * modules/fts: Likewise.
54890         * modules/mkdir-p: Likewise.
54891
54892         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
54893         This undoes the most recent change, since we're now addressing the
54894         problem in a different way.
54895
54896         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
54897         into output, since the output might be called Makefile.am even
54898         if $makefile_name is something different.
54899         (func_import): Use $makefile_am rather than
54900         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
54901         empty.
54902
54903         * modules/inttypes (Files): Add m4/inttypes-h.m4.
54904
54905 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54906
54907         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
54908         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
54909         recent change to stdint.m4, since we're now addressing the problem in a
54910         different way.
54911
54912 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54913
54914         * m4/fcntl_h.m4: New file.
54915
54916 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         * lib/fcntl_.h: New file.
54919         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
54920         the fcntl module.
54921         * lib/dirchownmod.c: Likewise.
54922         * lib/fts.c: Likewise.
54923
54924         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
54925         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
54926         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
54927         just before including <inttypes.h>, to avoid circular inclusion.
54928
54929 2006-08-28  Jim Meyering  <jim@meyering.net>
54930
54931         * doc/visibility.texi: Actually read and correct the grammar of the
54932         sentence affected by yesterday's change.
54933
54934 2006-08-28  Eric Blake  <ebb9@byu.net>
54935
54936         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
54937         needs wrapper.
54938
54939 2006-08-28  Eric Blake  <ebb9@byu.net>
54940
54941         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
54942
54943 2006-08-28  Eric Blake  <ebb9@byu.net>
54944
54945         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
54946
54947 2006-08-28  Bruno Haible  <bruno@clisp.org>
54948
54949         * modules/c-strstr: New file, from GNU gettext.
54950         * MODULES.html.sh (String handling): Add c-strstr.
54951
54952 2006-08-28  Bruno Haible  <bruno@clisp.org>
54953
54954         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
54955         macros.
54956         Reported by Eric Blake.
54957
54958 2006-08-28  Bruno Haible  <bruno@clisp.org>
54959
54960         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
54961         (VASNPRINTF): Return a string of length > INT_MAX without failing.
54962         * lib/vasprintf.c: Include errno.h, limits.h.
54963         (EOVERFLOW): New fallback definition.
54964         (vasprintf): Test here whether the string length is > INT_MAX.
54965         * lib/vsnprintf.c: Include errno.h, limits.h.
54966         (EOVERFLOW): New fallback definition.
54967         (vsnprintf): Fix bug when generated string was too long for the buffer.
54968         Test here whether the string length is > INT_MAX.
54969
54970 2006-08-28  Bruno Haible  <bruno@clisp.org>
54971
54972         * lib/inttypes_.h (SCNX*): Remove definitions.
54973         Reported by Eric Blake.
54974
54975 2006-08-28  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/c-strstr.h: New file, from GNU gettext.
54978         * lib/c-strstr.c: New file, from GNU gettext.
54979
54980 2006-08-28  Bruno Haible  <bruno@clisp.org>
54981
54982         * gnulib-tool: Reorder some statements.
54983
54984 2006-08-28  Bruno Haible  <bruno@clisp.org>
54985
54986         * gnulib-tool: New option --makefile-name.
54987         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
54988         $makefile_name.
54989         (func_import): Write $makefile_name to the cache file, and read it from
54990         there unless explicitly specified. Use $makefile_name as file name
54991         instead of Makefile.am. Adjust the recommendations accordingly.
54992
54993 2006-08-28  Bruno Haible  <bruno@clisp.org>
54994
54995         * gnulib-tool (func_verify_module): Check against misapplying patch.
54996
54997 2006-08-28  Bruno Haible  <bruno@clisp.org>
54998
54999         * gnulib-tool (func_relativize, func_relconcat): New functions.
55000         Give an error if --local-dir is given with --update.
55001         Remove trailing slashes from $local_gnulib_dir.
55002         (func_import): Store the relativized $local_gnulib_dir in
55003         gnulib-cache.m4, and read it from there if not specified explicitly.
55004
55005 2006-08-28  Bruno Haible  <bruno@clisp.org>
55006
55007         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
55008         is the current directory. Respect also $local_gnulib_dir.
55009
55010 2006-08-28  Bruno Haible  <bruno@clisp.org>
55011             Simon Josefsson  <jas@extundo.com>
55012
55013         BeOS portability.
55014         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
55015
55016 2006-08-27  Jim Meyering  <jim@meyering.net>
55017
55018         * doc/visibility.texi: Remove duplicate word: "pointer".
55019
55020 2006-08-26  Bruno Haible  <bruno@clisp.org>
55021
55022         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
55023         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
55024         (Makefile.am): Create inttypes.h from inttypes_.h.
55025         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
55026
55027         * modules/imaxabs: New file.
55028
55029         * modules/imaxdiv: New file.
55030
55031 2006-08-26  Bruno Haible  <bruno@clisp.org>
55032
55033         * m4/inttypes.m4: New file.
55034         * m4/_inttypes_h.m4: Remove file.
55035         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
55036         PRI_MACROS_BROKEN.
55037         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
55038
55039         * m4/imaxabs.m4: New file.
55040
55041         * m4/imaxdiv.m4: New file.
55042
55043 2006-08-26  Bruno Haible  <bruno@clisp.org>
55044
55045         * lib/inttypes_.h: New file.
55046         * lib/inttypes.h: Remove file.
55047         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
55048
55049         * lib/imaxabs.c: New file.
55050
55051         * lib/imaxdiv.c: New file.
55052
55053 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55054
55055         New config-h module, so that "make" output needn't be cluttered
55056         by -DHAVE_CONFIG_H.
55057         * MODULES.html.sh (Support for building libraries and executables):
55058         Add config-h.
55059         * modules/config-h: New file.
55060         * gnulib-tool (nl, sed_transform_lib_file): New vars.
55061         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
55062         the config-h module is used.
55063
55064         New configmake module, so that "make" output needn't be cluttered
55065         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
55066         * MODULES.html.sh (Support for building libraries and executables):
55067         Add configmake.
55068         * modules/configmake: New file.
55069
55070 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55071
55072         * m4/config-h.m4: New file.
55073
55074 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55075
55076         * config/srclist.txt: Add elisp-comp.
55077
55078 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55079
55080         * MODULES.html.sh (Support for building libraries and executables):
55081         Add elisp-comp.
55082         * build-aux/elisp-comp: New file.
55083         * modules/elisp-comp: New file.
55084
55085 2006-08-24  Bruno Haible  <bruno@clisp.org>
55086
55087         * gnulib-tool (func_create_testdir): Use non-default values of
55088         sourcebase and m4base.
55089
55090 2006-08-24  Bruno Haible  <bruno@clisp.org>
55091
55092         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
55093         HTML structure.
55094
55095 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * modules/openat (Depends-on): Add lchown.
55098
55099 2006-08-23  Bruno Haible  <bruno@clisp.org>
55100
55101         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
55102         of gl_LOCK_EARLY instead of gl_LOCK.
55103
55104 2006-08-23  Bruno Haible  <bruno@clisp.org>
55105
55106         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
55107         on OSF/1 to no.
55108         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
55109
55110 2006-08-23  Bruno Haible  <bruno@clisp.org>
55111
55112         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
55113         as unusable.
55114
55115         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
55116         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
55117         (gl_LOCK): New macro.
55118
55119 2006-08-22  Simon Josefsson  <jas@extundo.com>
55120
55121         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
55122         to md5 module.
55123
55124 2006-08-22  Simon Josefsson  <jas@extundo.com>
55125
55126         * MODULES.html.sh: Add "Support for maintaining and release
55127         projects".
55128
55129         * build-aux/gnupload: New file, from coreutils.
55130
55131 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55132
55133         Avoid the need for AC_LIBSOURCES in m4 macros.
55134         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
55135         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
55136         * modules/check-version (EXTRA_DIST): Add check-version.h.
55137         * modules/crc (EXTRA_DIST): Add crc.h.
55138         * modules/des (EXTRA_DIST): Add des.h.
55139         * modules/gc (EXTRA_DIST): Add gc.h.
55140         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
55141         * modules/getline (EXTRA_DIST): Add getline.h.
55142         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
55143         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
55144         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
55145         * modules/md2 (EXTRA_DIST): Add md2.h.
55146         * modules/md4 (EXTRA_DIST): Add md4.h.
55147         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
55148         * modules/read-file (EXTRA_DIST): Add read-file.h.
55149         * modules/readline (EXTRA_DIST): Add readline.h.
55150         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
55151         rijndael-api-fst.h.
55152
55153 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55154
55155         * m4/rijndael.m4 (gl_ARCFOUR):
55156         * m4/arctwo.m4 (gl_ARCTWO):
55157         * m4/check-version.m4 (gl_CHECK_VERSION):
55158         * m4/crc.m4 (gl_CRC):
55159         * m4/des.m4 (gl_DES):
55160         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
55161         * m4/gc.m4 (gl_GC):
55162         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
55163         * m4/getline.m4 (gl_FUNC_GETLINE):
55164         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
55165         * m4/hmac-md5.m4 (gl_HMAC_MD5):
55166         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
55167         * m4/md2.m4 (gl_MD2):
55168         * m4/md4.m4 (gl_MD4):
55169         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
55170         * m4/read-file.m4 (gl_FUNC_READ_FILE):
55171         * m4/readline.m4 (gl_FUNC_READLINE):
55172         * m4/rijndael.m4 (gl_RIJNDAEL):
55173         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55174         to get the necessary .h files and whatnot.
55175
55176 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
55179         gnulib rather than the other way around.
55180         * config/srclistvars.sh (COREUTILS): Remove.
55181
55182 2006-08-22  Jim Meyering  <jim@meyering.net>
55183
55184         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
55185
55186         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
55187
55188 2006-08-22  Eric Blake  <ebb9@byu.net>
55189
55190         * modules/regexprops-generic: New file.
55191         * MODULES.html.sh (Support for building documentation): List it.
55192
55193 2006-08-22  Eric Blake  <ebb9@byu.net>
55194
55195         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
55196         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
55197         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
55198         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
55199
55200 2006-08-22  Bruno Haible  <bruno@clisp.org>
55201
55202         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
55203         and lib_LTLIBRARIES like the other lib_* variables.
55204
55205 2006-08-22  Bruno Haible  <bruno@clisp.org>
55206
55207         * build-aux/x-to-1.in: New file, from GNU gettext.
55208
55209 2006-08-22  Bruno Haible  <bruno@clisp.org>
55210
55211         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
55212         <utmpx.h> exists.
55213
55214 2006-08-22  Bruno Haible  <bruno@clisp.org>
55215
55216         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
55217         <utmpx.h> exists.
55218
55219 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         BeOS portability.
55222         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
55223         exist.
55224         Problem reported by Bruno Haible.
55225
55226 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55227
55228         Avoid the need for AC_LIBSOURCES in m4 macros.
55229         * modules/acl (EXTRA_DIST): Add acl.h.
55230         * modules/argmatch (Files): Add m4/argmatch.m4.
55231         (configure.ac): Add gl_ARGMATCH.
55232         (EXTRA_DIST): Renamed from lib_SOURCES, for
55233         consistency with the other modules.  Remove argmatch.c.
55234         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
55235         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
55236         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
55237         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
55238         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
55239         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
55240         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
55241         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
55242         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
55243         * modules/closeout (EXTRA_DIST): Add closeout.h.
55244         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
55245         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
55246         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
55247         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
55248         dirname.h; remove basename.c and stripslash.c.
55249         * modules/exclude (EXTRA_DIST): Add exclude.h.
55250         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
55251         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
55252         * modules/file-type (EXTRA_DIST): Add file-type.h.
55253         * modules/filemode (EXTRA_DIST): Add filemode.h.
55254         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
55255         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55256         * modules/fpending (EXTRA_DIST): Add __fpending.h.
55257         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
55258         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
55259         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
55260         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
55261         * modules/getdate (EXTRA_DIST): Add getdate.c.
55262         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
55263         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
55264         * modules/getpass (EXTRA_DIST): Add getpass.h.
55265         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
55266         * modules/group-member (EXTRA_DIST): Add group-member.h.
55267         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
55268         * modules/hash (EXTRA_DIST): Add hash.h.
55269         * modules/human (EXTRA_DIST): Add human.h.
55270         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
55271         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
55272         * modules/lchown (EXTRA_DIST): Add lchown.h.
55273         * modules/long-options (EXTRA_DIST): Add long-options.h.
55274         * modules/lstat (EXTRA_DIST): Add lstat.h.
55275         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
55276         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
55277         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
55278         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
55279         * modules/memxor (EXTRA_DIST): Add memxor.h.
55280         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
55281         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
55282         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
55283         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
55284         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
55285         * modules/physmem (EXTRA_DIST): Add physmem.h.
55286         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
55287         * modules/posixver (EXTRA_DIST): Add posixver.h.
55288         * modules/quote (EXTRA_DIST): Add quote.h.
55289         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
55290         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
55291         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
55292         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
55293         regex_internal.h regexec.c.
55294         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
55295         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
55296         * modules/same (EXTRA_DIST): Add same.h.
55297         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
55298         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
55299         * modules/savedir (EXTRA_DIST): Add savedir.h.
55300         * modules/sha1 (EXTRA_DIST): Add sha1.h.
55301         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
55302         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
55303         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
55304         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
55305         * modules/strdup (EXTRA_DIST): Add strdup.h.
55306         * modules/strftime (EXTRA_DIST): Add strftime.h.
55307         * modules/strndup (EXTRA_DIST): Add strndup.h.
55308         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
55309         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
55310         * modules/time_r (EXTRA_DIST): Add time_r.h.
55311         * modules/timespec (EXTRA_DIST): Add timespec.h.
55312         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55313         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
55314         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
55315         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
55316         * modules/userspec (EXTRA_DIST): Add userspec.h.
55317         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
55318         * modules/utimens (EXTRA_DIST): Add utimens.h.
55319         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
55320         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
55321         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
55322         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
55323         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
55324         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
55325         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
55326         * modules/yesno (EXTRA_DIST): Add yesno.h.
55327
55328 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55329
55330         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
55331
55332         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
55333         * m4/dev-ino.m4, same-inode.m4: Remove.
55334
55335         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
55336         * m4/acl.m4 (AC_FUNC_ACL):
55337         * m4/backupfile.m4 (gl_BACKUPFILE):
55338         * m4/c-strtod.m4 (gl_C99_STRTOLD):
55339         * m4/canon-host.m4 (gl_CANON_HOST):
55340         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
55342         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
55343         * m4/cloexec.m4 (gl_CLOEXEC):
55344         * m4/close-stream.m4 (gl_CLOSE_STREAM):
55345         * m4/closeout.m4 (gl_CLOSEOUT):
55346         * m4/dirfd.m4 (gl_FUNC_DIRFD):
55347         * m4/dirname.m4 (gl_DIRNAME):
55348         * m4/exclude.m4 (gl_EXCLUDE):
55349         * m4/exitfail.m4 (gl_EXITFAIL):
55350         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
55351         * m4/file-type.m4 (gl_FILE_TYPE):
55352         * m4/filemode.m4 (gl_FILEMODE):
55353         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
55354         * m4/fpending.m4 (gl_FUNC_FPENDING):
55355         * m4/fprintftime.m4 (gl_FPRINTFTIME):
55356         * m4/fts.m4 (gl_FUNC_FTS):
55357         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
55358         * m4/getdate.m4 (gl_GETDATE):
55359         * m4/gethrxtime.m4 (gl_GETHRXTIME):
55360         * m4/getpagesize.m4 (gl_GETPAGESIZE):
55361         * m4/getpass.m4 (gl_FUNC_GETPASS):
55362         * m4/gettime.m4 (gl_GETTIME):
55363         * m4/getugroups.m4 (gl_GETUGROUPS):
55364         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
55365         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
55366         * m4/hard-locale.m4 (gl_HARD_LOCALE):
55367         * m4/hash.m4 (gl_HASH):
55368         * m4/idcache.m4 (gl_IDCACHE):
55369         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
55370         * m4/lchown.m4 (gl_FUNC_LCHOWN):
55371         * m4/long-options.m4 (gl_LONG_OPTIONS):
55372         * m4/lstat.m4 (gl_FUNC_LSTAT):
55373         * m4/md5.m4 (gl_MD5):
55374         * m4/memcasecmp.m4 (gl_MEMCASECMP):
55375         * m4/memcoll.m4 (gl_MEMCOLL):
55376         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
55377         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
55378         * m4/memxor.m4 (gl_MEMXOR):
55379         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
55380         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
55381         * m4/modechange.m4 (gl_MODECHANGE):
55382         * m4/mountlist.m4 (gl_MOUNTLIST):
55383         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55384         * m4/openat.m4 (gl_FUNC_OPENAT):
55385         * m4/pathmax.m4 (gl_PATHMAX):
55386         * m4/physmem.m4 (gl_PHYSMEM):
55387         * m4/posixtm.m4 (gl_POSIXTM):
55388         * m4/posixver.m4 (gl_POSIXVER):
55389         * m4/quote.m4 (gl_QUOTE):
55390         * m4/quotearg.m4 (gl_QUOTEARG):
55391         * m4/readtokens.m4 (gl_READTOKENS):
55392         * m4/readutmp.m4 (gl_READUTMP):
55393         * m4/regex.m4 (gl_REGEX):
55394         * m4/safe-read.m4 (gl_SAFE_READ):
55395         * m4/safe-write.m4 (gl_SAFE_WRITE):
55396         * m4/same.m4 (gl_SAME):
55397         * m4/save-cwd.m4 (gl_SAVE_CWD):
55398         * m4/savedir.m4 (gl_SAVEDIR):
55399         * m4/settime.m4 (gl_SETTIME):
55400         * m4/sha1.m4 (gl_SHA1):
55401         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
55402         * m4/stat-macros.m4 (gl_STAT_MACROS):
55403         * m4/stat-time.m4 (gl_STAT_TIME):
55404         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
55405         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
55406         * m4/strdup.m4 (gl_FUNC_STRDUP):
55407         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
55408         * m4/strndup.m4 (gl_FUNC_STRNDUP):
55409         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
55410         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
55411         * m4/time_r.m4 (gl_TIME_R):
55412         * m4/timespec.m4 (gl_TIMESPEC):
55413         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
55414         * m4/unlinkdir.m4 (gl_UNLINKDIR):
55415         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
55416         * m4/userspec.m4 (gl_USERSPEC):
55417         * m4/utimecmp.m4 (gl_UTIMECMP):
55418         * m4/utimens.m4 (gl_UTIMENS):
55419         * m4/xalloc.m4 (gl_XALLOC):
55420         * m4/xgetcwd.m4 (gl_XGETCWD):
55421         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
55422         * m4/xreadlink.m4 (gl_XREADLINK):
55423         * m4/xstrtod.m4 (gl_XSTRTOD):
55424         * m4/yesno.m4 (gl_YESNO):
55425         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55426         to get the necessary .h files and whatnot.
55427
55428 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
55429             Bruno Haible  <bruno@clisp.org>
55430
55431         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
55432         /bin/sh understanding of '!' conditional negation.
55433
55434 2006-08-21  Jim Meyering  <jim@meyering.net>
55435
55436         * modules/openat (Depends-on): Really alphabetize.
55437
55438         * modules/acl (Depends-on): Add error and quote.
55439
55440         * check-module (find_included_lib_files): Add at-func.c to the
55441         ok-to-include-more-than-once white list.
55442
55443         * modules/openat (Depends-on): Add lstat.  Alphabetize.
55444
55445 2006-08-21  Bruno Haible  <bruno@clisp.org>
55446
55447         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55448         Emit a pkgdata_DATA variable only if some snippets add contents to it.
55449         Reported by Martin Lambers <marlam@marlam.de>.
55450
55451 2006-08-21  Bruno Haible  <bruno@clisp.org>
55452
55453         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
55454         specify an installation location, don't emit a noinst_LIBRARIES or
55455         noinst_LTLIBRARIES assignment.
55456
55457 2006-08-21  Bruno Haible  <bruno@clisp.org>
55458
55459         BeOS portability.
55460         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
55461         BeOS has mbrtowc() but no <wctype.h>.
55462
55463 2006-08-21  Bruno Haible  <bruno@clisp.org>
55464
55465         BeOS portability.
55466         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
55467         exist.
55468
55469 2006-08-21  Bruno Haible  <bruno@clisp.org>
55470
55471         BeOS portability.
55472         * lib/mbchar.h: Include <wctype.h> only if it exists.
55473
55474 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55475
55476         Remove files that are no longer needed by their respective modules.
55477         * m4/obstack.m4: Remove.
55478         * m4/strerror_r.m4: Remove.
55479         * m4/uint32_t.m4: Remove.
55480         * m4/uintptr_t.m4: Remove.
55481         * m4/ullong_max.m4: Remove.
55482         * m4/xstrtoimax.m4: Remove.
55483         * m4/xstrtoumax.m4: Remove.
55484
55485         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
55486         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
55487         dependencies now capture this.
55488
55489         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
55490         Do not use AC_LIBSOURCES, since gnulib modules now do this.
55491         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
55492         * m4/human.m4 (gl_HUMAN): Likewise.
55493         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
55494         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
55495
55496         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
55497
55498         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
55499         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
55500         stdint.
55501         * m4/human.m4 (gl_HUMAN): Likewise.
55502         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
55503         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
55504         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55505         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55506         * m4/xstrtol (gl_XSTRTOL): Likewise.
55507
55508         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
55509         AC_TYPE_LONG_LONG_INT.
55510         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55511         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
55512         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
55513         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55514
55515         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
55516         on stdbool.
55517
55518         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
55519         (gl_PREREQ_XSTRTOUL): Remove.
55520
55521         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
55522
55523         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
55524         mode.
55525
55526 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55527
55528         Add and change modules to make it easier for coreutils to use
55529         gnulib-tool.
55530         * modules/backupfile (Files): Remove m4/d-ino.m4.
55531         (Depends-on): Add d-ino.
55532         * modules/cycle-check (Depends-on): Add stdint.
55533         (lib_SOURCES): Add cycle-check.h.
55534         * modules/d-ino: New module.
55535         * modules/d-type: New module.
55536         * modules/error (Files): Remove m4/strerror_r.m4.
55537         * modules/filemode (Files): Add m4/st_dm_mode.m4.
55538         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55539         m4/inttypes_h.m4, m4/uintmax_t.m4.
55540         (Depends-on): Add stdint.
55541         (lib_SOURCES): Add fsusage.h.
55542         * modules/getcwd (Files): Remove d-ino.m4.
55543         (Depends-on): Add d-ino.
55544         * modules/getndelim2 (Depends-on): Add stdint.
55545         * modules/glob (Files): Remove m4/d-type.m4.
55546         (Depends-on): Add d-type.
55547         * modules/host-os: New module.
55548         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
55549         m4/inttypes_h.m4, m4/uintmax_t.m4.
55550         * Depends-on: Add stdint.
55551         (lib_SOURCES): Add human.h.
55552         * modules/inttostr (Files): Remove m4/intmax_t.m4,
55553         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
55554         m4/uintmax_t.m4, m4/ulonglong.m4.
55555         (Depends-on): Add stdint.
55556         (EXTRA_DIST): Add inttostr.h.
55557         * modules/lchmod: New module.
55558         * modules/link-follow: New module.
55559         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
55560         (Depends-on): Add lchmod.
55561         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
55562         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
55563         (Depends-on): Add stdint.
55564         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
55565         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
55566         (Depends-on): Add stdint.
55567         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
55568         * modules/perl: New module.
55569         * modules/regex (Depends-on): Add stdint.
55570         * modules/rmdir-errno: New module.
55571         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55572         m4/intmax_t.m4.
55573         (Depends-on): Add stdint.
55574         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55575         m4/uintmax_t.m4.
55576         (Depends-on): Add stdint.
55577         * modules/unlink-busy: New module.
55578         * modules/utimecmp (Depends-on): Add stdint.
55579         * modules/uptime: New module.
55580         * modules/winsz-ioctl: New module.
55581         * modules/winsz-termios: New module.
55582         * modules/xnanosleep (Depends-on): Add nanosleep.
55583         * modules/ullong_max: Remove.
55584         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
55585         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
55586         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
55587         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
55588         (Depends-on): Add inttypes.
55589         (lib_SOURCES): Add xstrtol.h.
55590         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
55591         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
55592         * MODULES.html.sh: Move 'assert' into the assert section.
55593         Move 'dummy' into the linking section.
55594         Remove ullong_max.
55595         Add section for compatibility checks for POSIX:2001 functions,
55596         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
55597         winsz-ioctl, and winsz-termios into it.
55598         Add lchmod.
55599         Add top-level Misc section and put host-os, perl, and uptime
55600         into it.
55601
55602 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55603
55604         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
55605         now assume the stdint module.  Do not include inttypes.h.
55606         * lib/fsusage.h: Likewise.
55607         * lib/getndelim2.c: Likewise.
55608         * lib/human.h: Likewise.
55609         * lib/inttostr.h: Likewise.
55610         * lib/obstack.c: Likewise.
55611         * lib/regex_internal.h: Likewise.
55612         * lib/tempname.c: Likewise.
55613         * lib/utimecmp.c: Likewise.
55614         * lib/xstrtol.h: Likewise.
55615
55616         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
55617
55618         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
55619         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
55620         * lib/xtime.h: Likewise.
55621
55622 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * modules/openat (Files): Add lib/fchmodat.c.
55625         Fixes problem reported by Jay Youngman.
55626
55627 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
55630         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
55631
55632 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
55633             Bruno Haible  <bruno@clisp.org>
55634
55635         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
55636         and is a script that invokes bison. Tighten the code. Add comments.
55637
55638 2006-08-18  Jim Meyering  <jim@meyering.net>
55639
55640         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
55641         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
55642         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
55643         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
55644
55645 2006-08-18  Bruno Haible  <bruno@clisp.org>
55646
55647         * modules/bison-i18n: New file.
55648         * MODULES.html.sh (Internationalization functions): Add it.
55649
55650 2006-08-18  Bruno Haible  <bruno@clisp.org>
55651
55652         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
55653         sys/statvfs.h. When getmntinfo was found, check its declaration and
55654         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
55655
55656 2006-08-18  Bruno Haible  <bruno@clisp.org>
55657
55658         * m4/bison-i18n.m4: New file, from bison.
55659
55660 2006-08-18  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
55663         (ME_DUMMY): Treat "kernfs" as a dummy.
55664         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
55665
55666 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         Update from coreutils.
55669
55670         2006-08-15  Jim Meyering  <jim@meyering.net>
55671
55672         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
55673
55674         2006-01-17  Jim Meyering  <jim@meyering.net>
55675
55676         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
55677
55678         2006-01-11  Jim Meyering  <jim@meyering.net>
55679
55680         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
55681         Check for the lchmod function.
55682
55683 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55684
55685         Update from coreutils.
55686
55687         * lib/__fpending.h: Add copyright notice.
55688         * lib/fprintftime.h: Likewise.
55689         * lib/savedir.c: Use (C) in copyright notice.
55690         * lib/savedir.h: Likewise.
55691
55692         2006-08-15  Jim Meyering  <jim@meyering.net>
55693
55694         * lib/at-func.c: New file, with the logic of all emulated at-functions.
55695         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
55696         in support of the EXPECTED_ERRNO macro.
55697         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
55698         definitions.  Instead, define the appropriate symbols and include
55699         "at-func.c".
55700         * lib/mkdirat.c (mkdirat): Likewise.
55701         * lib/fchmodat.c (fchmodat): Likewise.
55702         (ENOSYS): Remove definition.
55703         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
55704         it.  Don't include "unistd--.h" -- it wasn't ever used.
55705
55706         2006-01-17  Jim Meyering  <jim@meyering.net>
55707
55708         Rewrite fts.c not to change the current working directory,
55709         by using openat, fstatat, fdopendir, etc..
55710
55711         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
55712         (HAVE_OPENAT_SUPPORT): Define.
55713         [_LIBC] (fchdir): Don't undef or define; no longer used.
55714         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
55715         Now, this `function' always succeeds, and consumes its file descriptor
55716         parameter -- so callers must not close such FDs.  Update callers.
55717         (diropen_fd, opendirat, cwd_advance_fd): New functions.
55718         (diropen): Add parameter, SP.  Adjust all callers.
55719         Implement using diropen_fd, rather than open.
55720         (fts_open): Initialize new member, fts_cwd_fd.
55721         Remove fts_rft-setting code.
55722         (fts_close): Close fts_cwd_fd, if necessary.
55723         (__opendir2): Define in terms of opendir or opendirat,
55724         depending on whether the FST_NOCHDIR flag is set.
55725         (fts_build): Since fts_safe_changedir consumes its FD, and since
55726         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
55727         and close the dup'd file descriptor upon failure.
55728         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
55729         (fts_safe_changedir): Tweak semantics to reflect that this function
55730         now calls cwd_advance_fd and hence consumes its FD argument.
55731         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
55732         [struct FTS] (fts_rft): Remove now-unused member.
55733         [struct FTS] (fts_cycle.state): Improve comment.
55734
55735         * lib/openat.c (openat_needs_fchdir): New function.
55736         * lib/openat.h (openat_needs_fchdir): Declare it.
55737
55738 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
55741         Problem and fix reported by Pádraig Brady in
55742         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
55743
55744 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55745
55746         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
55747
55748 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         * lib/memcoll.c (memcoll): Optimize for the common case where the
55751         arguments are bytewise equal.
55752
55753 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55754
55755         * doc/regexprops-generic.texi: Add a copyright notice.
55756
55757 2006-08-15  Bruno Haible  <bruno@clisp.org>
55758
55759         * modules/tmpdir (License): Change to LGPL.
55760
55761 2006-08-15  Bruno Haible  <bruno@clisp.org>
55762
55763         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
55764         module.
55765
55766 2006-08-14  Simon Josefsson  <jas@extundo.com>
55767
55768         * config/srclist.txt: Add gnupload.
55769
55770 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55771
55772         Change copyright notice from LGPL 2 to GPL 2, since that's the
55773         standard form used in the gnulib repository.
55774         * tests/test-lock.c: Likewise.
55775         * tests/test-stdint.c: Likewise.
55776         * tests/test-tls.c: Likewise.
55777
55778         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
55779         prelude-manager.  User shorter URLs for GNU projects, without '?'.
55780         Add copyright notice.
55781
55782         * check-module: Add copyright notice.  Output a copyright
55783         notice if "--version" is specified.
55784         * modules/COPYING: New file.
55785         * tests/test-getaddrinfo.c: Add copyright notice.
55786         * tests/test-verify.c: Likewise.
55787
55788 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55789
55790         Change copyright notice from LGPL 2 to GPL 2, since that's the
55791         standard form used in the gnulib repository.
55792         * lib/lock.c: LGPL -> GPL.
55793         * lib/lock.h: Likewise.
55794         * lib/strnlen1.c: Likewise.
55795         * lib/strnlen1.h: Likewise.
55796         * lib/tls.c: Likewise.
55797         * lib/tls.h: Likewise.
55798         * lib/tmpdir.c: Likewise.
55799
55800         * lib/TODO: Remove; this belongs only in coreutils.
55801
55802 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55803
55804         Add copyright notices to long-enough files that lack them, since
55805         otherwise the files aren't clearly free.  Use the same notice that
55806         getdate.texi already uses.
55807         * doc/alloca-opt.texi: Add copyright notice.
55808         * doc/alloca.texi: Likewise.
55809         * doc/ctime.texi: Likewise.
55810         * doc/functions.texi: Likewise.
55811         * doc/gcd.texi: Likewise.
55812         * doc/gnulib-tool.texi: Likewise.
55813         * doc/inet_ntoa.texi: Likewise.
55814         * doc/visibility.texi: Likewise.
55815
55816         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
55817         * doc/quote.texi: Add copyright notice.
55818
55819         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
55820         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
55821         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
55822         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
55823         is now obsolete, and give a pointer to the Sun list.
55824         Add copyright notice.
55825
55826 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55827
55828         * config/srclistvars.sh: Add copyright notice.
55829
55830 2006-08-14  Eric Blake  <ebb9@byu.net>
55831
55832         Import the following change from libc:
55833
55834         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
55835
55836         Upstream bug 2997.
55837         * lib/misc/error.c: Add space between program name and message if file
55838         name is missing.
55839
55840 2006-08-12  Karl Berry  <karl@gnu.org>
55841
55842         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
55843         remove, these originate in gnulib now.
55844
55845 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55846
55847         * doc/Makefile (standards.info standards.html standards.dvi):
55848         Also depend on make-stds.texi.
55849
55850 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55851
55852         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
55853         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
55854
55855         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
55856         in wchar_t.  Problem reported by Eric Blake.
55857
55858         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
55859         LEN is smaller than SIZE.  Suggested by Bruno Haible.
55860         Also, help the compiler to keep LEN in a register.
55861
55862 2006-08-11  Eric Blake  <ebb9@byu.net>
55863
55864         * users.txt: Sort.  Add tar.
55865
55866 2006-08-11  Bruno Haible  <bruno@clisp.org>
55867
55868         * users.txt: New file.
55869
55870 2006-08-11  Bruno Haible  <bruno@clisp.org>
55871
55872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
55873         before <wchar.h>. Needed for OSF/1 and BSD/OS.
55874
55875 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55876
55877         * modules/snprintf (Depends-on): Remove minmax.
55878         (Maintainer): Add self and Bruno.
55879
55880 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55881
55882         * lib/.cppi-disable: Add snprintf.h, socket_.h.
55883         * lib/snprintf.c: Include <errno.h> and <limits.h>.
55884         (EOVERFLOW): Define if the system does not.
55885         Do not include "minmax.h"; it wasn't used.
55886         (snprintf): Don't assume size_t promotes to an unsigned type.
55887         Fix bug when generated string was too long for the buffer: the
55888         buffer's contents are supposed to be the initial prefix of the
55889         output.  Don't assume vasnprintf returns EOVERFLOW if the size
55890         exceeds INT_MAX; do the check ourselves.
55891
55892         Import the following changes from libc:
55893
55894         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
55895
55896         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
55897         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
55898         set wc to the byte which couldn't be converted.
55899         (re_string_reconstruct): Don't clear valid_raw_len before calling
55900         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
55901         tip_context using re_string_context_at.
55902
55903         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
55904
55905         * lib/posix/regex.h: g++ still cannot handled [restrict].
55906
55907         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
55908
55909         * lib/posix/regex.h: Remove special handling for VMS.
55910
55911 2006-08-10  Jim Meyering  <jim@meyering.net>
55912
55913         * modules/same-inode: New module.
55914         * modules/dev-ino: New module.
55915         * modules/cycle-check: Depend on these modules, rather than simply
55916         including their .h files.
55917         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
55918         required via m4/cycle-check.m4.
55919         * modules/same: Depend on new same-inode module, rather than
55920         including same-inode.h.
55921         * modules/chdir-safer: New file.
55922
55923         * modules/chown (Depends-on): Add stat-macros.
55924
55925 2006-08-10  Jim Meyering  <jim@meyering.net>
55926
55927         * m4/cycle-check.m4: New file.
55928         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
55929         * m4/dev-ino.m4, m4/same-inode.m4: New files.
55930
55931 2006-08-10  Eric Blake  <ebb9@byu.net>
55932
55933         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
55934         in from original proposal.
55935
55936 2006-08-10  Eric Blake  <ebb9@byu.net>
55937         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55938
55939         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
55940         namespace.
55941
55942 2006-08-10  Bruno Haible  <bruno@clisp.org>
55943
55944         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
55945         as well.
55946
55947 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55948
55949         Sync from coreutils.
55950
55951         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
55952
55953         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
55954         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
55955
55956 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55957
55958         * modules/restrict: Remove; no longer needed now that we assume
55959         Autoconf 2.59 or later.
55960         * MODULES.html.sh: Remove 'restrict'.
55961         * modules/argp (Depends-on): Remove 'restrict'.
55962         * modules/base64 (Depends-on): Likewise.
55963         * modules/gc (Depends-on): Likewise.
55964         * modules/getaddrinfo (Depends-on): Likewise.
55965         * modules/glob (Depends-on): Likewise.
55966         * modules/inet_ntop (Depends-on): Likewise.
55967         * modules/inet_pton (Depends-on): Likewise.
55968         * modules/memxor (Depends-on): Likewise.
55969         * modules/regex (Depends-on): Likewise.
55970         * modules/strtok_r (Depends-on): Likewise.
55971         * modules/time_r (Depends-on): Likewise.
55972
55973 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55974
55975         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
55976         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
55977         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55978         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
55979         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55980         * m4/memxor.m4 (gl_MEMXOR): Likewise.
55981         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
55982         gl_C_RESTRICT replaced by AC_C_RESTRICT.
55983
55984         Merge from coreutils.
55985         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
55986         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
55987         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55988         * m4/time_r.m4 (gl_TIME_R): Likewise.
55989
55990 2006-08-09  Karl Berry  <karl@gnu.org>
55991
55992         * config/srclist.txt: no more gettext-tools, per Bruno.
55993
55994 2006-08-08  Eric Blake  <ebb9@byu.net>
55995
55996         * modules/verror: New module.
55997         * MODULES.html.sh: Document it.
55998
55999 2006-08-08  Eric Blake  <ebb9@byu.net>
56000
56001         * lib/verror.h, lib/verror.c: New files.
56002
56003 2006-08-08  Eric Blake  <ebb9@byu.net>
56004
56005         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
56006         verror_at_line output complies with GNU Coding Standards even when
56007         file is NULL.
56008
56009 2006-08-07  Bruno Haible  <bruno@clisp.org>
56010
56011         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
56012         versions of AIX.
56013         Reported by Ralf Wildenhues.
56014
56015 2006-08-07  Bruno Haible  <bruno@clisp.org>
56016
56017         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
56018         in an AC_DEFUN. Needed so that the autoconf snippets can use
56019         AC_REQUIRE.
56020
56021 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56022
56023         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56024         Initialize pkgdata_DATA.
56025         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
56026         overriding it.
56027
56028 2006-08-06  Eric Blake  <ebb9@byu.net>
56029
56030         * lib/error.h: Fold in some upstream changes from glibc.
56031         * lib/error.c: Likewise.
56032
56033 2006-08-04  Bruno Haible  <bruno@clisp.org>
56034
56035         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56036         Make the mostlyclean-local rule depend on mostlyclean-generic.
56037         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
56038
56039 2006-07-31  Bruno Haible  <bruno@clisp.org>
56040
56041         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
56042         <stdlib.h>, <string.h>.
56043
56044 2006-07-30  Bruno Haible  <bruno@clisp.org>
56045
56046         * modules/readlink (License): Change to LGPL.
56047
56048 2006-07-30  Bruno Haible  <bruno@clisp.org>
56049
56050         * modules/javaversion (Makefile.am): Distribute javaversion.java and
56051         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
56052         set PKGDATADIR to point to it.
56053
56054 2006-07-30  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/csharpexec (configure.ac): Comment out macro invocation.
56057         * modules/javaexec (configure.ac): Likewise.
56058         * modules/javacomp-script (configure.ac): Likewise.
56059
56060         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
56061
56062 2006-07-30  Bruno Haible  <bruno@clisp.org>
56063
56064         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
56065         linked-list.
56066
56067 2006-07-30  Bruno Haible  <bruno@clisp.org>
56068
56069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
56070
56071 2006-07-30  Bruno Haible  <bruno@clisp.org>
56072
56073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56074         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
56075         get removed.
56076
56077 2006-07-29  Bruno Haible  <bruno@clisp.org>
56078
56079         Make it possible for gnulib-tool to work with locally modified or
56080         augmented gnulib repositories.
56081         * gnulib-tool (func_usage): Document --local-dir option.
56082         (local_gnulib_dir): New variable.
56083         Handle --local-dir option.
56084         (func_lookup_file): New function.
56085         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
56086         (func_get_description, func_get_filelist, func_get_description,
56087         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
56088         func_get_automake_snippet, func_get_include_directive,
56089         func_get_license, func_get_maintainer): Use func_lookup_file.
56090         (func_import, func_create_testdir): Use func_lookup_file.
56091
56092 2006-07-29  Bruno Haible  <bruno@clisp.org>
56093
56094         * modules/setenv (Depends-on): Add unistd.
56095
56096 2006-07-29  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
56099
56100 2006-07-29  Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
56103
56104 2006-07-29  Bruno Haible  <bruno@clisp.org>
56105
56106         * gnulib-tool (import, update): If there is no Makefile.am, look at
56107         aclocal.m4, instead of bailing out.
56108
56109 2006-07-29  Bruno Haible  <bruno@clisp.org>
56110
56111         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
56112         Categorize the options by when they are useful.
56113
56114 2006-07-29  Bruno Haible  <bruno@clisp.org>
56115
56116         * gnulib-tool (func_usage): Document option --no-libtool.
56117         Handle option --no-libtool.
56118         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
56119         for changed semantics of $libtool variable.
56120         (func_import): Likewise. If libtool is not used, show this through
56121         an option --no-libtool.
56122         (func_create_testdir): Update.
56123
56124 2006-07-29  Bruno Haible  <bruno@clisp.org>
56125
56126         * gnulib-tool (func_import): Extend error message about missing
56127         --doc-base.
56128
56129 2006-07-29  Bruno Haible  <bruno@clisp.org>
56130
56131         * gnulib-tool (func_import): Don't create the $docbase directory if
56132         there is no file to store there.
56133
56134 2006-07-29  Bruno Haible  <bruno@clisp.org>
56135
56136         * gnulib-tool (autoconf_minversion): If a --dir option is given and
56137         relevant, look for configure.ac there, not in the current directory.
56138         Also use a simple search for AC_PREREQ, not "autoconf --trace".
56139
56140 2006-07-29  Bruno Haible  <bruno@clisp.org>
56141
56142         * gnulib-tool (SORT): New variable.
56143         (func_usage): Undocument --assume-autoconf option.
56144         Remove --assume-autoconf option handling.
56145         (autoconf_minversion): Determine from the contents of configure.ac.
56146         (func_import): Remove autoconf_minversion handling.
56147         Suggested by Eric Blake.
56148
56149 2006-07-29  Bruno Haible  <bruno@clisp.org>
56150
56151         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
56152
56153 2006-07-29  Bruno Haible  <bruno@clisp.org>
56154
56155         * config/srclist.txt (*setenv.[ch]): Remove rules.
56156
56157 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56158
56159         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
56160
56161 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56162
56163         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
56164         arpa/inet.h.
56165
56166 2006-07-28  Simon Josefsson  <jas@extundo.com>
56167
56168         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
56169         * modules/inet_pton (Depends-on): Likewise.
56170
56171 2006-07-28  Simon Josefsson  <jas@extundo.com>
56172
56173         * m4/netinet_in_h.m4: New file.
56174
56175 2006-07-28  Simon Josefsson  <jas@extundo.com>
56176
56177         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
56178         #include's.
56179
56180 2006-07-28  Simon Josefsson  <jas@extundo.com>
56181
56182         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
56183         #include's.
56184
56185 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
56186
56187         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
56188         setgid on directories only if they set these bits.
56189         * lib/modechange.h: Remove obsolete comment about masks.
56190
56191 2006-07-28  Eric Blake  <ebb9@byu.net>
56192
56193         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
56194         macro expansion.
56195
56196 2006-07-28  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
56199
56200 2006-07-28  Bruno Haible  <bruno@clisp.org>
56201
56202         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
56203
56204 2006-07-28  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56207         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56208         Define fallbacks.
56209         Avoids link error on FreeBSD 4.x.
56210         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56211
56212         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
56213         encoding.
56214         * lib/mbswidth.c (iswcntrl): Likewise.
56215
56216 2006-07-27  Bruno Haible  <bruno@clisp.org>
56217
56218         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
56219         test.
56220
56221 2006-07-27  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
56224         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
56225         defined.
56226
56227 2006-07-26  Eric Blake  <ebb9@byu.net>
56228
56229         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
56230
56231 2006-07-26  Eric Blake  <ebb9@byu.net>
56232
56233         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
56234         like mingw that lack mkstemp.
56235         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
56236         avoid compilation warning on mingw.
56237
56238 2006-07-26  Bruno Haible  <bruno@clisp.org>
56239
56240         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
56241         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
56242         INT_FAST*_MIN, INTPTR_MIN.
56243
56244 2006-07-25  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/version-etc (Depends-on): Add stdarg.
56247
56248 2006-07-25  Bruno Haible  <bruno@clisp.org>
56249
56250         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
56251         complex commands.
56252
56253 2006-07-25  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
56256         defined in <stdarg.h> or config.h.
56257
56258 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56259
56260         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
56261         (gl_STDIO_SAFER): Remove.
56262
56263 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56264
56265         * MODULES.html.sh (File stream based Input/Output):
56266         Add fopen-safer, tmpfile-safer; remove stdio-safer.
56267         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
56268         * modules/fopen-safer, modules/tmpfile-safer: New files.
56269         * modules/stdio-safer: Remove.
56270
56271 2006-07-24  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/tmpdir: New file.
56274         * MODULES.html.sh (File system functions): Add it.
56275
56276 2006-07-24  Bruno Haible  <bruno@clisp.org>
56277
56278         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
56279         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
56280
56281 2006-07-24  Bruno Haible  <bruno@clisp.org>
56282
56283         * modules/clean-temp: New file.
56284
56285 2006-07-24  Bruno Haible  <bruno@clisp.org>
56286
56287         * m4/tmpdir.m4: New file, from GNU gettext.
56288
56289 2006-07-24  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/tmpdir.h: New file, from GNU gettext.
56292         * lib/tmpdir.c: New file, from GNU gettext.
56293
56294 2006-07-24  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/clean-temp.h: New file, from GNU gettext.
56297         * lib/clean-temp.c: New file, from GNU gettext.
56298
56299 2006-07-23  Eric Blake  <ebb9@byu.net>
56300
56301         * modules/stdio-safer (Files): Add tmpfile-safer.c.
56302         (Depends-on): Add binary-io.
56303
56304 2006-07-23  Eric Blake  <ebb9@byu.net>
56305
56306         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
56307
56308 2006-07-23  Eric Blake  <ebb9@byu.net>
56309
56310         * lib/tmpfile-safer.c: New file.
56311         * lib/stdio-safer.h (fopen_safer): Add prototype.
56312         * lib/stdio--.h (tmpfile): Make safer.
56313
56314 2006-07-23  Bruno Haible  <bruno@clisp.org>
56315
56316         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
56317         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
56318         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
56319         gl_linked_remove_at): Use it.
56320
56321 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56322         and Simon Josefsson <jas@extundo.com>
56323
56324         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
56325
56326         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
56327
56328 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56329
56330         * modules/close-stream: New file.
56331         * modules/closeout (Description): Make it clear that it exits
56332         with a diagnostic on error.
56333         (Depends-on): Add close-stream.  Remove fpending, stdbool.
56334         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
56335
56336 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * m4/close-stream.m4: New file.
56339
56340 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56341
56342         * lib/close-stream.c, lib/close-stream.h: New files.
56343
56344 2006-07-22  Bruno Haible  <bruno@clisp.org>
56345
56346         Merge from GNU gettext 0.15.
56347
56348         2006-05-01  Bruno Haible  <bruno@clisp.org>
56349
56350                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
56351
56352         2006-07-22  Bruno Haible  <bruno@clisp.org>
56353
56354                 * modules/javaversion: New file.
56355                 * MODULES.html.sh (Java): Add javaversion.
56356
56357         2006-03-12  Bruno Haible  <bruno@clisp.org>
56358
56359                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
56360
56361         2005-12-04  Bruno Haible  <bruno@clisp.org>
56362
56363                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
56364                 (untested).
56365
56366         2006-06-21  Bruno Haible  <bruno@clisp.org>
56367
56368                 Avoid warnings from recent versions of mcs.
56369                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
56370                 -o, -L, -r any more. Use options documented since mcs-1.0
56371                 instead. Similarly for -g.
56372
56373         2005-12-04  Bruno Haible  <bruno@clisp.org>
56374
56375                 * build-aux/csharpcomp.sh.in: Suffix for resources is
56376                 .resources, not .resource.
56377
56378         2005-07-09  Bruno Haible  <bruno@clisp.org>
56379
56380                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
56381                 add a .dll suffix.
56382                 Reported by Mark Junker <mjscod@gmx.de>.
56383
56384         2006-07-22  Bruno Haible  <bruno@clisp.org>
56385
56386                 * modules/gettext: Upgrade to gettext-0.15.
56387                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
56388                 m4/visibility.m4.
56389                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
56390
56391 2006-07-22  Bruno Haible  <bruno@clisp.org>
56392
56393         Merge from GNU gettext 0.15.
56394
56395         2006-03-25  Bruno Haible  <bruno@clisp.org>
56396
56397                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
56398
56399         2006-07-21  Bruno Haible  <bruno@clisp.org>
56400
56401                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
56402                 "1.1".
56403
56404         2006-05-09  Bruno Haible  <bruno@clisp.org>
56405
56406                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
56407                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
56408                 for the conftestver execution.
56409
56410         2006-05-01  Bruno Haible  <bruno@clisp.org>
56411
56412                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
56413                 optional target-version argument. Verify that the compiler
56414                 groks source of the specified source-version, or add -source
56415                 option as necessary. Verify that the compiler produces
56416                 bytecode in the specified target-version, or add -target and
56417                 -source options as necessary. Make the result of the test
56418                 available as variable CONF_JAVAC. Also log error output in
56419                 config.log.
56420
56421         2006-03-11  Bruno Haible  <bruno@clisp.org>
56422
56423                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
56424
56425         2006-05-09  Bruno Haible  <bruno@clisp.org>
56426
56427                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
56428                 CLASSPATH_SEPARATOR to a semicolon.
56429
56430         2006-03-12  Bruno Haible  <bruno@clisp.org>
56431
56432                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
56433                 available as variable CONF_JAVA, for subsequent autoconf
56434                 tests. Also log error output in config.log.
56435
56436         2006-07-19  Bruno Haible  <bruno@clisp.org>
56437
56438                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
56439                 that getline works on glibc2 systems. Needed to avoid trouble
56440                 in relocatable.c.
56441                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
56442
56443         2005-12-04  Bruno Haible  <bruno@clisp.org>
56444
56445                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
56446                 launcher (untested).
56447
56448         2005-12-04  Bruno Haible  <bruno@clisp.org>
56449
56450                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
56451
56452         2006-07-22  Bruno Haible  <bruno@clisp.org>
56453
56454                 * gettext.m4: Update from GNU gettext-0.15.
56455                 * nls.m4: Likewise.
56456                 * po.m4: Likewise.
56457                 * inttypes-pri.m4: Likewise.
56458                 * inttypes-h.m4: Renamed from inttypes.m4.
56459                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
56460
56461 2006-07-22  Bruno Haible  <bruno@clisp.org>
56462
56463         Merge from GNU gettext 0.15.
56464
56465         2005-07-05  Bruno Haible  <bruno@clisp.org>
56466
56467                 * printf-args.c (printf_fetchargs): Work around broken
56468                 definition of wint_t on mingw.
56469
56470         2005-02-12  Bruno Haible  <bruno@clisp.org>
56471
56472                 * xallocsa.h: Add extern "C" for C++.
56473
56474         2006-05-17  Bruno Haible  <bruno@clisp.org>
56475
56476                 Cygwin portability.
56477                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
56478
56479         2006-04-30  Bruno Haible  <bruno@clisp.org>
56480
56481                 * progreloc.c: Include <mach-o/dyld.h> if available.
56482                 (find_executable): Use _NSGetExecutablePath when possible.
56483
56484         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56485
56486                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
56487                 function.
56488
56489         2005-12-29  Bruno Haible  <bruno@clisp.org>
56490
56491                 * progreloc.c (set_program_name_and_installdir): Fix
56492                 compilation error.
56493
56494         2005-12-04  Bruno Haible  <bruno@clisp.org>
56495
56496                 Cygwin portability.
56497                 * progreloc.c: Include <windows.h> also on Cygwin.
56498                 (find_executable): Add support for Cygwin.
56499                 (set_program_name_and_installdir): Handle also platforms with
56500                 nonempty EXEEXT.
56501
56502         2006-07-11  Bruno Haible  <bruno@clisp.org>
56503
56504                 * javacomp.c: Fix a comment.
56505                 Reported by Jim Meyering.
56506
56507         2006-04-30  Bruno Haible  <bruno@clisp.org>
56508
56509                 * javacomp.h (compile_java_class): Add source_version,
56510                 target_version arguments.
56511                 * javacomp.c: Rewritten to choose only a compiler that
56512                 respects the specified source_version and target_version.
56513
56514         2006-06-27  Bruno Haible  <bruno@clisp.org>
56515
56516                 Assume correct S_ISDIR macro.
56517                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
56518
56519         2006-07-22  Bruno Haible  <bruno@clisp.org>
56520
56521                 * javaversion.h: New file, from GNU gettext.
56522                 * javaversion.c: New file, from GNU gettext.
56523                 * javaversion.java: New file, from GNU gettext.
56524                 * javaversion.class: New file, from GNU gettext.
56525
56526         2006-05-17  Bruno Haible  <bruno@clisp.org>
56527
56528                 Cygwin portability.
56529                 * javaexec.c (execute_java_class): Test for jview program
56530                 also on Cygwin.
56531
56532         2006-04-09  Bruno Haible  <bruno@clisp.org>
56533
56534                 * fatal-signal.c: Don't include string.h.
56535                 (at_fatal_signal): Use a copying loop instead of memcpy.
56536
56537         2005-12-04  Bruno Haible  <bruno@clisp.org>
56538
56539                 * csharpexec.c: Add support for 'clix' launcher (untested).
56540                 (execute_csharp_using_sscli): New function.
56541                 (execute_csharp_program): Call it.
56542
56543         2006-06-21  Bruno Haible  <bruno@clisp.org>
56544
56545                 Avoid warnings from recent versions of mcs.
56546                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
56547                 -o, -L, -r any more. Use options documented since mcs-1.0
56548                 instead. Similarly for -g.
56549
56550         2005-07-09  Bruno Haible  <bruno@clisp.org>
56551
56552                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
56553                 add a .dll suffix.
56554                 Reported by Mark Junker <mjscod@gmx.de>.
56555
56556         2006-06-17  Bruno Haible  <bruno@clisp.org>
56557
56558                 * config.charset: Update for NetBSD 3.0.
56559
56560         2006-05-17  Bruno Haible  <bruno@clisp.org>
56561
56562                 Cygwin portability.
56563                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
56564
56565         2006-05-16  Bruno Haible  <bruno@clisp.org>
56566
56567                 * localcharset.c [CYGWIN]: Include <windows.h>.
56568                 (get_charset_aliases): For Cygwin, return the same CPxxx
56569                 aliases list as under WIN32.
56570                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
56571                 the environment variables. Fall back to GetACP().
56572
56573         2006-04-05  Bruno Haible  <bruno@clisp.org>
56574
56575                 * config.charset: Update Juan Manuel Guerrero's address.
56576
56577         2005-02-12  Bruno Haible  <bruno@clisp.org>
56578
56579                 * allocsa.h: Add extern "C" for C++.
56580
56581         2005-02-10  Bruno Haible  <bruno@clisp.org>
56582
56583                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
56584                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
56585
56586         2006-07-22  Bruno Haible  <bruno@clisp.org>
56587
56588                 * gettext.h: Update to GNU gettext-0.15.
56589
56590 2006-07-22  Bruno Haible  <bruno@clisp.org>
56591
56592         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
56593         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
56594         lib-prefix.m4, longdouble.m4, ssize_t.m4.
56595
56596 2006-07-21  Eric Blake  <ebb9@byu.net>
56597
56598         * modules/stdlib-safer: New file.
56599         * MODULES.html.sh (File stream based Input/Output): Add
56600         stdlib-safer.
56601
56602 2006-07-21  Eric Blake  <ebb9@byu.net>
56603
56604         * lib/stdlib-safer.h: New file from coreutils, required by
56605         stdlib--.h.
56606
56607 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
56608
56609         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
56610
56611 2006-07-20  Bruno Haible  <bruno@clisp.org>
56612
56613         * gnulib-tool: Recognize new option --assume-autoconf.
56614         (autoconf_minversion): New variable.
56615         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
56616
56617 2006-07-20  Bruno Haible  <bruno@clisp.org>
56618
56619         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
56620
56621 2006-07-19  Derek R. Price  <derek@ximbiot.com>
56622
56623         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
56624         Reindent and repaginate.
56625
56626 2006-07-19  Derek Price  <derek@ximbiot.com>
56627
56628         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
56629         Correct grammar.
56630
56631 2006-07-17  Bruno Haible  <bruno@clisp.org>
56632
56633         * modules/list: New file.
56634         * modules/array-list: New file.
56635         * modules/carray-list, modules/carray-list-tests: New files.
56636         * modules/linked-list, modules/linked-list-tests: New files.
56637         * modules/avltree-list, modules/avltree-list-tests: New files.
56638         * modules/rbtree-list, modules/rbtree-list-tests: New files.
56639         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
56640         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
56641         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
56642         * modules/oset: New file.
56643         * modules/array-oset: New file.
56644         * modules/avltree-oset, modules/avltree-oset-tests: New files.
56645         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
56646         * tests/test-carray_list.c: New file.
56647         * tests/test-linked_list.c: New file.
56648         * tests/test-avltree_list.c: New file.
56649         * tests/test-rbtree_list.c: New file.
56650         * tests/test-linkedhash_list.c: New file.
56651         * tests/test-avltreehash_list.c: New file.
56652         * tests/test-rbtreehash_list.c: New file.
56653         * tests/test-avltree_oset.c: New file.
56654         * tests/test-rbtree_oset.c: New file.
56655         * MODULES.html.sh (Container data structures): New section.
56656
56657 2006-07-17  Bruno Haible  <bruno@clisp.org>
56658
56659         * m4/gl_list.m4: New file.
56660
56661 2006-07-17  Bruno Haible  <bruno@clisp.org>
56662
56663         * lib/gl_list.h: New file.
56664         * lib/gl_list.c: New file.
56665         * lib/gl_array_list.h: New file.
56666         * lib/gl_array_list.c: New file.
56667         * lib/gl_carray_list.h: New file.
56668         * lib/gl_carray_list.c: New file.
56669         * lib/gl_linked_list.h: New file.
56670         * lib/gl_linked_list.c: New file.
56671         * lib/gl_anylinked_list1.h: New file.
56672         * lib/gl_anylinked_list2.h: New file.
56673         * lib/gl_avltree_list.h: New file.
56674         * lib/gl_avltree_list.c: New file.
56675         * lib/gl_anyavltree_list1.h: New file.
56676         * lib/gl_anyavltree_list2.h: New file.
56677         * lib/gl_rbtree_list.h: New file.
56678         * lib/gl_rbtree_list.c: New file.
56679         * lib/gl_anyrbtree_list1.h: New file.
56680         * lib/gl_anyrbtree_list2.h: New file.
56681         * lib/gl_anytree_list1.h: New file.
56682         * lib/gl_anytree_list2.h: New file.
56683         * lib/gl_linkedhash_list.h: New file.
56684         * lib/gl_linkedhash_list.c: New file.
56685         * lib/gl_anyhash_list1.h: New file.
56686         * lib/gl_anyhash_list2.h: New file.
56687         * lib/gl_avltreehash_list.h: New file.
56688         * lib/gl_avltreehash_list.c: New file.
56689         * lib/gl_rbtreehash_list.h: New file.
56690         * lib/gl_rbtreehash_list.c: New file.
56691         * lib/gl_anytreehash_list1.h: New file.
56692         * lib/gl_anytreehash_list2.h: New file.
56693
56694         * lib/gl_oset.h: New file.
56695         * lib/gl_oset.c: New file.
56696         * lib/gl_array_oset.h: New file.
56697         * lib/gl_array_oset.c: New file.
56698         * lib/gl_avltree_oset.h: New file.
56699         * lib/gl_avltree_oset.c: New file.
56700         * lib/gl_rbtree_oset.h: New file.
56701         * lib/gl_rbtree_oset.c: New file.
56702         * lib/gl_anytree_oset.h: New file.
56703
56704 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         * m4/mkancesdirs.m4: New file.
56707         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
56708         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
56709         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
56710         it.
56711
56712 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
56715         * lib/mkancesdirs.h: New files.
56716         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
56717         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
56718         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
56719         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
56720         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
56721         callers changed.  Revamp internals significantly, by not
56722         attempting to create directories that are temporarily more
56723         permissive than the final results.  Do not attempt to use
56724         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
56725         This removes some race conditions, fixes some bugs, and simplifies
56726         things.  Use new dirchownmod function to do owner and mode changes.
56727         * lib/mkdir-p.h: Likewise.
56728         * lib/modechange.c (octal_to_mode): New function.
56729         (struct mode_change): New member mentioned.
56730         (make_node_op_equals): New arg mentioned.  All callers changed.
56731         (mode_compile): Keep track of which mode bits the user has explicitly
56732         mentioned.
56733         (mode_adjust): New arg DIR, so that we implement the X op correctly.
56734         New arg PMODE_BITS, to keep track of which mode bits the user
56735         mentioned; it treats S_ISUID and S_ISGID speciall.
56736         All callers changed.
56737         * lib/modechange.h: Likewise.
56738
56739 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56740
56741         * MODULES.html.sh: Add mkancestors.
56742         * modules/mkancesdirs: New module.
56743         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
56744         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
56745         The chdir-safer and afs files are now orphans; I'll remove them
56746         unless someone speaks up.
56747         Add lib/dirchownmod.c, lib/dirchownmod.h.
56748         (Depends-on): Remove alloca, chown, save-cwd, dirname.
56749         Add lchown, mkancesdirs.
56750         (Maintainer): Add self.
56751
56752 2006-07-15  Karl Berry  <karl@gnu.org>
56753
56754         * gnulib-tool: help message wording/arrangement.
56755
56756 2006-07-14  Simon Josefsson  <jas@extundo.com>
56757
56758         * doc/gnulib.texi (Libtool and Windows): New section.
56759
56760 2006-07-12  Simon Josefsson  <jas@extundo.com>
56761
56762         * modules/gendocs (License): Fix license, approved by Karl.
56763
56764 2006-07-12  Eric Blake  <ebb9@byu.net>
56765
56766         * MODULES.html.sh: Add gendocs.
56767
56768 2006-07-11  Eric Blake  <ebb9@byu.net>
56769
56770         * modules/fdl: New module, to install doc/fdl.texi.
56771         * MODULES.html.sh: Add new section for documentation modules.
56772         * gnulib-tool: Avoid space-tab.
56773         (--doc-base): New option, to manage files from doc.
56774
56775 2006-07-11  Eric Blake  <ebb9@byu.net>
56776
56777         * m4/absolute-header.m4: Fix comments to match recent change.
56778
56779 2006-07-11  Eric Blake  <ebb9@byu.net>
56780
56781         * gnulib-tool: List --doc-base before --tests-base.
56782
56783 2006-07-11  Derek R. Price  <derek@ximbiot.com>
56784
56785         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
56786
56787 2006-07-11  Bruno Haible  <bruno@clisp.org>
56788
56789         * README: Mention where to put documentation.
56790
56791 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56792
56793         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
56794
56795 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56796
56797         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
56798         to stdint.m4.
56799
56800 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56801
56802         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
56803         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
56804         "no/such/file/stdint.h" when there is no such file, so that
56805         the resulting C code can be parsed by dodgy compilers.
56806         Problems reported by Bob Proulx.
56807
56808 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56809
56810         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
56811         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56812         macros into the GNU _D_EXACT_NAMLEN.
56813         * lib/savedir.c:  Likewise.
56814         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
56815
56816 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56817         and Paul Eggert  <eggert@cs.ucla.edu>
56818
56819         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
56820         * m4/savedir.m4:
56821         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56822         macros into the GNU _D_EXACT_NAMLEN.
56823
56824 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56825
56826         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
56827         around the absolute name, to work around a problem with the HP-UX
56828         11.23 native C compiler, reported by Bob Proulx.
56829
56830 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56831
56832         * doc/maintain.texi, make-stds.texi: Sync from
56833         <http://savannah.gnu.org/projects/gnustandards>.
56834
56835 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56836
56837         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
56838
56839 2006-07-09  Jim Meyering  <jim@meyering.net>
56840
56841         * m4/glob.m4: Remove a doubled word in a comment.
56842
56843 2006-07-09  Jim Meyering  <jim@meyering.net>
56844
56845         * lib/argp-pv.c: Remove a doubled word in a comment.
56846         * lib/check-version.c (check_version): Likewise.
56847         * lib/javacomp.c (compile_java_class): Likewise.
56848
56849 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56850
56851         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
56852         for the benefit of people using Autoconf 2.60.  If you want to
56853         support older Autoconf versions you can copy m4/onceonly_2_57.m4
56854         (or m4/onceonly.m4, if pre-2.57) manually.
56855
56856 2006-07-08  Jim Meyering  <jim@meyering.net>
56857
56858         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
56859         comment.
56860         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
56861         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
56862         comment.
56863
56864 2006-07-08  Jim Meyering  <jim@meyering.net>
56865
56866         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
56867
56868 2006-07-07  Simon Josefsson  <jas@extundo.com>
56869
56870         * tests/test-crc.c: Change expected crc value, the test vector
56871         were probably computed using the old broken crc.c?
56872
56873 2006-07-06  Simon Josefsson  <jas@extundo.com>
56874
56875         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
56876         now the canonical place for the M4 file).
56877
56878         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
56879         from the sys_socket dependency now.
56880
56881         * modules/inet_pton (Files): Ditto.
56882
56883         * modules/inet_ntop (Files): Ditto.
56884
56885 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56886
56887         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
56888         not gl_PREREQ_GETUSERSHELL.
56889
56890 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56891
56892         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
56893         with only one argument, for Autoconf 2.60.
56894         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
56895         expand to nothing, so add a shell command to avoid syntax error.
56896         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56897
56898 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56899
56900         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
56901
56902 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
56905         no longer needed.  Check for isblank decl.
56906         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
56907         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
56908         of existence.
56909
56910 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         * lib/getloadavg.c: Use __VMS, not VMS.
56913         * lib/getopt.c: Likewise.
56914         * lib/getpagesize.h: Likewise.
56915         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
56916         and probably does not work.
56917
56918 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56919
56920         * lib/.cppi-disable: Add wcwidth.
56921         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
56922         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
56923         (ISGRAPH): Remove.  All uses changed to isgraph.
56924         (FOLD) [!defined _LIBC]: Remove special case.
56925         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
56926         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
56927         HAVE_ISBLANK.
56928         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
56929         case.
56930
56931 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56932
56933         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
56934         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
56935         brackets.  Other minor changes to suppress some compiler
56936         warnings.
56937
56938 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56939         and Paul Eggert  <eggert@cs.ucla.edu>
56940
56941         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
56942         of invoking obsolescent AC_HEADER_DIRENT macro.
56943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56944         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
56945         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56946         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56947         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
56948         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56949         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
56950         * m4/readdir.m4: Remove; no longer needed.
56951
56952 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56953         and Paul Eggert  <eggert@cs.ucla.edu>
56954
56955         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
56956         Don't worry about this obsolete case any more.
56957         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
56958         directories.
56959         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
56960         worry about this obsolete case any more.
56961         * lib/fts.c: Likewise.
56962         * lib/getcwd.c: Likewise.
56963         * lib/glob.h: Likewise.
56964         * lib/savedir.c: Likewise.
56965
56966 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56967
56968         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
56969         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
56970         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
56971         needed.
56972         All uses removed.
56973         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56974         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56975         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
56976         needed.
56977         * m4/getdate.m4 (gl_GETDATE): Likewise.
56978         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56979         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56980         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56981         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56982         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56983         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56984         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
56985         needed.
56986
56987 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56988
56989         * lib/memcasecmp.c: Include <limits.h>.
56990         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
56991         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
56992         Don't assume isdigit succeeds only on '0' through '9'.
56993
56994 2006-07-05  Eric Blake  <ebb9@byu.net>
56995
56996         * modules/getaddrinfo (Depends-on): Add snprintf.
56997
56998 2006-07-05  Eric Blake  <ebb9@byu.net>
56999
57000         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
57001         to avoid 'header present but could not be compiled' on cygwin.
57002
57003 2006-07-05  Eric Blake  <ebb9@byu.net>
57004
57005         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
57006         missing from netdb.h.
57007         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
57008
57009 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57010
57011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
57012         no longer needed.
57013         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
57014         * m4/getdate.m4 (gl_GETDATE): Likewise.
57015         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
57016         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
57017         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57018         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57019         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57020
57021 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57022
57023         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
57024         All uses of is_space replaced by isspace.
57025         * lib/exit.h: Don't talk about STDC_HEADERS.
57026         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
57027         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
57028         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
57029         replaced by isprint etc.
57030         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
57031         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57032         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
57033         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
57034         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
57035         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57036
57037 2006-07-05  Bruno Haible  <bruno@clisp.org>
57038
57039         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
57040         the function exists, before testing against AIX.
57041         Reported by Martin Lambers <marlam@marlam.de>.
57042
57043 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57044
57045         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
57046         From Mark D. Baushke.
57047
57048 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57049
57050         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
57051         to the absolute name, not just one, to bypass Sun C 5.8's
57052         "warning: #include of /usr/include/... may be non-portable".
57053
57054 2006-07-04  Eric Blake  <ebb9@byu.net>
57055
57056         * modules/dirname-tests: New test module.
57057         * tests/test-dirname.c: New file, replacing dirname.c
57058         TEST_DIRNAME section that was recently deleted.
57059
57060 2006-07-04  Bruno Haible  <bruno@clisp.org>
57061
57062         Assume ANSI C header files and <ctype.h> functions.
57063         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
57064         (mbsnwidth): Use isprint, iscntrl instead.
57065
57066 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         Merge from coreutils.
57069         * MODULES.html.sh: Add xstrtold.
57070         * modules/xstrtold: New file.
57071         * modules/cycle-check (Files): Add lib/same-inode.h.
57072         * modules/dirname (Files): Add m4/double-slash-root.m4.
57073         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
57074         * modules/mkdir-p (Files): Add lib/same-inode.h.
57075         * modules/same (Files): Add lib/same-inode.h.
57076
57077 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57078
57079         * m4/absolute-header.m4: Renamed from full-header-path.m4.
57080         This is to keep the terminology clean; POSIX talks about
57081         "absolute pathnames", not "full pathnames", but the GNU
57082         Coding Standards say to use "path" for something else;
57083         so use "absolute" to keep both sides happy.
57084         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
57085         Set gl_absolute_header, not gl_full_header_path.
57086         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
57087         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
57088         All uses changed.
57089
57090         Merge from coreutils.
57091
57092         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57093
57094         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
57095         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
57096         want to require the building of c-strtod.o.
57097         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
57098         needs -lm directly.
57099         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
57100
57101         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57102
57103         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
57104         --as-needed option if available.  Problem reported by Albert Chin in
57105         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
57106         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
57107         cc merely issues a bunch of annoying warnings for --as-needed
57108         (this problem was reported by Bob Proulx).  Also, try linking with
57109         -lm to detect a bug in binutils 2.16 (this problem was reported
57110         by Ralf Wildenhues).
57111
57112         2006-06-18  Jim Meyering  <jim@meyering.net>
57113
57114         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
57115         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
57116         macro.
57117         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
57118         also check for glibc-2.4's abort-inducing bug.
57119
57120         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
57121         Low-probability clean-up should be to use rmdir to get rid of
57122         the just-created directory, not unlink.
57123
57124         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
57125         configure fail, and request a bug report to inform us about it.
57126         Add a comment that, barring reports to the contrary, in 2007 we'll
57127         assume ftruncate is universally available.
57128
57129         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57130
57131         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
57132
57133         2006-03-12  Jim Meyering  <jim@meyering.net>
57134
57135         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
57136         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
57137         * m4/same.m4 (gl_SAME): Likewise.
57138         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
57139
57140         2006-03-11  Eric Blake  <ebb9@byu.net>
57141
57142         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
57143         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
57144         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
57145         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
57146
57147 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57148
57149         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
57150         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
57151         reported by Mark D. Baushke, one in
57152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
57153
57154         Merge from coreutils.
57155
57156         * lib/.cppi-disable: Add stdint_.h.
57157         * lib/.cvsignore: Add stdint.h.
57158
57159         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57160
57161         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
57162         both double and long double versions.
57163         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
57164         * lib/xstrtold.c: New file.
57165         * lib/xstrtod.h (xstrtold): New decl.
57166
57167         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57168
57169         * lib/filemode.c (setst): Remove.
57170         (strmode): Rewrite to avoid setst.  This makes the code shorter,
57171         (arguably) clearer, and the generated code is a bit smaller on my
57172         Debian GNU/Linux stable x86 host.
57173
57174         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57175
57176         * lib/filemode.c: Include "filemode.h" first, to test the interface.
57177         Assume that filemode.h includes sys/types.h and sys/stat.h.
57178         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
57179         (ftypelet): Reorder to put common cases first, for efficiency.
57180         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
57181         to do 'M'.
57182         (strmode): Renamed from mode_string, and now stores 12 bytes instead
57183         of 10, for compatibility with FreeBSD.  All callers changed.
57184         (filemodestring): Now stores 12 bytes instead of 10, and sets file
57185         types that can't be deduced solely from st_mode.  First arg is now a
57186         const pointer.
57187         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
57188         (strmode): Renamed from mode_string.
57189         (filemodestring): New decl.
57190         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
57191         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
57192         needed.
57193         (S_ISPORT, S_ISWHT): New macros, if not already defined.
57194
57195         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57196
57197         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
57198         fsusage.h now does that.  Include fsusage.h first, to test interface.
57199         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
57200         at most one method (the old code could have generated decls that
57201         didn't conform to C89, not that this was ever exercised).
57202         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
57203
57204         2006-03-19  Jim Meyering  <jim@meyering.net>
57205
57206         Work even in a chroot where d_ino values for entries in "/"
57207         don't match the stat.st_ino values for the same names.
57208         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
57209         number, iterate through all entries again, using lstat instead.
57210         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
57211         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
57212
57213         * lib/getcwd.c (__getcwd): Clarify a comment.
57214         Use memcpy in place of a call to strcpy.
57215
57216         2006-03-12  Jim Meyering  <jim@meyering.net>
57217
57218         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
57219         matches that of the current directory (which we're about to chdir ".."
57220         out of), then save the dev-ino of the parent, instead.
57221
57222         * lib/same-inode.h (SAME_INODE): New file/macro.
57223         * lib/chdir-safer.c (SAME_INODE): Remove definition.
57224         Include "same-inode.h", instead.
57225         * lib/same.c: Likewise.
57226         * lib/cycle-check.h: Include "same-inode.h".
57227         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
57228         * lib/cycle-check.c (SAME_INODE): Remove definition.
57229         * lib/root-dev-ino.h: Include "same-inode.h".
57230
57231         2006-03-11  Eric Blake  <ebb9@byu.net>
57232
57233         * lib/same.c (same_name): s/base_name/last_component/
57234         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
57235         * lib/filenamecat.c (file_name_concat): Likewise.
57236
57237         2006-03-11  Eric Blake  <ebb9@byu.net>,
57238                     Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
57241         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
57242         drive prefix.
57243         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
57244         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
57245         (last_component): New method.
57246         * lib/dirname.c (dir_len): Determine when drive letters need a
57247         subsequent slash.  Preserve // when it is special.
57248         (dir_name): Don't append dot when drive letter is absolute.
57249         [TEST_DIRNAME]: Move into a full-blown gnulib test.
57250         * lib/basename.c (base_name): New semantics - malloc the result.
57251         Preserve // when it is special.  Preserve relative files that look
57252         like drive letters.
57253         (base_len): Preserve // when it is special.
57254         (last_component): New method, similar to old base_name semantics.
57255         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
57256         base_name.  Strip redundant slashes from ///.
57257
57258 2006-07-03  Jim Meyering  <jim@meyering.net>
57259
57260         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
57261         macro is used before the first cycle_check call.
57262
57263 2006-07-03  Eric Blake  <ebb9@byu.net>
57264
57265         * modules/dirname (Depends-on): Add xstrndup.
57266
57267 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
57270         test cases, so that config.log is a bit easier to follow.
57271
57272 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57273
57274         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
57275         both are 64 bits, since this seems to be the tradition, and this
57276         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
57277         we ever run into a host that prefers long long to long in this
57278         case, we'll need another configure-time test.  Problem reported by
57279         Jim Meyering.
57280
57281 2006-07-02  Eric Blake  <ebb9@byu.net>
57282
57283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
57284
57285 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         * modules/inttypes (Depends-on): No longer depends on stdint.
57288         * modules/stdint (Description): Say more about assumptions.
57289         Say that the fast types might differ.  Say macros are used.
57290         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
57291         (Makefile.am): Revise list of substituted symbols to match
57292         new stdint.m4.
57293         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
57294         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
57295         * tests/test-stdint.c (verify_same_types)
57296         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
57297         the code conforms to C99/C89.
57298         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
57299         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
57300
57301 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57302
57303         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
57304         but fix a bug, by requiring at least 64 bits.
57305         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57306         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
57307         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
57308         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
57309
57310         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
57311         changes.  Make 2.59 a prerequisite.  Check and substitute for
57312         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
57313         inttypes.h.  Do not use special include files; just use the
57314         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
57315         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
57316         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
57317         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
57318         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
57319         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
57320         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
57321         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
57322         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
57323         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
57324         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
57325         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
57326         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
57327         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
57328         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
57329         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
57330         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
57331         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
57332         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
57333         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
57334         WINT_MAX.  Check for C99 conformance more strictly, by detecting
57335         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
57336         not check for things that C99 does not require, e.g., int8_t.  If
57337         a test isn't needed unless <stdint.h> isn't working, and is
57338         unlikely to be needed for any other reason, then don't do it
57339         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
57340         size_t, since we assume C89 freestanding at least.  Do not check
57341         for sig_atomic_t, wchar_t, or wint_t, since the code now does
57342         the right thing even if the types are not defined.  Instead use:
57343         (gl_STDINT_TYPE_PROPERTIES): New macro.
57344         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
57345         testing whether <sys/types.h> clashes, as Autoconf does this for
57346         us now.  All uses removed.
57347         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
57348         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
57349         (gl_CHECK_TYPE_SAME):
57350         Remove; no longer needed.
57351         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
57352         exists, since we'll return 0 anyway in that case.
57353         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
57354
57355 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57356
57357         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
57358         possible collision with system files.
57359         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
57360         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
57361         WCHAR_MIN and WCHAR_MAX in this case.
57362         (<stddef.h>): Do not include; no longer needed.
57363         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
57364         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
57365         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
57366         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
57367         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
57368         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
57369         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
57370         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
57371         !defined(__c99))]: Include in this case too, since it's harmless
57372         now.
57373         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
57374         dangerous to do so.
57375         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
57376         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
57377         (_STDINT_MIN, _STDINT_MAX): New macros.
57378         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
57379         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
57380         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
57381         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
57382         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
57383         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
57384         macros, not typedefs; this simplifies things quite a bit.
57385         Use long int for all types narrower than int64_t.
57386         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
57387         Define in terms of long long int or int64_t or long int,
57388         not int64_t or int32_t.  This saves some compile-time testing.
57389         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
57390         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
57391         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
57392         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
57393         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
57394         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
57395         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
57396         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
57397         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
57398         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
57399         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57400         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57401         undef any previous version and define our own version, for
57402         simplicity and consistency with the new macros for types.
57403         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57404         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57405         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
57406         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
57407         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
57408         @WINT_T_SUFFIX@ to keep things simple here.
57409         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
57410         Simplify by assuming typical 8/16/32/64 host, since we're
57411         already doing that elsewhere anyway.
57412         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
57413         and assume long long int is 64 bits if available.  This
57414         speeds up 'configure'.
57415
57416 2006-07-01  Eric Blake  <ebb9@byu.net>
57417
57418         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
57419         Reported by Andreas Buening.
57420
57421 2006-07-01  Eric Blake  <ebb9@byu.net>
57422
57423         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
57424
57425 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57426
57427         * lib/getaddrinfo.c: fixed typo
57428
57429 2006-06-29  Jim Meyering  <jim@meyering.net>
57430
57431         * modules/strftime (Maintainer): Add my name, since with the
57432         FPRINTFTIME changes strftime.c has forked from glibc.
57433
57434 2006-06-29  Eric Blake  <ebb9@byu.net>
57435
57436         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
57437
57438 2006-06-29  Eric Blake  <ebb9@byu.net>
57439
57440         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
57441
57442 2006-06-29  Eric Blake  <ebb9@byu.net>
57443
57444         * lib/stat_.h: New file.
57445
57446 2006-06-29  Eric Blake  <ebb9@byu.net>
57447
57448         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
57449         unused static function.
57450
57451 2006-06-29  Eric Blake  <ebb9@byu.net>
57452
57453         * doc/functions.texi (Function Portability): Document missing lstat
57454         on mingw.
57455
57456 2006-06-29  Eric Blake  <ebb9@byu.net>
57457
57458         * MODULES.html.sh: Add sys_stat.
57459         * modules/sys_stat: New module.
57460         * modules/mkstemp (Depends-on): Add sys_stat.
57461
57462 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57463
57464         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
57465
57466 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57467
57468         * m4/c-bs-a.m4: Removed.
57469
57470 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57471
57472         * lib/strftime.c: Assume strftime() exists.
57473
57474 2006-06-29  Derek Price  <derek@ximbiot.com>
57475
57476         * modules/c-bs-a: Removed - \a is C89.
57477         * MODULES.html.sh: Remove c-bs-a.
57478
57479 2006-06-29  Bruno Haible  <bruno@clisp.org>
57480
57481         * modules/wcwidth (License): Change to LGPL.
57482
57483 2006-06-28  Simon Josefsson  <jas@extundo.com>
57484
57485         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
57486         on _WIN32.
57487
57488         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
57489         getnameinfo.
57490
57491 2006-06-28  Simon Josefsson  <jas@extundo.com>
57492
57493         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
57494
57495 2006-06-28  Simon Josefsson  <jas@extundo.com>
57496
57497         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
57498         functions there.  It will succeed on Windows XP, but on Windows
57499         2000 and (presumably) earlier, it will fail, and use the internal
57500         re-implementation.
57501         (use_win32_p): New function.
57502         (getaddrinfo): Use strtoul on servname, to support numeric ports.
57503         Support AI_NUMERICSERV to disable getservbyname.
57504         (getnameinfo): New function, only supports
57505         NI_NUMERICHOST|NI_NUMERICSERV for now.
57506
57507         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
57508         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
57509         getnameinfo.
57510
57511 2006-06-28  Eric Blake  <ebb9@byu.net>
57512
57513         * modules/wcwidth: New file.
57514         * modules/mbchar (Depends-on): Add wcwidth.
57515         * modules/mbswidth (Depends-on): Add wcwidth.
57516         * MODULES.html.sh: Add wcwidth.
57517
57518 2006-06-28  Eric Blake  <ebb9@byu.net>
57519
57520         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
57521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
57522
57523 2006-06-28  Eric Blake  <ebb9@byu.net>
57524
57525         * lib/xvasprintf.h: Fix comments.
57526
57527 2006-06-28  Eric Blake  <ebb9@byu.net>
57528
57529         * lib/mbchar.h (wcwidth): Include wcwidth.h.
57530         * lib/mbswidth.c (wcwidth): Move from here...
57531         * lib/wcwidth.h: ...to this new file.
57532
57533 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57534
57535         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
57536
57537         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
57538         it's obsolete.
57539         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
57540
57541 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57542
57543         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
57544         Autoconf 2.60 says this stuff was obsolete.
57545
57546 2006-06-28  Bruno Haible  <bruno@clisp.org>
57547
57548         * modules/wcwidth (Files): Add m4/wchar_t.m4.
57549
57550 2006-06-28  Bruno Haible  <bruno@clisp.org>
57551
57552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
57553         gt_TYPE_WCHAR_T.
57554
57555 2006-06-28  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
57558         declaration for wcwidth.
57559         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
57560
57561 2006-06-28  Bruno Haible  <bruno@clisp.org>
57562
57563         * lib/mkdtemp.c [MINGW]: Include <io.h>.
57564         (mkdir): Define using _mkdir.
57565
57566 2006-06-28  Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/getaddrinfo.h: Fix POSIX URL.
57569         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
57570         _WIN32.
57571         (use_win32_p): Make static.
57572         (getaddrinfo): Reject service name if it is empty or does not consist
57573         solely of decimal digits, or if its value is > 65535.
57574         (getnameinfo): Remove useless casts.
57575
57576 2006-06-27  Simon Josefsson  <jas@extundo.com>
57577
57578         * modules/sys_select: New file, suggested by Bruno Haible, Paul
57579         Eggert and Martin Lambers.
57580
57581 2006-06-27  Simon Josefsson  <jas@extundo.com>
57582
57583         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
57584         Eggert and Martin Lambers.
57585
57586 2006-06-27  Bruno Haible  <bruno@clisp.org>
57587
57588         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
57589         result to 0, not to empty.
57590         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
57591
57592 2006-06-27  Bruno Haible  <bruno@clisp.org>
57593
57594         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
57595
57596 2006-06-26  Simon Josefsson  <jas@extundo.com>
57597
57598         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
57599         present.
57600
57601 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
57602
57603         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
57604         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
57605         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
57606
57607 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
57608
57609         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
57610
57611 2006-06-26  Bruno Haible  <bruno@clisp.org>
57612
57613         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
57614
57615 2006-06-26  Bruno Haible  <bruno@clisp.org>
57616
57617         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
57618
57619 2006-06-26  Bruno Haible  <bruno@clisp.org>
57620
57621         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
57622         SGI C compiler in pre-C99 mode.
57623         Suggested by Mark D. Baushke and Larry Jones.
57624
57625 2006-06-26  Bruno Haible  <bruno@clisp.org>
57626
57627         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
57628         WCHAR_MAX.
57629         Reported by Mark D. Baushke and Larry Jones.
57630
57631 2006-06-26  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
57634         in pre-C99 mode.
57635         Suggested by Mark D. Baushke and Larry Jones.
57636
57637 2006-06-23  Simon Josefsson  <jas@extundo.com>
57638             Bruno Haible  <bruno@clisp.org>
57639
57640         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
57641         Emit mostlyclean-local rule.
57642         (func_emit_tests_Makefile_am): Likewise.
57643         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
57644
57645 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
57646
57647         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
57648
57649 2006-06-23  Bruno Haible  <bruno@clisp.org>
57650
57651         * tests/test-stdint.c: Update to match ISO C 99 Technical
57652         Corrigendum 1.
57653
57654 2006-06-23  Bruno Haible  <bruno@clisp.org>
57655
57656         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
57657
57658 2006-06-23  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/stdint_.h: Treat IRIX like OpenBSD.
57661
57662 2006-06-23  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
57665         ISO C 99 Technical Corrigendum 1.
57666
57667 2006-06-22  Simon Josefsson  <jas@extundo.com>
57668
57669         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
57670         MinGW.
57671
57672 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
57675         needed.  Some compiler complained about some of them.  Problem reported
57676         by Larry Jones in
57677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
57678
57679 2006-06-21  Simon Josefsson  <jas@extundo.com>
57680
57681         * tests/test-getaddrinfo.c: New file.
57682
57683         * modules/getaddrinfo-tests: New file.
57684
57685         * MODULES.html.sh: Add inet_pton.
57686
57687         * modules/inet_pton: New file.
57688
57689 2006-06-21  Simon Josefsson  <jas@extundo.com>
57690
57691         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
57692         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
57693         of using the (limited) gnulib implementation on Windows XP.
57694
57695         * m4/inet_pton.m4: New file.
57696
57697 2006-06-21  Simon Josefsson  <jas@extundo.com>
57698
57699         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
57700         variable.
57701
57702         * lib/socket_.h: Don't define WINVER.
57703
57704         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
57705         slightly modified to work in gnulib.
57706
57707 2006-06-21  Simon Josefsson  <jas@extundo.com>
57708
57709         * doc/gnulib.texi (Windows sockets): Add.
57710
57711 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         * lib/read-file.c (fread_file): Start with buffer allocation of
57714         0 bytes rather than 1 byte; this simplifies the code.
57715         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
57716         code to free buffer and save/restore errno.
57717         (internal_read_file): Remove unused local.
57718
57719 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57720
57721         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
57722         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
57723         Problem reported by Denis Excoffier in
57724         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
57725
57726 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57727
57728         * modules/sys_socket, modules/socklen: Include sys/types since
57729         FreeBSD 4.x's sys/socket.h needs it.
57730
57731 2006-06-19  Simon Josefsson  <jas@extundo.com>
57732
57733         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
57734
57735 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
57738
57739 2006-06-19  Bruno Haible  <bruno@clisp.org>
57740
57741         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
57742         and FULL_PATH_INTTYPES_H in angle brackets.
57743         Reported by Mark D. Baushke <mdb@gnu.org>.
57744
57745 2006-06-17  Eric Blake  <ebb9@byu.net>
57746
57747         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
57748         errno.
57749
57750 2006-06-17  Bruno Haible  <bruno@clisp.org>
57751
57752         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
57753         <sys/inttypes.h>.
57754
57755 2006-06-17  Bruno Haible  <bruno@clisp.org>
57756
57757         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
57758         whether errno is declared. Assume <errno.h> declares errno.
57759
57760 2006-06-17  Bruno Haible  <bruno@clisp.org>
57761
57762         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
57763
57764 2006-06-17  Bruno Haible  <bruno@clisp.org>
57765
57766         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
57767         problem on Solaris 2.5.1.
57768
57769 2006-06-16  Eric Blake  <ebb9@byu.net>
57770
57771         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
57772         * lib/unicodeio.c [!defined errno]: Likewise.
57773         * lib/strtol.c [!defined errno]: Likewise.
57774         * lib/strtod.c [!defined errno]: Likewise.
57775
57776 2006-06-15  Eric Blake  <ebb9@byu.net>
57777
57778         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
57779
57780 2006-06-15  Eric Blake  <ebb9@byu.net>
57781
57782         * config/srclist.txt (ssize_t.m4): Lose sync.
57783
57784 2006-06-15  Bruno Haible  <bruno@clisp.org>
57785
57786         * modules/stdint (Files): Include m4/full-header-path.m4,
57787         m4/size_max.m4, m4/wchar_t.m4.
57788         (Makefile.am): Many more substitutions.
57789         * modules/stdint-tests: New file.
57790         * tests/test-stdint.c: New file.
57791
57792 2006-06-15  Bruno Haible  <bruno@clisp.org>
57793
57794         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
57795         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
57796         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
57797         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
57798         gl_CHECK_TYPE_SAME): New macros.
57799
57800 2006-06-15  Bruno Haible  <bruno@clisp.org>
57801
57802         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
57803
57804 2006-06-15  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/stdint_.h: Rewritten to be fully auto-configured.
57807         Fixes bug on HP-UX/IA64.
57808
57809 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
57810
57811         * lib/getdate.y (__attribute__): Don't define if already defined.
57812         Problem reported by Larry Jones.
57813         * lib/utimens.c (__attribute__): Likewise.
57814
57815 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
57816
57817         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
57818         reported by Andreas Schwab.
57819
57820 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57821             Bruno Haible  <bruno@clisp.org>
57822
57823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
57824         check for the declaration of strnlen and a run test that exposes the
57825         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
57826         rpl_strndup.
57827
57828 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57829             Bruno Haible  <bruno@clisp.org>
57830
57831         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
57832
57833 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57834
57835         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
57836         compile test, for Tru64 4.0D.
57837
57838 2006-05-28  Karl Berry  <karl@gnu.org>
57839
57840         * config/srclist.txt (printf-args.c): lose sync.
57841
57842 2006-05-26  Martin Lambers  <marlam@marlam.de>
57843
57844         * lib/getpass.c: Updates the test for the native W32 API, and adds
57845         missing includes, thus fixing compilation warnings.
57846
57847 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57848
57849         * lib/exclude.c (exclude_fnmatch): New function.
57850         (excluded_file_name): Call exclude_fnmatch.
57851         * lib/exclude.h (excluded_file_name): New prototype
57852
57853 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
57854
57855         * lib/tempname.c (small_open, large_open): New macros.
57856         (__open, __open64) [!_LIBC]: Remove.
57857         (__gen_tempname): Use small_open and large_open instead of __open
57858         and __open64.  This fixes a portability bug on HP-UX 11.11i
57859         reported by Simon Wing-Tang in
57860         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
57861
57862 2006-05-24  Bruno Haible  <bruno@clisp.org>
57863
57864         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
57865         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
57866         Reported by Thorsten Maerz <torte@netztorte.de> via
57867         Aaron Stone <aaron@serendipity.cx>.
57868
57869 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57870
57871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
57872         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
57873         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
57874         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
57875         not really conditional on the cache.
57876         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
57877
57878 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57879
57880         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
57881         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
57882         (my_usleep): Don't mishandle maximum value.
57883
57884 2006-05-19  Jim Meyering  <jim@meyering.net>
57885
57886         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
57887
57888 2006-05-17  Bruno Haible  <bruno@clisp.org>
57889
57890         Cygwin portability.
57891         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
57892
57893 2006-05-17  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/stdint_.h: Fix recognition of Cygwin.
57896
57897 2006-05-15  Bruno Haible  <bruno@clisp.org>
57898
57899         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
57900         on libtool patch by Ralf Wildenhues.
57901
57902 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
57905         test for C99 conformance; (bool) 0.5 is an integer constant
57906         expression, but (bool) -0.5 is not.  Problem reported by Fedor
57907         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
57908
57909 2006-05-11  Simon Josefsson  <jas@extundo.com>
57910
57911         * m4/xvasprintf.m4: Fix obvious typo.
57912
57913 2006-05-11  Jim Meyering  <jim@meyering.net>
57914
57915         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
57916         James Lemley.
57917
57918 2006-05-10  Simon Josefsson  <jas@extundo.com>
57919
57920         * lib/md4.c: Typo fix, update copyright years.
57921         (K1, K2): Don't use L because it turn computations into 64-bit on
57922         64-bit platforms.
57923
57924 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
57925
57926         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
57927         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
57928         unwanted sign propagation, e.g., on hosts with 64-bit int.
57929         There still are some problems with reeelly weird theoretical hosts
57930         (e.g., 33-bit int) but it's not worth worrying about now.
57931         * lib/sha1.c (rol): Likewise.
57932         (K1, K2, K3, K4): Remove unnecessary L suffix.
57933
57934 2006-05-10  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/des.c: Cast to avoid warnings.
57937
57938 2006-05-09  Bruno Haible  <bruno@clisp.org>
57939
57940         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
57941         (Depends-on): Depend also on xsize, stdarg.
57942         (configure.ac): Add gl_XVASPRINTF.
57943
57944 2006-05-09  Bruno Haible  <bruno@clisp.org>
57945
57946         * m4/xvasprintf.m4: New file.
57947
57948 2006-05-09  Bruno Haible  <bruno@clisp.org>
57949
57950         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
57951         (EOVERFLOW): Define fallback value.
57952         (xstrcat): New function.
57953         (xvasprintf): Recognize the special case of a string concatenation.
57954
57955 2006-05-08  Eric Blake  <ebb9@byu.net>
57956
57957         * gnulib-tool (func_version): Base copyright year on CVS date.
57958         (func_emit_copyright_notice): New function.
57959         (func_emit_lib_Makefile_am): Use it.
57960         (func_emit_tests_Makefile_am): Likewise.
57961         (func_import): Likewise.
57962
57963 2006-05-08  Bruno Haible  <bruno@clisp.org>
57964
57965         * modules/stdarg: New file.
57966         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
57967
57968 2006-05-08  Bruno Haible  <bruno@clisp.org>
57969
57970         * m4/stdarg.m4: New file, from GNU gettext.
57971
57972 2006-05-08  Bruno Haible  <bruno@clisp.org>
57973
57974         * config/srclist.txt (build-aux/config.rpath): different from latest
57975         release.
57976
57977 2006-05-08  Bruno Haible  <bruno@clisp.org>
57978
57979         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
57980
57981 2006-05-05  Jim Meyering  <jim@meyering.net>
57982
57983         * m4/warning.m4: New file, derived from bison's file by the same name.
57984
57985 2006-05-03  Bruno Haible  <bruno@clisp.org>
57986
57987         * lib/stdint_.h: Shorter URL.
57988         * lib/inttypes.h: Likewise.
57989
57990 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57991
57992         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
57993
57994 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57995
57996         * lib/verify.h: Document the internals better.  Most of this change
57997         was written by Bruno Haible.
57998
57999 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58000
58001         * doc/verify.texi: New file, partly based on a proposal by
58002         Bruno Haible.
58003
58004 2006-05-02  Bruno Haible  <bruno@clisp.org>
58005
58006         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
58007         test from here...
58008         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
58009
58010 2006-04-29  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
58013         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
58014
58015 2006-04-29  Bruno Haible  <bruno@clisp.org>
58016
58017         * gnulib-tool: Make --update option actually work.
58018
58019 2006-04-29  Bruno Haible  <bruno@clisp.org>
58020
58021         * doc/gcd.texi: New file.
58022         * doc/gnulib.texi: Include it.
58023
58024 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
58025
58026         * lib/getdate.y (get_date): When adding relative date, start with the
58027         initial time, not with the result of the first mktime call.
58028
58029 2006-04-25  Bruno Haible  <bruno@clisp.org>
58030
58031         * gnulib-tool (func_import): Output the include directives in three
58032         blocks, sorted separately.
58033         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58034
58035 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58036
58037         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
58038         to define main with arguments, for C++.  Reported by Eric Blake.
58039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
58040         Prefer 'int main ()' to 'int main (void)', for C++.
58041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58042         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
58043         for 'main', for C99 and C++.
58044
58045 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
58048         Don't assume that exit status -1 is valid.
58049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58050         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
58052         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
58053         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
58054         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
58055         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
58056         functions can be used without declaring them, or that you can
58057         exit with status -1.
58058         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
58059
58060 2006-04-24  Karl Berry  <karl@gnu.org>
58061
58062         * config/srclist.txt (longdouble.m4): sync lost.
58063
58064 2006-04-24  Eric Blake  <ebb9@byu.net>
58065
58066         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
58067
58068 2006-04-24  Bruno Haible  <bruno@clisp.org>
58069
58070         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
58071         poll() implementation in AIX.
58072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58073
58074 2006-04-24  Bruno Haible  <bruno@clisp.org>
58075
58076         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
58077         assigned exactly once.
58078
58079 2006-04-23  Claudio Fontana  <claudio@gnu.org>
58080             Bruno Haible  <bruno@clisp.org>
58081
58082         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
58083         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
58084         for AM_CPPFLAGS.
58085
58086 2006-04-23  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/copy-file: Depend on unistd.
58089         * modules/execute: Likewise.
58090         * modules/fatal-signal: Likewise.
58091         * modules/findprog: Likewise.
58092         * modules/mkdtemp : Likewise.
58093         * modules/pipe: Likewise.
58094         * modules/wait-process: Likewise.
58095
58096 2006-04-23  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
58099         condition was already detected.
58100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58101
58102 2006-04-23  Bruno Haible  <bruno@clisp.org>
58103
58104         * lib/copy-file.c: Include <unistd.h> unconditionally.
58105         * lib/execute.c: Likewise.
58106         * lib/fatal-signal.c: Likewise.
58107         * lib/findprog.c: Likewise.
58108         * lib/mkdtemp.c: Likewise.
58109         * lib/pipe.h: Likewise.
58110         * lib/pipe.c: Likewise.
58111         * lib/wait-process.h: Likewise.
58112
58113 2006-04-23  Bruno Haible  <bruno@clisp.org>
58114
58115         * gnulib-tool (func_usage): Fix --import description. Document
58116         --update.
58117         (func_import): Create temporary file in a temporary directory, if
58118         --dry-run is specified. Silence errors from 'grep' when there are no
58119         m4 files in $m4dir.
58120         (func_create_testdir): Silence errors from 'grep' when there are no
58121         m4 files in $m4dir.
58122         Reported by Karl Berry <karl@freefriends.org>.
58123
58124 2006-04-20  Bruno Haible  <bruno@clisp.org>
58125
58126         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
58127         one argument, so that the code will be portable to Autoconf 2.60.
58128         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
58129         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58130         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
58131
58132 2006-04-19  Derek Price  <derek@ximbiot.com>
58133             Eric Blake  <ebb9@byu.net>
58134
58135         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
58136         rather than "/full/path.h".  Update comment to match.  Shorten &
58137         generalize m4_translit call via AS_TR_CPP.
58138
58139 2006-04-19  Derek Price  <derek@ximbiot.com>
58140             Eric Blake  <ebb9@byu.net>
58141
58142         * lib/inttypes.h: Correct grammar in comment.
58143
58144 2006-04-18  Derek Price  <derek@ximbiot.com>
58145             Paul Eggert  <eggert@cs.ucla.edu>
58146
58147         * modules/inttypes: New file.
58148         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
58149
58150 2006-04-18  Derek Price  <derek@ximbiot.com>
58151             Paul Eggert  <eggert@cs.ucla.edu>
58152
58153         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
58154         New files.
58155
58156 2006-04-18  Derek Price  <derek@ximbiot.com>
58157             Paul Eggert  <eggert@cs.ucla.edu>
58158
58159         * lib/inttypes.h: New file.
58160         * lib/strtoimax.c: Assume <inttypes.h>.
58161
58162 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
58163
58164         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
58165         isn't mounted.  Problem reported by Kir Kolyshkin.
58166
58167 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
58170         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
58171         Derek R. Price.
58172         * lib/regex.h (RE_DUP_MAX): Update comment to match current
58173         implementation.
58174
58175 2006-04-12  Eric Blake  <ebb9@byu.net>
58176
58177         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
58178         is now done automatically by the corresponding Autoconf macro.
58179
58180 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
58181
58182         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
58183         time_r.h.
58184
58185 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58186
58187         Merge regex changes from libc, removing some of our
58188         POSIX-conformance changes that were rejected and redoing them in a
58189         less-intrusive way.
58190
58191         * lib/regcomp.c (re_compile_internal, init_dfa):
58192         Length arg is now size_t, not Idx.  All uses changed.
58193         (peek_token): Forward decl now says internal_function.
58194         (__re_error_msgid, __re_error_msgid_idx):
58195         Now static rather than extern with attribute_hidden.
58196         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
58197         For some reason libc prefers K&R style defns for external functions.
58198         (regerror) [!defined _LIBC]: Likewise.
58199         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
58200         (seek_collating_symbol_entry, lookup_collation_sequence_value):
58201         (build_range_exp, build_collating_symbol):
58202         Use K&R-style defn.
58203         (re_compile_fastmap): Use '\0' to memset, not 0.
58204         (utf8_sb_map): Make the calculations more obvious.
58205         (init_dfa, parse_bracket_exp, build_charclass_op):
58206         Call calloc and cast result, as glibc does.
58207         (init_word_char, fetch_token, peek_token, peek_token_bracket):
58208         (build_range_exp, build_collating_symbol):
58209         Now internal functions.
58210
58211         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
58212
58213         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
58214         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
58215         Don't depend on VMS; depend on __VMS instead, for POSIX
58216         namespace cleanness.
58217         (regoff_t): Define to ssize_t, not long int.
58218
58219         Remove the REG_ macros named below.  Instead, make the old names
58220         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
58221         __USE_GNU_REGEX.
58222         (REG_BACKSLASH_ESCAPE_IN_LISTS):
58223         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
58224         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
58225         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
58226         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
58227         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
58228         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
58229         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
58230         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
58231         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
58232         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
58233         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
58234         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
58235         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
58236         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
58237         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
58238         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
58239         (REG_NREGS):
58240         Remove.  All uses replaced by the old RE_* names.
58241         (RE_BACKSLASH_ESCAPE_IN_LISTS):
58242         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
58243         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
58244         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
58245         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
58246         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
58247         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
58248         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
58249         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
58250         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
58251         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
58252         Don't bother having these macros be independent of each others'
58253         values, since they no longer exist in the POSIX name space.
58254
58255         Rename the following member names back to their old names,
58256         unless !__USE_GNU_REGEX.  All uses changed back.
58257         (buffer): Renamed from re_buffer.
58258         (allocated): Renamed from re_allocated.
58259         (used): Renamed from re_used.
58260         (syntax): Renamed from re_syntax.
58261         (fastmap): Renamed from re_fastmap.
58262         (translate): Renamed from re_translate.
58263         (can_be_null): Renamed from re_can_be_null.
58264         (regs_allocated): Renamed from re_regs_allocated.
58265         (fastmap_accurate): Renamed from re_fastmap_accurate.
58266         (no_sub): Renamed from re_no_sub.
58267         (not_bol): Renamed from re_not_bol.
58268         (not_eol): Renamed from re_not_eol.
58269         (newline_anchor): Renamed from re_newline_anchor.
58270         (num_regs): Renamed from rm_num_regs.
58271         (start): Renamed from rm_start.
58272         (end): Renamed from rm_end.
58273
58274         (free_state): Move up a bit.
58275
58276         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
58277         #define to be empty.
58278         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
58279         when that is what is intended.
58280         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
58281         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
58282         (MAX): New macro.
58283         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
58284         All uses changed back to re_malloc, etc.  It's now the caller's
58285         responsibility to check for overflow; all callers changed.
58286         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
58287         (re_x2nrealloc): Remove.
58288         (free_state): Remove decl.
58289
58290         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
58291         (re_set_registers, re_exec):
58292         Use K&R-style defn.
58293
58294         2006-01-31  Roland McGrath  <roland@redhat.com>
58295
58296         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
58297         Reported by Mike Frysinger <vapier@gentoo.org>.
58298
58299         2006-01-15  Andreas Jaeger  <aj@suse.de>
58300
58301         [BZ #1950]
58302         * lib/regex_internal.c (re_string_reconstruct): Adjust for
58303         build_wcs_upper_buffer change.
58304         (build_wcs_upper_buffer): Change return type.
58305
58306         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
58307
58308         * lib/regex_internal.h: Include <stdint.h> if available.
58309
58310         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
58311
58312         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
58313
58314         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58315
58316         * lib/regcomp.c: Adjust for changed secondary hash function.
58317
58318         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
58319
58320         * lib/regex.h: Pretty printing.
58321         Clean up namespace a bit.
58322
58323         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
58324
58325         * lib/regexec.c (update_cur_sifted_state, check_arrival,
58326         check_arrival_add_next_nodes): Avoid using uninitialized variable.
58327
58328         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58329                     Ulrich Drepper  <drepper@redhat.com>
58330
58331         [BZ #1302]
58332         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
58333         changed.
58334         (bitset_word_t): Renamed from bitset_word.  All uses changed.
58335
58336         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
58337
58338         [BZ #281]
58339         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
58340         * lib/regcomp.c: Remove unnecessary uses of
58341         unsigned RE_TRANSLATE_TYPE.
58342         * lib/regex_internal.h: Likewise.
58343         * lib/regex_internal.c: Likewise.
58344         * lib/regexec.c: Likewise.
58345         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
58346
58347         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
58348
58349         * lib/regexec.c (find_recover_state): Remove unnecessary
58350         initialization.
58351         (transit_state_bkref): Make DFA a const pointer.
58352         (get_subexp): Likewise.
58353         (check_arrival): Likewise.
58354         (update_cur_sifted_state): Likewise.
58355         (re_search_internal): Likewise.
58356         (prune_impossible_nodes): Likewise.
58357         (acquire_init_state_context): Likewise.
58358         (proceed_next_node): Likewise.
58359         (set_regs): Likewise.
58360         (free_fail_stack_return): Likewise.
58361         (check_arrival_expand_ecl): Mark DFA parameter as const.
58362         (check_arrival_expand_ecl_sub): Likewise.
58363         (check_subexp_limits): Likewise.
58364         (sub_epsilon_src_nodes):  Likewise.
58365         (add_epsilon_src_nodes):  Likewise.
58366         (merge_state_array): Likewise.
58367         (update_regs): Likewise.
58368         (build_trtable): Likewise.
58369         (sift_states_backward): Mark MCTX parameter as const.
58370         (build_sifted_states): Likewise.
58371         (update_cur_sifted_state): Likewise.
58372         (sift_states_mkref): Likewise.
58373         (check_arrival_expand_ecl): Mark eclosure as const.
58374         (check_dst_limits_calc_pos_1): Likewise.
58375         * lib/regex_internal.h (re_match_context_t): Make dfa a const
58376         pointer.
58377
58378         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
58379
58380         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
58381         (transit_state_sb): Likewise.
58382         (transit_state_mb): Likewise.
58383         (sift_states_iter_mb): Likewise.
58384         (check_arrival_add_next_nodes): Likewise.
58385         (check_node_accept_bytes): Change first parameter to pointer-to-const.
58386         [_LIBC] (re_search_2_stub): Use mempcpy.
58387
58388         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
58389         mbrtowc for very simple UTF-8 case.
58390
58391         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
58392         a pointer-to-const.
58393         (re_acquire_state_context): Likewise.
58394         * lib/regex_internal.h: Adjust prototypes.
58395
58396         * lib/regex.c: Prevent using C++ compilers.
58397
58398         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
58399         (re_acquire_state_context): Likewise.
58400
58401 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58402
58403         * modules/regex (Depends-on): Add ssize_t.
58404
58405 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58406
58407         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
58408         translation table.
58409
58410 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
58413
58414 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
58415             Bruno Haible  <bruno@clisp.org>
58416
58417         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
58418         <sys/types.h> and <inttypes.h>.
58419
58420 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58421
58422         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
58423         `__error_t_defined', so argp.h will not typedef the former.
58424
58425 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
58426
58427         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
58428         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
58429         glibc names.  Even if glibc is changed to conform to POSIX, the
58430         traditional names will be available anyway, since regex depends on
58431         the extensions module.  Also, fix a longstanding typo in the
58432         implementation of Spencer ERE test #75 from grep 2.3.  Problems
58433         reported by Emanuele Giaquinta.  Also, change sense of cached
58434         variable, so that the message makes sense.
58435
58436 2006-03-24  Simon Josefsson  <jas@extundo.com>
58437
58438         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
58439         including some doc fixes.
58440         (base64_encode_alloc): Fix +1 bug on allocation failures.
58441
58442 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58443
58444         * lib/base64.c (base64_encode): Do not read past end of array with
58445         unsanitized input on systems with CHAR_BIT > 8.
58446
58447 2006-03-24  Eric Blake  <ebb9@byu.net>
58448
58449         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
58450
58451 2006-03-22  Karl Berry  <karl@gnu.org>
58452
58453         * config/srclist.txt (*setenv.[ch]): get from coreutils.
58454         * config/srclistvars.sh (COREUTILS): new var.
58455
58456 2006-03-17  Jim Meyering  <jim@meyering.net>
58457
58458         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
58459         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
58460
58461 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58462
58463         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
58464         no longer needs it.  Instead, check that regoff_t is as least
58465         as wide as ptrdiff_t.
58466
58467         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
58468         so that our regex.h stays compatible with the installed regex.
58469         This is helpful for installers who configure --without-included-regex.
58470         Problem reported by Emanuele Giaquinta.
58471
58472 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58473
58474         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
58475         Typedef to long int, not to off_, as POSIX will likely change
58476         in that direction.
58477
58478 2006-03-15  Eric Blake  <ebb9@byu.net>
58479
58480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
58481
58482 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58483
58484         * lib/argp-help.c (validate_uparams): Fix typo
58485         * lib/argp-parse.c (argp_default_options): Consistently begin help
58486         messages with a lowercase letter.
58487
58488 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
58489
58490         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
58491         overrun buffers and shouldn't be used (much as gets shouldn't be
58492         used).
58493         * lib/time_r.c (asctime_r, ctime_r): Likewise.
58494
58495 2006-03-08  Simon Josefsson  <jas@extundo.com>
58496
58497         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
58498         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58499
58500 2006-03-08  Simon Josefsson  <jas@extundo.com>
58501
58502         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
58503         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58504
58505 2006-03-08  Simon Josefsson  <jas@extundo.com>
58506
58507         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
58508         signal that configure disabled the device.
58509
58510 2006-03-08  Simon Josefsson  <jas@extundo.com>
58511
58512         * build-aux/maint.mk: Fix refresh-po, to handle no translated
58513         languages.
58514
58515 2006-03-07  Simon Josefsson  <jas@extundo.com>
58516
58517         * modules/getopt (Depends-on): Add unistd.
58518
58519         * modules/unistd: New file.
58520
58521 2006-03-07  Simon Josefsson  <jas@extundo.com>
58522
58523         * modules/gc-random: New file.
58524
58525 2006-03-07  Simon Josefsson  <jas@extundo.com>
58526
58527         * m4/unistd_h.m4: New file.
58528
58529 2006-03-07  Simon Josefsson  <jas@extundo.com>
58530
58531         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
58532         test to be side-effect free by storing the result in the cache
58533         variable gl_cv_lib_readline, and moving the assignment of
58534         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
58535         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58536
58537 2006-03-07  Simon Josefsson  <jas@extundo.com>
58538
58539         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
58540         error on missing devices (the functions will return an error).
58541
58542         * m4/gc.m4: Move random stuff to gc-random.m4
58543
58544 2006-03-07  Simon Josefsson  <jas@extundo.com>
58545
58546         * lib/unistd_.h: New file.
58547
58548 2006-03-07  Simon Josefsson  <jas@extundo.com>
58549
58550         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
58551
58552 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58553
58554         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
58555         Problem reported by Juan Manuel Guerrero.
58556
58557 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
58560         the unistd module.
58561         * lib/getlogin_r.c: Likewise.
58562         * lib/getlogin_r.h: Likewise.
58563         * lib/glob.c: Likewise.
58564         * lib/pagealign_alloc.c: Likewise.
58565         * lib/unistd_.h: Remove; no longer needed.
58566
58567 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         * MODULES.html.sh (Support for systems lacking POSIX:2001):
58570         Add unistd.
58571         * modules/c-stack (Depends-on): Add unistd.
58572         * modules/getlogin_r: Likewise.
58573         * modules/glob: Likewise.
58574         * modules/pagealign_alloc: Likewise.
58575         * modules/unistd (Files): Remove lib/unistd_.h.
58576         (EXTRA_DIST): Remove.
58577         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
58578         need unistd_.h.
58579         (MOSTLYCLEANFILES): Remove unistd.h-t.
58580
58581 2006-03-03  Simon Josefsson  <jas@extundo.com>
58582
58583         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
58584
58585 2006-03-03  Simon Josefsson  <jas@extundo.com>
58586
58587         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
58588         libidn and bison.
58589
58590 2006-03-03  Simon Josefsson  <jas@extundo.com>
58591
58592         * build-aux/maint.mk: Add indent target.
58593
58594 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
58595
58596         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
58597         our replacement poll.h in any case, to avoid a differing
58598         declaration from a system header.  Seen on AIX.
58599
58600 2006-03-01  Simon Josefsson  <jas@extundo.com>
58601
58602         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
58603         <kasal@ucw.cz>.
58604
58605 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * modules/gettime (Depends-on): Add extensions module.
58608         * modules/nanosleep (Depends-on): Likewise.
58609         * modules/settime (Depends-on): Likewise.
58610
58611 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
58614         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
58615         pedantically.
58616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58617         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
58618
58619         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
58620         not "==".  Reported by Ralf Wildenhues.
58621
58622 2006-03-01  Karl Berry  <karl@gnu.org>
58623
58624         * doc/Copyright/request-*: new files, synced from gnuorg.
58625
58626 2006-03-01  Karl Berry  <karl@gnu.org>
58627
58628         * config/srclist.txt (Copyright/*): new entries.
58629
58630 2006-02-28  Simon Josefsson  <jas@extundo.com>
58631
58632         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
58633
58634 2006-02-27  Simon Josefsson  <jas@extundo.com>
58635
58636         * lib/base64.h: Indent #define's.  From Jim Meyering
58637         <jim@meyering.net>.
58638
58639 2006-02-27  Jim Meyering  <jim@meyering.net>
58640
58641         Revert the change of 2006-02-24, so these files can continue
58642         to be sync'd from gettext.
58643         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
58644         of `config.h'.
58645
58646 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58647
58648         * modules/intprops: New file.
58649         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58650         Add intprops.
58651         * modules/getloadavg (Files): Remove lib/intprops.h.
58652         (Depends-on): Add intprops.
58653         * modules/human: Likewise.
58654         * modules/inttostr: Likewise.
58655         * modules/openat: Likewise.
58656         * modules/sig2str: Likewise.
58657         * modules/userspec: Likewise.
58658         * modules/utimecmp: Likewise.
58659         * modules/xnanosleep: Likewise.
58660         * modules/xstrtol: Likewise.
58661
58662 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
58663
58664         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
58665         * modules/lock-tests (TESTS): Use $(EXEEXT).
58666         * modules/tls-tests: Likewise.
58667         * modules/argp-tests: Likewise.
58668         (check_PROGRAMS): New var, replacing...
58669         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
58670
58671 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58672
58673         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
58674         `config.h'.
58675
58676 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58677
58678         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
58679
58680 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58681
58682         Sync from coreutils.
58683         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
58684         gl_CHDIR_SAFER.
58685
58686 2006-02-22  Jim Meyering  <jim@meyering.net>
58687
58688         Sync from coreutils.
58689         * m4/chdir-safer.m4: New file.
58690
58691 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58692
58693         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
58694         AT_FDCWD exceeds INT_MAX.
58695         * lib/openat.h (AT_FDCWD): Likewise.
58696
58697 2006-02-17  Eric Blake  <address@hidden>
58698
58699         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
58700
58701 2006-02-16  Simon Josefsson  <jas@extundo.com>
58702
58703         * modules/getaddrinfo (Depends-on): Add sys_socket.
58704
58705 2006-02-15  Simon Josefsson  <jas@extundo.com>
58706
58707         * build-aux/maint.mk: Add dsyntax-check rule.
58708
58709 2006-02-15  Eric Blake  <ebb9@byu.net>
58710
58711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
58712         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
58713         'present but cannot compile' warnings on cygwin.
58714         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
58715         use ws2tcpip.h if sys/socket.h works.
58716         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
58717         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
58718
58719 2006-02-14  Simon Josefsson  <jas@extundo.com>
58720
58721         * modules/maintainer-makefile (Files): Rename.
58722
58723         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
58724         and (the local) Makefile.cfg to maint-cfg.mk.
58725
58726         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
58727         to the latter.
58728
58729         * modules/maintainer-makefile: New module.
58730
58731         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
58732         severaly stripped to make it possible to build it up from scratch
58733         with reliable tests.
58734
58735         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
58736         fixes to permit overriding the default actions when configure and
58737         makefile are not available.
58738
58739 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         Sync from coreutils.
58742         * modules/lstat (Depends-on): Don't depend on xalloc.
58743         (License): Change from GPL to LGPL, since this is now simply a
58744         replacement for a libc function.
58745
58746 2006-02-14  Jim Meyering  <jim@meyering.net>
58747
58748         Sync from coreutils.
58749
58750         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
58751         failure on deficient systems, and simplify gnulib lgpl dependencies.
58752         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
58753         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
58754
58755         * lib/xalloc-die.c: Remove unused definition of N_.
58756
58757 2006-02-14  Jim Meyering  <jim@meyering.net>
58758
58759         Sync from coreutils.
58760         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
58761         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
58762         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
58763         double-quote uses of that variable, to accommodate the rare case in
58764         which getmntent is available in none of the libraries checked.  This
58765         happens at least on FreeBSD 5.0.
58766
58767 2006-02-13  Simon Josefsson  <jas@extundo.com>
58768
58769         * gnulib-tool (Usage): Fix --import, from
58770         karl@freefriends.org (Karl Berry).
58771
58772 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58773
58774         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
58775
58776 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
58777
58778         * lib/argp-namefrob.h: Restore changes accidentally lost during the
58779         "autoupdate" on 2005-12-12.
58780
58781 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58782
58783         * modules/closeout (Depends-on): Remove atexit.
58784
58785 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
58788         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
58789
58790 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58791
58792         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
58793         __EXTENSIONS__ if this causes compilation to fail.  Problem
58794         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
58795         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
58796
58797 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
58798
58799         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
58800         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
58801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
58802         All uses changed.
58803
58804 2006-01-26  Simon Josefsson  <jas@extundo.com>
58805
58806         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
58807         prototype is visible on mingw32.
58808
58809         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
58810         for mingw32.
58811
58812         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
58813         mingw32).
58814
58815 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58816
58817         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
58818         attempt to open for write; this always fails, at least on POSIX
58819         hosts.  This reinstates the 2006-01-09 change, which was
58820         inadvertently removed.
58821
58822 2006-01-26  Bruno Haible  <bruno@clisp.org>
58823
58824         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
58825         Reported by Paul Eggert.
58826
58827 2006-01-26  Bruno Haible  <bruno@clisp.org>
58828             Paul Eggert  <eggert@cs.ucla.edu>
58829
58830         * lib/stdbool_.h (_Bool)
58831         [(! (defined __cplusplus || defined __BEOS__)
58832           && !defined __GNUC__
58833           && !(defined __HP_cc || defined __xlc__
58834                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
58835                || defined __sgi))]:
58836         #define to signed char in these cases too; this simplifies
58837         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
58838         etc., separately) and makes it more conservative.
58839
58840 2006-01-25  Simon Josefsson  <jas@extundo.com>
58841
58842         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
58843         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
58844         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
58845
58846 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58847
58848         * lib/argp-namefrob.h: Bugfix. Remove stray #
58849
58850 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58851
58852         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
58853         so that we test the test.
58854         Check for yet another HP-UX cc bug involving *bool |= bool.
58855
58856 2006-01-25  Karl Berry  <karl@gnu.org>
58857
58858         * config/srclist.txt (vasnprintf.c): sync lost.
58859
58860 2006-01-25  Jim Meyering  <jim@meyering.net>
58861
58862         Sync from the stable (b5) branch of coreutils:
58863
58864         * lib/fts.c (fts_children): Don't let close() clobber errno from
58865         failed fchdir().
58866
58867         * lib/fts.c (fts_stat): When following a symlink-to-directory,
58868         don't necessarily interpret stat-fails+lstat-succeeds as indicating
58869         a dangling symlink.  That can also happen at least for ELOOP.
58870         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
58871         FYI, this bug predates the inclusion of fts.c in coreutils.
58872
58873         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
58874         in their own block, so pre-c99 compilers don't object.
58875
58876         Avoid the double-free (first in fts_read, second in fts_close) that
58877         would occur when an `active' directory is made inaccessible (e.g.,
58878         via chmod a-x) during a traversal.
58879         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58880         before returning.  Reproduce this failure by
58881         mkdir -p a/b; cd a; chmod a-x . b
58882         Reported by Stavros Passas.
58883
58884 2006-01-25  Jim Meyering  <jim@meyering.net>
58885
58886         * lib/fileblocks.c: Remove more useless parentheses.
58887         * lib/readutmp.h: Likewise.
58888
58889 2006-01-25  Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
58892         warnings.
58893         Reported by Paul Eggert.
58894
58895 2006-01-25  Bruno Haible  <bruno@clisp.org>
58896
58897         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
58898         rid of a trap command. For Solaris sh.
58899         Reported by Mark D. Baushke <mdb@gnu.org>.
58900
58901 2006-01-24  Simon Josefsson  <jas@extundo.com>
58902
58903         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
58904         Bruno.
58905
58906 2006-01-24  Karl Berry  <karl@gnu.org>
58907
58908         * config/srclist.txt (argp-namefrob.h): sync lost.
58909
58910 2006-01-24  Jim Meyering  <jim@meyering.net>
58911
58912         * modules/openat (Files): Add lib/intprops.h.
58913         From Mark D. Baushke.
58914
58915 2006-01-24  Jim Meyering  <jim@meyering.net>
58916
58917         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
58918         Reported by Mark D. Baushke.
58919
58920 2006-01-24  Jim Meyering  <jim@meyering.net>
58921
58922         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
58923
58924 2006-01-24  Bruno Haible  <bruno@clisp.org>
58925
58926         * modules/strnlen (Maintainer): Change from glibc to all.
58927
58928 2006-01-24  Bruno Haible  <bruno@clisp.org>
58929
58930         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
58931         Patch by Paul Eggert.
58932
58933 2006-01-24  Bruno Haible  <bruno@clisp.org>
58934
58935         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
58936         already has it.
58937         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
58938         2005-11-26.
58939
58940         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
58941         'signed char' to avoid problems with the built-in _Bool type.
58942         Reported by Paul Eggert on 2005-11-26.
58943
58944 2006-01-24  Bruno Haible  <bruno@clisp.org>
58945
58946         * gnulib-tool (func_import): Avoid constructing complicated sed
58947         expressions inside backquote.
58948         Report and solution by Mark D. Baushke <mdb@gnu.org>.
58949
58950 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
58951
58952         These changes imported from libc.
58953         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
58954         test and two separate function calls.
58955         * lib/strndup.c (__strndup): Add libc_hidden_def.
58956
58957 2006-01-23  Simon Josefsson  <jas@extundo.com>
58958
58959         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
58960         Remove the test_*_SOURCES variable: automake infers it by default.
58961         * modules/tls-tests: Likewise.
58962
58963 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         Work around porting bugs reported by Dieter in
58966         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
58967         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
58968         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
58969         Include "getopt.h" first, to check interface.
58970         (getenv): Declare only if defined HAVE_DECL_GETENV &&
58971         !HAVE_DECL_GETENV.
58972         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
58973         (__strndup): Revert to K&R-style function dfns, the glibc style.
58974         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
58975         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
58976         Include strnlen.h first, to get prototype properly.
58977         (strnlen): Renamed from __strnlen.
58978         Remove weak alias.
58979
58980 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58981
58982         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
58983
58984 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * config/srclist.txt: Adjust to reflect glibc reorganization.
58987         This affects only comments.
58988
58989 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58990
58991          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
58992          Reported by Bruce Korb <bkorb@gnu.org>.
58993
58994 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
58997         to pacify gcc -Wswitch-default.
58998
58999 2006-01-22  Bruno Haible  <bruno@clisp.org>
59000
59001         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
59002         temporary buffer for sprintf, take into account the precision also
59003         for 'd', 'i', 'u', 'o', 'x', 'X'.
59004
59005 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59006
59007         * modules/argp-tests: New module
59008         * tests/test-argp.c: New file
59009         * tests/test-argp-2.sh: New file
59010
59011 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59012
59013         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
59014         (__argp_base_name): Removed
59015         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
59016         typo.
59017         (__argp_base_name): Provide macro definition or extern declaration
59018         depending on the configuration
59019
59020 2006-01-20  Simon Josefsson  <jas@extundo.com>
59021
59022         * modules/inet_ntop (Depends-on): Depend on sys_socket.
59023
59024 2006-01-20  Simon Josefsson  <jas@extundo.com>
59025
59026         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
59027
59028 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
59031         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
59032         Suggested by Bruno Haible.
59033
59034 2006-01-20  Karl Berry  <karl@gnu.org>
59035
59036         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
59037         until changes propagate, I guess.
59038
59039 2006-01-19  Simon Josefsson  <jas@extundo.com>
59040
59041         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
59042
59043 2006-01-19  Simon Josefsson  <jas@extundo.com>
59044
59045         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
59046
59047 2006-01-19  Simon Josefsson  <jas@extundo.com>
59048
59049         * gnulib-tool: Set check_PROGRAMS.
59050
59051         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59052         modules/des-tests, modules/gc-arcfour-tests,
59053         modules/gc-arctwo-tests, modules/gc-des-tests,
59054         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59055         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59056         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59057         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59058         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59059         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
59060         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
59061         test_*_SOURCES.
59062
59063 2006-01-18  Simon Josefsson  <jas@extundo.com>
59064
59065         * modules/socklen (Depends-on): Depend on sys_socket.
59066
59067 2006-01-18  Simon Josefsson  <jas@extundo.com>
59068
59069         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59070         modules/des-tests, modules/gc-arcfour-tests,
59071         modules/gc-arctwo-tests, modules/gc-des-tests,
59072         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59073         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59074         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59075         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59076         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59077         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
59078         $(EXEEXT) to automake TESTS variable, for mingw32.
59079
59080 2006-01-17  Simon Josefsson  <jas@extundo.com>
59081
59082         * modules/socklen (Include): Need sys/socket.h.
59083
59084 2006-01-17  Bruno Haible  <bruno@clisp.org>
59085
59086         * modules/ssize_t (Include): Add <sys/types.h>.
59087
59088 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
59089
59090         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
59091         it's not portable and it doesn't work with cross-compiles.
59092         Problem reported by Bruno Haible.  Fix missing-$ typo in
59093         'test "gl_cv_ignore_unused_libraries" ...' that prevented
59094         -zignore from being used with Sun's C compiler.
59095
59096 2006-01-12  Simon Josefsson  <jas@extundo.com>
59097
59098         * lib/base64.c: Fix warning, reported by Bruno Haible
59099         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
59100
59101 2006-01-12  Bruno Haible  <bruno@clisp.org>
59102
59103         * modules/ldd: New file.
59104         * build-aux/ldd.sh.in: New file.
59105         * MODULES.html.sh (Support for building libraries and executables): Add
59106         ldd.
59107
59108 2006-01-12  Bruno Haible  <bruno@clisp.org>
59109
59110         * m4/ldd.m4: New file.
59111
59112 2006-01-12  Bruno Haible  <bruno@clisp.org>
59113
59114         * gnulib-tool (func_import, func_create_testdir): Don't go into an
59115         endless loop while replacing $auxdir with build-aux.
59116
59117 2006-01-11  Simon Josefsson  <jas@extundo.com>
59118
59119         * lib/stdint_.h (SIZE_MAX): Add missing (.
59120
59121 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59122
59123         Sync from coreutils.
59124         * lib/md5.c: Fix commentary typos.
59125         (alignof, UNALIGNED_P): No need for a GCC-specific version.
59126         * lib/md5.h (__attribute__): Remove; unused.
59127         * lib/sha1.c: Fix commentary to match md5 better.
59128         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
59129         so that we don't need to worry about alignment.  All uses changed.
59130         This merges the 2005-10-28 md5 change into sha1.
59131
59132 2006-01-11  Jim Meyering  <jim@meyering.net>
59133
59134         Sync from coreutils.
59135         * lib/md5.c (OP): Fix spacing.
59136
59137 2006-01-11  Bruno Haible  <bruno@clisp.org>
59138
59139         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59140         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
59141         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
59142
59143 2006-01-11  Bruno Haible  <bruno@clisp.org>
59144
59145         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59146         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
59147         the "early" section as well.
59148
59149 2006-01-11  Bruno Haible  <bruno@clisp.org>
59150
59151         Avoid "ar: no archive members specified" error on MacOS X.
59152         * gnulib-tool (func_modules_add_dummy): New function.
59153         (func_import, func_create_testdir): Invoke it.
59154
59155 2006-01-11  Bruno Haible  <bruno@clisp.org>
59156
59157         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
59158         with $auxdir in AC_CONFIG_FILES statements.
59159
59160 2006-01-11  Bruno Haible  <bruno@clisp.org>
59161
59162         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59163         Initialize also noinst_HEADERS to empty.
59164
59165 2006-01-11  Bruno Haible  <bruno@clisp.org>
59166
59167         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
59168         variables.
59169         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
59170         autoreconf.
59171
59172 2006-01-11  Bruno Haible  <bruno@clisp.org>
59173
59174         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
59175         overridable by the user.
59176         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59177
59178 2006-01-10  Simon Josefsson  <jas@extundo.com>
59179
59180         * modules/sys_socket: New file.
59181
59182 2006-01-10  Simon Josefsson  <jas@extundo.com>
59183
59184         * m4/sys_socket_h.m4: New file.
59185
59186 2006-01-10  Simon Josefsson  <jas@extundo.com>
59187
59188         * lib/socket_.h: New file.
59189
59190 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59191
59192         * modules/readutmp (Maintainer): Add myself.
59193
59194 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
59197         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
59198         People who are still concerned with buggy memcmp implementations
59199         can invoke gl_FUNC_MEMCMP themselves.
59200
59201 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * lib/regex_internal.h (BITSET_WORD_BITS):
59204         Work around a bug in 64-bit PGC (before version 6.1-2), where the
59205         preprocessor mishandles large unsigned values as if they were signed.
59206         Problem reported by Claudio Fontana in
59207         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
59208
59209 2006-01-10  Jim Meyering  <jim@meyering.net>
59210
59211         Avoid the double-free (first in fts_read, second in fts_close) that
59212         would occur when an `active' directory is made inaccessible (e.g.,
59213         via chmod a-x) during a traversal.
59214         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59215         before returning.  Reproduce this failure by
59216         mkdir -p a/b; cd a; chmod a-x . b
59217         Reported by Stavros Passas.
59218
59219         Sync from coreutils.
59220         * lib/sha1.c: Tweak grammar in a comment.
59221
59222 2006-01-10  Jim Meyering  <jim@meyering.net>
59223
59224         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
59225         Patch by Joerg Sonnenberger.
59226
59227 2006-01-10  Bruno Haible  <bruno@clisp.org>
59228
59229         * modules/readutmp: Depend on module free.
59230         * modules/strtok_r: Depend on module restrict.
59231
59232 2006-01-10  Bruno Haible  <bruno@clisp.org>
59233
59234         * modules/gettext (configure.ac): Add an invocation of
59235         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
59236
59237 2006-01-10  Bruno Haible  <bruno@clisp.org>
59238
59239         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
59240         Reported by Werner Lemberg <wl@gnu.org>.
59241
59242 2006-01-10  Bruno Haible  <bruno@clisp.org>
59243
59244         * lib/localcharset.c: Update from GNU gettext.
59245
59246 2006-01-10  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/argp.h (__const): Remove macro. Use const instead.
59249         * lib/argp-fmtstream.h (__const): Likewise.
59250         * lib/glob_.h (__const): Remove macro.
59251         * lib/glob-libc.h: Use const instead of __const.
59252
59253 2006-01-10  Bruno Haible  <bruno@clisp.org>
59254
59255         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
59256         variable.
59257         Needed to avoid an automake error regarding the 'gettext' module.
59258
59259 2006-01-09  Simon Josefsson  <jas@extundo.com>
59260
59261         * modules/inet_ntop (Depends-on): Add restrict.
59262
59263 2006-01-09  Simon Josefsson  <jas@extundo.com>
59264
59265         * modules/gc-rijndael-tests (License): Put under LGPL.
59266
59267         * modules/gc-des-tests (License): Likewise.
59268
59269         * modules/gc-arcfour-tests (License): Likewise.
59270
59271         * modules/gc-arctwo-tests (License): Likewise.
59272
59273         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
59274
59275         * modules/gc-hmac-sha1-tests (Files): Likewise.
59276
59277         * modules/gc-hmac-md5-tests (License): Likewise.
59278
59279         * modules/gc-sha1-tests (License): Likewise.
59280
59281         * modules/gc-md5-tests (License): Likewise.
59282
59283         * modules/gc-md4-tests (License): Likewise.
59284
59285         * modules/gc-md2-tests (License): Likewise.
59286
59287         * modules/gc-tests (License): Likewise.
59288
59289         * modules/des-tests (License): Likewise.
59290
59291         * modules/md4-tests (License): Likewise.
59292
59293         * modules/md2-tests (License): Likewise.
59294
59295 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         Sync from coreutils:
59298
59299         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
59300         * modules/lib-ignore: New file.
59301         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
59302         chdir-safer.m4, lchmod.m4.
59303         * modules/openat: Add mkdirat.c, openat-priv.h.
59304
59305 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59306
59307         Sync from coreutils.
59308         * m4/lib-ignore.m4: New file.
59309         * m4/lchmod.m4: New file.
59310
59311 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59312
59313         Sync from coreutils.
59314         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
59315         for write access: POSIX says that must fail.
59316         * lib/fts.c (diropen): Likewise.
59317         * lib/save-cwd.c (save_cwd): Likewise.
59318         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
59319         well, for minor improvements on hosts that lack O_DIRECTORY.
59320         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
59321         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
59322         Fall back on chown if open failed with EACCES.
59323
59324         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
59325         Report an error at compile-time if only a 1-second nominal clock
59326         resolution is found.
59327
59328         * lib/lchmod.h: New file.
59329         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
59330         (make_dir_parents): Use lchown rather than chown, and
59331         lchmod rather than chmod.
59332
59333         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
59334         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
59335         "proc" reported by n0dalus.
59336
59337         * lib/mountlist.c: Include <limits.h>.
59338         (dev_from_mount_options)
59339         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
59340         New function.  It no longer assumes "dev=" has the System V meaning
59341         on Linux (since it doesn't).  It also parses "dev=" more carefully.
59342         (read_file_system_list)
59343         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
59344         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
59345         dev= in that case.
59346
59347         * lib/posixtm.h (PDS_PRE_2000): New macro.
59348         * lib/posixtm.c (year): Arg is now syntax_bits rather than
59349         allow_century.  All usages changed.  Reject dates outside the range
59350         1969-1999 if PDS_PRE_2000 is used.
59351
59352 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         Sync from coreutils.
59355         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
59356         (Time of day items): Mention the possibility of leap seconds.
59357         Problem reported by Dr. David Alan Gilbert.
59358
59359 2006-01-09  Jim Meyering  <jim@meyering.net>
59360
59361         Sync from coreutils.
59362
59363         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
59364
59365         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
59366
59367         * lib/modechange.c (mode_compile): Reject an invalid mode string
59368         that starts with an octal digit.  From Andreas Gruenbacher.
59369
59370         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
59371         and dup to open_safer and dup_safer, respectively.
59372         (openat_permissive): Fix typo in comment.
59373
59374         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
59375         "gettext.h"; either no longer needed or are guaranteed by openat.h.
59376         (_): Remove; no longer needed.
59377         (openat): Renamed from rpl_openat; no need for rpl_openat
59378         since openat.h renames openat for us.
59379         Replace most of the body with a call to openat_permissive,
59380         to avoid duplicate code.
59381         Port to (probably hypothetical) environments were mode_t is
59382         wider than int.
59383         (openat_permissive): Require mode arg, so that we can check
59384         types better.  Put it just after flags.  Change cwd failure
59385         indicator from pointer-to-bool to pointer-to-errno-value.
59386         All callers changed.
59387         Invoke openat_save_fail and/or openat_restore_fail if
59388         cwd_errno is null, so that openat can call us.
59389         (openat_permissive, fdopendir, fstatat, unlinkat):
59390         Simplify errno handling to avoid some duplicate code,
59391         as it's OK to set errno on success.
59392         * lib/openat.h: Revamp code so that function macros depend on
59393         __OPENAT_PREFIX only, not also on AT_FDCWD.
59394         (openat_ro): Remove.  Caller changed to use openat_permissive.
59395         (openat_permissive): Now a macro, if not a function.
59396         (openat_restore_fail, openat_save_fail): Now always functions,
59397         since mkdirat needs them even if __OPENAT_PREFIX is defined.
59398
59399         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
59400         and openat.c.
59401         * lib/mkdirat.c: Include openat-priv.h.
59402         Remove definitions of macros defined therein.
59403         * lib/openat.c: Likewise.
59404
59405         * lib/mkdirat.c (mkdirat): New file and function.
59406         * lib/openat.h (mkdirat): Declare.
59407
59408         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
59409
59410         * lib/openat.h (openat_permissive): Declare.
59411         (openat_ro): Define.
59412
59413         * lib/openat.c (EXPECTED_ERRNO): New macro.
59414         (openat_permissive): New function -- used in remove.c rewrite.
59415         (all functions): Set errno just before returning, only if there
59416         was an actual failure.
59417         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
59418
59419         Emulate openat-family functions using Linux's procfs, if possible.
59420         Idea and some code based on Ulrich Drepper's glibc changes.
59421
59422         * lib/openat.c: (BUILD_PROC_NAME): New macro.
59423         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
59424         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
59425         before falling back on save_cwd and restore_cwd.
59426         (fdopendir, fstatat, unlinkat): Likewise.
59427
59428         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
59429         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
59430
59431         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
59432         as second argument to va_arg.  Otherwise, some versions of gcc
59433         warn that `if this code is reached, the program will abort'.
59434
59435 2006-01-09  Jim Meyering  <jim@meyering.net>
59436
59437         Sync from coreutils.
59438         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
59439         Require openat-priv.h.
59440
59441 2006-01-09  Bruno Haible  <bruno@clisp.org>
59442
59443         * modules/strnlen (Include): Use strnlen.h.
59444
59445 2006-01-09  Bruno Haible  <bruno@clisp.org>
59446
59447         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
59448
59449 2006-01-09  Bruno Haible  <bruno@clisp.org>
59450
59451         * lib/sysexit_.h (EX_OK): New macro.
59452         Suggested by Martin Lambers <marlam@marlam.de>.
59453
59454 2006-01-09  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
59457         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
59458
59459 2006-01-09  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
59462         numbers.
59463
59464 2006-01-09  Bruno Haible  <bruno@clisp.org>
59465
59466         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
59467         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
59468         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
59469         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
59470
59471 2006-01-09  Bruno Haible  <bruno@clisp.org>
59472
59473         * build-aux/javacomp.sh.in: New file, moved from lib/.
59474         * modules/javacomp-script (Files): Update.
59475         (configure.ac): Add AC_CONFIG_FILES invocation.
59476         (EXTRA_DIST): Remove variable.
59477
59478         * build-aux/javaexec.sh.in: New file, moved from lib/.
59479         * modules/javaexec (Files): Update.
59480         (configure.ac): Add AC_CONFIG_FILES invocation.
59481         (EXTRA_DIST): Remove javaexec.sh.in.
59482
59483         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
59484         * modules/csharpcomp-script (Files): Update.
59485         (configure.ac): Add AC_CONFIG_FILES invocation.
59486         (EXTRA_DIST): Remove variable.
59487
59488         * build-aux/csharpexec.sh.in: New file, moved from lib/.
59489         * modules/csharpexec (Files): Update.
59490         (configure.ac): Add AC_CONFIG_FILES invocation.
59491         (EXTRA_DIST): Remove csharpexec.sh.in.
59492
59493 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59494
59495         Sync from coreutils.
59496
59497         Add POSIX ACL support
59498         * lib/acl.h (copy_acl, set_acl): Add declarations.
59499         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
59500         systems other than Linux.
59501         (chmod_or_fchmod): New function: use fchmod when possible,
59502         and chmod otherwise.
59503         (file_has_acl): Add a POSIX ACL implementation, with a
59504         Linux-specific subcase.
59505         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
59506         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
59507         acls are unsupported.
59508         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
59509         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
59510         are unsupported.
59511
59512 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59513
59514         Sync from coreutils.
59515         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
59516
59517 2006-01-07  Bruno Haible  <bruno@clisp.org>
59518
59519         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
59520         gl_EARLY.
59521
59522 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59523
59524         * lib/strftime.c (tzname): Don't declare if it is already #defined.
59525         Problem reported for Mingw by Mark Junker.
59526
59527 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59528
59529         * README: Gnulib normally doesn't generate a tarball.
59530
59531 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
59532
59533         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
59534         long int, not int, for nanosecond counts, so that people who are
59535         used to POSIX struct timespec won't be surprised.  Reported by Jim
59536         Meyering.
59537
59538 2005-12-28  Bruno Haible  <bruno@clisp.org>
59539
59540         * build-aux/config.rpath: Update from GNU gettext.
59541
59542 2005-12-16  Jim Meyering  <jim@meyering.net>
59543
59544         * modules/fprintftime: New module.
59545         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
59546
59547 2005-12-16  Jim Meyering  <jim@meyering.net>
59548
59549         * m4/fprintftime.m4: New file.
59550
59551 2005-12-16  Jim Meyering  <jim@meyering.net>
59552
59553         * lib/fprintftime.c, lib/fprintftime.h: New files.
59554
59555 2005-12-15  Simon Josefsson  <jas@extundo.com>
59556
59557         * modules/socklen (configure.ac): Fix M4 macro name, to align with
59558         new m4/socklen.m4.
59559
59560 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59561
59562         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
59563         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
59564
59565 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59566
59567         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
59568         * lib/argp-help.c (fill_in_uparams): Check if the constructed
59569         struct uparams is valid. Fall back to the default values if it is
59570         not.
59571
59572 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59573
59574         * modules/argp (Files): Add argp-pin.c
59575         (Depends-on): dirname
59576         (lib_SOURCES): Add argp-pin.c
59577
59578 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59579
59580         * m4/argp.m4:  Check if program_invocation_name and
59581         program_invocation_short_name are declared and define appropriate
59582         macros if they are not.
59583
59584 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59585
59586         * lib/argp-help.c (__argp_base_name): New function
59587         (__argp_short_program_name): Rewrite using __argp_base_name
59588         * lib/argp-namefrob.h: Define program_invocation_name and
59589         program_invocation_short_name if requested
59590         (__argp_base_name): Add prototype
59591         * lib/argp-parse.c (argp_def): Use gettext wrappers
59592         (argp_default_parser): Use __argp_base_name
59593         * lib/argp-pin.c: New file. Defines program_invocation_name and
59594         program_invocation_short_name on systems that lack them.
59595
59596 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
59599         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59600         porting problem reported by Georg Schwarz in
59601         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59602
59603 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
59606         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59607         porting problem reported by Georg Schwarz in
59608         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59609
59610 2005-12-05  Bruno Haible  <bruno@clisp.org>
59611
59612         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
59613         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
59614         Reported by Mark Junker <mjscod@gmx.de>.
59615
59616 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
59619         Use implementation from Albert Chin, with some
59620         comments/corrections by Stepan Kasal and myself.
59621
59622 2005-12-02  Bruno Haible  <bruno@clisp.org>
59623
59624         * gnulib-tool (func_import): Accept GPLed build tool modules when
59625         --lgpl is given.
59626         * modules/csharpcomp-script: New file.
59627         * modules/csharpcomp: Depend on it.
59628         * modules/javacomp-script: New file.
59629         * modules/javacomp: Depend on it.
59630         Suggested by Simon Josefsson.
59631
59632 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
59635         statement, to work around an HP-UX 10.20 compiler bug reported by
59636         Peter O'Gorman.
59637
59638 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59639
59640         * modules/savedir (Depends-on): Add openat.
59641
59642 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
59645         (uintmax_t) [defined uintmax_t]: Do not declare.
59646         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
59647         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
59648         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
59649         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
59650         sake of portability to weird hosts that C allows (though we don't
59651         know of any practical examples).
59652
59653         * lib/savedir.h (fdsavedir): New decl.
59654         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
59655         contains most of the former guts of savedir.
59656         (savedir): Use savedirstream.
59657         Include "openat.h".
59658
59659 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59660
59661         * modules/obstack (Files): Add m4/ulonglong.m4.
59662         Problem reported by Davide Angelocola.
59663
59664 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
59667         coreutils no longer futzes with rounding modes.
59668
59669 2005-11-14  Jim Meyering  <jim@meyering.net>
59670
59671         * lib/mkstemp-safer.c: Include <config.h>, required for possible
59672         replacement of mkstemp.
59673
59674 2005-11-10  Simon Josefsson  <jas@extundo.com>
59675
59676         * lib/readline.c: Remove EOL.
59677
59678 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59679
59680         * modules/gethrxtime (Depends-on): Add gettime.
59681
59682 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59683
59684         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
59685         or gettimeofday; no longer needed.
59686
59687 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59688
59689         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
59690         time business.
59691         (gethrxtime) [! (HAVE_NANOUPTIME
59692         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
59693         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
59694         our own approximation.
59695
59696 2005-11-08  Eric Blake  <ebb9@byu.net>
59697
59698         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59699
59700 2005-11-08  Eric Blake  <ebb9@byu.net>
59701
59702         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59703
59704 2005-11-04  Bruno Haible  <bruno@clisp.org>
59705
59706         * gnulib-tool: Implement --update mode.
59707
59708 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         Fix porting problem reported by Theodoros V. Kalamatianos.
59711         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
59712         Don't assume that futimes failing means we must fail.
59713
59714 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
59717         variables to suggest the intended function of the PATH_MAX check.
59718
59719 2005-10-30  Kean Johnston  <jkj@sco.com>
59720
59721         Trivial changes to support SCO systems.
59722         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
59723         as PATH_MAX.
59724         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
59725         where __ptr is null when no I/O is pending.
59726
59727 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
59730         leave errno alone.  Problem reported by Dmitry V. Levin.
59731
59732 2005-10-28  Simon Josefsson  <jas@extundo.com>
59733
59734         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
59735         Test more.
59736
59737         * tests/test-gc-md2.c, tests/test-md2.c: New files.
59738
59739         * modules/md2, modules/md2-tests: New files.
59740
59741 2005-10-28  Simon Josefsson  <jas@extundo.com>
59742
59743         * m4/inet_ntop.m4: More tests.
59744
59745         * m4/gc-md2.m4, md2.m4: New file.
59746
59747 2005-10-28  Simon Josefsson  <jas@extundo.com>
59748
59749         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
59750         "restrict" keywords, as per POSIX.  Protect the function
59751         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
59752         Don't use K&R prototypes.  Check the sprintf return values.
59753         Re-define EAFNOSUPPORT if not present.  Indent.
59754
59755         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
59756         suggested by Bruno Haible <bruno@clisp.org>.
59757
59758         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
59759
59760         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
59761
59762         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
59763         libgcrypt).
59764
59765         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
59766
59767         * lib/md2.h, lib/md2.c: New files.
59768
59769 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
59770
59771         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
59772         errno alone.  Problem reported by Frederic Jolliton.
59773
59774 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         * modules/verify (License): Change from GPL to LGPL.  This is a
59777         tiny module and there are apparently near-equivalents that are
59778         under the BSD license.
59779
59780 2005-10-24  Simon Josefsson  <jas@extundo.com>
59781
59782         * modules/sha1: Relicense to LGPL.
59783
59784 2005-10-24  Simon Josefsson  <jas@extundo.com>
59785
59786         * lib/md4.h: Shrink buffer size, now that we changed the type.
59787
59788 2005-10-23  Simon Josefsson  <jas@extundo.com>
59789
59790         * gnulib-tool (func_import): Fix --tests-base.
59791
59792 2005-10-22  Simon Josefsson  <jas@extundo.com>
59793
59794         * modules/arcfour (Depends-on): Need stdint.
59795
59796 2005-10-22  Simon Josefsson  <jas@extundo.com>
59797
59798         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
59799         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
59800
59801 2005-10-22  Simon Josefsson  <jas@extundo.com>
59802
59803         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
59804         suggested by Bruno Haible <bruno@clisp.org>.
59805
59806 2005-10-22  Simon Josefsson  <jas@extundo.com>
59807
59808         * lib/crc.h: Include stddef.h, for size_t.
59809
59810 2005-10-22  Simon Josefsson  <jas@extundo.com>
59811
59812         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
59813         arcfour_context struct (simplify test vector testing in GNU
59814         Shishi).
59815
59816 2005-10-21  Simon Josefsson  <jas@extundo.com>
59817
59818         * modules/des, modules/des-tests: New files.
59819
59820         * modules/gc-des, modules/gc-des-tests: New files.
59821
59822         * tests/test-des.c, tests/test-gc-des.c: New file.
59823
59824 2005-10-21  Simon Josefsson  <jas@extundo.com>
59825
59826         * modules/arctwo, modules/arctwo-tests: New files.
59827
59828         * tests/test-arctwo.c: New file.
59829
59830         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
59831
59832         * tests/test-gc-arctwo.c: New file.
59833
59834 2005-10-21  Simon Josefsson  <jas@extundo.com>
59835
59836         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
59837         Bruno Haible <bruno@clisp.org>.
59838
59839         * m4/gc-des.m4: New file.
59840
59841 2005-10-21  Simon Josefsson  <jas@extundo.com>
59842
59843         * m4/arctwo.m4: New file.
59844
59845         * m4/gc-arctwo.m4: New file.
59846
59847 2005-10-21  Simon Josefsson  <jas@extundo.com>
59848
59849         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
59850         block.
59851
59852 2005-10-21  Simon Josefsson  <jas@extundo.com>
59853
59854         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
59855         <bruno@clisp.org>.
59856
59857         * lib/hmac-sha1.c (hmac_sha1): Likewise.
59858
59859         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
59860         Bruno Haible <bruno@clisp.org>.
59861
59862         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
59863         <bruno@clisp.org>.
59864
59865 2005-10-21  Simon Josefsson  <jas@extundo.com>
59866
59867         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
59868
59869 2005-10-21  Simon Josefsson  <jas@extundo.com>
59870
59871         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
59872
59873 2005-10-21  Simon Josefsson  <jas@extundo.com>
59874
59875         * lib/des.h, lib/des.c: New files.
59876
59877         * lib/gc-gnulib.c: Support DES.c
59878
59879 2005-10-21  Simon Josefsson  <jas@extundo.com>
59880
59881         * lib/arctwo.h, lib/arctwo.c: New files.
59882
59883         * lib/gc-gnulib.c: Support ARCTWO.
59884
59885 2005-10-21  Simon Josefsson  <jas@extundo.com>
59886
59887         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
59888         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59889
59890 2005-10-21  Simon Josefsson  <jas@extundo.com>
59891
59892         * gnulib-tool (func_import, func_create_testdir): Define automake
59893         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
59894         Makefile.am snippet),
59895         suggested by Bruno Haible <bruno@clisp.org>.
59896
59897         * modules/gc (Makefile.am): Use it.
59898
59899 2005-10-21  Bruno Haible  <bruno@clisp.org>
59900
59901         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
59902         patch.
59903
59904 2005-10-19  Simon Josefsson  <jas@extundo.com>
59905
59906         * tests/test-gc-rijndael.c: New file.
59907
59908         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
59909
59910 2005-10-19  Simon Josefsson  <jas@extundo.com>
59911
59912         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
59913         interface too.
59914
59915 2005-10-19  Simon Josefsson  <jas@extundo.com>
59916
59917         * tests/test-gc-arcfour.c: New file.
59918
59919         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
59920
59921 2005-10-19  Simon Josefsson  <jas@extundo.com>
59922
59923         * modules/gc-md4, modules/gc-md4-tests: New file.
59924
59925         * tests/test-gc-md4.c: New file.
59926
59927 2005-10-19  Simon Josefsson  <jas@extundo.com>
59928
59929         * m4/gc-md4.m4: New file.
59930
59931 2005-10-19  Simon Josefsson  <jas@extundo.com>
59932
59933         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
59934         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
59935         <kasal@ucw.cz>.
59936
59937 2005-10-19  Simon Josefsson  <jas@extundo.com>
59938
59939         * m4/gc-arcfour.m4: New file.
59940
59941         * m4/gc-rijndael.m4: New file.
59942
59943 2005-10-19  Simon Josefsson  <jas@extundo.com>
59944
59945         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
59946
59947 2005-10-19  Simon Josefsson  <jas@extundo.com>
59948
59949         * lib/gc-gnulib.c: Support ARCFOUR.
59950
59951 2005-10-19  Simon Josefsson  <jas@extundo.com>
59952
59953         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
59954         support.
59955
59956         * lib/gc.h: Add ECB enum type.
59957
59958         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
59959
59960 2005-10-18  Simon Josefsson  <jas@extundo.com>
59961
59962         * tests/test-md5.c: New file.
59963
59964         * modules/md5-tests: New file.
59965
59966 2005-10-18  Simon Josefsson  <jas@extundo.com>
59967
59968         * tests/test-md4.c: New file.
59969
59970         * modules/md4, modules/md4-tests: New files.
59971
59972 2005-10-18  Simon Josefsson  <jas@extundo.com>
59973
59974         * m4/md4.m4: New file.
59975
59976 2005-10-18  Simon Josefsson  <jas@extundo.com>
59977
59978         * lib/md4.h, lib/md4.c: New files, based on md5.?.
59979
59980 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
59981
59982         * gnulib-tool (func_create_testdir): Omit the second check whether
59983         BUILT_SOURCES in nonempty.
59984
59985 2005-10-17  Simon Josefsson  <jas@extundo.com>
59986
59987         * tests/test-rijndael.c: New file.
59988
59989 2005-10-17  Simon Josefsson  <jas@extundo.com>
59990
59991         * modules/sha1: Depend on stdint instead of md5.
59992
59993         * modules/md5: Depend on stdint, remove uint32_t.
59994
59995 2005-10-17  Simon Josefsson  <jas@extundo.com>
59996
59997         * modules/gc-sha1-tests: New file.
59998
59999         * tests/test-gc-sha1.c: New file.
60000
60001 2005-10-17  Simon Josefsson  <jas@extundo.com>
60002
60003         * m4/md5.m4: Remove call to uint32_t.m4.
60004
60005 2005-10-17  Simon Josefsson  <jas@extundo.com>
60006
60007         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
60008
60009         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
60010         md5.h.
60011
60012         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
60013
60014         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
60015
60016 2005-10-17  Simon Josefsson  <jas@extundo.com>
60017
60018         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
60019
60020 2005-10-17  Simon Josefsson  <jas@extundo.com>
60021
60022         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
60023
60024 2005-10-17  Simon Josefsson  <jas@extundo.com>
60025
60026         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
60027
60028         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
60029
60030 2005-10-17  Bruno Haible  <bruno@clisp.org>
60031
60032         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
60033         that it can also be used in a test.
60034
60035 2005-10-16  Bruno Haible  <bruno@clisp.org>
60036
60037         * gnulib-tool (func_emit_tests_Makefile_am): Also define
60038         TESTS_ENVIRONMENT, so that individual tests can augment it.
60039
60040         * gnulib-tool (func_create_testdir): Use an intermediate target for
60041         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
60042         macros, like $(ALLOCA_H), which cannot be passed through the command
60043         line.
60044
60045 2005-10-15  Simon Josefsson  <jas@extundo.com>
60046
60047         * modules/rijndael-tests: New file.
60048
60049         * modules/rijndael: New file.
60050
60051 2005-10-15  Simon Josefsson  <jas@extundo.com>
60052
60053         * m4/rijndael.m4: New file.
60054
60055 2005-10-15  Simon Josefsson  <jas@extundo.com>
60056
60057         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
60058
60059         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
60060
60061 2005-10-14  Simon Josefsson  <jas@extundo.com>
60062
60063         * tests/test-arcfour.c: New file.
60064
60065         * modules/arcfour, modules/arcfour-tests: New files.
60066
60067 2005-10-14  Simon Josefsson  <jas@extundo.com>
60068
60069         * m4/arcfour.m4: New file.
60070
60071 2005-10-14  Simon Josefsson  <jas@extundo.com>
60072
60073         * lib/arcfour.h, lib/arcfour.c: New files.
60074
60075 2005-10-14  Roland McGrath  <roland@redhat.com>
60076
60077         Import from libc.  [BZ #1331]
60078         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
60079         macro argument.
60080         Reported by Matej Vela <vela@debian.org>.
60081
60082 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
60085         include <wchar.h>; no longer needed.
60086
60087 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
60090
60091 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
60092         and  Ulrich Drepper  <drepper@redhat.com>
60093
60094         Import from libc.
60095         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
60096         instead of inline stream orientation test and two separate
60097         function calls.  Pay no attention to USE_IN_LIBIO.
60098
60099 2005-10-13  Simon Josefsson  <jas@extundo.com>
60100
60101         * modules/gc-hmac-md5-tests: New file.
60102
60103         * tests/test-gc-hmac-sha1.c: New file.
60104
60105         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
60106
60107         * modules/gc-hmac-md5-tests: New file.
60108
60109         * tests/test-gc-md5.c: New file.
60110
60111         * modules/gc-md5-tests: New file.
60112
60113 2005-10-13  Simon Josefsson  <jas@extundo.com>
60114
60115         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
60116         Move memory allocation outside of loop.
60117
60118 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60119
60120         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
60121         intermediate directory is in a read-only file system.  Problem
60122         reported by Eric Blake.
60123
60124 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
60125
60126         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
60127
60128 2005-10-12  Simon Josefsson  <jas@extundo.com>
60129
60130         * tests/test-hmac-sha1.c: New file.
60131
60132         * modules/hmac-sha1-tests: New file.
60133
60134         * modules/hmac-sha1: New file.
60135
60136 2005-10-12  Simon Josefsson  <jas@extundo.com>
60137
60138         * modules/gc-sha1: New file.
60139
60140 2005-10-12  Simon Josefsson  <jas@extundo.com>
60141
60142         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
60143
60144         * tests/test-gc-pbkdf2-sha1.c: New file.
60145
60146 2005-10-12  Simon Josefsson  <jas@extundo.com>
60147
60148         * modules/gc-md5, modules/gc-hmac-md5: New files.
60149
60150         * modules/gc (Files): Remove md5, memxor and hmac files.
60151
60152 2005-10-12  Simon Josefsson  <jas@extundo.com>
60153
60154         * m4/gc-pbkdf2-sha1.m4: New file.
60155
60156         * m4/gc-hmac-sha1.m4: New file.
60157
60158         * m4/gc-sha1: New file.
60159
60160         * m4/hmac-sha1.m4: New file.
60161
60162 2005-10-12  Simon Josefsson  <jas@extundo.com>
60163
60164         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
60165
60166         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
60167
60168 2005-10-12  Simon Josefsson  <jas@extundo.com>
60169
60170         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
60171         suggested by Bruno Haible <bruno@clisp.org>.
60172
60173 2005-10-12  Simon Josefsson  <jas@extundo.com>
60174
60175         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
60176
60177 2005-10-12  Simon Josefsson  <jas@extundo.com>
60178
60179         * lib/gc-pbkdf2-sha1.c: New file.
60180
60181         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
60182
60183 2005-10-12  Simon Josefsson  <jas@extundo.com>
60184
60185         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
60186
60187         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
60188
60189 2005-10-12  Simon Josefsson  <jas@extundo.com>
60190
60191         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
60192         GC_USE_HMAC_MD5, respectively.
60193
60194         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
60195         (gc_md5): Fix typo.
60196
60197         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
60198
60199         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
60200
60201         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
60202
60203 2005-10-12  Bruno Haible  <bruno@clisp.org>
60204
60205         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
60206         Reported by Stepan Kasal <kasal@ucw.cz>.
60207
60208 2005-10-11  Simon Josefsson  <jas@extundo.com>
60209
60210         * tests/test-crc.c: New file.
60211
60212         * modules/crc, modules/crc-tests: New files.
60213
60214 2005-10-11  Simon Josefsson  <jas@extundo.com>
60215
60216         * m4/crc.m4: New file.
60217
60218 2005-10-11  Simon Josefsson  <jas@extundo.com>
60219
60220         * lib/gc.h: Add gc_hash and gc_hash_buffer.
60221
60222         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
60223
60224         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
60225
60226 2005-10-11  Simon Josefsson  <jas@extundo.com>
60227
60228         * lib/crc.h, lib/crc.c: New files.
60229
60230         * lib/gc.h (gc_hash_buffer): Add doc.
60231
60232 2005-10-11  Bruno Haible  <bruno@clisp.org>
60233
60234         * modules/c-strcasestr: New file.
60235         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
60236
60237 2005-10-11  Bruno Haible  <bruno@clisp.org>
60238
60239         * modules/c-strcase: New file.
60240         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
60241
60242 2005-10-11  Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/strcasecmp.c: Include limits.h.
60245         (strcasecmp): Avoid integer overflow on exotic platforms.
60246         * lib/strncasecmp.c: Include limits.h.
60247         (strncasecmp): Avoid integer overflow on exotic platforms.
60248         Reported by Paul Eggert.
60249
60250 2005-10-11  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/c-strcasestr.h: New file, from GNU gettext.
60253         * lib/c-strcasestr.c: New file, from GNU gettext.
60254
60255 2005-10-11  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/c-strcase.h: New file, from GNU gettext.
60258         * lib/c-strcasecmp.c: New file, from GNU gettext.
60259         * lib/c-strncasecmp.c: New file, from GNU gettext.
60260
60261 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60262
60263         * modules/mempcpy (License): GPL -> LGPL.
60264         * modules/strchrnul (License): Likewise.
60265         * modules/sysexits (License): Likewise.
60266
60267 2005-10-08  Simon Josefsson  <jas@extundo.com>
60268
60269         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
60270
60271 2005-10-07  Simon Josefsson  <jas@extundo.com>
60272
60273         * m4/memxor.m4: Remove gl_C_RESTRICT call.
60274
60275 2005-10-06  Simon Josefsson  <jas@extundo.com>
60276
60277         * tests/test-hmac-md5.c: New file.
60278
60279         * modules/hmac-md5-tests: New file.
60280
60281         * modules/hmac-md5: New file.
60282
60283 2005-10-06  Simon Josefsson  <jas@extundo.com>
60284
60285         * m4/hmac-md5.m4: New file.
60286
60287         * m4/memxor.m4: Require gl_C_RESTRICT.
60288
60289 2005-10-06  Simon Josefsson  <jas@extundo.com>
60290
60291         * lib/memxor.c (memxor): Avoid casts and warnings.
60292
60293 2005-10-06  Simon Josefsson  <jas@extundo.com>
60294
60295         * lib/hmac-md5.c: New file.
60296
60297         * lib/hmac.h: New file.
60298
60299 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
60302         promotes to int, not unsigned int, to catch the AIX 5.3
60303         compiler bug.
60304
60305 2005-10-05  Simon Josefsson  <jas@extundo.com>
60306
60307         * modules/memxor: New file.
60308
60309         * modules/iconv (Files): Move config.rpath to havelib, it is used
60310         there.
60311
60312         * modules/havelib (Files): Add config.rpath.
60313
60314 2005-10-05  Simon Josefsson  <jas@extundo.com>
60315
60316         * m4/memxor.m4: New file.
60317
60318 2005-10-05  Simon Josefsson  <jas@extundo.com>
60319
60320         * lib/memxor.c (memxor): Fix compiler error.
60321
60322         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
60323         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
60324
60325         * lib/memxor.h, lib/memxor.c: New files.
60326
60327         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
60328         we assume all systems have it, suggested by Jim Meyering
60329         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
60330         any systems lack sys/socket.h; mingw32 is known to lack it, but we
60331         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
60332         same reasons.
60333
60334 2005-10-05  Simon Josefsson  <jas@extundo.com>
60335
60336         * config/srclist.txt: Add glibc bug 1423 for md5.h.
60337
60338 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60339
60340         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
60341         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
60342         needed, since the source code now assumes these .h files.
60343
60344 2005-10-05  Derek Price  <derek@ximbiot.com>
60345
60346         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
60347
60348 2005-10-05  Bruno Haible  <bruno@clisp.org>
60349
60350         * modules/stdint (License): Change to LGPL.
60351
60352 2005-10-04  Simon Josefsson  <jas@extundo.com>
60353
60354         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
60355         D. Baushke" <mdb@gnu.org>.
60356
60357 2005-10-04  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/verify.h (verify_true): Provide alternative definition for C++.
60360
60361 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60362
60363         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
60364         (SSIZE_MAX): New macro, if not already defined.
60365         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
60366         than 2 GiB.
60367
60368 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         Sync from coreutils.
60371         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
60372         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
60373         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
60374         ULLONG_MAX doesn't work with 2.7.2.1.
60375
60376 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60377
60378         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
60379         From Ben Pfaff.
60380
60381         * modules/exclude (Depends-on): Depend on verify.
60382         * modules/strtoimax (Depends-on): Likewise.
60383         * modules/utimecmp (Depends-on): Likewise.
60384
60385 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         * lib/exclude.c: Include verify.h.
60388         (verify): Remove.  All callers changed to use verify.h's version.
60389         * lib/strtoimax.c: Likewise.
60390         * lib/utimecmp.c: Likewis.e
60391
60392         Sync from coreutils.
60393         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
60394         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
60395         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
60396         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
60397         bother returning ENOSYS if settimeofday or stime fails; just let
60398         them return whatever errno they want to return.
60399         * lib/utimens.c: Include unistd.h, for dup2.
60400         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
60401         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
60402
60403 2005-10-02  Jim Meyering  <jim@meyering.net>
60404
60405         Sync from coreutils.
60406         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
60407         from glibc-2.2.5 that fails for read-only files.
60408
60409 2005-10-02  Jim Meyering  <jim@meyering.net>
60410
60411         Sync from coreutils.
60412         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
60413         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
60414         `#if HAVE_CONFIG_H'.
60415         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
60416         Remove AT_FDCWD test.
60417         Do not consume the fd unless successful.
60418         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
60419         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
60420         block, so that we don't even try to compile it if settimeofday is
60421         available.  This works around a compilation failure on OSF1 V5.1,
60422         due to stime requiring a `long int*' while tv_sec is `int'.
60423
60424 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
60425
60426         Sync from coreutils.
60427         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
60428         against `yes', rather than just testing for nonempty.
60429
60430 2005-10-01  Simon Josefsson  <jas@extundo.com>
60431
60432         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
60433         and Darwin.
60434
60435         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
60436         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
60437         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
60438         freeaddrinfo and gai_strerror are declared by the POSIX headers.
60439         Check if struct addrinfo is declared.
60440
60441 2005-10-01  Simon Josefsson  <jas@extundo.com>
60442
60443         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
60444         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
60445         AI_* and EAI_* definitions.  Protect function declarations.
60446
60447 2005-10-01  Jim Meyering  <jim@meyering.net>
60448
60449         Sync from coreutils.
60450
60451         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
60452         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
60453         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
60454         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60455         in the inet and nsl libraries.  Required on Solaris 5.7.
60456
60457 2005-10-01  Jim Meyering  <jim@meyering.net>
60458
60459         Sync from coreutils.
60460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60461         in the inet and nsl libraries.  Required on Solaris 5.7.
60462
60463 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
60464
60465         * lib/getdelim.c (getdelim): Remove unused variables.
60466
60467 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60468
60469         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
60470         so that the code works even with ancient cpp.  Portability problem
60471         with GCC 2.7.2.1 reported by Thomas M.Ott.
60472
60473 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60474
60475         * modules/regex (Depends-on): Add strcase.
60476
60477         * modules/gethostname (Licence): Change from GPL to LGPL, since
60478         gethostname.c is a trivial implementation of a standard library
60479         function.
60480         * modules/poll (License): Change from GPL to LGPL, since it's
60481         derived from LGPL code.
60482
60483 2005-09-27  Jim Meyering  <jim@meyering.net>
60484
60485         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
60486         HAVE_CONFIG_H.
60487
60488         * lib/intprops.h (signed_type_or_expr__): Define.
60489         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
60490         for unsigned types.
60491
60492 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60493
60494         * lib/verify.h (verify_expr): Remove, replacing with:
60495         (verify_true): New macro that returns true instead of void.
60496         (verify_type__): Remove.
60497         (verify): Use verify_true rather than verify_type__.
60498
60499 2005-09-26  Bruno Haible  <bruno@clisp.org>
60500
60501         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
60502         is necessary.
60503         (lib_SOURCES): Remove mbchar.c.
60504         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
60505         (Files): Add m4/mbrtowc.m4.
60506         * modules/mbiter: Likewise.
60507         * modules/mbuiter: Likewise.
60508
60509 2005-09-26  Bruno Haible  <bruno@clisp.org>
60510
60511         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
60512         compile mbchar.c if they are not both present.
60513         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
60514         * m4/mbiter.m4 (gl_MBITER): Likewise.
60515         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
60516         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
60517         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
60518
60519 2005-09-25  Jim Meyering  <jim@meyering.net>
60520
60521         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
60522         also uses socklen_t.
60523
60524 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * lib/utimens.c (ENOSYS): Define if not already defined.
60527         (futimens): Support having a null PATH if the file descriptor
60528         is nonnegative.
60529
60530         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
60531         Remove.
60532         (__attribute): Define to empty unless GCC 3.1 or later.
60533         This works around a core dump on OpenBSD 3.4, which has GCC
60534         2.95.3, which dumps core when given __attribute__(()).  It also
60535         simplifies other tests, since we really don't want to bother with
60536         worrying about which ancient version of GCC supported what.
60537         Original problem reported by Yoann Vandoorselaere, with part of
60538         the fix suggested by Derek Price.
60539
60540 2005-09-24  Jim Meyering  <jim@meyering.net>
60541
60542         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
60543         so we can once again use a positive bitfield width of 1 -- now we
60544         don't have to explain why we were using a bitfield width of 2.
60545
60546 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60547
60548         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
60549         and similarly for the other external symbols.  Problem reported
60550         by James Gallager.
60551
60552         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
60553         bug reported by Jim Meyering.
60554
60555         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
60556         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
60557         not needed, since socklen is a prerequisite module.
60558
60559 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60560
60561         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
60562         Problem reported by Eric Blake.
60563         (getaddrinfo): Initialize se so that it's not garbage.
60564         Redo internal storage allocation so that it doesn't make unportable
60565         assumptions about alignment.
60566         Fix a memory leak.
60567
60568         * lib/utimens.c (futimens): Use futimesat if available.
60569         Prefer it to futimes since it doesn't have the futimes bug.
60570
60571         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
60572         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
60573         Instead, declare a function that returns a pointer to an array,
60574         and use verify_type__ to declare the size of the array.
60575         Problem and germ of a solution reported by Bruno Haible.
60576         (verify_type__): Use 2, not 1, for bitfield size, to avoid
60577         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
60578
60579 2005-09-23  Jim Meyering  <jim@meyering.net>
60580
60581         Sync from coreutils.
60582         Correct build failure (socklen_t not defined) on at least
60583         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
60584         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
60585
60586 2005-09-23  Jim Meyering  <jim@meyering.net>
60587
60588         * modules/getaddrinfo (Depends-on): Add socklen.
60589
60590 2005-09-23  Bruno Haible  <bruno@clisp.org>
60591
60592         * tests/test-verify.c: New file.
60593
60594 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60595
60596         Sync from coreutils.
60597
60598         * modules/argmatch (Depends-on): Add verify.
60599         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
60600         unistd-safer.
60601         * modules/save-cwd (Depends-on): Likewise.
60602
60603         * modules/openat (Files): Add lib/openat-die.c.
60604         (Depends-on): Remove error, exitfail.
60605         Add dirname.
60606
60607         * modules/verify: New file.
60608         * MODULES.html.sh (Diagnostics <assert.h>): New section,
60609         with "verify" module.
60610
60611 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60612
60613         Sync from coreutils.
60614
60615         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
60616         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
60617         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
60618         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
60619         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
60620         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
60621         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
60622         Don't bother checking for string.h, stdlib.h, unistd.h.
60623         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
60624         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
60625         module's job.
60626         * m4/jm-macros.m4 (gl_MACROS): Likewise.
60627         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
60628
60629         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
60630         (gl_GETDATE): Use it.
60631
60632         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
60633
60634 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60635
60636         Sync from coreutils.
60637
60638         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
60639         stat-time.h.
60640         * lib/argmatch.h: Include verify.h
60641         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
60642         (ARGMATCH_ASSERT): Remove; unused.
60643         * lib/canonicalize.c: Assume STDC_HEADERS.
60644         * lib/exclude.c: Include "strcase.h".
60645         * lib/regex_internal.h [!defined _LIBC]: Likewise.
60646         * lib/getusershell.c: Include stdio--.h rather than stdio.h
60647         and stdio-safer.h.
60648         (getusershell): Call fopen, not fopen_safer.
60649         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
60650         Do not include unistd-safer.h.
60651         (save_cwd): Don't call fd_safer; no longer needed
60652         now that we include fcntl--.h.
60653
60654         * lib/getdate.y (relative_time): New type.
60655         (RELATIVE_TIME_0): New constant.
60656         (parser_control): Use relative_time instead of doing it ourselves.
60657         (%union): Add new relative_time rel member.
60658         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
60659         Now typeless.
60660         (relunit, relunit_snumber): Now of type rel.
60661         (zone, rel, relunit, get_date): Adjust to above changes.
60662
60663         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
60664         Do not include unistd-safer.h.
60665         (getloadavg): Don't call fd_safer; no longer needed
60666         now that we include fcntl--.h.
60667
60668         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
60669         (make_dir_parents): Treat ENOSYS like EEXIST.
60670
60671         Improve quality of diagnostics on restore_cwd failure.
60672         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
60673         (make_dir_parents): Last arg is now int * (for errno), not bool *.
60674         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
60675         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
60676         each time through the loop.  Do not diagnose restore_cwd failure;
60677         that is the caller's job (and perhaps the caller does not care).
60678
60679         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
60680         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
60681         If the file already exists but is not a directory, don't bother
60682         to try to make its parents.
60683         Close potential file descriptor leak if we can't chdir("/") (!).
60684         Don't always return true if chdir($PWD) fails; return true only
60685         if the requested action was done successfully (except for the
60686         chdir($PWD)).
60687         Don't log final directory unless we actually made it.
60688         Refactor to avoid duplicate code to fix up permissions.
60689         Don't attempt to fix up parent permissions if chdir($PWD) fails.
60690
60691         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
60692         to make it a bit faster and (I hope) clearer.
60693         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
60694         Fix bug in formats like %2N.
60695
60696         * lib/verify.h: New file.
60697
60698 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60699
60700         Sync from coreutils.
60701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
60702
60703 2005-09-22  Jim Meyering  <jim@meyering.net>
60704
60705         Sync from coreutils.
60706
60707         * m4/lstat.m4 (gl_FUNC_LSTAT):
60708         Use AC_LIBSOURCES to require lstat.c and lstat.h.
60709         Remove obsolete comment.
60710         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
60711         * m4/xstrtod.m4: Likewise.
60712
60713         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
60714
60715 2005-09-22  Jim Meyering  <jim@meyering.net>
60716
60717         Sync from coreutils.
60718
60719         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
60720
60721         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
60722         the .tm_year member, since otherwise gcc-4.0 would now warn about
60723         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
60724
60725         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
60726         order to avoid an unsuppressible warning from gcc on 64-bit systems.
60727
60728         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
60729         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
60730         when run in a time zone for which daylight savings time is in effect
60731         for the starting date.
60732
60733         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
60734         stop us from restricting permissions of just-created absolute-named
60735         directories.
60736         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
60737         to restore initial working directory.
60738         * lib/mkdir-p.c (make_dir_parents): New parameter:
60739         different_working_dir, to tell caller if/when we change the working
60740         directory and are unable to return to the initial one.
60741         * lib/mkdir-p.h (make_dir_parents): Update prototype.
60742         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
60743         `return false'.  This fixes a bug introduced on 2004-07-30.
60744
60745         * lib/openat.c (fdopendir): Be sure to close the supplied
60746         file descriptor before returning.  This makes our replacement
60747         implementation a little closer to Solaris's, where fdopendir
60748         ties the file descriptor to the returned DIR* pointer.
60749         * lib/openat.c (unlinkat): New function.
60750         * lib/openat.h (unlinkat): Add prototype.
60751         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
60752         (openat_restore_fail): Rename from openat_restore_die.
60753         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
60754
60755         Provide an alternative to exiting immediately upon save_cwd or
60756         restore_cwd failure.  Now, an application can arrange e.g.,
60757         to perform a longjump in that case.
60758         * lib/openat.c: Include dirname.h.
60759         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
60760         (rpl_openat, fdopendir, fstatat): Call openat_save_die
60761         and openat_restore_die rather than calling error directly.
60762         Don't include "error.h" or "exitfail.h"; they're no longer needed.
60763
60764         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
60765         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
60766         define.
60767
60768         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
60769         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
60770                             int utc, int nanoseconds);
60771         Background:
60772         date should not have to allocate a megabyte of virtual memory to
60773         handle a format argument like +%1048575T.  When implemented with
60774         strftime, it must allocate such a buffer, use strftime to fill it
60775         in, print it, then free it.
60776         With fprintftime, it simply prints everything and exits.
60777         With no need for memory allocation, that's one fewer way to fail.
60778         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
60779         optional field width, not before, so we accept %9:z, not %:9z.
60780         (my_strftime): Be sure to use L_('x') for literals.
60781
60782         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
60783         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
60784         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
60785         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
60786         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
60787         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
60788         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
60789         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
60790         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
60791         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
60792         * lib/xgethostname.c, lib/xreadlink.c:
60793         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
60794
60795         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
60796         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
60797         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
60798         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60799         and don't include <sys/file.h>).
60800
60801 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
60802
60803         Sync from coreutils.
60804
60805         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
60806         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
60807         [!LDAV_DONE]: Avoid unused variable warning.
60808
60809 2005-09-21  Bruno Haible  <bruno@clisp.org>
60810
60811         * lib/unicodeio.h (unicode_to_mb): New declaration.
60812
60813 2005-09-20  Derek Price  <derek@ximbiot.com>
60814
60815         * lib/getaddrinfo.c: Don't include <netdb.h> included from
60816         getaddrinfo.h.
60817
60818 2005-09-20  Bruno Haible  <bruno@clisp.org>
60819
60820         * gnulib-tool: Remove trailing slashes from the values specified for
60821         --source-base, --m4-base, --tests-base, --aux-dir.
60822         Suggested by Simon Josefsson <jas@extundo.com>.
60823
60824 2005-09-20  Bruno Haible  <bruno@clisp.org>
60825
60826         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
60827         func_modules_to_filelist, func_import, func_create_testdir): Make all
60828         sorting results locale-independent, so that gnulib-cache.m4 doesn't
60829         change when gnulib-tool is invoked in a different locale.
60830
60831 2005-09-19  Simon Josefsson  <jas@extundo.com>
60832
60833         * m4/socklen.m4: Fix typo.
60834
60835 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60836
60837         Use a consistent style for including <config.h>.
60838         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
60839         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
60840         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
60841         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
60842         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
60843         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
60844         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
60845         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
60846         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
60847         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
60848         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
60849         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
60850         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
60851         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
60852         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
60853         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
60854         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
60855         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
60856         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
60857         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
60858         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
60859         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
60860         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
60861         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
60862         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
60863         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
60864         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
60865         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
60866         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
60867         lib/xstrtoumax.c, lib/yesno.c:
60868         Standardize inclusion of config.h.
60869         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
60870         lib/inttostr.h:  Removed inclusion of config.h from header files.
60871         * lib/inttostr.c:  Adjusted in-tree users.
60872         * lib/timespec.h: Remove superfluous warning to include config.h.
60873         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
60874         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
60875         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
60876         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
60877         config.h with HAVE_CONFIG_H.
60878
60879 2005-09-19  Jim Meyering  <jim@meyering.net>
60880
60881         * modules/pathmax (License): Change to LGPL.
60882
60883 2005-09-19  Derek Price  <derek@ximbiot.com>
60884
60885         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
60886
60887 2005-09-19  Bruno Haible  <bruno@clisp.org>
60888
60889         * gnulib-tool (import): Provide default for --tests-base.
60890
60891 2005-09-19  Bruno Haible  <bruno@clisp.org>
60892
60893         * doc/quote.texi: New file, extracted from gnulib.texi.
60894         * doc/ctime.texi: New file, extracted from gnulib.texi.
60895         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
60896         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
60897         * doc/gnulib.texi: Include them.
60898
60899 2005-09-18  Bruno Haible  <bruno@clisp.org>
60900
60901         Portability fix.
60902         * gnulib-tool (func_readlink): New function.
60903         (func_ln_if_changed): Use it.
60904
60905 2005-09-18  Bruno Haible  <bruno@clisp.org>
60906
60907         * gnulib-tool: Support --with-tests also with --import.
60908         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
60909         (func_import): Use variables $testsbase and $inctests. Emit a
60910         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
60911         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
60912         SUBDIRS += $testsdir.
60913         (func_create_testdir): Update.
60914
60915 2005-09-18  Bruno Haible  <bruno@clisp.org>
60916
60917         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
60918         instead of $dry_run.
60919         (func_cp_if_changed, func_mv_if_changed): Remove functions.
60920         (func_ln_if_changed): Don't handle dry-run here.
60921         (func_import): In dry-run mode, detect more precisely which actions
60922         would be performed, and don't use "...ing" verbs.
60923
60924 2005-09-18  Bruno Haible  <bruno@clisp.org>
60925
60926         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
60927         (func_import): Use join on two temporary files instead of three nested
60928         loops, in order to determine which files are new or old.
60929
60930 2005-09-18  Bruno Haible  <bruno@clisp.org>
60931
60932         * gnulib-tool (func_import): Comment out code that spits out the
60933         new files with --dry-run.
60934
60935 2005-09-18  Bruno Haible  <bruno@clisp.org>
60936
60937         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
60938
60939 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60940
60941         * lib/stat-time.h: New file.
60942         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
60943         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
60944         in a different way.
60945         (timespec_cmp): New function.
60946         * lib/utimecmp.c: Include stat-time.h.
60947         (SYSCALL_RESOLUTION): Depend on whether various struct stat
60948         members exist, not on the obsolescent ST_MTIM_NSEC.
60949         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
60950
60951 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
60954
60955 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         * MODULES.html.sh (File system functions): Add stat-time.
60958         * modules/stat-time: New file.
60959         * modules/timespec (Files): Remove m4/st_mtim.m4; this
60960         is now done in a different way, by the stat-time module.
60961         * modules/utimecmp (Depends-on): Add stat-time.
60962
60963 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60964
60965         * m4/st_mtim.m4: Remove.  Superseded by...
60966         * m4/stat-time.m4: New file.
60967         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
60968         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
60969
60970 2005-09-15  Derek Price  <derek@ximbiot.com>
60971
60972         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
60973
60974 2005-09-15  Derek Price  <derek@ximbiot.com>
60975
60976         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
60977         * lib/regex_internal.c: Ditto, using this...
60978         (__GNUC_PREREQ): ...new macro.
60979         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
60980         using...
60981         (__GNUC_PREREQ): ...this new macro.
60982
60983         * lib/strstr.h: Include string.h. Define strstr as a macro here.
60984
60985 2005-09-15  Derek Price  <derek@ximbiot.com>
60986             Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
60989         changes, consolidating in...
60990         * lib/regex_internal.h: ...this file.
60991
60992 2005-09-13  Jim Meyering  <jim@meyering.net>
60993
60994         * lib/canon-host.c: Filter through gnu indent and reword comments
60995         slightly.
60996         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
60997
60998 2005-09-13  Derek Price  <derek@ximbiot.com>
60999
61000         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
61001         failure.
61002         Reported by Jim Meyering  <jim@meyering.net>.
61003
61004 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61005
61006         * lib/base64.c: Typo.
61007         (base64_encode): Put b64str in initialized data section.
61008
61009 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         Merge glibc and coreutils changes into gnulib, plus a few
61012         extra fixes.
61013         * lib/md5.c: Use #error rather than a string.
61014         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
61015         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
61016         (__attribute__): Define to empty for non recent-GCC.
61017         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
61018         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
61019         Renamed from their non-__ counterparts, with new macros replacing
61020         them if not _LIBC.  Add __THROW attribute.
61021         (rol): Remove.
61022         (struct md5_ctx): Align buffer if using GCC.
61023         * lib/sha1.h (struct sha1_ctx): Likewise.
61024         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
61025         The old name was backwards.
61026         (NOTSWAP): Remove; not used.
61027         (rol): New macro, moved here from md5.h.
61028         (sha1_process_block): Remove a FIXME that doesn't make sense.
61029
61030 2005-09-12  Derek Price  <derek@ximbiot.com>
61031
61032         Return usable errors from canon-host.
61033         * lib/canon-host.h: New file.
61034         * lib/canon-host.c (canon_host): Wrap...
61035         (canon_host_r): ...this new function, which now relies exclusively on
61036         getaddrinfo.
61037         (ch_strerror): New function.
61038         (last_cherror): New global.
61039         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
61040         interface.
61041         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
61042         void *.
61043         (freeaddrinfo): Free ai->ai_canonname when set.
61044
61045 2005-09-12  Derek Price  <derek@ximbiot.com>
61046
61047         Make canon-host require getaddrinfo.
61048         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
61049         AC_LIBSOURCE canon-host.h.  Call...
61050         (gl_PREREQ_CANON_HOST): ...this new function, which requires
61051         gl_GETADDRINFO.
61052         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
61053
61054 2005-09-12  Derek Price  <derek@ximbiot.com>
61055
61056         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
61057         LGPL.
61058         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
61059
61060 2005-09-12  Derek Price  <derek@ximbiot.com>
61061
61062         * lib/gai_strerror.c: Include config.h when available.  Include
61063         getaddrinfo.h before other headers to test interface.
61064         Reported by Larry Jones <lawrence.jones@ugs.com>.
61065
61066 2005-09-12  Derek Price  <derek@ximbiot.com>
61067             Paul Eggert  <eggert@cs.ucla.edu>
61068
61069         * modules/glob (Files): Add glob-libc.h.
61070
61071 2005-09-12  Derek Price  <derek@ximbiot.com>
61072             Paul Eggert  <eggert@cs.ucla.edu>
61073
61074         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
61075         glob_.h, glob-libc.h.
61076         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
61077
61078 2005-09-12  Derek Price  <derek@ximbiot.com>
61079             Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
61082         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
61083         protecting things that should be done only in gnulib contexts.
61084         * lib/glob_.h: New file, containing only the glob things needed for
61085         gnulib.
61086         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
61087         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
61088         (glob, globfree, glob_pattern_p): Now defined simply in terms of
61089         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
61090         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
61091         and to respect the namespace rules better.
61092
61093 2005-09-08  Simon Josefsson  <jas@extundo.com>
61094
61095         * modules/socklen: New file.
61096
61097 2005-09-08  Simon Josefsson  <jas@extundo.com>
61098
61099         * m4/socklen.m4: New file.
61100
61101 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61102
61103         * modules/utimens (Files): Add m4/utimbuf.m4, since
61104         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
61105         Reported by Sergey Poznyakoff.
61106
61107 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61108
61109         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
61110         definitions, since that's the preferred style in glibc.
61111         Fix a minor spacing issue, and update copyright notice to match
61112         glibc's.
61113
61114 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
61117
61118 2005-09-06  Simon Josefsson  <jas@extundo.com>
61119
61120         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
61121         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
61122
61123 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
61126         warning.
61127
61128 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61129
61130         * config/srclist.txt: Add glibc bug 1302.
61131
61132 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
61133
61134         Change bitset word type from unsigned int to unsigned long int,
61135         as this has better performance on typical 64-bit hosts.
61136         Port bitset code to hosts with unusual word sizes.
61137         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
61138         (build_collating_symbol):
61139         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
61140         argument is a bitset.  This is merely a style issue, but it makes
61141         it clearer that an entire array is expected.
61142         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
61143         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
61144         Port to the case where bitset_word is not the same as unsigned int.
61145         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61146         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
61147         Likewise.
61148         * lib/regexec.c (check_dst_limits_calc_pos_1,
61149         check_subexp_matching_top):
61150         (build_trtable, group_nodes_into_DFAstates):
61151         Likewise.
61152         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
61153         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
61154         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
61155         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
61156         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
61157         * lib/regcomp.c (optimize_subexps, lower_subexp):
61158         Work even if bitset_word has holes in its bitwise representation.
61159         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
61160         * lib/regexec.c (check_dst_limits_calc_pos_1,
61161         check_subexp_matching_top):
61162         Likewise.
61163         * lib/regex_internal.c (re_string_reconstruct):
61164         Don't assume UCHAR_MAX == 255.
61165         * lib/regex_internal.h (bitset_set_all): Likewise.
61166         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
61167         All uses changed.
61168         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
61169         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
61170         All uses changed.
61171         (BITSET_WORD_MAX): New macro.
61172         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
61173         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
61174         (bitset_empty, bitset_copy):
61175         Prefer sizeof (bitset) to multiplying it out ourselves.
61176         (bitset_not_merge): Remove; unused.
61177         (bitset_contain): Return bool, not unsigned int with one bit on.
61178         All callers changed.
61179         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
61180         alignment than re_node_set; do this by defining a new internal
61181         type struct dests_alloc and using it to allocate memory.
61182
61183 2005-09-05  Bruno Haible  <bruno@clisp.org>
61184
61185         * gnulib-tool (func_import): Fix comparison in handling of symbolic
61186         links.
61187
61188 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
61189
61190         * modules/size_max (Makefile.am): Add size_max.h
61191
61192 2005-09-04  Derek Price  <derek@ximbiot.com>
61193
61194         * gnulib-tool (func_import): Fix reversed $symbolic logic.
61195
61196 2005-09-03  Simon Josefsson  <jas@extundo.com>
61197
61198         * gnulib-tool: Fix typo.
61199
61200 2005-09-03  Simon Josefsson  <jas@extundo.com>
61201
61202         * config/srclist.txt: Add glibc bug 1293.
61203
61204 2005-09-03  Derek Price  <derek@ximbiot.com>
61205
61206         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
61207         From Larry Jones <lawrence.jones@ugs.com>.
61208
61209 2005-09-02  Simon Josefsson  <jas@extundo.com>
61210
61211         * modules/socklen: New file.
61212
61213 2005-09-02  Simon Josefsson  <jas@extundo.com>
61214
61215         * modules/havelib: New module.
61216
61217         * modules/gettext, modules/iconv, modules/lock, modules/readline:
61218         Use havelib.
61219
61220 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61221
61222         Check for arithmetic overflow when calculating sizes, to prevent
61223         some buffer-overflow issues.  These patches are conservative, in the
61224         sense that when I couldn't determine whether an overflow was possible,
61225         I inserted a run-time check.
61226         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
61227         macros.
61228         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
61229         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
61230         (re_xnrealloc, re_x2nrealloc): New inline functions.
61231         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
61232         parse_bracket_exp):
61233         (build_equiv_class, build_charclass): Check for arithmetic overflow
61234         in size expression calculations.
61235         * lib/regex_internal.c (re_string_realloc_buffers):
61236         (build_wcs_upper_buffer, re_node_set_add_intersect):
61237         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
61238         (re_dfa_add_node, register_state): Likewise.
61239         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
61240         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
61241         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
61242         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
61243
61244 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61247         m4/ulonglong.m4.  Problem reported by Martin Lambers.
61248
61249 2005-09-02  Bruno Haible  <bruno@clisp.org>
61250
61251         Support for lib vs. lib64 distinction on biarch platforms.
61252         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
61253         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
61254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
61255
61256 2005-09-02  Bruno Haible  <bruno@clisp.org>
61257
61258         * gnulib-tool (import): In the other first-use case, provide defaults
61259         as well.
61260
61261 2005-09-02  Bruno Haible  <bruno@clisp.org>
61262
61263         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
61264         patches not yet found in the latest gettext release.
61265
61266 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61267
61268         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
61269         to avoid a collision with bits/local_lim.h in glibc.
61270         All uses changed.  Problem reported by Dmitry V. Levin in
61271         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
61272
61273         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
61274         bugs in int versus size_t comparisons.
61275         (re_string_context_at): Fix bug where the code assumed that
61276         Idx is signed.
61277
61278         Use bool where appropriate.
61279         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
61280         All callers changed.
61281         (calc_eclosure_iter): Likewise, for ROOT arg.
61282         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
61283         (build_charclass_op): Likewise, for NON_MATCH arg.
61284         * lib/regex_internal.c (re_string_allocate, re_string_construct):
61285         (re_string_construct_common): Likewise, for ICASE arg.
61286         * lib/regexec.c (re_search_2_stub, re_search_stub):
61287         Likewise, for RET_LEN arg.
61288         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
61289         (set_regs): Likewise, for FL_BACKTRACK arg.
61290         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
61291         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
61292         (calc_eclosure_iter, parse_bracket_exp):
61293         Use bool for internal variables that are booleans.
61294         * lib/regexec.c (re_search_internal, check_matching,
61295         proceed_next_node):
61296         (set_regs, build_sifted_states, sift_states_bkref):
61297         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
61298         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61299         (find_collation_sequence_value):
61300         Likewise.
61301         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
61302         (re_node_set_compare):
61303         Return bool, not int. All callers changed.
61304         * lib/regexec.c (check_halt_node_context, check_dst_limits):
61305         (build_trtable, check_node_accept): Likewise.
61306         * lib/regex_internal.h: Include stdbool.h.
61307
61308         Fix bugs uncovered when converting to bool.
61309         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
61310         failure instead of charging ahead blindly.
61311         * lib/regex_internal.c (register_state): Likewise.
61312         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
61313         for freeing internal storage.
61314         (group_nodes_into_DFA_states): Use unsigned int, not int, for
61315         bitset pieces used as boolean, to avoid undefined behavior
61316         on hosts that do int overflow checking.
61317
61318 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         * config/srclist.txt: Add glibc bugs 1285-1287.
61321
61322 2005-09-01  Jim Meyering  <jim@meyering.net>
61323
61324         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
61325         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
61326         Require gl_STAT_MACROS, too.
61327
61328 2005-09-01  Bruno Haible  <bruno@clisp.org>
61329
61330         * gnulib-tool (import): In the first-use case, provide defaults.
61331
61332 2005-09-01  Bruno Haible  <bruno@clisp.org>
61333
61334         * gnulib-tool (func_import): Remove the .tmp files.
61335
61336 2005-09-01  Bruno Haible  <bruno@clisp.org>
61337
61338         * gnulib-tool (func_import): Fix handling of symbolic links.
61339
61340 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
61343         old glibc regex code mishandles strings longer than 2**31 bytes.
61344         This patch fixes this when the regex code is used in gnulib
61345         (i.e., outside glibc).
61346
61347         This patch should not affect the use of the regex code inside
61348         glibc.  No doubt this problem also needs to be handled for glibc
61349         as well, but the result will be an incompatible change to the
61350         glibc ABI, and the old ABI will have to be supported too.  That
61351         can be the the subject for another patch.
61352
61353         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
61354         governing whether the rest of this patch is active.  By default,
61355         the macro is disabled and the patch has no effect.
61356         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
61357         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
61358         (struct re_pattern_buffer, re_search, re_search_2, re_match):
61359         (re_match_2, re_set_registers): Use the new types.
61360         * lib/regex_internal.h (Idx, re_hashval_t): New types.
61361         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
61362         New macros.
61363         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
61364         (re_string_context_at, bin_tree_t, re_dfastate_t):
61365         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
61366         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
61367         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
61368         (re_string_char_size_at, re_string_wchar_at):
61369         (re_string_elem_size_at):
61370         Use the new types and macros to port to 64-bit hosts.
61371         Use unsigned types for internal values, so that the code
61372         mostly works even for arrays larger than SSIZE_MAX.
61373         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
61374         (search_duplicated_node, calc_eclosure_iter, fetch_number):
61375         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
61376         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
61377         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
61378         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
61379         (calc_inveclosure, parse_dup_op, build_range_exp):
61380         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
61381         (fetch_number, create_token_tree, mark_opt_subexp):
61382         Likewise.
61383         * lib/regex_internal.c (re_string_construct_common,
61384         create_ci_newstate):
61385         (create_cd_newstate, re_string_allocate, re_string_construct):
61386         (re_string_realloc_buffers, build_wcs_upper_buffer):
61387         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61388         (re_string_reconstruct, re_string_peek_byte_case):
61389         (re_string_fetch_byte_case, re_string_context_at):
61390         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61391         (re_node_set_init_copy, re_node_set_add_intersect):
61392         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61393         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61394         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61395         (re_acquire_state, re_acquire_state_context, register_state):
61396         Likewise.
61397         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
61398         search_cur_bkref_entry):
61399         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
61400         (re_search_internal, re_search_2_stub, re_search_stub)
61401         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
61402         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
61403         (update_cur_sifted_state, check_dst_limits):
61404         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61405         (check_subexp_limits, sift_states_bkref, merge_state_array):
61406         (check_subexp_matching_top, get_subexp, get_subexp_sub):
61407         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
61408         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61409         (expand_bkref_cache, check_node_accept_bytes):
61410         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
61411         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
61412         (acquire_init_state_context, check_halt_node_context):
61413         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
61414         (sift_states_backward, clean_state_log_if_needed):
61415         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
61416         (find_recover_state, transit_state_sb, transit_state_mb):
61417         (transit_state_bkref, build_trtable, match_ctx_clean):
61418         Likewise.
61419         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
61420         to work around an assumption that REG_MISSING is negative.
61421
61422         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
61423         (seek_collating_symbol_entry) [defined _LIBC]:
61424         (lookup_collation_sequence_value) [defined _LIBC]:
61425         (build_range_exp, build_collating_symbol) [defined _LIBC]:
61426         Use prototypes rather than old-style function definitions.
61427         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
61428         (transit_state_sb) [0]:
61429         (find_collation_sequence_value) [defined _LIBC]: Likewise.
61430
61431         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
61432         rm_eo.
61433
61434         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
61435         (optimize_subexps, lower_subexp):
61436         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
61437         since the signed shift might overflow.  Use 1u<<31 instead.
61438         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61439         Likewise.
61440         * lib/regexec.c (check_dst_limits_calc_pos_1,
61441         check_subexp_matching_top): Likewise.
61442
61443         * lib/regcomp.c (optimize_subexps, lower_subexp):
61444         Use CHAR_BIT rather than 8, for clarity.
61445         * lib/regexec.c (check_dst_limits_calc_pos_1):
61446         (check_subexp_matching_top): Likewise.
61447         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
61448         have to worry about portability issues when shifting it left.
61449         Remove no-longer-needed test for table_size > 0.
61450         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
61451         in a word, as the resulting behavior is undefined.
61452         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
61453         in one case, a <= should have been an <, and in another case the
61454         whole test was missing.
61455         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
61456         the standard name CHAR_BIT.
61457         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
61458         this is not true on one's complement and signed-magnitude hosts.
61459
61460         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
61461         next_last_offset.
61462         (struct re_dfa_t): Remove unused member states_alloc.
61463         * lib/regcomp.c (init_dfa): Don't initialize unused members.
61464
61465 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
61468         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
61469         and large-file glibc and in 32-bit large-file Solaris.
61470
61471 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61472
61473         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
61474         lengths fit in regoff_t; this isn't true if regoff_t is the same
61475         width as size_t.
61476         * lib/regex.c (re_search_internal): 5th arg is LAST_START
61477         (= START + RANGE) instead of RANGE.  This avoids overflow
61478         problems when regoff_t is the same width as size_t.
61479         All callers changed.
61480         (re_search_2_stub): Check for overflow when adding the
61481         sizes of the two strings.
61482         (re_search_stub): Check for overflow when adding START
61483         to RANGE; if it occurs, substitute the extreme value.
61484
61485 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61486
61487         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
61488
61489 2005-08-31  Jim Meyering  <jim@meyering.net>
61490
61491         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
61492         a pointer-to-const.
61493         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
61494         (register_state): Likewise.
61495         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
61496         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61497         (group_nodes_into_DFAstates): Likewise.
61498
61499 2005-08-31  Jim Meyering  <jim@meyering.net>
61500
61501         * check-module: Add a FIXME comment.
61502
61503 2005-08-31  Eric Blake  <ebb9@byu.net>
61504
61505         * modules/unistd-safer (Files): Add unistd--.h.
61506         * modules/stdio-safer (Files): Add stdio--.h.
61507
61508 2005-08-31  Derek Price  <derek@ximbiot.com>
61509
61510         * lib/getdelim.c (getdelim): Return EOF on EOF.
61511         Reported by Larry Jones <lawrence.jones@ugs.com>.
61512
61513 2005-08-31  Bruno Haible  <bruno@clisp.org>
61514
61515         Avoid unnecessary diffs in the generated lib/Makefile.am.
61516         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
61517         the generated files.
61518         (func_import): Don't set cmd.
61519
61520 2005-08-31  Bruno Haible  <bruno@clisp.org>
61521
61522         * lib/strstr.c: Include <stddef.h>, for NULL.
61523         * lib/strcasestr.c: Likewise.
61524         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61525
61526 2005-08-31  Bruno Haible  <bruno@clisp.org>
61527
61528         * gnulib-tool: New option --macro-prefix.
61529         (func_import): Use macro_prefix.
61530         (import): Handle option --macro-prefix.
61531
61532 2005-08-31  Bruno Haible  <bruno@clisp.org>
61533
61534         * gnulib-tool (import): Rename most ac_* variables to cached_*.
61535         Also use new variables cached_lgpl, cached_libtool.
61536
61537 2005-08-31  Bruno Haible  <bruno@clisp.org>
61538
61539         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
61540         always instantiating them.
61541
61542 2005-08-31  Bruno Haible  <bruno@clisp.org>
61543
61544         * gnulib-tool (func_import): Read the previous cached settings
61545         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
61546         earlier added by gnulib but are now dropped. Warn when a gnulib file
61547         overwrites a non-gnulib file.
61548
61549 2005-08-31  Bruno Haible  <bruno@clisp.org>
61550
61551         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
61552         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
61553         projects that don't keep autogenerated files in CVS. Put into
61554         actioncmd only the specified modules, not the transitive closure.
61555
61556 2005-08-31  Bruno Haible  <bruno@clisp.org>
61557
61558         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
61559         Create directories that shall be filled.
61560         (import): Don't look for gl_* macros in configure.ac. Recurse across
61561         all directories containing a gnulib-cache.m4 files, if meaningful.
61562
61563 2005-08-31  Bruno Haible  <bruno@clisp.org>
61564
61565         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
61566         (import): Set seen_libtool when we see gl_LIBTOOL.
61567
61568 2005-08-31  Bruno Haible  <bruno@clisp.org>
61569
61570         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
61571         declaration macro definitions from generated gnulib.m4.
61572
61573 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
61574
61575         * lib/iconvme.h: Add prototype for iconv_alloc.
61576
61577 2005-08-29  Simon Josefsson  <jas@extundo.com>
61578
61579         * lib/iconvme.c: Fix errno.
61580
61581 2005-08-29  Bruno Haible  <bruno@clisp.org>
61582
61583         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
61584         that it works when the directory contains spaces.
61585
61586 2005-08-29  Bruno Haible  <bruno@clisp.org>
61587
61588         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
61589
61590 2005-08-29  Bruno Haible  <bruno@clisp.org>
61591
61592         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
61593         Emit more advice.
61594
61595 2005-08-29  Bruno Haible  <bruno@clisp.org>
61596         and Stepan Kasal  <kasal@ucw.cz>
61597
61598         * check-module: If more parameters are given, check each of them
61599         separately; add more exceptions, as noted by Jim Meyering.
61600         (check_module): New procedure.
61601         (%exempt_header): Now contains all exceptions.
61602
61603 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
61604
61605         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
61606
61607 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61608
61609         * lib/iconvme.c: Split iconv_string into iconv_alloc.
61610
61611 2005-08-28  Bruno Haible  <bruno@clisp.org>
61612
61613         * m4/gnulib-tool.m4: New file.
61614
61615 2005-08-27  Jim Meyering  <jim@meyering.net>
61616
61617         * modules/unistd-safer (Files): Add pipe-safer.c.
61618         * modules/fcntl-safer (Files): Add creat-safer.c.
61619
61620 2005-08-27  Jim Meyering  <jim@meyering.net>
61621
61622         * m4/stdlib-safer.m4: New file.  From coreutils.
61623         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
61624         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
61625         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
61626         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
61627         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
61628
61629 2005-08-27  Jim Meyering  <jim@meyering.net>
61630
61631         * lib/fopen-safer.c: Merge minor changes from coreutils.
61632         * lib/dup-safer.c: Likewise.
61633         * lib/fd-safer.c: Likewise.
61634
61635         Merge from coreutils.
61636         * lib/stdio--.h: New file.
61637         * lib/stdlib--.h: New file.
61638         * lib/mkstemp-safer.c: New file.
61639
61640         GNU tar needs these.
61641         * lib/pipe-safer.c: New file.
61642         * lib/creat-safer.c: New file.
61643         * lib/fcntl--.h (creat): Define to creat_safer.
61644         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
61645         * lib/unistd--.h (pipe): Define to pipe_safer.
61646         * lib/unistd-safer.h: Declare pipe_safer.
61647
61648 2005-08-26  Simon Josefsson  <jas@extundo.com>
61649
61650         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
61651         Haible <bruno@clisp.org>.
61652
61653 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         * lib/regex_internal.h: Remove all references to
61656         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
61657         or better.
61658         (bitset_not, bitset_merge, bitset_not_merge):
61659         (bitset_mask, re_string_allocate, re_string_construct):
61660         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
61661         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
61662         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
61663         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
61664         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61665         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61666         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
61667         (re_acquire_state_context):
61668         Remove unnecessary forward decls.
61669         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
61670         Put __attribute at function definition,
61671         now that the function decl has been removed.
61672         * lib/regex_internal.c (re_string_peek_byte_case):
61673         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
61674         Likewise.
61675
61676 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
61677
61678         * m4/regex.m4: Add AC_PREREQ(2.50).
61679         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
61680
61681 2005-08-25  Simon Josefsson  <jas@extundo.com>
61682
61683         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
61684         __fsetlocking.
61685
61686 2005-08-25  Simon Josefsson  <jas@extundo.com>
61687
61688         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
61689         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
61690         GLIBC specific code.
61691
61692 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61693
61694         Make regex safe for g++.  This fixes one real bug (an "err"
61695         that should have been "*err").  g++ problem reported by
61696         Sam Steingold.
61697         * lib/regex_internal.h (re_calloc): New macro, consistent with
61698         re_malloc etc.  All callers of calloc changed to use re_calloc.
61699         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
61700         not int.  All callers changed.
61701         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
61702         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
61703         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
61704         (find_recover_state): Change "err" to "*err"; this fixes what
61705         appears to be a real bug.
61706         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
61707         versus int.
61708
61709 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61710
61711         * modules/regex (Depends-on): Add malloc, since the code
61712         assumes that !malloc(0) means failure.
61713
61714 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61715
61716         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
61717
61718         alloca modernization/simplification for regex.
61719         * lib/regex.c: Remove portability cruft for alloca.  This no longer
61720         needs to be at the start of the file, and can be moved into
61721         regex_internal.h and simplified.
61722         * lib/regex_internal.h: Include <alloca.h>.
61723         (__libc_use_alloca) [!defined _LIBC]: New macro.
61724         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
61725         now works outside glibc.
61726
61727 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61728
61729         * config/srclist.txt: Add glibc bugs 1241, 1245.
61730
61731 2005-08-25  Jim Meyering  <jim@meyering.net>
61732
61733         * lib/open-safer.c: Include <config.h>.
61734         Otherwise, we'd lose LARGEFILE support in any file using
61735         e.g. "fcntl--.h"
61736
61737 2005-08-25  Bruno Haible  <bruno@clisp.org>
61738
61739         * m4/minmax.m4: Require autoconf 2.52.
61740         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
61741         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
61742         alternatives of translit over the alphabet.
61743         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
61744
61745 2005-08-24  Simon Josefsson  <jas@extundo.com>
61746
61747         * tests/test-getpass.c: New file.
61748
61749 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
61752         for GNU regex features.
61753
61754 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
61757         * lib/regex.h (regerror): Likewise.
61758
61759         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
61760         requires this.  (The code never needed it.)
61761
61762         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
61763         All uses of recently-renamed identifiers changed to use the new,
61764         POSIX-compliant names.  The code will build and run just fine
61765         without these changes, but it's better to eat our own dog food
61766         and use the standard-conforming names.
61767
61768         * lib/regex.h: Fix a multitude of POSIX name space violations.
61769         These changes have an effect only for programs that define
61770         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
61771         do not change anything for programs compiled in the normal way.
61772         Also, there is no effect on the ABI.
61773
61774         (_REGEX_SOURCE): New macro.
61775         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
61776         defined and _GNU_SOURCE is not; this fixes a name space violation.
61777
61778         Rename the following macros to obey POSIX requirements.
61779         The old names are still visible as macros if _REGEX_SOURCE is defined.
61780         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
61781         RE_BACKSLASH_ESCAPE_IN_LISTS.
61782         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
61783         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
61784         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
61785         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
61786         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
61787         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
61788         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
61789         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
61790         (REG_INTERVALS): renamed from RE_INTERVALS.
61791         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
61792         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
61793         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
61794         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
61795         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
61796         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
61797         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
61798         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
61799         RE_UNMATCHED_RIGHT_PAREN_ORD.
61800         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
61801         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
61802         (REG_DEBUG): renamed from RE_DEBUG.
61803         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
61804         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
61805         unusual, since we can't clash with the POSIX REG_ICASE.
61806         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
61807         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
61808         (REG_NO_SUB): renamed from RE_NO_SUB.
61809         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
61810         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
61811         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
61812         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
61813         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
61814         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
61815         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
61816         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
61817         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
61818         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
61819         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
61820         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
61821         RE_SYNTAX_POSIX_MINIMAL_BASIC.
61822         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
61823         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
61824         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
61825         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
61826         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
61827         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
61828         (REG_FIXED): Renamed from REGS_FIXED.
61829         (REG_NREGS): Renamed from RE_NREGS.
61830
61831         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
61832         of other REG_* macros, since POSIX says the user is allowed to
61833         #undef these macros selectively.
61834
61835         (reg_errcode_t): Update comment stating what other tables need
61836         to be consistent.
61837
61838         Rename the following enum values to obey POSIX requirements.
61839         The old names are still visible as macros.
61840         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
61841         is not defined, since GNU is supposed to be a superset of POSIX as
61842         much as possible, and since we want reg_errcode_t to be a signed
61843         type for implementation consistency.
61844         (_REG_NOERROR): Renamed from REG_NOERROR.
61845         (_REG_NOMATCH): Renamed from REG_NOMATCH.
61846         (_REG_BADPAT): Renamed from REG_BADPAT.
61847         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
61848         (_REG_ECTYPE): Renamed from REG_ECTYPE.
61849         (_REG_EESCAPE): Renamed from REG_EESCAPE.
61850         (_REG_ESUBREG): Renamed from REG_ESUBREG.
61851         (_REG_EBRACK): Renamed from REG_EBRACK.
61852         (_REG_EPAREN): Renamed from REG_EPAREN.
61853         (_REG_EBRACE): Renamed from REG_EBRACE.
61854         (_REG_BADBR): Renamed from REG_BADBR.
61855         (_REG_ERANGE): Renamed from REG_ERANGE.
61856         (_REG_ESPACE): Renamed from REG_ESPACE.
61857         (_REG_BADRPT): Renamed from REG_BADRPT.
61858         (_REG_EEND): Renamed from REG_EEND.
61859         (_REG_ESIZE): Renamed from REG_ESIZE.
61860         (_REG_ERPAREN): Renamed from REG_ERPAREN.
61861         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
61862         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
61863         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
61864         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
61865
61866         (_REG_RE_NAME, _REG_RM_NAME): New macros.
61867         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
61868         changed.  But support the old name if the new one is not defined
61869         and if _REGEX_SOURCE.
61870
61871         Change the following member names in struct re_pattern_buffer.
61872         The old names are still supported if !_REGEX_SOURCE.
61873         The new names are always supported, regardless of _REGEX_SOURCE.
61874         (re_buffer): Renamed from buffer.
61875         (re_allocated): Renamed from allocated.
61876         (re_used): Renamed from used.
61877         (re_syntax): Renamed from syntax.
61878         (re_fastmap): Renamed from fastmap.
61879         (re_translate): Renamed from translate.
61880         (re_can_be_null): Renamed from can_be_null.
61881         (re_regs_allocated): Renamed from regs_allocated.
61882         (re_fastmap_accurate): Renamed from fastmap_accurate.
61883         (re_no_sub): Renamed from no_sub.
61884         (re_not_bol): Renamed from not_bol.
61885         (re_not_eol): Renamed from not_eol.
61886         (re_newline_anchor): Renamed from newline_anchor.
61887
61888         Change the following member names in struct re_registers.
61889         The old names are still supported if !_REGEX_SOURCE.
61890         The new names are always supported, regardless of _REGEX_SOURCE.
61891         (rm_num_regs): Renamed from num_regs.
61892         (rm_start): Renamed from start.
61893         (rm_end): Renamed from end.
61894
61895         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
61896         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
61897         Prepend __ to parameter names.
61898
61899         Undo yesterday's changes.
61900
61901 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
61904         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
61905         lib/regex.c.
61906
61907 2005-08-24  Jim Meyering  <jim@meyering.net>
61908
61909         Sync from coreutils.
61910         * m4/fcntl-safer.m4: New file.
61911
61912         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
61913         and object files for this module.
61914
61915 2005-08-24  Jim Meyering  <jim@meyering.net>
61916
61917         Sync from coreutils.
61918         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
61919
61920 2005-08-24  Jim Meyering  <jim@meyering.net>
61921
61922         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
61923         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
61924
61925 2005-08-24  Jim Meyering  <jim@meyering.net>
61926
61927         * modules/fcntl-safer: New module.
61928         * modules/fts (Depends-on): Add fcntl-safer.
61929         * MODULES.html.sh (File descriptor based Input/Output):
61930         Add fcntl-safer.
61931
61932 2005-08-24  Bruno Haible  <bruno@clisp.org>
61933
61934         Support for unit test modules.
61935         * modules/README: Mention tests modules.
61936         * modules/TEMPLATE-TESTS: New file.
61937         * gnulib-tool: New options --extract-tests-module, --with-tests and
61938         --tests-base (unused for the moment).
61939         (testsbase, inctests): New variables.
61940         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
61941         (func_verify_module): Exclude TEMPLATE-TESTS.
61942         (func_verify_nontests_module, func_verify_tests_module): New functions.
61943         (func_get_dependencies): Add implicit dependency for tests modules.
61944         (func_get_tests_module): New function.
61945         (func_modules_transitive_closure): When --with-tests was specified,
61946         include the unit tests as well, unless explicitly avoided.
61947         (func_emit_lib_Makefile_am): Ignore the tests modules here.
61948         (func_emit_tests_Makefile_am): New function.
61949         (func_create_testdir): When --with-tests was specified, emit a
61950         tests/ directory.
61951         * MODULES.html.sh (Future developments): Update.
61952
61953 2005-08-24  Bruno Haible  <bruno@clisp.org>
61954
61955         * modules/tls-tests: New file.
61956         * tests/test-tls.c: New file, from GNU gettext.
61957
61958 2005-08-24  Bruno Haible  <bruno@clisp.org>
61959
61960         * modules/lock-tests: New file.
61961         * tests/test-lock.c: New file, from GNU gettext.
61962
61963 2005-08-24  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/lock.h: Add multiple inclusion guard.
61966         * lib/tls.h: Add multiple inclusion guard.
61967
61968 2005-08-24  Bruno Haible  <bruno@clisp.org>
61969
61970         * gnulib-tool: Add support for the --aux-dir option to
61971         --create-testdir, --create-megatestdir, --test, --megatest.
61972         (func_create_testdir, func_create_megatestdir): Optionally emit a
61973         AC_CONFIG_AUX_DIR directive.
61974         (create-testdir, create-megatestdir, test, megatest): Provide a
61975         default value for $auxdir.
61976
61977 2005-08-24  Bruno Haible  <bruno@clisp.org>
61978
61979         * gnulib-tool (import): Use compound statement instead of subshell
61980         where possible.
61981
61982 2005-08-24  Bruno Haible  <bruno@clisp.org>
61983
61984         * gnulib-tool (import): Change --aux-dir default to "build-aux".
61985
61986 2005-08-24  Bruno Haible  <bruno@clisp.org>
61987
61988         * gnulib-tool (func_version): Update.
61989
61990 2005-08-24  Bruno Haible  <bruno@clisp.org>
61991
61992         * gnulib-tool (func_import, func_create_testdir,
61993         func_create_megatestdir): Quote all autoconf macro arguments.
61994
61995 2005-08-24  Bruno Haible  <bruno@clisp.org>
61996
61997         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
61998         option --force, because --force causes the aclocal.m4 of each
61999         subdirectory to be newer than the corresponding config.h.in.
62000
62001 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
62004         All contents moved to gl_REGEX.
62005         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
62006         assume that it does.
62007
62008 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * lib/regex.h (REG_NOSYS)
62011         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
62012         Define, since POSIX requires it as of 2001.
62013         (_REG_ENOSYS)
62014         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
62015         New private symbol, used to keep the enum signed in all cases.
62016         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
62017         Youngman in
62018         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
62019
62020         * lib/regex_internal.c (re_string_skip_chars, register_state):
62021         (calc_state_hash):
62022         Remove forward decls; no longer needed now that we use prototypes.
62023         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
62024         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
62025         (clean_state_log_if_needed): Likewise.
62026
62027 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62028
62029         * config/srclist.txt: Add glibc bugs 1231-1233.
62030
62031 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62032
62033         Fix problems reported by Sam Steingold in
62034         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
62035         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
62036         assumed that reg_errcode_t is a signed type, which is not
62037         necessarily true if _XOPEN_SOURCE is not defined.
62038         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
62039         since some compilers warn about it otherwise.
62040
62041 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
62044         (init_word_char, create_initial_state, duplicate_node_closure):
62045         (fetch_token, peek_token_bracket, build_range_exp):
62046         (build_collating_symbol): Remove forward decls; no longer needed
62047         now that we use prototypes.
62048
62049         * lib/regcomp.c:
62050         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
62051         (re_compile_fastmap_iter, regcomp, regerror, regfree):
62052         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
62053         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
62054         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
62055         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
62056         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
62057         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
62058         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
62059         (build_range_exp, build_collating_symbol, parse_bracket_exp):
62060         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
62061         (build_charclass, build_charclass_op, fetch_number, create_tree):
62062         (create_token_tree, mark_opt_subexp, duplicate_tree):
62063         Use prototypes rather than old-style definitions.
62064
62065         * lib/regex_internal.c:
62066         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
62067         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
62068         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62069         (re_string_reconstruct, re_string_peek_byte_case):
62070         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
62071         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62072         (re_node_set_init_copy, re_node_set_add_intersect):
62073         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62074         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62075         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62076         (re_acquire_state, re_acquire_state_context, register_state):
62077         (create_ci_newstate, create_cd_newstate, free_state):
62078         Likewise.
62079         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
62080         re_search_2):
62081         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
62082         (re_search_internal, prune_impossible_nodes):
62083         (acquire_init_state_context, check_matching, static):
62084         (check_halt_node_context, check_halt_state_context, proceed_next_node):
62085         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
62086         (update_regs, sift_states_backward, build_sifted_states):
62087         (clean_state_log_if_needed, merge_state_array):
62088         (update_cur_sifted_state, add_epsilon_src_nodes):
62089         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
62090         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
62091         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
62092         (find_recover_state, check_subexp_matching_top, transit_state_mb):
62093         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
62094         (check_arrival, check_arrival_add_next_nodes):
62095         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62096         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62097         (check_node_accept_bytes, check_node_accept, extend_buffers):
62098         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
62099         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
62100         (sift_ctx_init):
62101         Likewise.
62102
62103         * lib/regex_internal.h:
62104         (re_string_allocate, re_string_construct, re_string_reconstruct):
62105         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
62106         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
62107         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
62108         (re_string_context_at, re_string_peek_byte_case):
62109         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
62110         is defined, since we now use prototypes always.
62111
62112         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
62113         C89 or better.  All uses removed.
62114
62115 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62116
62117         * config/srclist.txt: Add glibc bugs 1220-1227.
62118
62119 2005-08-20  Jim Meyering  <jim@meyering.net>
62120
62121         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
62122         of unused local, dfa.
62123
62124 2005-08-20  Bruno Haible  <bruno@clisp.org>
62125
62126         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
62127
62128 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62129
62130         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
62131         (re_node_set_insert_last, re_dfa_add_node):
62132         Rename local variables to avoid GCC shadowing warnings.
62133
62134 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62135
62136         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
62137         [defined lint]: Suppress bogus uninitialized-variable warnings.
62138
62139         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
62140         and let the caller return REG_ESPACE if out of space.  This
62141         removes an uninitialied-variable warning with GCC 4.0.1, and also
62142         avoids taking the address of a local variable.  All callers
62143         changed.
62144
62145 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62146
62147         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
62148         $LIBCSRC/posix/regexec.c.
62149         Add glibc bug 1217 for regcomp.c.
62150
62151 2005-08-19  Jim Meyering  <jim@meyering.net>
62152
62153         * lib/regexec.c (proceed_next_node): Redo local variables to
62154         avoid GCC shadowing warnings.
62155
62156 2005-08-18  Bruno Haible  <bruno@clisp.org>
62157
62158         * lib/strstr.c (strstr): Fix return value in multibyte case.
62159         * lib/strcasestr.c (strcasestr): Likewise.
62160
62161 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62162
62163         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
62164
62165 2005-08-17  Jim Meyering  <jim@meyering.net>
62166
62167         Make the %s format (seconds since the epoch) work for a negative
62168         number and when used with a zero-padded field width, e.g. %015s.
62169
62170         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
62171         label so that it precedes the code to set `digits'.  Otherwise,
62172         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
62173         print `00-22'.  Now, it prints `-0022', as it should.
62174
62175 2005-08-17  Bruno Haible  <bruno@clisp.org>
62176
62177         * modules/strstr (Files): Add m4/mbrtowc.m4.
62178         (Depends-on): Add mbuiter.
62179
62180 2005-08-17  Bruno Haible  <bruno@clisp.org>
62181
62182         * modules/strcasestr: New file.
62183         * MODULES.html.sh (String handling, based on ANSI C 89): Add
62184         strcasestr.
62185
62186 2005-08-17  Bruno Haible  <bruno@clisp.org>
62187
62188         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
62189
62190 2005-08-17  Bruno Haible  <bruno@clisp.org>
62191
62192         * modules/mbuiter: New file.
62193         * MODULES.html.sh (Extended multibyte and wide character utilities):
62194         Add mbuiter.
62195
62196 2005-08-17  Bruno Haible  <bruno@clisp.org>
62197
62198         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
62199         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
62200
62201 2005-08-17  Bruno Haible  <bruno@clisp.org>
62202
62203         * m4/strcasestr.m4: New file.
62204
62205 2005-08-17  Bruno Haible  <bruno@clisp.org>
62206
62207         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
62208         * lib/strstr.c: Completely rewritten, with multibyte locale support.
62209
62210 2005-08-17  Bruno Haible  <bruno@clisp.org>
62211
62212         * lib/strcasestr.h: New file.
62213         * lib/strcasestr.c: New file.
62214
62215 2005-08-17  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/strcasecmp.c: Use mbuiter.h.
62218
62219 2005-08-17  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/mbuiter.h: New file.
62222
62223 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62224
62225         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
62226         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
62227         and gl_GETOPT are both invoked via different paths (as happens
62228         with GNU tar CVS because it uses both argp and getopt), the former
62229         wins.
62230
62231 2005-08-16  Bruno Haible  <bruno@clisp.org>
62232
62233         * modules/tls: New file.
62234         * MODULES.html.sh (Multithreading): Add tls.
62235
62236 2005-08-16  Bruno Haible  <bruno@clisp.org>
62237
62238         * modules/strnlen1: New file.
62239         * MODULES.html.sh (String handling): Add strnlen1.
62240
62241 2005-08-16  Bruno Haible  <bruno@clisp.org>
62242
62243         * modules/strcase (Files): Add m4/mbrtowc.m4.
62244         (Depends-on): Add strnlen1, mbchar.
62245
62246 2005-08-16  Bruno Haible  <bruno@clisp.org>
62247
62248         * modules/mbiter: New file.
62249         * MODULES.html.sh (Extended multibyte and wide character utilities):
62250         Add mbiter.
62251
62252 2005-08-16  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/mbfile: New file.
62255         * MODULES.html.sh (Extended multibyte and wide character utilities):
62256         Add mbfile.
62257
62258 2005-08-16  Bruno Haible  <bruno@clisp.org>
62259
62260         * modules/mbchar: New file.
62261         * MODULES.html.sh (Extended multibyte and wide character utilities):
62262         New section.
62263
62264 2005-08-16  Bruno Haible  <bruno@clisp.org>
62265
62266         * m4/tls.m4: New file, from GNU gettext.
62267
62268 2005-08-16  Bruno Haible  <bruno@clisp.org>
62269
62270         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
62271         always.
62272         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
62273
62274 2005-08-16  Bruno Haible  <bruno@clisp.org>
62275
62276         * m4/mbiter.m4: New file.
62277
62278 2005-08-16  Bruno Haible  <bruno@clisp.org>
62279
62280         * m4/mbfile.m4: New file.
62281
62282 2005-08-16  Bruno Haible  <bruno@clisp.org>
62283
62284         * m4/mbchar.m4: New file.
62285
62286 2005-08-16  Bruno Haible  <bruno@clisp.org>
62287
62288         * lib/tls.h: New file, from GNU gettext.
62289         * lib/tls.c: New file, from GNU gettext.
62290
62291 2005-08-16  Bruno Haible  <bruno@clisp.org>
62292
62293         * lib/strnlen1.h: New file.
62294         * lib/strnlen1.c: New file.
62295
62296 2005-08-16  Bruno Haible  <bruno@clisp.org>
62297
62298         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
62299         (mbi_init): Update.
62300         (mbi_avail, mbi_advance): Let the iteration end before the terminating
62301         NUL byte, not after it.
62302
62303 2005-08-16  Bruno Haible  <bruno@clisp.org>
62304
62305         * lib/strcase.h (strcasecmp): Add note in comments.
62306         * lib/strncasecmp.c: Use code from strcasecmp.c.
62307         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
62308         (strcasecmp): Work correctly in multibyte locales.
62309
62310 2005-08-16  Bruno Haible  <bruno@clisp.org>
62311
62312         * lib/mbiter.h: New file.
62313
62314 2005-08-16  Bruno Haible  <bruno@clisp.org>
62315
62316         * lib/mbfile.h: New file.
62317
62318 2005-08-16  Bruno Haible  <bruno@clisp.org>
62319
62320         * lib/mbchar.h: New file.
62321         * lib/mbchar.c: New file.
62322
62323 2005-08-16  Bruno Haible  <bruno@clisp.org>
62324
62325         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
62326         the valid ones. Makes the comparison operations transitive:
62327         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
62328         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
62329
62330 2005-08-15  Simon Josefsson  <jas@extundo.com>
62331
62332         * modules/ssize_t (License): Change to 'unlimited'.
62333
62334         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
62335
62336 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
62339         Add comments for each pending glibc patch.
62340
62341 2005-08-15  Bruno Haible  <bruno@clisp.org>
62342
62343         * lib/regex.h (__restrict_arr): Don't define to __restrict if
62344         __cplusplus is defined.
62345
62346 2005-08-14  Jim Meyering  <jim@meyering.net>
62347
62348         Sync from coreutils.
62349
62350         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
62351         Use the hash-table-based cycle-detection code not just when
62352         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
62353         Reported by James Youngman in
62354         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
62355         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
62356         FTS_TIGHT_CYCLE_CHECK.
62357         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
62358         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
62359         once again.
62360         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
62361         * lib/fts.c (fd_safer): Remove decl.
62362         Include fcntl--.h rather than unistd-safer.h
62363         (fts_safe_changedir): Don't call fd_safer; no longer needed
62364         now that we include fcntl--.h.
62365
62366 2005-08-12  Simon Josefsson  <jas@extundo.com>
62367
62368         * modules/getndelim2: Use ssize_t module.
62369         * modules/getnline: Likewise.
62370         * modules/safe-read: Likewise.
62371         * modules/xreadlink: Likewise.
62372
62373         * modules/ssize_t: New file.
62374
62375 2005-08-12  Simon Josefsson  <jas@extundo.com>
62376
62377         * m4/readline.m4: Look for termcap, curses or ncurses if required.
62378
62379 2005-08-12  Simon Josefsson  <jas@extundo.com>
62380
62381         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62382         ssize_t.
62383
62384 2005-08-12  Simon Josefsson  <jas@extundo.com>
62385
62386         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
62387         readline, getdelim and check_version.
62388         (Support for systems lacking ISO C 99: Sizes of integer types):
62389         Add size_max.
62390
62391 2005-08-12  Bruno Haible  <bruno@clisp.org>
62392
62393         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
62394
62395 2005-08-11  Simon Josefsson  <jas@extundo.com>
62396
62397         * modules/readline: New file.
62398
62399         * modules/strnlen (Files): Add strnlen.h.
62400
62401 2005-08-11  Simon Josefsson  <jas@extundo.com>
62402
62403         * m4/readline.m4: New file.
62404
62405 2005-08-11  Simon Josefsson  <jas@extundo.com>
62406
62407         * lib/readline.h, readline.c: New file.
62408
62409 2005-08-11  Simon Josefsson  <jas@extundo.com>
62410
62411         * doc/gnulib.texi (Initial import, Finishing touches): Mention
62412         gl_AVOID.
62413
62414 2005-08-11  Bruno Haible  <bruno@clisp.org>
62415
62416         * lib/strnlen.h (strnlen): Change parameter name to match comment.
62417
62418 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
62419
62420         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
62421
62422 2005-08-10  Simon Josefsson  <jas@extundo.com>
62423
62424         * tests/test-iconvme.c: New file.
62425
62426 2005-08-10  Simon Josefsson  <jas@extundo.com>
62427
62428         * m4/strnlen.m4: New file.
62429
62430         * m4/strndup.m4: Don't check for strnlen declaration, done in
62431         strnlen.m4.
62432
62433 2005-08-10  Simon Josefsson  <jas@extundo.com>
62434
62435         * lib/strndup.c: Use strnlen.h.
62436
62437         * lib/strnlen.h: New file.
62438
62439 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62440
62441         * README: Typos.
62442
62443 2005-08-02  Simon Josefsson  <jas@extundo.com>
62444
62445         * modules/readline: New file.
62446
62447 2005-08-02  Simon Josefsson  <jas@extundo.com>
62448
62449         * modules/getdelim: New file.
62450
62451         * modules/getline: Rewrite, don't use getndelim2.
62452
62453 2005-08-02  Simon Josefsson  <jas@extundo.com>
62454
62455         * m4/getline.m4: Separate out getdelim stuff into separate module.
62456
62457         * m4/getdelim.m4: New file.
62458
62459 2005-08-02  Simon Josefsson  <jas@extundo.com>
62460
62461         * lib/getline.h, getline.c: Rewrite.
62462
62463         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
62464
62465 2005-07-31  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/lock.h (gl_lock_initializer): New macro.
62468         (gl_lock_define_initialized): Use it.
62469         (gl_rwlock_initializer): New macro.
62470         (gl_rwlock_define_initialized): Use it.
62471         (gl_recursive_lock_initializer): New macro.
62472         (gl_recursive_lock_define_initialized): Use it.
62473
62474 2005-07-30  Karl Berry  <karl@gnu.org>
62475
62476         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
62477         Report from Ben Pfaff, regarding getopt.
62478
62479 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
62482         normal way.
62483         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
62484         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
62485         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
62486         (gl_GETOPT): Use the new macros.  Most of the implementation
62487         is moved to the new macros.  This is for programs like Emacs
62488         that don't want all the functionality of gl_GETOPT.
62489
62490 2005-07-26  Bruno Haible  <bruno@clisp.org>
62491
62492         * m4/lock.m4: Update from GNU gettext.
62493
62494 2005-07-26  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/lock.h: Update from GNU gettext.
62497         * lib/lock.c: Update from GNU gettext.
62498
62499 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
62500
62501         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
62502         obsolescent AC_TRY_RUN.  Include the default includes files, for
62503         'exit'.
62504
62505 2005-07-24  Bruno Haible  <bruno@clisp.org>
62506
62507         * modules/visibility: New file.
62508         * MODULES.html.sh (Misc): Add visibility.
62509
62510 2005-07-24  Bruno Haible  <bruno@clisp.org>
62511
62512         * m4/visibility.m4: New file.
62513
62514 2005-07-24  Bruno Haible  <bruno@clisp.org>
62515
62516         * doc/visibility.texi: New file.
62517
62518 2005-07-22  Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
62521         $(ALLOCA_H), redundant through BUILT_SOURCES.
62522         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
62523         redundant through BUILT_SOURCES.
62524         * modules/byteswap (Makefile.am): Remove explicit dependency on
62525         $(BYTESWAP_H), redundant through BUILT_SOURCES.
62526         * modules/fnmatch (Makefile.am): Remove explicit dependency on
62527         $(FNMATCH_H), redundant through BUILT_SOURCES.
62528         * modules/getopt (Makefile.am): Remove explicit dependency on
62529         $(GETOPT_H), redundant through BUILT_SOURCES.
62530         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
62531         redundant through BUILT_SOURCES.
62532         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
62533         redundant through BUILT_SOURCES.
62534         * modules/stdbool (Makefile.am): Remove explicit dependency on
62535         $(STDBOOL_H), redundant through BUILT_SOURCES.
62536         * modules/stdint (Makefile.am): Remove explicit dependency on
62537         $(STDINT_H), redundant through BUILT_SOURCES.
62538         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
62539         Remove explicit dependency on $(SYSEXITS_H).
62540         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
62541
62542 2005-07-18  Simon Josefsson  <jas@extundo.com>
62543
62544         * lib/check-version.c (check_version): Accept identical versions too.
62545
62546 2005-07-18  Bruno Haible  <bruno@clisp.org>
62547
62548         * modules/lock: New file.
62549         * MODULES.html.sh (Multithreading): New section.
62550
62551 2005-07-18  Bruno Haible  <bruno@clisp.org>
62552
62553         * m4/lock.m4: New file, from GNU gettext.
62554
62555 2005-07-18  Bruno Haible  <bruno@clisp.org>
62556
62557         * lib/lock.h: New file, from GNU gettext.
62558         * lib/lock.c: New file, from GNU gettext.
62559
62560 2005-07-18  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/lock.h (gl_once_t): New type.
62563         (gl_once_define, gl_once): New macros.
62564         * lib/lock.c (fresh_once): New variable.
62565         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
62566         functions.
62567
62568 2005-07-16  Simon Josefsson  <jas@extundo.com>
62569
62570         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
62571         workaround, suggested by Bruno.
62572
62573 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         * modules/xalloc (Depends-on): Add xalloc-die.
62576         * modules/xvasprintf (Depends-on): Add xalloc-die.
62577
62578 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62579
62580         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
62581         with a minor change.
62582
62583 2005-07-15  Bruno Haible  <bruno@clisp.org>
62584
62585         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
62586         When using lib/poll.c, define poll as rpl_poll.
62587
62588 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * modules/argp (Depends-on): Remove unlocked-io.
62591
62592 2005-07-14  Derek Price  <derek@ximbiot.com>
62593
62594         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
62595         for glob symlink bug.
62596
62597 2005-07-14  Bruno Haible  <bruno@clisp.org>
62598
62599         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
62600         Instead, test for *_unlocked function declarations directly.
62601
62602 2005-07-11  Simon Josefsson  <jas@extundo.com>
62603
62604         * modules/size_max: New file.
62605
62606         * modules/xsize: Depend on size_max module for size_max.m4.
62607
62608 2005-07-11  Simon Josefsson  <jas@extundo.com>
62609
62610         * lib/size_max.h: New file.
62611
62612 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
62615         copyright symbol and the year.
62616         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
62617         (version_etc_va): Use parameterized copyright notice.
62618         Reword to conform to the current GNU coding standards.
62619
62620 2005-07-11  Karl Berry  <karl@gnu.org>
62621
62622         * doc/gnulib.texi (Quoting): new node.
62623         (Initial import): more info, from Patrice.
62624
62625 2005-07-11  Bruno Haible  <bruno@clisp.org>
62626
62627         * gnulib-tool (func_usage): Document option --avoid.
62628         (Command line options): Handle --avoid.
62629         (func_acceptable): New function.
62630         (func_modules_transitive_closure): Use it.
62631
62632 2005-07-11  Bruno Haible  <bruno@clisp.org>
62633
62634         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
62635         Reported by Jim Meyering.
62636
62637 2005-07-10  Bruno Haible  <bruno@clisp.org>
62638
62639         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
62640         Needed when size_t is smaller than 'unsigned int'.
62641         Reported by Paul Eggert.
62642
62643 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62644
62645         * modules/argp (Depends-on): Add unlocked-io
62646
62647 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62648
62649         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
62650         block of defines.
62651
62652 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         * config/srclist.txt: Comment out regcomp.c, since we have a porting
62655         fix now.
62656
62657 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
62658         and Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
62661         in wint_t, not wchar_t.  Remove now-unnecessary cast.
62662
62663 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62664
62665         * modules/regex (Files): Add lib/regex_internal.c,
62666         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
62667         (Depends-on): Add extensions.
62668         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
62669
62670 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
62673         pathconf.
62674         * m4/same.m4 (gl_SAME): Likewise.
62675         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
62676
62677         * m4/regex.m4: Adjust to new libc regex implementation.
62678         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
62679         all the .c and .h parts of (the new) regex.
62680         Quote the m4 stuff better.
62681         Check for RE_ICASE bug of old gnulib.
62682         Check for REG_STARTEND of recent libc.
62683         Rename local variables from jm_* to gl_*.
62684         Quote operand of "test -f".
62685         Say "recent enough" version of libc, not "version 2".
62686         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
62687         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
62688         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
62689         Remove check for btowc, isascii.
62690         Require AM_LANGINFO_CODESET.
62691
62692 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62693
62694         * lib/regex.c, regex.h: Sync from libc.
62695         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
62696         * lib/regexec.c:
62697         New files, synced from libc, except that regex_internal.h
62698         currently has a small porting fix.
62699
62700 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62701
62702         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
62703         regex_internal.c, regexec.c.
62704         Add regex_internal.h too, but as a comment, since the libc version
62705         is currently broken in gnulib mode.
62706
62707 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62708
62709         Support programs like Emacs that use gnulib but not gettext.
62710         * MODULES.html.sh (Internationalization functions): Add gettext-h.
62711         * modules/gettext-h: New file.
62712         * modules/gettext (Files): Remove lib/gettext.h.
62713         (Depends-on): Add gettext-h.
62714         (Makefile.am): Remove lib_SOURCES.
62715         * modules/argmatch, modules/c-stack, modules/closeout:
62716         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
62717         * modules/execute, modules/file-type, modules/getaddrinfo:
62718         * modules/getopt, modules/human, modules/javacomp:
62719         * modules/javaexec, modules/mkdir-p, modules/obstack:
62720         * modules/openat, modules/pagealign_alloc, modules/pipe:
62721         * modules/quotearg, modules/regex, modules/rpmatch:
62722         * modules/unicodeio, modules/userspec, modules/version-etc:
62723         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
62724         * modules/xsetenv:
62725         Depend on gettext-h, not gettext.
62726
62727 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62728
62729         * gnulib-tool (func_import): Add support for 'public domain' license.
62730         * modules/alloca, modules/atexit, modules/memmove:
62731         Now public domain, not GPL.
62732         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
62733         * modules/realloc, modules/strerror, modules/strtod:
62734         Now LGPL, not GPL.
62735
62736 2005-07-05  Bruno Haible  <bruno@clisp.org>
62737
62738         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
62739         autoconf CVS. Needed for mingw.
62740
62741 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62742
62743         Remove the dependency of the strftime module on the tzset module.
62744         * modules/strftime (Depends-on): Remove dependency on tzset.
62745
62746 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62747
62748         Remove the dependency of the strftime module on the tzset module.
62749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
62750         gl_FUNC_TZSET_CLOBBER.
62751
62752 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         Remove the dependency of the strftime module on the tzset module.
62755         * lib/strftime.c (my_strftime)
62756         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
62757         Copy the input structure, to work around some of the bug with
62758         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
62759         Solaris releases, you should also use the tzset module, but we won't
62760         require it as a dependency any more since we don't want LGPLed code
62761         to depend on GPLed code.
62762
62763 2005-07-02  Jim Meyering  <jim@meyering.net>
62764
62765         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
62766         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
62767         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
62768         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
62769
62770 2005-07-02  Jim Meyering  <jim@meyering.net>
62771
62772         * lib/backupfile.c (backup_args): Change a `0' to NULL.
62773
62774 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62775
62776         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
62777         declares only 'struct timespec;' (!).
62778
62779 2005-07-01  Jim Meyering  <jim@meyering.net>
62780
62781         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
62782         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
62783         * lib/save-cwd.c, tempname.c:
62784         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62785         and don't include <sys/file.h>).
62786
62787 2005-06-29  Jim Meyering  <jim@meyering.net>
62788
62789         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
62790         type name.  Use the variable name instead.
62791         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
62792         Likewise.
62793
62794 2005-06-28  Simon Josefsson  <jas@extundo.com>
62795
62796         * modules/check-version (Files): Add check-version.m4.
62797
62798 2005-06-28  Simon Josefsson  <jas@extundo.com>
62799
62800         * m4/check-version.m4: New file, suggested by Jim Meyering
62801         <jim@meyering.net>.
62802
62803 2005-06-28  Simon Josefsson  <jas@extundo.com>
62804
62805         * lib/check-version.h, lib/check-version.c: New files.
62806
62807 2005-06-28  Simon Josefsson  <jas@extundo.com>
62808
62809         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
62810         collision with global variable.  Better indentation.  Don't
62811         increment buffer pointer beyond buffer end.  Based on comments
62812         from Paul Eggert <eggert@cs.ucla.edu>.
62813
62814         * lib/base64.h: Indent.
62815
62816 2005-06-28  Simon Josefsson  <jas@extundo.com>
62817
62818         * doc/gnulib.texi (Library version handling): New section.
62819
62820 2005-06-28  Jim Meyering  <jim@meyering.net>
62821
62822         * check-module (find_included_lib_files): Hard-code another
62823         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
62824         but modules/fts-lgpl (correctly) does not list those files.
62825
62826         * modules/canonicalize (Files): Add lib/pathmax.h.
62827
62828 2005-06-25  Simon Josefsson  <jas@extundo.com>
62829
62830         * modules/check-version: New file.
62831
62832 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
62833
62834         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
62835         initializer of struct addrinfo, as an indication that we don't
62836         care how many members the structure has.
62837
62838 2005-06-24  Derek Price  <derek@ximbiot.com>
62839         and Bruno Haible  <bruno@clisp.org>
62840
62841         Remove stat module & update lstat.
62842         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
62843         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62844         * m4/stat.m4: Remove this file.
62845
62846 2005-06-24  Derek Price  <derek@ximbiot.com>
62847         and Bruno Haible  <bruno@clisp.org>
62848
62849         Remove stat module & update lstat.
62850         * lib/stat.c: Remove this file...
62851         (slash_aware_lstat): ...moving this content and its support...
62852         * lib/lstat.c (rpl_lstat): ...into here.
62853         * lib/lstat.h: New file.
62854
62855 2005-06-24  Derek Price  <derek@ximbiot.com>
62856         and Bruno Haible  <bruno@clisp.org>
62857
62858         Remove stat module & update lstat.
62859         * config/srclist.txt (libc sources): Remove stat.
62860
62861 2005-06-24  Derek Price  <derek@ximbiot.com>
62862         and Bruno Haible  <bruno@clisp.org>
62863
62864         Remove stat module & update lstat.
62865         * MODULES.html.sh (stat): Remove.
62866         * MODULES.html: Regenerated.
62867         * modules/lstat (Description): Correct function name.
62868         (Files): Add "lstat.h".
62869         (Depends-on): Remove stat, add xalloc, stat-macros.
62870         * modules/stat: Remove this file.
62871         (Include): Add "lstat.h", remove <sys/stat.h>.
62872
62873 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62874
62875         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
62876         (ranged_convert): Don't save conversion in a temporary struct.
62877         This causes a warning with GCC 4.0.0, and anyway in the typical
62878         case it's not worth the extra 100 bytes or so of code.
62879         (ranged_convert, __mktime_internal): When calling a function via a
62880         pointer P, use P () rather than (*P) (), as we now assume C89 or
62881         better.
62882
62883 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62884
62885         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
62886         "who -r" failed to give output.  Problem reported by Tim Waugh.
62887
62888         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
62889         (xcalloc): Use it to avoid needless tests.
62890         Problem reported by Jim Meyering.
62891
62892 2005-06-20  Derek Price  <derek@ximbiot.com>
62893
62894         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
62895         unnecessary for Autoconfs > 2.59c.
62896
62897 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62898
62899         * lib/argp.h (__option_is_short): Check upper limit of
62900         __key. Isprint() requires its argument to have the value
62901         of an unsigned char or EOF.
62902
62903 2005-06-16  Jim Meyering  <jim@meyering.net>
62904
62905         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
62906         when either N or S is zero.
62907
62908 2005-06-16  Derek Price  <derek@ximbiot.com>
62909
62910         * m4/bison.m4: Declare YACC & YFLAGS precious.
62911
62912 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
62913
62914         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
62915         multibyte string or pattern, fall back on unibyte matching.
62916         Problem reported by James Youngman.
62917
62918 2005-06-08  Bruno Haible  <bruno@clisp.org>
62919
62920         * modules/csharpcomp: New file.
62921         * MODULES.html.sh (C#): Add csharpcomp.
62922
62923 2005-06-08  Bruno Haible  <bruno@clisp.org>
62924
62925         * m4/csharpcomp.m4: New file, from GNU gettext.
62926
62927 2005-06-08  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/csharpcomp.h: New file, from GNU gettext.
62930         * lib/csharpcomp.c: New file, from GNU gettext.
62931         * lib/csharpcomp.sh.in: New file, from GNU gettext.
62932
62933 2005-06-08  Bruno Haible  <bruno@clisp.org>
62934
62935         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
62936         warning on mingw.
62937
62938 2005-06-07  Derek Price  <derek@ximbiot.com>
62939
62940         Sync from CVS.
62941         * lib/glob_.h: Indent nested #ifdef.
62942
62943 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62944
62945         Sync from coreutils.
62946         Use "file name" when talking about file names, instead of "filename"
62947         or "path", as per the GNU coding standards.
62948         * lib/mkdir-p.c: Renamed from makepath.c.
62949         (make_dir_parents): Renamed from make_path.  All callers changed.
62950         * lib/mkdir-p.h: Likewise.  All includers changed.
62951         * lib/filenamecat.c: Renamed from path-concat.c.
62952         (file_name_concat): Renamed from path_concat.  All callers changed.
62953         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
62954         * lib/filenamecat.h: Likewise.  All includers changed.
62955         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
62956         in comments or local variable names.
62957         * lib/basename.c: Likewise.
62958         * lib/canonicalize.c, canonicalize.h: Likewise.
62959         * lib/dirname.c, dirname.h: Likewise.
62960         * lib/euidaccess.c: Likewise.
62961         * lib/exclude.c: Likewise
62962         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
62963         * lib/fsusage.c, fsuage.h: Likewise.
62964         * lib/fts.c, fts_.h: Likewise.
62965         * lib/getcwd.c: Likewise.
62966         * lib/getloadavg.c: Likewise.
62967         * lib/mkstemp.c: Likewise.
62968         * lib/mountlist.c, mountlist.h: Likewise.
62969         * lib/openat.c, openat.h: Likewise.
62970         * lib/readlink-stub.c: Likewise.
62971         * lib/readutmp.c, readutmp.h: Likewise.
62972         * lib/rename.c: Likewise.
62973         * lib/rmdir.c: Likewise.
62974         * lib/same.c: Likewise.
62975         * lib/savedir.c: Likewise.
62976         * lib/stripslash.c: Likewise.
62977         * lib/tempname.c: Likewise.
62978         * lib/xreadlink.c: Likewise.
62979         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
62980         All uses changed.
62981         * lib/exclude.h: Likewise.
62982
62983         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
62984         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62985         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
62986         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62987         * lib/pathmax.h: Include <limits.h> unconditionally, since other
62988         files have been getting away with it for years (MORE/BSD 4.3
62989         is extinct now).
62990         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
62991         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62992
62993         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
62994         Define to 256, not 255, as per modern POSIX.
62995
62996 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         Sync from coreutils.
62999         Use "file name" when talking about file names, instead of "filename"
63000         or "path", as per the GNU coding standards.
63001         * MODULES.html.sh: mkdir-p renamed from makepath.
63002         filenamecat renamed from path-concat.
63003         * modules/filenamecat: Renamed from modules/path-concat.
63004         (Files): filenamecat.h and filenamecat.c renamed from
63005         path-concat.h and path-concat.c.
63006         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
63007         (Include): filenamecat.h, not path-concat.h.
63008         * modules/mkdir-p: Renamed from modules/makepath.
63009         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
63010         makepath.c.
63011         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
63012         (Include): mkdir-p.h, not makepath.h.
63013
63014 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         Sync from coreutils.
63017         * m4/mkdir-p.m4: Renamed from makepath.m4.
63018         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
63019         Rename files from makepath.c to mkdir-p.c, and from
63020         makepath.h to mkdir-p.h.
63021         * m4/filenamecat.m4: Renamed from path-concat.m4.
63022         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
63023         Rename files from path-concat.c to filenamecat.c,
63024         and from path-concat.h to filenamecat.h.
63025         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
63026         "file name" in local variables or comments.
63027         * m4/rename.m4: Likewise.
63028
63029 2005-06-01  Bruno Haible  <bruno@clisp.org>
63030
63031         * modules/csharpexec: New file.
63032         * MODULES.html.sh (C#): New section.
63033
63034 2005-06-01  Bruno Haible  <bruno@clisp.org>
63035
63036         * m4/csharp.m4: New file, from GNU gettext.
63037         * m4/csharpexec.m4: New file, from GNU gettext.
63038
63039 2005-06-01  Bruno Haible  <bruno@clisp.org>
63040
63041         * lib/csharpexec.h: New file, from GNU gettext.
63042         * lib/csharpexec.c: New file, from GNU gettext.
63043         * lib/csharpexec.sh.in: New file, from GNU gettext.
63044
63045 2005-05-31  Derek Price  <derek@ximbiot.com>
63046             Paul Eggert  <eggert@cs.ucla.edu>
63047
63048         Sync from cvs.
63049         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63050
63051 2005-05-31  Derek Price  <derek@ximbiot.com>
63052             Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         Sync from cvs.
63055         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63056
63057 2005-05-29  Derek Price  <derek@ximbiot.com>
63058
63059         * config/srclist.txt (glob_.h, glob.c): Add these files.
63060
63061 2005-05-29  Derek Price  <derek@ximbiot.com>
63062
63063         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
63064         * modules/glob: New file.
63065         * modules/getlogin_r: Add link to POSIX spec in description.
63066
63067 2005-05-29  Derek Price  <derek@ximbiot.com>
63068             Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * m4/glob.m4: New file.
63071
63072 2005-05-29  Derek Price  <derek@ximbiot.com>
63073             Paul Eggert  <eggert@cs.ucla.edu>
63074
63075         * lib/glob_.h, lib/glob.c: New files.
63076
63077 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63078
63079         * modules/fts (Files): Remove m4/inttypes-pri.m4.
63080         * modules/fts-lgpl (Depends-on): Remove gettext.
63081
63082 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
63085         and don't require gt_INTTYPES_PRI.
63086
63087 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63088
63089         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
63090
63091         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
63092         the configuration hassle isn't worth it.
63093         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
63094         (LONGEST_MODIFIER, PRIuMAX): Remove.
63095
63096 2005-05-27  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/getlogin_r.h: Remove second include of <stddef.h>.
63099
63100 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
63103         _POSIX_PTHREAD_SEMANTICS for Solaris.
63104
63105 2005-05-25  Derek Price  <derek@ximbiot.com>
63106
63107         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
63108
63109 2005-05-25  Derek Price  <derek@ximbiot.com>
63110             Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * modules/getlogin_r, m4/getlogin_r.m4: New files.
63113         * lib/getlogin_r.c, getlogin_r.h: New files.
63114
63115 2005-05-25  Bruno Haible  <bruno@clisp.org>
63116             Derek Price  <derek@ximbiot.com>
63117
63118         * lib/getlogin_r.h: Simplify API documentation.
63119
63120 2005-05-23  Derek Price  <derek@ximbiot.com>
63121
63122         * modules/minmax (Files): Add m4/minmax.m4.
63123         (configure.ac): Add gl_MINMAX.
63124
63125 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63126
63127         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
63128         so that unistd-safer.h (GPL'ed code) need not be included.
63129
63130 2005-05-22  Bruno Haible  <bruno@clisp.org>
63131
63132         * m4/minmax.m4: New file.
63133         Based on a patch by Derek Price <derek@ximbiot.com>.
63134
63135 2005-05-22  Bruno Haible  <bruno@clisp.org>
63136
63137         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
63138         (INT64_MIN): Fix definition.
63139         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
63140
63141         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
63142         NEED_SIGNED_INT_TYPES.
63143
63144         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
63145         HAVE_SYSTEM_INTTYPES.
63146
63147 2005-05-22  Bruno Haible  <bruno@clisp.org>
63148
63149         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
63150         Also include <sys/param.h> if it defines MIN, MAX.
63151         Based on a patch by Derek Price <derek@ximbiot.com>.
63152
63153 2005-05-21  Jim Meyering  <jim@meyering.net>
63154
63155         * modules/fts (Files): Add m4/inttypes-pri.m4.
63156         (Depends-on): Add lstat and remove gettext.  Alphabetize.
63157
63158 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         New fts module.
63161         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
63162         (setup_dir, free_dir): New functions.
63163         (enter_dir, leave_dir): Define trivial
63164         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
63165         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
63166         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
63167         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
63168         Move to fts-cycle.c.
63169         (fts_open): Use setup_dir.
63170         (fts_close): Use free_dir.
63171         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
63172         This adds a label and some gotos, but the alternatives were messier.
63173         Check for memory allocation failure when entering a dir.
63174         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
63175         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
63176         (FTS): New member fts_cycle, that is a union that contains the
63177         old active_dir_ht and cycle_state.  All uses changed to mention
63178         fts_cycle.ht and fts_cycle.state.
63179         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
63180         fts.c, with the following changes:
63181         (setup_dir, free_dir): New functions.
63182         (enter_dir): Now returns bool.  Return true if successful, false
63183         if memory exhausted.  All callers changed.
63184         Do not bother partly cleaning up on
63185         memory allocation failure; that is free_dir's job.
63186         However, free ad if hash_insert fails, to avoid memory leak.
63187         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
63188         fts->fts_options to see which union member to use.
63189
63190 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63191
63192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
63193         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
63194
63195 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
63198
63199 2005-05-20  Jim Meyering  <jim@meyering.net>
63200
63201         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
63202         Now a macro, to pacify GCC.
63203
63204 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63205
63206         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
63207         of -1.
63208
63209 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63210
63211         * lib/chown.c (rpl_chown): Return -1 on failure.
63212
63213 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
63216         Don't check for stddef.h.
63217         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
63218         don't use its results.
63219         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
63220         since we include them unconditionally.  Don't require
63221         AM_STDBOOL_H, since stdbool is a prerequisite.
63222         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
63223         since we assume C89 or better.
63224         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
63225         as we don't use their results.
63226         Don't check for fchdir, memmove, memset, strrchr, as we use
63227         them unconditionally.
63228         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
63229         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
63230
63231 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63232
63233         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
63234         Include <stddef.h> unconditionally, since we assume C89 now.
63235         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
63236         * lib/fts.c: Include fts_.h first, to check interface.
63237         Do not include intprops.h; no longer needed.
63238         Include cycle-check.h and hash.h, since fts_.h no longer does.
63239         Remove unnecessary casts of closedir to void.
63240         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
63241         decide whether to decrement nlinks.
63242         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
63243         (FTS): Use struct hash_table * instead of Hash_table, so that
63244         we no longer need to include hash.h here.
63245
63246 2005-05-18  Jim Meyering  <jim@meyering.net>
63247
63248         * modules/dirfd (License): Change to LGPL.  Most of the code
63249         is already in the public domain.
63250
63251 2005-05-18  Jim Meyering  <jim@meyering.net>
63252
63253         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
63254         Reported by Yoann Vandoorselaere.
63255
63256 2005-05-17  Jim Meyering  <jim@meyering.net>
63257
63258         * m4/fts.m4: New file, from coreutils.
63259
63260 2005-05-17  Jim Meyering  <jim@meyering.net>
63261
63262         * lib/fts.c, lib/fts_.h: New files, from coreutils.
63263
63264 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         Sync from coreutils.
63267         * m4/unlinkdir.m4: New file.
63268
63269 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         Sync from coreutils.
63272         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
63273         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
63274         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
63275         White space changes only.
63276         * lib/makepath.c (make_path): Port to hosts where leading "//" is
63277         special.
63278         * lib/yesno.c: Include getline.h, not ctype.h.
63279         (yesno): Don't remove leading white space; POSIX doesn't allow it.
63280         Use getline to remove arbitrary restriction on response length.
63281
63282 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63283
63284         * config/srclist-update: Spell out "Street" in FSF postal
63285         mail address; this is the style the FSF seems to prefer.
63286
63287         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
63288         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
63289         this updates FSF postal mail address.
63290
63291         Sync from coreutils.
63292         * modules/unlinkdir: New file.
63293         * modules/yesno (Depends-on): Add getline.
63294         * MODULES.html.sh (File system functions): Add unlinkdir.
63295
63296 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
63299         lib/strsep.h:
63300         Change the initial comment to refer to GPL, not LGPL.
63301         gnulib-tool will change it to LGPL as needed.
63302
63303         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
63304         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
63305         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
63306         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
63307         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
63308         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
63309         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
63310         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
63311         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
63312         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
63313         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
63314         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
63315         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
63316         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
63317         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
63318         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
63319         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
63320         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
63321         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
63322         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
63323         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
63324         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
63325         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
63326         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
63327         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
63328         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
63329         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
63330         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
63331         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
63332         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
63333         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
63334         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
63335         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
63336         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
63337         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
63338         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
63339         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
63340         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
63341         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
63342         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
63343         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
63344         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
63345         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
63346         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
63347         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
63348         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
63349         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
63350         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
63351         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
63352         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
63353         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63354         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
63355         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
63356         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
63357         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
63358         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
63359         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
63360         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
63361         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
63362         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
63363         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
63364         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
63365         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
63366         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
63367         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
63368         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
63369         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
63370         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
63371         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
63372         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
63373         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
63374         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
63375         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
63376         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
63377         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
63378         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
63379         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
63380         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
63381         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
63382         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
63383         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
63384         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
63385         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
63386         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
63387         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
63388         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
63389         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
63390         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
63391         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
63392         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
63393         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
63394         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
63395         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
63396         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
63397         lib/yesno.c, lib/yesno.h:
63398         Update FSF postal mail address.
63399
63400 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
63403         tests/test-memmem.c, tests/test-stpncpy.c:
63404         Update FSF postal mail address.
63405
63406 2005-05-13  Bruno Haible  <bruno@clisp.org>
63407
63408         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
63409         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
63410         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
63411         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
63412         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
63413         Add support for 64-bit integers in the MSVC compiler.
63414
63415 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63416
63417         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
63418
63419 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
63420
63421         * gnulib-tool (func_import): Sort and uniquify recommended includes.
63422
63423 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
63424
63425         * doc/getdate.texi (General date syntax): Don't say that date
63426         date --iso-8601=ns generates acceptable dates; it doesn't yet.
63427         Problem reported by Nic Ferrier.
63428
63429 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63430
63431         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
63432         specified in ai_socktype. Fix invalid ai_protocol
63433         check. ai_protocol is usually set to 0 or depending on
63434         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
63435         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
63436         ai_socktype / ai_protocol in the returned addrinfo structure.
63437
63438 2005-05-10  Simon Josefsson  <jas@extundo.com>
63439
63440         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
63441         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63442
63443 2005-05-10  Karl Berry  <karl@gnu.org>
63444
63445         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
63446         (from http://www.gnu.org/licenses).
63447         * doc/COPYING.LIB: also rename to COPYING.LESSER.
63448         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
63449         fdl.texi suffices.
63450
63451 2005-05-10  Karl Berry  <karl@gnu.org>
63452
63453         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
63454         (COPYING.DOC): remove.
63455
63456         * config/srclist-update: new FSF address.
63457
63458 2005-05-10  Derek Price  <derek@ximbiot.com>
63459
63460         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
63461         possible.
63462
63463 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63464             Bruno Haible  <bruno@clisp.org>
63465
63466         * modules/inet_ntop: New file.
63467         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63468         inet_ntop.
63469
63470 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63471             Bruno Haible  <bruno@clisp.org>
63472
63473         * m4/inet_ntop.m4: New file.
63474
63475 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63476             Bruno Haible  <bruno@clisp.org>
63477
63478         * lib/inet_ntop.h: New file.
63479         * lib/inet_ntop.c: New file, from glibc with modifications.
63480
63481 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * modules/time_r (License): Change to LGPL.
63484         * modules/extensions (License): Change to LGPL.  Actually,
63485         the license is more permissive than that, but currently gnulib-tool
63486         doesn't know how to handle more-permissive licenses.
63487
63488         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
63489         Problem reported by Dave Love.
63490
63491 2005-05-08  Jim Meyering  <jim@meyering.net>
63492
63493         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
63494         blank.
63495
63496 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63497
63498         * modules/argmatch (Depends-on): Add stdbool.
63499         * modules/backupfile (Depends-on): Likewise.
63500         * modules/chdir-long (Depends-on): Likewise.
63501         * modules/closeout (Depends-on): Likewise.
63502         * modules/cycle-check (Depends-on): Likewise.
63503         * modules/dirname (Depends-on): Likewise.
63504         * modules/fnmatch (Depends-on): Likewise.
63505         * modules/fsusage (Depends-on): Likewise.
63506         * modules/fwriteerror (Depends-on): Likewise.
63507         * modules/getcwd (Depends-on): Likewise.
63508         * modules/getloadavg (Depends-on): Likewise.
63509         * modules/hard-locale (Depends-on): Likewise.
63510         * modules/makepath (Depends-on): Likewise.
63511         * modules/mountlist (Depends-on): Likewise.
63512         * modules/nanosleep (Depends-on): Likewise.
63513         * modules/posixtm (Depends-on): Likewise.
63514         * modules/quotearg (Depends-on): Likewise.
63515         * modules/readtokens (Depends-on): Likewise.
63516         * modules/readtokens0 (Depends-on): Likewise.
63517         * modules/readutmp (Depends-on): Likewise.
63518         * modules/save-cwd (Depends-on): Likewise.
63519         * modules/strftime (Depends-on): Likewise.
63520         * modules/userspec (Depends-on): Likewise.
63521         * modules/utimecmp (Depends-on): Likewise.
63522         * modules/xgetcwd (Depends-on): Likewise.
63523         * modules/xnanosleep (Depends-on): Likewise.
63524         * modules/xstrtod (Depends-on): Likewise.
63525         * modules/yesno (Depends-on): Likewise.
63526
63527 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
63530         needless checks.
63531
63532 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63533
63534         Merge from coreutils.  Among other things,
63535         add bulletproofing for cases where stdin, stdout, or stderr are closed.
63536         * lib/fd-safer.c: New file.
63537         * lib/fcntl-safer.h, open-safer.c: Remove.
63538         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
63539         * lib/dup-safer.c: Include unistd-safer.h first.
63540         Don't include errno.h.
63541         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
63542         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
63543         * lib/file-type.c: Rely on file-type.h change.
63544         * lib/getloadavg.c: Include unistd-safer.h.
63545         (getloadavg): Use safer open.
63546         * lib/getusershell.c: Include "stdio-safer.h".
63547         (getusershell): Use safer fopen.
63548         * lib/long-options.c (long_options): Use NULL rather than 0.
63549         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
63550         'free'.
63551         * lib/modechange.c: Likewise.
63552         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
63553         (MODE_DONE): New constant.
63554         (struct mode_change): Remove 'next' member.
63555         (make_node_op_equals): New function; like the old one of the
63556         same name, except it allocates an array.
63557         (mode_compile, mode_create_from_ref): Use it.
63558         (mode_compile): Allocate result as an array, not a linked list.
63559         Parse octal string ourself, so that we catch mistakes like "+0".
63560         (mode_adjust): Arg is an array, not a linked list.
63561         * lib/modechange.c: Include stat-macros.h, xalloc.h.
63562         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
63563         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
63564         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
63565         Remove.  This is now stat-macros.h's job.
63566         (talloc): Remove.  All callers replaced by xalloc, so that
63567         our invokers don't have to worry about reporting memory failures.
63568         (make_node_op_equals): Remove.
63569         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63570         New constants.
63571         (struct mode_change): Moved here from modechange.h.
63572         (mode_append_entry): Remove.
63573         (mode_compile): Remove MASKED_OPS arg, since it encouraged
63574         apps to have incorrect behavior.  Use simpler algorithm for head
63575         and tail.  Don't futz with umask; that's now the job of mode_adjust.
63576         Detect more invalid usages rather than having somewhat-random behavior.
63577         Don't insert an "a=" action, as that leads to incorrect behavior.
63578         (mode_compile, mode_create_from_ref): Return NULL on error instead
63579         of an enum, since now there's only one way to have an error.  All
63580         callers changed.
63581         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
63582         at the correct time.  Simplify calculation of "+u" and its ilk.
63583         Don't mishandle "+X".
63584         (mode_free): Remove "register" and localize decls.
63585         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63586         (struct mode_change): Move to modechange.c; callers don't
63587         need to see this stuff.
63588         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
63589         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
63590         (mode_change, mode_adjust): Reflect the new signatures noted above.
63591         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
63592         that might redefine system include files.
63593         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
63594         (my_usleep): Use NULL rather than (void *) 0.
63595         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
63596         Use siginterrupt to specify that system calls should be interrupted.
63597         (rpl_nanosleep): Move initialization of suspended closer to call of
63598         my_usleep.
63599         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
63600         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
63601         (desirable_utmp_entry): New function.
63602         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
63603         using x2nrealloc, to simplify logic.
63604         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
63605         size calculation.  Do not assume utmp file is a regular file.
63606         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
63607         (READ_UTMP_CHECK_PIDS): New constant.
63608         * lib/save-cwd.c: Include unistd-safer.h.
63609         (save_cwd): Use fd_safer.
63610         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
63611         [!_LIBC] Include "stat-macros.h" instead.
63612         * lib/unistd-safer.h (fd_safer): New decl.
63613
63614 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         * modules/getloadavg (Depends-on): Add unistd-safer.
63617         * modules/getusershell (Depends-on): Add stdio-safer.
63618         * modules/lstat (Depends-on): Remove xalloc.
63619         * modules/mkstemp (Depends-on): Add stat-macros.
63620         * modules/modechange (Depends-on): Remove xstrtol.
63621         Add stat-macros, xalloc.
63622         * modules/save-cwd (Depends-on): Add unistd-safer.
63623         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
63624         * modules/unistd-safer (Files): Add lib/fd-safer.c
63625         (Makefile.am): Remove lib_SOURCES.
63626
63627         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
63628         Remove fcntl-safer; unistd-safer supersedes it.
63629
63630 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63631
63632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
63633         AC_HEADER_STAT.
63634         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
63635         (gl_PREREQ_CHOWN): Remove.
63636         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
63637         it.  Don't require AC_HEADER_STAT.
63638         (gl_PREREQ_LSTAT): Remove.
63639         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
63640         Don't require AC_HEADER_STAT.
63641         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
63642         (gl_PREREQ_RMDIR): Remove.
63643         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
63644         mention stat-macros.h or AC_HEADER_STAT, since we'll make
63645         the stat-macros module a prerequisite.
63646         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
63647         * m4/filemode.m4 (gl_FILEMODE): Likewise.
63648         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
63649         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
63650         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
63651         variable names.
63652         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
63653         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
63654         variable prefixes.
63655         * m4/fcntl-safer.m4: Remove.
63656         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
63657         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
63658         Invoke gl_PREREQ_FD_SAFER.
63659         (gl_PREREQ_FD_SAFER): New macro.
63660         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
63661         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
63662         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
63663         Remove duplicate call to AC_LIBOBJ(readutmp).
63664         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
63665
63666         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
63667         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
63668
63669 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * MODULES.html.sh (Misc): Add byteswap.
63672
63673 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63674
63675         * modules/getcwd (Depends-on): Add extensions.
63676         * modules/openat (Depends-on): Likewise.
63677
63678 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63679
63680         * modules/byteswap: New file.
63681
63682 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63683
63684         * m4/byteswap.m4: New file.
63685
63686 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63687
63688         * lib/byteswap_.h: New file.
63689
63690 2005-04-25  Karl Berry  <karl@gnu.org>
63691
63692         * m4/gettext.m4: Update from GNU gettext 0.14.4.
63693
63694 2005-04-25  Albert Chin  <china@thewrittenword.com>
63695
63696         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
63697         Toolkit C bug.
63698
63699 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
63700
63701         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
63702         (func_ln_if_changed) Remove forcibly for no error message
63703         in case file does not exist.
63704
63705 2005-04-19  Simon Josefsson  <jas@extundo.com>
63706
63707         * gnulib-tool (Options): Make --symlink mean --symbolic.
63708
63709 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
63710
63711         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
63712
63713 2005-04-16  Simon Josefsson  <jas@extundo.com>
63714
63715         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
63716
63717 2005-04-15  Simon Josefsson  <jas@extundo.com>
63718
63719         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
63720
63721 2005-04-15  Simon Josefsson  <jas@extundo.com>
63722
63723         * gnulib-tool: Rename --symlink to --symbolic.
63724
63725 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
63726
63727         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
63728         symbolic links to files instead of copying/moving.  Add --aux-dir,
63729         specifying directory relative --dir where auxiliary build tools
63730         are placed.
63731
63732 2005-04-14  Bruno Haible  <bruno@clisp.org>
63733
63734         * modules/allocsa (License): Change to LGPL.
63735         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
63736
63737 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63738
63739         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
63740         that "UTC +1 second" continues to work.  Problem reported
63741         by Dmitry V. Levin.
63742         (relunit_snumber): New rule.
63743         (relunit): Use it.
63744
63745 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         * lib/getdate.y (universal_time_zone_table): New constant.
63748         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
63749         universal_time_zone_table.
63750         (lookup_zone): Prefer universal_time_zone_table to
63751         local_time_zone_table, so that "GMT" time stamps are allowed in
63752         London during the summer.  Problem reported by Ian Abbott.
63753
63754 2005-04-12  Jim Meyering  <jim@meyering.net>
63755
63756         * lib/human.c (humblock): Set *options even when returning due to
63757         xstrtoumax conversion failure.  Thanks to a used-uninitialized
63758         warning from gcc-4.
63759
63760 2005-04-09  Jim Meyering  <jim@meyering.net>
63761
63762         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
63763         -Wuninitialized: initialize tm0.tm_year.
63764
63765 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
63768         count, since there's no maximum.  All uses changed.
63769         Add member dsts_seen.
63770         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
63771         not being INT_MAX.
63772         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
63773         Use pc_rels_seen to decide whther a date is absolute.
63774
63775         * lib/getdate.y (number): Don't overwrite year.
63776         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
63777         check.
63778
63779 2005-04-02  Simon Josefsson  <jas@extundo.com>
63780
63781         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
63782         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
63783
63784 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
63785
63786         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
63787         where no absolute path name can be longer than PATH_MAX.
63788
63789 2005-03-27  Jim Meyering  <jim@meyering.net>
63790
63791         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
63792
63793 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
63794
63795         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
63796         "one's complement" -> "ones' complement" in comment, as per Knuth.
63797         "value of type" -> "type or expression" in comment.
63798         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
63799
63800 2005-03-26  Jim Meyering  <jim@meyering.net>
63801
63802         Comment nits.
63803         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
63804         Correct typos: s/or/of/.
63805
63806 2005-03-26  Jim Meyering  <jim@meyering.net>
63807
63808         * modules/check-include-files: Move to ../ and rename to...
63809         * check-module: ...this.
63810
63811 2005-03-25  Jim Meyering  <jim@meyering.net>
63812
63813         * modules/xvasprintf (Files): Add xalloc.h.
63814
63815 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         * modules/gettext (Files): config/config.rpath ->
63818         build-aux/config.rpath
63819         * modules/iconv (Files): Likewise.
63820         Problem reported by Oskar Liljeblad.
63821
63822 2005-03-23  Jim Meyering  <jim@meyering.net>
63823
63824         * modules/check-include-files: New script to check for
63825         missing dependencies, multiple includes, etc.
63826
63827         * modules/c-strtold (Depends-on): Add xalloc.
63828         * modules/c-strtod (Depends-on): Add xalloc.
63829         * modules/hash (Depends-on): Add xalloc.
63830         (Files): Remove lib/xalloc.h.
63831
63832         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
63833         * modules/userspec (Files): Add lib/inttostr.h.
63834
63835 2005-03-23  Jim Meyering  <jim@meyering.net>
63836
63837         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
63838
63839 2005-03-22  Jim Meyering  <jim@meyering.net>
63840
63841         * modules/stat-macros: New module.
63842         * modules/canonicalize, modules/euidaccess, modules/file-type,
63843         * modules/filemode, modules/lchown, modules/makepath,
63844         * modules/rmdir, modules/stat: Depend on new stat-macros module
63845         rather than listing lib/stat-macros.h manually.
63846         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
63847
63848 2005-03-22  Jim Meyering  <jim@meyering.net>
63849
63850         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
63851
63852 2005-03-22  Bruno Haible  <bruno@clisp.org>
63853
63854         * config/srclist.txt: Replace target directory 'config' with
63855         'build-aux'.
63856         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
63857         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
63858         ../build-aux/.
63859
63860 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
63861
63862         * modules/chdir-long (Depends-on): Add mempcpy.
63863
63864         * modules/acl, modules/backupfile, modules/c-strtod,
63865         modules/c-strtold, modules/canon-host, modules/canonicalize,
63866         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
63867         modules/exclude, modules/exitfail, modules/file-type,
63868         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
63869         modules/getdate, modules/getline, modules/getpagesize,
63870         modules/getpass, modules/getugroups, modules/group-member,
63871         modules/hard-locale, modules/hash, modules/human, modules/idcache,
63872         modules/inttostr, modules/long-options, modules/makepath,
63873         modules/md5, modules/memcasecmp, modules/memcoll,
63874         modules/modechange, modules/mountlist, modules/path-concat,
63875         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
63876         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
63877         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
63878         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
63879         modules/strftime, modules/strndup, modules/strverscmp,
63880         modules/timespec, modules/unlocked-io, modules/userspec,
63881         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
63882         modules/yesno:
63883         Remove lib_SOURCES line from Makefile.am section, as this is now
63884         done automatically by the corresponding Autoconf macro.
63885
63886 2005-03-21  Jim Meyering  <jim@meyering.net>
63887
63888         Changes imported from coreutils.
63889
63890         * lib/cycle-check.c: Don't include xalloc.h.
63891
63892         * lib/path-concat.c: Don't include assert.h.
63893         (path_concat): Remove assertion that would have triggered
63894         for ABASE starting with more than one slash.
63895         Reported by Andreas Schwab.
63896
63897         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
63898         properly when ABASE is an absolute file name.
63899         Correct the description of this function.
63900         Include <assert.h>.
63901         Add an assertion and a test driver.
63902         This fixes a bug introduced on 2004-07-02.
63903         Andreas Schwab reported the resulting failure of cp --parents:
63904         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
63905
63906 2005-03-21  Jim Meyering  <jim@meyering.net>
63907
63908         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
63909         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
63910
63911 2005-03-21  Jim Meyering  <jim@meyering.net>
63912         and  Paul Eggert  <eggert@cs.ucla.edu>
63913
63914         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
63915         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
63916         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
63917         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
63918         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
63919         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
63920         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
63921         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
63922         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
63923         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
63924         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
63925         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
63926         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
63927         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
63928         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
63929         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
63930         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
63931         for these modules.
63932
63933 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
63934
63935         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
63936         (which shouldn't happen), generate nothing instead of returning 0
63937         immediately, so that nstrftime (NULL, ...) doesn't return 0.
63938
63939 2005-03-16  Bruno Haible  <bruno@clisp.org>
63940
63941         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
63942         HAVE_LONGLONG_64BIT.
63943
63944 2005-03-16  Bruno Haible  <bruno@clisp.org>
63945
63946         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
63947         HAVE_LONGLONG_64BIT.
63948
63949 2005-03-16  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
63952         HAVE_LONGLONG_64BIT.
63953
63954 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63955
63956         * lib/strftime.c (my_strftime): Prepend space to format so that we can
63957         reliably distinguish strftime failure from empty output on POSIX
63958         hosts.
63959
63960 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63961
63962         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
63963         (iconv_string): Don't guess a size-zero buffer, as that might cause
63964         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
63965         result would be 'too large', where 'too large' is (heuristically)
63966         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
63967         overflow concerns.  This will prevent some unwanted malloc failures
63968         when the inputs are very large.
63969
63970 2005-03-15  Karl Berry  <karl@gnu.org>
63971
63972         * config/srclist.txt (config.rpath): from gettext.
63973         * config/config.rpath: update.
63974
63975 2005-03-15  Bruno Haible  <bruno@clisp.org>
63976
63977         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
63978         to 'negate'.
63979
63980         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
63981         variable.
63982
63983         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
63984         results.
63985
63986 2005-03-14  Simon Josefsson  <jas@extundo.com>
63987
63988         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
63989         <fx@gnu.org>.
63990
63991 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
63992
63993         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
63994         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
63995         intprops.h.
63996         * lib/strtol.c: Likewise.
63997
63998 2005-03-14  Jim Meyering  <jim@meyering.net>
63999
64000         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
64001         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
64002         to be nonzero so that we (and caller) can detect the difference
64003         between a valid zero-length expansion and an error return, even
64004         when the underlying strftime fails before writing anything into
64005         that location.
64006
64007 2005-03-14  Bruno Haible  <bruno@clisp.org>
64008
64009         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
64010         Update from GNU gettext 0.14.3.
64011
64012 2005-03-10  Jim Meyering  <jim@meyering.net>
64013
64014         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
64015
64016 2005-03-10  Jim Meyering  <jim@meyering.net>
64017
64018         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
64019         so that this module works on systems without fchdir.
64020
64021 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         Factor int-properties macros into a single file, except for
64024         glibc-related files.
64025         * lib/intprops.h: New file.
64026         * lib/getloadavg.c: Include it instead of limits.h.
64027         (INT_STRLEN_BOUND): Remove.
64028         * lib/human.c: Include intprops.h.
64029         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
64030         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
64031         302/1000.
64032         * lib/inttostr.h: Include intprops.h instead of limits.h.
64033         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
64034         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
64035         for consistency with intprops.h.
64036         (time_t_is_integer, twos_complement_arithmetic): Use them.
64037         * lib/sig2str.h: Include <signal.h>, intprops.h.
64038         (INT_STRLEN_BOUND): Remove.
64039         * lib/strftime.c (TYPE_SIGNED): Remove.
64040         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
64041         * lib/strtol.c: Adjust comments to match intprops.h.
64042         * lib/userspec.c: Include intprops.h.
64043         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
64044         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
64045         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
64046         instead of rolling our own expressions.
64047         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
64048
64049         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
64050         instead of int.
64051         (my_strftime): Do not mishandle years close to INT_MAX, by doing
64052         the right thing even if adding 1900 would overflow.  Similarly
64053         for tm_mon + 1 and tm_yday + 1.
64054         Make %Y always equivalent to %C%y, and similarly for %G and %g.
64055         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
64056         (DO_SIGNED_NUMBER): New macro.
64057         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
64058
64059 2005-03-07  Bruno Haible  <bruno@clisp.org>
64060
64061         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
64062
64063 2005-03-07  Bruno Haible  <bruno@clisp.org>
64064
64065         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
64066
64067 2005-03-04  Derek R. Price  <derek@ximbiot.com>
64068
64069         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
64070         (func_import): Only replace files via --import when they have actually
64071         changed.
64072
64073 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64074
64075         * m4/mmap-anon.m4: New file.
64076         * m4/pagealign_alloc.m4: New file.
64077
64078 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64079             Bruno Haible  <bruno@clisp.org>
64080
64081         * modules/pagealign_alloc: New file.
64082         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
64083
64084 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64085             Bruno Haible  <bruno@clisp.org>
64086
64087         * lib/pagealign_alloc.h: New file.
64088         * lib/pagealign_alloc.c: New file.
64089
64090 2005-03-03  Bruno Haible  <bruno@clisp.org>
64091
64092         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
64093         Use an all-permissive copyright notice, recommended by RMS.
64094
64095 2005-03-02  Bruno Haible  <bruno@clisp.org>
64096
64097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
64098         of AIX, the replacement has to be done only after <string.h> is
64099         included, therefore not in config.h. stpncpy.h does the replacement,
64100         and stpncpy.c uses it.
64101
64102 2005-03-02  Bruno Haible  <bruno@clisp.org>
64103
64104         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
64105         stpncpy.c uses it.
64106
64107 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
64110         The workaround isn't strictly needed for POSIX conformance, and
64111         it's too much of a pain to configure and maintain.  We'll ask
64112         people to fix their kernels instead.
64113         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
64114         (NANOSLEEP_BUG_WORKAROUND): Remove.
64115         (xnanosleep): Remove the workaround.
64116
64117 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64118
64119         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
64120         Reported by Derek Price.
64121         (Include): Add "timespec.h".
64122
64123         * modules/xnanosleep (Depends-on): Remove gethrxtime.
64124
64125 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
64128         to detect nanosleep bug.
64129
64130 2005-03-01  Bruno Haible  <bruno@clisp.org>
64131
64132         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
64133
64134 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * modules/gethrxtime: New file.
64137         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
64138         (Depends-on): Add gethrxtime.
64139         (configure.ac): Add gl_XNANOSLEEP.
64140         (Makefile.am): Remove lib_SOURCES line.
64141
64142 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
64145         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
64146
64147 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
64150         * lib/timespec.h (gettime): Return void, since it always
64151         succeeds now.  All uses changed.
64152         * lib/gettime.c (gettime) Likewise.
64153         [HAVE_NANOTIME]: Prefer nanotime.
64154         Assume gettimeofday succeeds, as POSIX requires.
64155         Assime time () succeeds, since other code already does.
64156         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
64157         (timespec_subtract): Remove.
64158         (NANOSLEEP_BUG_WORKAROUND): New constant.
64159         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
64160         things considerably.  Use it only on GNU/Linux hosts, since the
64161         workaround shouldn't be needed elsewhere.
64162
64163 2005-02-24  Bruno Haible  <bruno@clisp.org>
64164
64165         * modules/gettext (Files): Add m4/glibc2.m4.
64166
64167 2005-02-24  Bruno Haible  <bruno@clisp.org>
64168
64169         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
64170         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
64171         * m4/progtest.m4:
64172         Update from GNU gettext 0.14.2.
64173         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
64174
64175 2005-02-24  Bruno Haible  <bruno@clisp.org>
64176
64177         * lib/localcharset.c: Update from GNU gettext 0.14.2.
64178         * lib/config.charset: Update from GNU gettext 0.14.2.
64179
64180 2005-02-24  Bruno Haible  <bruno@clisp.org>
64181
64182         * lib/gettext.h: Update from GNU gettext 0.14.2.
64183
64184 2005-02-23  Simon Josefsson  <jas@extundo.com>
64185
64186         * m4/iconvme.m4: New file.
64187
64188 2005-02-23  Jim Meyering  <jim@meyering.net>
64189
64190         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
64191         change.
64192         Thanks to Bruno Haible for catching it.
64193
64194 2005-02-22  Simon Josefsson  <jas@extundo.com>
64195
64196         * modules/iconvme: New file.
64197
64198         * MODULES.html.sh: Add iconvme.
64199
64200 2005-02-22  Simon Josefsson  <jas@extundo.com>
64201
64202         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
64203
64204 2005-02-22  Simon Josefsson  <jas@extundo.com>
64205
64206         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
64207
64208 2005-02-22  Jim Meyering  <jim@meyering.net>
64209
64210         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
64211         s/ifndef/ifdef/.
64212
64213 2005-02-20  Neil Conway  <neilc@samurai.com>
64214
64215         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
64216         returned by OSX/Darwin if the specified buffer is not large
64217         enough for the hostname.
64218
64219 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64220
64221         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
64222         pass it to _help, otherwise the latter coredumps trying to
64223         dereference state.root_argp.
64224
64225 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64226
64227         * modules/chdir-long (Depends-on): Add memrchr.
64228         * modules/memrchr (Files): Add lib/memrchr.h.
64229         (Include): "memrchr.h".
64230
64231 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
64234
64235 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64236
64237         * lib/memrchr.h: New file.
64238         * lib/chdir-long.c: Include it.
64239         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
64240         Don't bother including stddef.h.
64241
64242 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
64245         inclusion.
64246         Include <sys/types.h>, for dev_t.
64247         (ME_DUMMY, ME_REMOTE): Move from here....
64248         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
64249         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
64250         Dmitry V. Levin.
64251         Include mountlist.h first, to test the interface.
64252
64253 2005-01-29  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/progname.c (program_name): Initialize.
64256         Needed when linking statically on MacOS X.
64257
64258 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64259
64260         Sync from coreutils.
64261         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
64262         (Depends-on): Add c-strtod.
64263         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
64264
64265 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64266
64267         Sync from coreutils.
64268         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
64269
64270         Remove files that are specific to coreutils.
64271         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
64272
64273 2005-01-28  Bruno Haible  <bruno@clisp.org>
64274
64275         * modules/javacomp: New file.
64276         * MODULES.html.sh (Java): Add javacomp.
64277
64278 2005-01-28  Bruno Haible  <bruno@clisp.org>
64279
64280         * m4/javacomp.m4: New file, from GNU gettext.
64281
64282 2005-01-28  Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/javacomp.sh.in: New file, from GNU gettext.
64285         * lib/javacomp.h: New file, from GNU gettext.
64286         * lib/javacomp.c: New file, from GNU gettext.
64287
64288 2005-01-26  Simon Josefsson  <jas@extundo.com>
64289
64290         * lib/gai_strerror.c: Use GPL in header.
64291
64292 2005-01-26  Bruno Haible  <bruno@clisp.org>
64293
64294         * modules/javaexec: New file.
64295         * MODULES.html.sh (Java): Add javaexec.
64296
64297 2005-01-26  Bruno Haible  <bruno@clisp.org>
64298
64299         * m4/javaexec.m4: New file, from GNU gettext.
64300
64301 2005-01-26  Bruno Haible  <bruno@clisp.org>
64302
64303         * lib/javaexec.sh.in: New file, from GNU gettext.
64304         * lib/javaexec.h: New file, from GNU gettext.
64305         * lib/javaexec.c: New file, from GNU gettext.
64306
64307 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64308
64309         * modules/lchown (Depends-on): Remove lchown.h
64310
64311 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64312
64313         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
64314         must be defined if the header file was not found, in order
64315         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
64316
64317 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64318
64319         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
64320         initializers for struct pentry_state.
64321         (__argp_error): Check return value of __asprintf
64322         (__argp_failure): Translate error message
64323
64324         * lib/argp-parse.c: Removed braces around the expansion of N_()
64325
64326 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64327
64328         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
64329         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
64330         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
64331         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
64332         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
64333         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
64334         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
64335         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
64336         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
64337         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
64338         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
64339         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
64340         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
64341         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
64342         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
64343         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
64344         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
64345         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
64346         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
64347         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
64348         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
64349         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
64350         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
64351         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
64352         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
64353         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
64354         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
64355         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
64356         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
64357         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
64358         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
64359         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
64360         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
64361         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
64362         xstrtol.m4, xstrtoumax.m4, yesno.m4:
64363         Use an all-permissive copyright notice, recommended by RMS.
64364
64365 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
64366
64367         * modules/chdir-long (Depends-on): Remove mempcpy.
64368
64369 2005-01-21  Jim Meyering  <jim@meyering.net>
64370
64371         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
64372         same value as for Solaris 9.
64373
64374         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
64375         component length.  This included changing the parameter to be
64376         of type `char *' rather than `char const *'.
64377         * lib/chdir-long.h (chdir_long): Update prototype.
64378
64379         * lib/openat.c (fdopendir, fstatat): New functions.
64380         * lib/openat.h: Include headers required for use of DIR and struct
64381         stat.
64382         [AT_SYMLINK_NOFOLLOW]: Define.
64383         (fdopendir, fstatat): Add prototypes.
64384
64385 2005-01-21  Bruno Haible  <bruno@clisp.org>
64386
64387         * modules/classpath: New file.
64388         * MODULES.html.sh (Java): Add classpath.
64389
64390 2005-01-21  Bruno Haible  <bruno@clisp.org>
64391
64392         * lib/classpath.h: New file, from GNU gettext.
64393         * lib/classpath.c: New file, from GNU gettext.
64394
64395 2005-01-20  Simon Josefsson  <jas@extundo.com>
64396
64397         * modules/version-etc-fsf: New file.
64398
64399 2005-01-20  Simon Josefsson  <jas@extundo.com>
64400
64401         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
64402         * lib/version-etc.c: Remove version_etc_copyright.
64403         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
64404         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
64405
64406 2005-01-20  Simon Josefsson  <jas@extundo.com>
64407
64408         * lib/base64.h (isbase64): Add.
64409
64410         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
64411         using a unsigned prototype, don't inline.
64412         (base64_decode): Use it.
64413
64414 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64415
64416         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
64417         it.
64418
64419 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         * lib/save-cwd.c (save_cwd): Remove code to support the case
64422         where fchdir is missing or flaky.
64423
64424 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64425
64426         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
64427
64428 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
64431         AC_LIBSOURCES now does this.
64432         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
64433         with new ullong_max module.
64434
64435 2005-01-19  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/sh-quote: New file.
64438         * MODULES.html.sh (Executing programs): Add sh-quote.
64439
64440 2005-01-19  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/sh-quote.h: New file, from GNU gettext.
64443         * lib/sh-quote.c: New file, from GNU gettext.
64444
64445 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64446
64447         Merge from coreutils.
64448         * m4/ullong_max.m4: New file.
64449         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
64450         (gl_MACROS): Assume localeconv exists.
64451
64452 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64453
64454         Merge changes from coreutils, as described below in several
64455         changelogs dated today.
64456
64457         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
64458         (O_DIRECTORY): Remove; not needed here, since "." must be
64459         a directory.  All uses removed.
64460         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
64461         universal on Suns, and we also need to test for IRIX.
64462         Revamp code to use 'if' rather than '#if'.
64463         Avoid unnecessary comparison of cwd->desc to 0.
64464
64465         * lib/utimens.c (futimens): Robustify the previous patch, by checking
64466         for known valid error numbers rather than observed invalid ones.
64467
64468 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         * modules/ullong_max: New file.
64471
64472         * modules/chdir-long, modules/openat: New files.
64473         * modules/save-cwd (Depends-on): Depend on chdir-long.
64474         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
64475
64476 2005-01-18  Jim Meyering  <jim@meyering.net>
64477
64478         Merge from coreutils.
64479         * m4/chdir-long.m4, m4/openat.m4: New files.
64480         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
64481         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
64482         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
64483         is sane and DOES follow symlinks.  Besides, testing 20 different
64484         systems found no broken chown implementations.
64485         Prompted by a change in rsync's copy of this macro.
64486         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
64487
64488         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
64489
64490         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
64491         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
64492         NULL-means-set-to-current-time semantics.
64493         Remove temporary file immediately, rather than waiting
64494         for configure's at-exit trap code to do it.
64495
64496 2005-01-18  Jim Meyering  <jim@meyering.net>
64497
64498         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64499
64500         * lib/utimens.c (futimens): Account for the fact that futimes
64501         can also fail with errno == ENOSYS or errno == ENOENT.
64502         Patch from Dmitry V. Levin.
64503
64504         Change the name of the robust chdir function from chdir to chdir_long.
64505         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
64506         (restore_cwd): Use chdir_long, not chdir.
64507         * lib/chdir-long.c: Renamed from chdir.c.
64508         * lib/chdir-long.h: Renamed from chdir.h.
64509         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
64510         Hurd.
64511
64512 2005-01-18  Bruno Haible  <bruno@clisp.org>
64513
64514         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
64515         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
64516         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
64517         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
64518         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
64519         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
64520         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
64521         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
64522         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
64523         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
64524         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
64525         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
64526         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
64527         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
64528         Use an all-permissive copyright notice, recommended by RMS.
64529
64530 2005-01-18  Bob Proulx  <bob@proulx.com>
64531
64532         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
64533         simplify offsetof() macro construct to avoid compile failure with
64534         native HP-UX 11.0 ANSI C compiler.
64535
64536 2005-01-17  Bruno Haible  <bruno@clisp.org>
64537
64538         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
64539         redundant because stpncpy.m4 takes care of it.
64540
64541 2005-01-17  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
64544
64545 2005-01-17  Bruno Haible  <bruno@clisp.org>
64546
64547         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
64548         used.
64549
64550 2005-01-17  Bruno Haible  <bruno@clisp.org>
64551
64552         * lib/fwriteerror.h (fwriteerror): Change specification to include
64553         fclose.
64554         * lib/fwriteerror.c: Include <stdbool.h>.
64555         (fwriteerror): At the end, close the file stream. Record whether
64556         stdout was already closed.
64557
64558 2005-01-17  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/execute.c (environ): Declare if needed.
64561         * lib/pipe.c (environ): Likewise.
64562         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
64563
64564 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64565
64566         * modules/argp: Depend on vsnprintf
64567
64568 2005-01-10  Jim Meyering  <jim@meyering.net>
64569
64570         * modules/closeout (Depends-on): Add atexit.
64571
64572 2005-01-06  Bruno Haible  <bruno@clisp.org>
64573
64574         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
64575
64576 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
64579         definitions to be after all include files, to avoid collisions.
64580         Problem reported by Bob Proulx.
64581
64582 2005-01-04  Jim Meyering  <jim@meyering.net>
64583
64584         Changes imported from coreutils.
64585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
64586         as the mkstemp template, use a temporary directory and an
64587         8.3-friendly template to avoid trouble on systems like DJGPP.
64588         Reported by Juan M. Guerrero via Stepan Kasal.
64589         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
64590         close. Remove the temporary directory right away, rather than waiting
64591         for configure's at-exit trap code to do it.
64592         Suggestion from Stepan Kasal.
64593
64594 2005-01-01  Simon Josefsson  <jas@extundo.com>
64595
64596         * gnulib-tool: Print #include directives when --import'ing.
64597
64598 2004-12-28  Simon Josefsson  <jas@extundo.com>
64599
64600         * tests/test-base64.c: Include required header files.  Remove
64601         unused variables.
64602
64603 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         * modules/error (Depends-on): Remove gettext.
64606
64607 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64608
64609         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
64610         not needed.  This removes a dependency on the gettext module.
64611         [defined _LIBC]: Do not include <libintl.h>; not needed.
64612
64613 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64614
64615         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
64616         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
64617
64618 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
64621         HAVE_DECL_STRTOLD.
64622
64623 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * modules/getdate (Depends-on): Remove alloca-opt.
64626
64627 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64628
64629         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
64630
64631 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64632
64633         * lib/argp-parse.c: Include <stddef.h>.
64634         (alignof, alignto): New macros.
64635         (parser_init): Don't assume that void * is aligned sufficiently
64636         for struct option.
64637
64638         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
64639         need to extend the stack.
64640         (YYINITDEPTH): New macro, so that the initial stack isn't overly
64641         large.
64642
64643 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64644
64645         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
64646
64647 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
64650         (2004-10-24) change.  Apparently this was a false alarm.
64651
64652         * modules/getdate: Depend on alloca-opt, not alloca.
64653
64654 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
64657         Remove now-obsolete comment about AIX.
64658         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
64659         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
64660         (YYMAXDEPTH): New macro.
64661
64662 2004-12-18  Simon Josefsson  <jas@extundo.com>
64663
64664         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
64665
64666 2004-12-18  Bruno Haible  <bruno@clisp.org>
64667
64668         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
64669
64670 2004-12-18  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/fatal-signal.c (fatal_signals): Make non-const.
64673         (init_fatal_signals): New function.
64674         (uninstall_handlers, install_handlers): Ignore signals that were set to
64675         SIG_IGN.
64676         (at_fatal_signal): Call init_fatal_signals.
64677         (init_fatal_signal_set): Likewise. Ignore signals that were set to
64678         SIG_IGN.
64679         Reported by Paul Eggert.
64680
64681 2004-12-18  Bruno Haible  <bruno@clisp.org>
64682
64683         * doc/alloca.texi: New file.
64684         * doc/alloca-opt.texi: New file.
64685
64686 2004-12-17  Jim Meyering  <jim@meyering.net>
64687
64688         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
64689         Otherwise, install-sh could exit with improper exit status when
64690         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
64691
64692 2004-12-16  Simon Josefsson  <jas@extundo.com>
64693
64694         * tests/test-base64.c: Add license.
64695
64696 2004-12-15  Stepan Kasal  <address@hidden>
64697
64698         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
64699
64700 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * modules/getcwd (Files): Add m4/d-ino.m4.
64703         Suggested by Mark D. Baushke.
64704
64705 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         * lib/getdate.y (textint): New member "negative".
64708         (time_zone_hhmm): New function.
64709         Expect 14 shift-reduce conflicts, not 13.
64710         (o_colon_minutes): New rule.
64711         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
64712         (yylex): Set the "negative" member of signed numbers.
64713
64714 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         * doc/getdate.texi (Time of day items, Time zone items):
64717         Describe new formats +00:00, UTC+00:00.
64718
64719 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64720
64721         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
64722         spurious "-l"s.  Problem reported by Stepan Kasal.
64723
64724 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
64727         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
64728
64729 2004-12-04  Simon Josefsson  <jas@extundo.com>
64730
64731         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
64732         Vandoorselaere <yoann@prelude-ids.org>.
64733
64734 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         Changes imported from coreutils.
64737         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
64738         exist.
64739         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
64740
64741 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         Changes imported from coreutils.
64744         * lib/hard-locale.c: Assume <locale.h> exists.
64745         Include "strdup.h".
64746         (GLIBC_VERSION): New macro.
64747         (hard_locale): Assume setlocale exists.
64748         Rewrite to avoid #ifdef.
64749         Use strdup rather than malloc + strcpy.
64750         * lib/human.c: Assume <locale.h> exists.
64751         (human_readable): Assume localeconv exists.
64752
64753 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64754
64755         * modules/hard-locale (Depends-on): Add strdup.
64756
64757 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64758
64759         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
64760         convert T2, not T.  (Imported from libc.)
64761
64762 2004-11-30  Simon Josefsson  <jas@extundo.com>
64763
64764         * modules/restrict (License): Change to LGPL.
64765
64766 2004-11-30  Simon Josefsson  <jas@extundo.com>
64767
64768         * m4/restrict.m4: Add copyright and copying conditions.
64769
64770 2004-11-30  Simon Josefsson  <jas@extundo.com>
64771
64772         * m4/base64.m4: New file.
64773
64774 2004-11-30  Simon Josefsson  <jas@extundo.com>
64775
64776         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
64777         base64.
64778
64779         * tests/test-base64.c: New file.
64780
64781         * modules/base64: New file.
64782
64783 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
64786         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
64787
64788         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
64789
64790 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
64793         (__getcwd.c): Don't restore errno; glibc doesn't.
64794         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
64795         first, falling back to our code only if its results look suspicious.
64796         Ensure that the resulting buffer is only as large as necessary.
64797
64798         * lib/readutmp.c: Include readutmp.h first.
64799         Include <errno.h>, since readutmp.h no longer does that.
64800         * lib/readutmp.h: Don't include <errno.h>,
64801         <sys/param.h>, <time.h>; not needed to establish interface.
64802         (errno): Remove decl.
64803         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
64804         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
64805         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
64806
64807 2004-11-28  Simon Josefsson  <jas@extundo.com>
64808
64809         * lib/base64.h, base64.c: New file.
64810
64811 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64812
64813         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
64814
64815 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
64818         (Depends-on): Remove pathmax, same.  Add mempcpy.
64819         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
64820         (Makefile.am): Append getcwd.h to lib_SOURCES.
64821         (Include): Add getcwd.h.
64822         (Maintainer): Change from Jim Meyering to "all, glibc",
64823         since getdate now uses intended-for-glibc code.
64824         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
64825         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
64826
64827 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
64830         HP's ANSI C compiler.
64831         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
64832         Declaring int functions causes warnings on some modern systems and
64833         shouldn't be needed to compile on ancient ones.
64834         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
64835         defined.
64836
64837         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
64838         with the following changes.
64839         (__set_errno): Parenthesize properly.
64840         Include <stdbool.h>.
64841         (MIN, MAX, MATCHING_INO): New macros.
64842         (__getcwd): Define with prototype, not K&R form.
64843         Use heuristics to allocate default buffer on stack if possible.
64844         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
64845         behavior, and to avoid the PATH_MAX limit when computing
64846         ../../../../...
64847         Use MATCHING_INO to compare inode number to file.
64848         Check for arithmetic overflow in size calculations.
64849         Fix bug in reallocation of dot array that caused getcwd to fail
64850         on directories nested deeper than 75.
64851         Be more careful about saving errno on error.
64852         Do not use realloc; use only free+malloc, as this is a bit
64853         more flexible and avoids a needless copy operation.
64854         Do not inspect st_dev and st_ino for symbolic links; POSIX
64855         doesn't specify the latter.
64856         Check for closedir errors.
64857         Avoid needless casts.
64858         Use "#ifdef weak_alias" around weak_alias, to be like other
64859         glibc code.
64860         The following changes to getcwd.c have effect only when used in
64861         gnulib; they have no effect inside glibc proper.
64862         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
64863         as alloca isn't used.
64864         (alloca, __alloca): Likewise.
64865         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
64866         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64867         unconditionally, as gnulib assumes C89 or better.
64868         Do not include <sys/param.h>.
64869         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
64870         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
64871         better.
64872         (NULL) [!defined NULL]: Remove; we assume C89 or better.
64873         Include <dirent.h> in a way that is compatible with modern Autoconf.
64874         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
64875         New macros, if not already defined.
64876         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
64877         Use "_LIBC", not "defined _LIBC", for consistency.
64878         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
64879         a mempcpy module.
64880         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
64881         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
64882         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
64883         credit only to Jim Meyering and adjust the copyright dates.
64884         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
64885         <stdlib.h>, <unistd.h>, "pathmax.h".
64886         Instead, include "xgetcwd.h" (first) and "getcwd.h".
64887         (INITIAL_BUFFER_SIZE): Remove.
64888         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
64889
64890 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
64893         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
64894         Use the _ONCE methods, for efficiency.
64895         Check for fcntl.h.  In test program, include <errno.h>
64896         and <fcntl.h> if available.  Remove old K&R cruft from
64897         test program.  Check for common errors in GNU/Linux,
64898         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
64899         don't do AC_LIBOBJ, as that's getcwd.m4's job.
64900         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
64901         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
64902         name accordingly.
64903         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
64904         accommodate new getcwd.c.
64905         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
64906         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
64907         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
64908         that's all we need now.
64909
64910 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64911
64912         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
64913         argp-parse.c depends on getopt internals, that means we should
64914         always use our getopt, to be on the safe side.
64915         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
64916         order not to spoil the result of an eventual previous invocation
64917         of gl_GETOPT_SUBSTITUTE.
64918
64919 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64920
64921         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
64922         redefinition warnings. To avoid them, include the defines
64923         in `#if !defined __need_getopt ... #endif'. The only place
64924         where __getopt_argv_const is used is in definitions
64925         of getopt_long and getopt_long_only below, which are as well
64926         protected by `#ifndef __need_getopt'.
64927         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
64928         __need_getopt after including <stdio.h> and <unistd.h> These
64929         headers might have defined it.
64930
64931 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
64934
64935 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64936
64937         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
64938         (futimens): New function, which uses futimes if available.
64939         (futimens, utimens): Support timespec==NULL, with same semantics
64940         as utime and utimens.
64941         * lib/utimens.h (futimens): New decl.
64942
64943 2004-11-23  Jim Meyering  <jim@meyering.net>
64944
64945         * lib/getopt_.h: Remove trailing blanks.
64946
64947 2004-11-23  Jim Meyering  <jim@meyering.net>
64948
64949         * lib/__fpending.c: Add comment.
64950
64951 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * modules/canonicalize (Depends-on): Add xreadlink.
64954         Problem reported by James Youngman.
64955
64956 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64957
64958         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
64959         New macros.
64960         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
64961         optopt): Use them instead of invoking ## directly; otherwise, the
64962         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
64963
64964 2004-11-19  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/strtok_r.c: Move comments from here...
64967         * lib/strtok_r.h: ... to here.
64968
64969 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64970
64971         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
64972         implementations that mishandle size_t overflow.
64973
64974 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
64977         might fail.  Problem reported by Yoann Vandoorselaere.
64978         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
64979         implementations that mishandle size_t overflow.
64980
64981 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64982
64983         * modules/canon-host (Depends-on): Add strdup.
64984
64985 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64986
64987         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
64988
64989 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64990
64991         * lib/canon-host.c: Include "strdup.h".
64992         (canon_host): Use getaddrinfo if available, so that IPv6 works.
64993         Use strdup instead of malloc/strcpy to duplicate strings.
64994
64995         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
64996         (human_space_before_unit): New constant.
64997         * lib/human.c (human_readable): Support it.
64998
64999         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
65000         (xgetcwd): Set errno correctly when failing.
65001         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
65002         the failure is actually due to a PATH_MAX problem.
65003
65004         Further getopt changes to make it more likely that glibc will
65005         buy the changes back.
65006         * lib/getopt.c (POSIXLY_CORRECT): New constant.
65007         (getopt): Use it, so to preserve glibc semantic
65008         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
65009         when compiling for libc.
65010         * lib/getopt_.h (__getopt_argv_const): Bring it back.
65011         (getopt_long, getopt_long_only): Use it.
65012
65013         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65014         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
65015         (getopt): Argv is now char * const *, as per standard.
65016         (_getopt_internal_r, _getopt_internal): Argv is now char **,
65017         not char *__getopt_argv_const *.
65018         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65019         _getopt_long_only_r): Likewise.
65020         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
65021         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65022         _getopt_long_r, _getopt_long_only_r): Likewise.
65023         * lib/getopt_.h (__getopt_argv_const): Remove.
65024         (getopt): Argv is now char * const *, as per standard.
65025
65026         * lib/getdate.y (tORDINAL): New token.
65027         (day, relunit): Allow it for relative times.
65028         (relative_time_table): Use tORDINAL for ordinals.
65029
65030 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
65033         Document that "second" isn't allowed as an ordinal number.
65034
65035 2004-11-16  Jim Meyering  <jim@meyering.net>
65036
65037         * modules/closeout (Depends-on): Add fpending.
65038
65039 2004-11-15  Jim Meyering  <jim@meyering.net>
65040
65041         * lib/closeout.c: Include "__fpending.h" once again.
65042         Include <stdbool.h>.
65043         (close_stdout): Don't fail just because stdout was closed initially,
65044         since some programs don't write to stdout in the normal course of
65045         operation (other than --version and --help), and we don't want this
65046         function to make e.g. `touch file >&-' fail.
65047         But do fail if it was closed and someone has tried to write to it.
65048         E.g., `printf foo >&-' must fail.
65049
65050 2004-11-13  Jim Meyering  <jim@meyering.net>
65051
65052         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
65053
65054 2004-11-12  Simon Josefsson  <jas@extundo.com>
65055
65056         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
65057         small doc fix is still pending.
65058
65059 2004-11-11  Simon Josefsson  <jas@extundo.com>
65060
65061         * modules/strtok_r: New file.
65062
65063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65064         strtok_r.
65065
65066 2004-11-11  Simon Josefsson  <jas@extundo.com>
65067
65068         * m4/strtok_r.m4: New file.
65069
65070         * m4/getopt.m4: Replace opterr.
65071
65072 2004-11-11  Simon Josefsson  <jas@extundo.com>
65073
65074         * lib/strtok_r.h, strtok_r.c: New file.
65075
65076 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65077
65078         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
65079         of replacing opterr, getopt, etc.  This should handle the
65080         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
65081
65082 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
65085         we can stop lying to compilers about the constness of argv when we
65086         are compiled outside glibc.
65087         (getopt, getopt_long, getopt_long_only): Use it.
65088         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65089         _getopt_internal, getopt): Likewise.
65090         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65091         _getopt_long_only_r): Likewise.
65092         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65093         _getopt_long_r, _getopt_long_only_r): Likewise.
65094
65095         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
65096         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
65097         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
65098         the other external symbols.
65099         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
65100         declaration, since the above renaming now works around collisions.
65101
65102 2004-11-11  Jim Meyering  <jim@meyering.net>
65103
65104         * lib/linebreak.c: Remove trailing blanks.
65105         * lib/alloca_.h: Likewise.
65106         * lib/acosl.c: Likewise.
65107         * lib/euidaccess.c: Likewise.
65108         * lib/allocsa.h: Likewise.
65109
65110 2004-11-10  Simon Josefsson  <jas@extundo.com>
65111
65112         * m4/getaddrinfo.m4: New file.
65113
65114 2004-11-10  Simon Josefsson  <jas@extundo.com>
65115
65116         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
65117
65118 2004-11-10  Simon Josefsson  <jas@extundo.com>
65119
65120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65121         getaddrinfo.
65122
65123         * modules/getaddrinfo: New file.
65124
65125 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
65128
65129 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65130
65131         * lib/mktime.c (SHR): New macro, which is a portable
65132         substitute for >> that should work even on Crays.
65133         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
65134         Problem reported by Mark D. Baushke in
65135         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
65136         * lib/getdate.y (SHR): Likewise.
65137         (tm_diff): Use it.
65138         * lib/strftime.c (SHR): Likewise.
65139         (tm_diff): Use it.
65140         * lib/quotearg.c (struct quoting_options): Use unsigned int for
65141         quote_these_too, so that right shifts are well defined.  All uses
65142         changed.
65143
65144 2004-11-10  Jim Meyering  <jim@meyering.net>
65145
65146         Ensure that no close failure goes unreported.
65147         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
65148         return early when it seems there's nothing to flush.
65149         Don't include __fpending.h.
65150
65151 2004-11-10  Jim Meyering  <jim@meyering.net>
65152
65153         * modules/closeout (Depends-on): Remove fpending.
65154
65155 2004-11-10  Jim Meyering  <jim@meyering.net>
65156
65157         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
65158
65159 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
65162         gl_FUNC_STRFTIME.
65163         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
65164         and AC_REQUIRE when possible, to avoid duplicate checks.
65165         Check for <wchar.h>.
65166
65167 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
65170
65171 2004-11-09  Bruno Haible  <bruno@clisp.org>
65172
65173         * m4/sockpfaf.m4: New file.
65174
65175 2004-11-05  Bruno Haible  <bruno@clisp.org>
65176
65177         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
65178         Reported by Mark D. Baushke <mdb@cvshome.org>.
65179
65180 2004-11-04  Bruno Haible  <bruno@clisp.org>
65181
65182         2004-09-11  Bruno Haible  <bruno@clisp.org>
65183                 * allocsa.valgrind: New file.
65184         2004-02-06  Bruno Haible  <bruno@clisp.org>
65185                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
65186                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
65187                 Reported by Christopher Seip <chris.seip@hp.com>.
65188
65189 2004-11-04  Bruno Haible  <bruno@clisp.org>
65190
65191         * modules/allocsa (Files): Add lib/allocsa.valgrind.
65192         (Makefile.am): Distribute it.
65193
65194 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65195
65196         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
65197         with errno == ERANGE if the buffer is too small.
65198         Problem reported by Mark D. Baushke.
65199
65200 2004-11-03  Albert Chin  <china@thewrittenword.com>
65201             Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
65204         equivalent, substitute $ac_type for equivalent type rather than
65205         blindly using uint32_t *always* which won't work if uint32_t is not
65206         available.  Define _UINT32_T to work around typedef of uint32_t if
65207         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
65208         2.5.1.
65209
65210 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65211
65212         * m4/jm-macros.m4: Sync from coreutils.
65213         (gl_MACROS): Check for mbrlen, for pathchk.
65214         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
65215
65216 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * lib/xreadlink.c (MAXSIZE): New macro.
65219         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
65220         size does not exceed MAXSIZE.  Avoid cast.
65221         As suggested by Mark D. Baushke in
65222         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
65223         if readlink fails with buffer size just under MAXSIZE, try again
65224         with MAXSIZE.
65225
65226 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
65229
65230 2004-11-02  Derek R. Price  <derek@ximbiot.com>
65231         and  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
65234         (get_date): Overparenthesize to avoid GCC warning.
65235
65236 2004-11-02  Bruno Haible  <bruno@clisp.org>
65237
65238         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
65239         returns void.
65240
65241 2004-11-02  Bruno Haible  <bruno@clisp.org>
65242
65243         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
65244         function returns void.
65245
65246 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65247
65248         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
65249         fflush_unlocked, flockfile, funlockfile, funlockfile,
65250         fputs_unlocked, putc_unlocked.
65251
65252 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65253
65254         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65255         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
65256         already declared.
65257
65258 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         * modules/getdate (Files): Add doc/getdate.texi.
65261         (Depends-on): Add setenv, xalloc.
65262
65263 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         * lib/getdate.y: Add support for TZ="foo" within a date string.
65266         Fix some bugs near time_t boundaries.  Reject dates with
65267         out-of-range components, e.g., "Sept 31".
65268         Include <stdlib.h>, "setenv.h", "xalloc.h".
65269         (ISDIGIT_LOCALE): Remove; unused.
65270         Note that the TZ and time functions used here are not reentrant.
65271         (mktime_ok, get_tz): New functions.
65272         (TZBUFSIZE): New constant.
65273         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
65274         This requires that we sometimes generate our own TZ="XXX..." setting.
65275
65276 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         * doc/getdate.texi: New file, from coreutils with modifications for
65279         the new TZ parsing.
65280
65281 2004-10-27  Derek R. Price  <derek@ximbiot.com>
65282
65283         * lib/mktime.c (not_equal_tm): Remove redundant check.
65284
65285 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         * modules/regex (lib_SOURCES): Add regex.c.
65288         Reported by James Youngman in
65289         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
65290
65291 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * lib/getdate.y: Use Bison 1.875 features, and some minor
65294         code cleanups.  This change does not affect semantics.
65295         Don't include <stdlib.h>; no longer needed.
65296         Don't include unlocked-io.h; only the "#if TEST" code uses
65297         stdio, and performance isn't crucial there.
65298         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
65299         Bison 1.875 features as described below.
65300         All uses of "PC." replaced by "pc->".
65301         (YYSTYPE): Add a forward declaration.
65302         (yylex, yyerror): Use full prototypes in forward decls.
65303         Use "%pure-parser" rather than obsolescent "%pure_parser".
65304         Use %parse-param and %lex-param instead of obsolescent
65305         YYPARSE_PARAM and YYLEX_PARAM.
65306         (meridian_table, month_and_day_table, time_units_table,
65307         relative_time_table, time_zone_table, military_table,
65308         lookup_zone, lookup_word, get_date):
65309         Use NULL instead of 0 where appropriate.
65310         (to_hour): Avoid abort (), to avoid a dependency on
65311         stdlib.h.
65312         (yyerror, yylex): Now accepts parser_control * arg.
65313         (main) [TEST]: Use '\0' rather than 0 for char.
65314
65315 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65316
65317         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
65318
65319 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65320
65321         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
65322         It's now the caller's responsibility to handle the case where
65323         !HAVE_GETPAGESIZE && !defined getpagesize.
65324
65325         * lib/mktime.c (leapyear): Arg is long int, not int.
65326
65327 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
65328
65329         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
65330
65331 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65332
65333         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
65334         missing.  Problem reported by James Youngman.
65335
65336 2004-10-16  Simon Josefsson  <jas@extundo.com>
65337
65338         * gnulib-tool: Fix comments.  Fix parse problem.
65339         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
65340
65341 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
65344         implementation of getopt_long.  Problem reported by Alexander Taler in:
65345         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
65346
65347 2004-10-15  Bruno Haible  <bruno@clisp.org>
65348
65349         * gnulib-tool: Untabify. Initialize supplied_libname.
65350         (func_usage): More homogenous output.
65351         (func_modules_transitive_closure, func_modules_to_filelist,
65352         func_emit_lib_Makefile_am): New functions.
65353         (func_import): New function, extracted from big case statement. Use
65354         func_get_license, func_modules_transitive_closure,
65355         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
65356         opt_lgpl. Don't use test -a, as it's not portable.
65357         (func_create_testdir): Use func_modules_transitive_closure,
65358         func_modules_to_filelist, func_emit_lib_Makefile_am.
65359
65360 2004-10-15  Bruno Haible  <bruno@clisp.org>
65361
65362         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
65363
65364 2004-10-15  Bruno Haible  <bruno@clisp.org>
65365
65366         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
65367         the portions belonging to each module.
65368         Suggested by Derek Robert Price <derek@ximbiot.com>.
65369
65370 2004-10-12  Simon Josefsson  <jas@extundo.com>
65371
65372         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65373         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
65374         to real functions.
65375
65376 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65377
65378         * modules/vsnprintf: New file.
65379
65380 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65381
65382         * m4/vsnprintf.m4: New file.
65383
65384 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65385
65386         * lib/vsnprintf.h: New file.
65387         * lib/vsnprintf.c: New file.
65388
65389 2004-10-11  Bruno Haible  <bruno@clisp.org>
65390
65391         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
65392         vsnprintf.
65393
65394 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65395
65396         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
65397
65398 2004-10-07  Bruno Haible  <bruno@clisp.org>
65399
65400         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
65401         fits into the provided buffer.
65402
65403 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * lib/diacrit.c, diacrit.h: Add GPL notice.
65406
65407         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
65408         notice.
65409         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
65410         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
65411         This avoids a potential constant-folding bug.
65412
65413 2004-10-05  Bruno Haible  <bruno@clisp.org>
65414
65415         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
65416         for the declaration of strsep.
65417
65418 2004-10-05  Bruno Haible  <bruno@clisp.org>
65419
65420         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
65421
65422 2004-10-04  Simon Josefsson  <jas@extundo.com>
65423
65424         * modules/memmem: New file.
65425         * tests/test-memmem.c: New file.
65426         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
65427
65428 2004-10-04  Simon Josefsson  <jas@extundo.com>
65429
65430         * m4/memmem.m4: New file.
65431
65432 2004-10-04  Simon Josefsson  <jas@extundo.com>
65433
65434         * lib/memmem.h: New file.
65435         * lib/memmem.c: New file, taken from glibc.
65436
65437 2004-10-04  Simon Josefsson  <jas@extundo.com>
65438
65439         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
65440         '#ifdef USE_UNLOCKED_IO'.
65441
65442 2004-10-04  Simon Josefsson  <jas@extundo.com>
65443
65444         * config/srclist.txt: Add memmem from glibc.
65445
65446 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65447
65448         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
65449
65450         * modules/argmatch, modules/argp, modules/closeout, modules/error,
65451         modules/exclude, modules/getdate, modules/getline,
65452         modules/getndelim2, modules/getpass, modules/getpass-gnu,
65453         modules/getusershell, modules/linebuffer, modules/md5,
65454         modules/mountlist, modules/posixtm, modules/readtokens,
65455         modules/readutmp, modules/regex, modules/sha1,
65456         modules/version-etc, modules/yesno:
65457         Remove dependency on unlocked-io.
65458
65459 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65460
65461         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
65462
65463         * m4/unlocked-io.m4: Add copyright notice.
65464         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
65465
65466 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
65469         * lib/xmalloc.c (xmemdup): Likewise.
65470         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
65471         XFREE): Remove these long-obsolescent macros.
65472         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
65473         * lib/xstrdup.c: Remove.
65474
65475         * lib/regex.c (re_comp): Cast gettext return value to char *,
65476         Problem reported by Martin Neitzel via Mark D. Baushke.
65477
65478 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
65481         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
65482         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
65483         regex.c, sha1.c, version-etc.c, yesno.c:
65484         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
65485         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
65486         the includer's responsibility.
65487
65488         Sync from coreutils.
65489
65490         * lib/modechange.c (mode_compile): Don't decrement a pointer that
65491         points to the start of a string, as the C Standard says the
65492         resulting behavior is undefined.
65493
65494         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
65495         simple -> simple_backups, numbered_existing ->
65496         numbered_existing_backups, numbered -> numbered_backups
65497         to avoid shadowing problems.  All uses changed.
65498         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
65499         * lib/backupfile.c (check_extension, numbered_backup):
65500         Rename locals to avoid shadowing 'basename'.
65501         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
65502         once.
65503
65504         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
65505         * lib/.cvsignore: Add getopt.h.
65506
65507 2004-10-04  Bruno Haible  <bruno@clisp.org>
65508
65509         * modules/README: New file.
65510         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
65511         not a module.
65512
65513 2004-10-02  Jim Meyering  <jim@meyering.net>
65514
65515         * lib/dirfd.h, getpagesize.h: Add copyright notice.
65516
65517 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65518
65519         * modules/strsep: New file.
65520
65521 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65522
65523         * m4/strsep.m4: New file.
65524
65525 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65526
65527         * lib/strsep.h: New file.
65528         * lib/strsep.c: New file.
65529
65530 2004-10-01  Simon Josefsson  <jas@extundo.com>
65531
65532         * lib/snprintf.c (snprintf): Handle size==0.
65533
65534 2004-10-01  Simon Josefsson  <jas@extundo.com>
65535             Bruno Haible  <bruno@clisp.org>
65536
65537         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
65538         (snprintf): Declare 'args'.
65539
65540 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * lib/snprintf.c: Remove comments as to why each header is needed.
65543
65544 2004-10-01  Bruno Haible  <bruno@clisp.org>
65545
65546         * MODULES.html.sh: Add strsep.
65547
65548 2004-09-30  Simon Josefsson  <jas@extundo.com>
65549
65550         * modules/snprintf: New file.
65551
65552 2004-09-30  Simon Josefsson  <jas@extundo.com>
65553
65554         * m4/snprintf.m4: New file.
65555
65556 2004-09-30  Simon Josefsson  <jas@extundo.com>
65557
65558         * lib/snprintf.h, lib/snprintf.c: New files.
65559
65560 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65561
65562         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
65563         (hol_entry_help): Never translate an empty string.
65564         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
65565         * lib/argp.h (OPTION_NO_TRANS): New option.
65566
65567 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         * modules/argp (Maintainer): Replace Simon Josefsson
65570         by Sergey Poznyakoff.
65571
65572 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
65575         changes merged back into glibc.
65576
65577 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
65580
65581 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65582
65583         * lib/xvasprintf.c: Include xalloc.h.
65584         (xvasprintf): Use xalloc_die, not xmalloc_die.
65585
65586 2004-09-29  Bruno Haible  <bruno@clisp.org>
65587
65588         * modules/alloca-opt: New file, derived from modules/alloca.
65589         * modules/allocsa: Depend on alloca-opt instead of alloca.
65590         * modules/setenv: Likewise.
65591         * modules/vasnprintf: Likewise.
65592         * MODULES.html.sh: Add alloca-opt.
65593
65594 2004-09-28  Simon Josefsson  <jas@extundo.com>
65595
65596         * gnulib-tool: New parameter --lgpl, to asseert that modules are
65597         LGPL, and to replace license template from GPL to LGPL.
65598
65599 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65600
65601         * modules/dummy: Change license to LGPL.
65602
65603 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
65606
65607 2004-09-24  Simon Josefsson  <jas@extundo.com>
65608
65609         * modules/minmax (License): Change from GPL to LGPL.
65610
65611 2004-09-23  Simon Josefsson  <jas@extundo.com>
65612
65613         * gnulib-tool (--import): Typo.
65614
65615 2004-09-23  Simon Josefsson  <jas@extundo.com>
65616
65617         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
65618
65619 2004-09-22  Bruno Haible  <bruno@clisp.org>
65620
65621         * modules/*: Add 'License' field.
65622         * gnulib-tool: Accept --extract-license option.
65623         (func_get_license): New function.
65624
65625 2004-09-21  Bruno Haible  <bruno@clisp.org>
65626
65627         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
65628         Reported by Simon Josefsson.
65629
65630 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
65633         gl_AC_TYPE_LONG_LONG.
65634
65635 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
65638
65639 2004-09-18  Simon Josefsson  <jas@extundo.com>
65640         and  Paul Eggert  <eggert@cs.ucla.edu>
65641
65642         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
65643         calls with autoreconf.  Define GL_LIB.
65644
65645 2004-09-14  Karl Berry  <karl@gnu.org>
65646
65647         * config/srclist.txt: unsync setenv.c, sigh.
65648
65649 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65650
65651         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
65652         Problem reported by Bruno Haible in:
65653         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
65654
65655 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * config/srclist.txt: Comment out argp-pvh.c.
65658
65659 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
65660
65661         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
65662         in case some system header has #define'd it.  Problem reported by
65663         Soeren D. Schulze in
65664         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
65665
65666 2004-09-09  Karl Berry  <karl@gnu.org>
65667
65668         * regex.[ch]: delete from the root.  These were supposed to be
65669                 synced with emacs cvs, but this has not happened for about
65670                 a year, and anyway nothing else uses emacs regex.[ch].
65671                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
65672                 lib/regex[.ch] is untouched.
65673
65674 2004-09-09  Bruno Haible  <bruno@clisp.org>
65675
65676         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
65677
65678 2004-09-09  Bruno Haible  <bruno@clisp.org>
65679
65680         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
65681         modifications.
65682         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
65683
65684 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65685
65686         * modules/xvasprintf: New file.
65687         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
65688
65689 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65690
65691         * lib/xvasprintf.h: New file.
65692         * lib/xvasprintf.c: New file.
65693         * lib/xasprintf.c: New file.
65694
65695 2004-09-08  Bruno Haible  <bruno@clisp.org>
65696
65697         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
65698
65699 2004-09-08  Bruno Haible  <bruno@clisp.org>
65700
65701         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
65702         length is > INT_MAX.
65703         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
65704         more.
65705
65706 2004-09-08  Bruno Haible  <bruno@clisp.org>
65707
65708         * lib/stdint_.h: New file, taken from GNU clisp.
65709
65710 2004-09-08  Bruno Haible  <bruno@clisp.org>
65711             Oskar Liljeblad  <oskar@osk.mine.nu>
65712
65713         * modules/stdint: New file.
65714         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
65715
65716 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65717
65718         Import from coreutils.
65719         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
65720         strings on unbounded length.  alloca's performance benefits aren't
65721         that important here.
65722         (V_STRDUP): Remove.
65723         (parse_with_separator): New function, with most of the internals
65724         of the old parse_user_spec.  Allow user to omit both user and group,
65725         for compatibility with FreeBSD.
65726         Clone only the user name, not the entire spec.
65727         Do not set *uid, *gid unless entirely successful.
65728         Avoid memory leak in some failing cases.
65729         Fix regression for USER.GROUP reported by Dmitry V. Levin in
65730         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
65731         (parse_user_spec): Rewrite to use parse_with_separator.
65732
65733 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * modules/userspec: Don't depend on alloca.
65736
65737 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65738
65739         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
65740
65741 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65742
65743         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
65744         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
65745         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
65746
65747 2004-08-16  Simon Josefsson  <jas@extundo.com>
65748
65749         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
65750         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
65751         Add --dry-run for --import.
65752         Let user provided command line parameters override configure.ac
65753         settings.
65754
65755 2004-08-12  Simon Josefsson  <jas@extundo.com>
65756
65757         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
65758         as discussed with Paul Eggert in threads rooted at
65759         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
65760         and
65761         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
65762         Before, the test was empty, and relied on ELIDE_CODE in source
65763         code.)
65764         (gl_PREREQ_GETOPT): New macro.
65765         (gl_GETOPT): Use them.
65766
65767 2004-08-12  Simon Josefsson  <jas@extundo.com>
65768
65769         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
65770         * lib/getopt_.h: Renamed from getopt.h.
65771
65772 2004-08-12  Simon Josefsson  <jas@extundo.com>
65773
65774         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
65775         Change default library name from libfoo to libgnu.
65776         Now, if you have a configure.ac that says:
65777                 gl_SOURCE_BASE(gl)
65778                 gl_M4_BASE(gl/m4)
65779                 gl_MODULES(error getopt etcetera)
65780                 gl_INIT
65781         you can import all you need by running:
65782                 ../gnulib/gnulib-tool --import
65783
65784         * modules/getopt (Files): Rename getopt.h to getopt_.h.
65785         (Makefile.am): Rewrite, use logic from argz.
65786         (Include): Use <getopt.h> instead of "getopt.h".
65787
65788 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         * modules/argp (Files): Add m4/unlocked-io.m4.
65791         (Depends-on): Add extensions.
65792
65793 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65794
65795         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
65796         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
65797         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
65798         Check for program_invocation_name, program_invocation_short_name,
65799         flockfile, funlockfile, features.h, _getopt_long_only_r.
65800
65801 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
65804         its complicated substitute.
65805         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
65806         and program_invocation_name.
65807         (__argp_basename) [!_LIBC]: Remove; the only use was
65808         replaced by its body.
65809         (__argp_short_program_name): Change condition from
65810         !defined __argp_short_program_name to
65811         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
65812         to match argp-namefrob.h.
65813         (__argp_failure): Don't assume strerror_r returns char *.
65814         * lib/argp-parse.c (N_): Define unconditionally.
65815         (argp_default_options): Fill out initializers with 0 to avoid
65816         gcc warnings.
65817
65818 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65819
65820         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
65821         getopt1.c.
65822
65823 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         Merge from coreutils.
65826
65827         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
65828
65829         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
65830         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
65831
65832 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65833
65834         Merge from coreutils.
65835
65836         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
65837         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
65838         for Reliant Unix 5.43.
65839
65840         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
65841         (union fooround): Use uintmax_t, not long int.
65842         The rest is a merge from libc:
65843         [defined _LIBC]: Include <shlib-compat.h>.
65844         (_obstack) [defined _LIBC]: Remove after 2.3.4.
65845
65846         * lib/settime.c (settime): Recode to avoid warning with
65847         Sun Forte C 6U2.
65848
65849         * lib/strverscmp.c: Convert to UTF-8.
65850
65851 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65852
65853         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65854         m4/uintmax_t.m4.
65855
65856 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65857
65858         * modules/xalloc-die: New file.
65859         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
65860
65861         * modules/md5 (Files): Add m4/uint32_t.m4.
65862         * modules/sha1: Renamed from modules/sha.
65863         (Files):
65864         Rename lib/sha.h to lib/sha1.h.
65865         Rename lib/sha.c to lib/sha1.c.
65866         Rename m4/sha.m4 to m4/sha1.m4.
65867         (lib_SOURCES): Likewise.
65868         (configure.ac): Rename gl_SHA to gl_SHA1.
65869         (Include): sha.h -> sha1.h.
65870
65871 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
65874         * m4/sha1.m4: Renamed from sha.m4.
65875         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
65876
65877 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * lib/obstack.h (obstack_empty_p):
65880         Don't assume that chunk->contents is suitably aligned.
65881         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
65882         Likewise. Problem reported by Benno in
65883         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
65884
65885         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
65886         readable.  This could be improved further but it'd take some work.
65887
65888 2004-08-08  Simon Josefsson  <jas@extundo.com>
65889
65890         * modules/xgethostname (Depends-on): Remove exit and error (not
65891         used).
65892
65893         * modules/getpass-gnu: Add getpass.h.
65894         (Depends-on): Add stdbool.
65895         * modules/getpass: Add getpass.h.
65896
65897 2004-08-08  Simon Josefsson  <jas@extundo.com>
65898
65899         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
65900         Check getpass declaration.
65901
65902 2004-08-08  Simon Josefsson  <jas@extundo.com>
65903
65904         * lib/xgethostname.c: Don't include error.h (not used).
65905
65906         * lib/getpass.h: Add.
65907         * lib/getpass.c: Include getpass.h first.
65908
65909 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * lib/xalloc-die.c: New file.
65912         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
65913         All uses removed.
65914         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
65915         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
65916         xalloc-die.c.
65917         (_, N_, xalloc_die): Move to xalloc-die.c.
65918         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
65919         so that we needn't mess with xalloc_msg_memory_exhausted.
65920
65921         * lib/sha1.h: Renamed from sha.h.
65922         (SHA1_H): Renamed from _SHA_H.
65923         (sha1_ctx): Renamed from sha_ctx.
65924         (sha1_init_ctx): Renamed from sha_init_ctx.
65925         (sha1_process_block): Renamed from sha_process_block.
65926         (sha1_process_bytes): Renamed from sha_process_bytes.
65927         (sha1_finish_ctx): Renamed from sha_finish_ctx.
65928         (sha1_read_ctx): Renamed from sha_read_ctx.
65929         (sha1_stream): Renamed from sha_stream.
65930         (sha1_buffer): Renamed from sha_buffer.
65931         * lib/sha1.c: Likewise; renamed from sha.c.
65932         Do not include <sys/types.h>.
65933         Include <stddef.h> rather than <stdlib.h>.
65934
65935 2004-08-08  Bruno Haible  <bruno@clisp.org>
65936
65937         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
65938         FILESYSTEM_PREFIX_LEN.
65939         * lib/progreloc.c: Likewise.
65940         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
65941
65942 2004-08-06  Simon Josefsson  <jas@extundo.com>
65943
65944         * modules/progname (Depends-on): Don't depend on stdbool.
65945
65946 2004-08-06  Simon Josefsson  <jas@extundo.com>
65947
65948         * modules/getsubopt: New file.
65949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65950         getsubopt.
65951
65952 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         More merge from coreutils.
65955
65956         * m4/utimens.m4, m4/utimecmp.m4: New files.
65957         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
65958         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
65959         prereq.m4, sha.m4: Import changes from coreutils.
65960
65961 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         More merge from coreutils.
65964         * modules/raise, modules/readtokens0, modules/utimens:
65965         * modules/utimecmp, module/xnanosleep: New files.
65966         * modules/strftime: Add lib/strftime.h.
65967         Change include from <time.h> to "strftime.h".
65968         * modules/yesno: Add lib/yesno.h.
65969         * modules/backupfile: Remove lib/addext.c.
65970         * modules/euidaccess: Add stat-macros.h.
65971         * modules/canonicalize, modules/euidaccess,
65972         modules/filemode, modules/lchown, modules/makepath,
65973         modules/rmdir, modules/stat: Likewise.
65974
65975 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         Merge from tar.
65978         * lib/argp-help.c (make_hol, hol_append): Don't assume that
65979         SIZE_MAX is a valid preprocessor constant.
65980         (__argp_basename): Change from "#ifndef _LIBC"
65981         to "#ifndef __argp_short_program_name", so that
65982         we don't compile these functions for tar.
65983
65984         More merges from coreutils.
65985         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
65986         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
65987         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
65988         * lib/addext.c: Remove; no longer needed.
65989         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
65990         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
65991         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
65992         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
65993         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
65994         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
65995         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
65996         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
65997         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
65998         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65999         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
66000         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
66001         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
66002         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
66003         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
66004         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
66005         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
66006         Import changes from coreutils.
66007
66008 2004-08-05  Simon Josefsson  <jas@extundo.com>
66009
66010         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
66011
66012 2004-08-05  Simon Josefsson  <jas@extundo.com>
66013
66014         * m4/getsubopt.m4: New file.
66015
66016 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66017
66018         Merge from coreutils.
66019
66020         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
66021         * m4/getcwd-path-max.m4: New files.
66022
66023         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
66024         FILESYSTEM_PREFIX_LEN ->
66025         FILE_SYSTEM_PREFIX_LEN.
66026         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
66027         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
66028         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
66029         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
66030
66031         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
66032         prerequisite modules now handle the DOS stuff.
66033         Don't check for unistd.h.
66034
66035 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         Merge from coreutils.
66038
66039         * lib/.gdb-history: Remove; this doesn't belong here.
66040
66041         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
66042         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
66043         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
66044         * lib/getcwd.c: New files.
66045
66046         * lib/dirname.h: Include <stdbool.h>.
66047         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
66048         for consistency with POSIX terminology.  All uses changed.
66049         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
66050         (strip_trailing_slashes): Use bool for booleans.
66051         * lib/stripslash.c (strip_trailing_slashes): Likewise.
66052
66053         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
66054         sometimes returns a positive errno value even when it succeeds.
66055         (print_errno_message) [!LIBC]: Fall back on strerror if
66056         __strerror_r fails.
66057
66058         * lib/path-concat.c (mempcpy): Don't define if a system header defines
66059         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
66060         (longest_relative_suffix): New function.
66061         (path_concat): Use it.  Assume first argument is not NULL.
66062         Port to DOS.  Omit redundant separators.
66063         Report an error instead of returning NULL.
66064         Use mempcpy instead of memcpy.
66065         (xpath_concat): Remove: not declared or used.
66066
66067         * lib/same.h: Include <stdbool.h>
66068         (same_name): Return bool, not int.
66069         * lib/same.c (same_name): Likewise.
66070         (errno): Don't declare; we assume C89 or better now.
66071
66072         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
66073         if not already defined.
66074
66075         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
66076         * lib/dup-safer.c (errno): Likewise.
66077
66078 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66079
66080         Merge from coreutils.
66081         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
66082         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
66083         * modules/path-concat: Don't depend on strdup.
66084
66085 2004-08-03  Simon Josefsson  <jas@extundo.com>
66086
66087         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
66088         * lib/progname.h: Don't include stdbool.h.
66089
66090 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
66093         * MODULES.html.sh (func_all_modules): Remove fatal.
66094
66095 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66096
66097         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
66098
66099 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
66102         working.
66103
66104 2004-08-02  Simon Josefsson  <jas@extundo.com>
66105
66106         * lib/getsubopt.h: New file, with comments from Bruno Haible.
66107         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
66108         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
66109
66110 2004-08-01  Simon Josefsson  <jas@extundo.com>
66111
66112         * lib/xgetdomainname.c: Include stdlib.h, for free().
66113
66114 2004-07-19  Bruno Haible  <bruno@clisp.org>
66115
66116         * MODULES.html.sh (func_all_modules): Add dummy.
66117
66118 2004-07-16  Simon Josefsson  <jas@extundo.com>
66119
66120         * modules/dummy: New file.
66121
66122 2004-07-16  Simon Josefsson  <jas@extundo.com>
66123
66124         * lib/dummy.c: New file.
66125
66126 2004-07-16  Bruno Haible  <bruno@clisp.org>
66127
66128         * lib/backupfile.h: Add extern "C" for C++.
66129         * lib/closeout.h: Likewise.
66130         * lib/copy-file.h: Likewise.
66131         * lib/findprog.h: Likewise.
66132         * lib/full-write.h: Likewise.
66133         * lib/pathname.h: Likewise.
66134         * lib/progname.h: Likewise.
66135         * lib/stpcpy.h: Likewise.
66136         * lib/stpncpy.h: Likewise.
66137         * lib/strcase.h: Likewise.
66138         * lib/strstr.h: Likewise.
66139         * lib/xalloc.h: Likewise.
66140
66141         * lib/mbswidth.h: Add extern "C" for C++.
66142         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
66143
66144 2004-07-13  Robert Millan  <robertmh@gnu.org>
66145
66146         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
66147
66148 2004-07-09  Simon Josefsson  <jas@extundo.com>
66149
66150         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
66151         failed without this.)
66152
66153 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66154
66155         * modules/chown (Files): Add lib/fchown-stub.c, since
66156         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
66157
66158 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66159
66160         * lib/fchown-stub.c: New file.
66161
66162 2004-06-24  Jim Meyering  <jim@meyering.net>
66163
66164         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
66165
66166 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66167
66168         * modules/argz: Omit "#include".
66169
66170         * MODULES.html.sh (func_all_modules): Add calloc, to match
66171         2004-06-01 addition of calloc module.
66172
66173 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66174
66175         * m4/argz.m4: New file, which is autoupdated from libtool.
66176
66177 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66178
66179         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
66180         libtool.
66181
66182 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66183
66184         * config/srclist-update: Don't insist on "USA." before the
66185         close-comment, as libtool omits the period and puts the */ on a
66186         separate line.
66187         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
66188         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
66189
66190 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
66191
66192         * modules/argz: New file.
66193         * MODULES.html.sh (func_all_modules): Add argz.
66194
66195 2004-06-12  Jim Meyering  <jim@meyering.net>
66196         and  Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         * modules/hash (Files): Add lib/xalloc.h.
66199         * modules/pipe (Depends-on): Add wait-process.
66200         * modules/stat (Depends-on): Add xalloc.
66201         * modules/userspec (Files): Add lib/userspec.h.
66202         * modules/xstrto
66203
66204         Upgrade from gettext-0.13.
66205         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
66206         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
66207         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
66208
66209 2004-06-10  Jim Meyering  <jim@meyering.net>
66210
66211         * lib/calloc.c: New file.
66212
66213 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66214
66215         * lib/getdate.y (yylex): Allow space between sign and number.
66216         Problem reported by Dan Jacobson.
66217
66218 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66219
66220         Merge from coreutils CVS.
66221
66222         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
66223         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
66224         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
66225         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
66226         xstrtol.m4: Fix copyright date and/or serial number.
66227
66228         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
66229         See if we need an fchown replacement.
66230         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
66231         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
66232         and use the replacement function if we detect either defect.
66233
66234         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
66235         gl_UTIMECMP.
66236
66237 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66238         and  Jim Meyering  <jim@meyering.net>
66239
66240         Merge from coreutils CVS.
66241
66242         * lib/stat-macros.h: New file, with contents from file-type.h
66243         and coreutils' system.h.
66244         * lib/file-type.c: Include "stat-macros.h".
66245         * lib/file-type.h (file_type): Move all macro definitions to new file,
66246         stat-macros.h.
66247
66248         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
66249         Wrap old code with this conditional.
66250         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
66251         function that does not dereference symlinks.
66252         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
66253
66254         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
66255         dependency problems.
66256         (xreadlink): Accept new arg SIZE, for efficiency.
66257         All decls and uses changed.
66258         * lib/xreadlink.h: Include <stddef.h>, for size_t.
66259
66260         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
66261         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
66262
66263         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
66264         sysexits.h.
66265
66266 2004-06-01  Jim Meyering  <jim@meyering.net>
66267
66268         * m4/calloc.m4: New file.
66269
66270 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
66271
66272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
66273         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
66274         Also, fix a typo in a diagnostic.
66275
66276 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66277
66278         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
66279         or AC_FUNC_REALLOC.
66280
66281 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66282
66283         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
66284         macros to be defined.
66285         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
66286         the allocator returns NULL because the requested size is zero.
66287
66288 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66289
66290         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
66291         var.  Add comment explaining why libc still defines it.  This
66292         merges the following patch from glibc:
66293         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
66294
66295 2004-05-20  Andreas Schwab  <schwab@suse.de>
66296
66297         * m4/free.m4: Replace free if it not known to work, not the other
66298         way round.
66299
66300 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66301
66302         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
66303         present in glibc since revision 1.1 of this file.
66304         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
66305         obstack_alignment_mask, obstack_alloc, obstack_base,
66306         obstack_blank, obstack_blank_fast, obstack_chunk_size,
66307         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
66308         obstack_grow0, obstack_init, obstack_int_grow,
66309         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
66310         obstack_next_free, obstack_object_size, obstack_ptr_grow,
66311         obstack_ptr_grow_fast, obstack_room): Remove declarations of
66312         nonexistent functions.
66313
66314 2004-05-18  Karl Berry  <karl@gnu.org>
66315
66316         * config/srclist.txt: break link for vasnprintf.c.
66317
66318 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         Port obstack to the AS/400, where pointers are 16 bytes wide and
66321         you cannot cast an integer to a valid pointer.  This patch is
66322         currently waiting to be integrated into glibc; see
66323         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
66324
66325         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
66326         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
66327         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
66328         (struct obstack): temp member is now a union of a pointer and
66329         an integer, instead of an integer.  All integer uses changed.
66330         This does not affect the physical layout of struct obstack,
66331         except on hosts (like the AS/400) where the size or alignment of
66332         void * is greater than that of ptrdiff_t.
66333         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
66334         __STDC__)]: Store temporary in pointer member of union, not
66335         integer member.
66336         * lib/obstack.c: Include <stddef.h>, for offsetof.
66337         (struct fooalign): Remove; it doesn't need a name.
66338         (union fooround): Change double to long double, and add void *.
66339         (DEFAULT_ALIGNMENT): Use offsetof to compute.
66340         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
66341         not a macro.  Hence the values are always int; so remove all
66342         casts-to-int in uses.
66343
66344 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
66347         we can get this patch merged into glibc.
66348
66349 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66350             Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * m4/argp: Depend on alloca.
66353
66354 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66355             Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
66358         freecoding.
66359
66360 2004-05-17  Bruno Haible  <bruno@clisp.org>
66361
66362         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
66363         precision that consists of a '.' followed by an empty digit string.
66364         Patch by Tor Lillqvist <tml@iki.fi>.
66365
66366 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66367
66368         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
66369         for backward compatibility with older code.  We need our own
66370         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
66371         it under some other name, and our alloca.h will define it.
66372
66373 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66374             Derek Price  <derek@ximbiot.com>
66375
66376         * lib/alloca.c: Include <alloca.h>, to get our interface.
66377         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
66378         include <alloca.h> first.  Use C89 prototype for alloca; this
66379         requires including <stddef.h> for size_t.  Use extern "C" if C++.
66380         Use #elif for simplicity, since we can assume C89 now.
66381         Don't try to source the system alloca.h since it will not be found
66382         and to prevent recursively including its replacement.
66383         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
66384         * lib/regex.c: Likewise.
66385
66386 2004-05-16  Derek Price  <derek@ximbiot.com>
66387             Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         getline cleanup.  This changes the getndelim2 API: both order of
66390         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
66391         no delimiter).
66392
66393         * lib/getline.c: Don't include stddef.h or stdio.h, since our
66394         interface does that.
66395         (getline): Always use getdelim, so that we don't have two
66396         copies of this code.
66397         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
66398         if available.
66399         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
66400         (GETNDELIM2_MAXIMUM): New macro.
66401         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
66402         instead of the old practice of delim2==0.  All callers changed.
66403         Return -1 on overflow, instead of returning junk.
66404         Do not set *linesize unless allocation succeeds.
66405         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
66406         that we include sys/types.h.
66407         * lib/getnline.h: Likewise.
66408         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
66409         (getndelim2): Reorder arguments.
66410         * lib/getnline.c (getnline, getndelim):
66411         Don't discard the NMAX argument.
66412         (getnline): Invoke getndelim, to avoid code duplication.
66413         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
66414         of (size_t) -1 by callers of the getnline family.
66415
66416 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
66419         Check for gettimeofday.
66420         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
66421         Check for settimeofday, stime.
66422
66423 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * lib/nanosleep.c (suspended): Change its type from int to
66426         sig_atomic_t volatile.
66427         (first_call): Make it private to rpl_nanosleep, and have it
66428         be zero initially as that's a bit faster.
66429         (my_usleep): Round up fractional times instead of truncating them,
66430         as this is the usual meaning for 'sleep'.
66431
66432         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
66433         doesn't work.
66434         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
66435         (ENOSYS): Define if not defined.
66436         (settime): Fall back on stime if it exists and settimeofday fails.
66437         But don't bother with fallbacks if a method fails with errno == EPERM.
66438
66439 2004-05-11  Jim Meyering  <jim@meyering.net>
66440
66441         Prior to this change, the save_cwd caller required read access to the
66442         current directory on most systems (ones with the fchdir function).
66443
66444         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
66445         fails, try write-only, and finally, resort to using xgetcwd.
66446
66447 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * lib/obstack.c, obstack.h: Import changes from libc.
66450
66451 2004-04-28  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
66454         also implicitly appends .exe to executables.
66455         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
66456         accepts Windows pathnames.
66457         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66458         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66459         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66460         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66461         Reported by Derek Robert Price <derek@ximbiot.com>.
66462
66463 2004-04-21  Karl Berry  <karl@gnu.org>
66464
66465         * config/srclist.txt (localcharset.c): break sync.
66466
66467 2004-04-20  Paul Eggert  <eggert@twinsun.com>
66468
66469         * m4/host-os.m4: Add a copyright notice.
66470
66471 2004-04-20  Jim Meyering  <jim@meyering.net>
66472
66473         Change UTILS_ to gl_ in AC_DEFINE'd names.
66474         Change utils_- and jm_-prefixed variables, too.
66475         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
66476         UTILS_FUNC_MKDIR_TRAILING_SLASH.
66477         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
66478
66479         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
66480         Don't emit trailing blanks.
66481         Also rename jm_-prefixed variables to have gl_ prefix.
66482
66483         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
66484         Also rename jm_-prefixed variables to have gl_ prefix.
66485
66486         * m4/jm-macros.m4: Reflect the renamings.
66487         * m4/prereq.m4: Likewise.
66488
66489 2004-04-20  Jim Meyering  <jim@meyering.net>
66490
66491         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
66492         memory.
66493
66494 2004-04-20  Jim Meyering  <jim@meyering.net>
66495             Bruno Haible  <bruno@clisp.org>
66496
66497         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
66498         memory when realloc fails.
66499
66500 2004-04-19  Jim Meyering  <jim@meyering.net>
66501
66502         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
66503         now that readutmp.c may call `free (0)'.
66504
66505 2004-04-19  Bruno Haible  <bruno@clisp.org>
66506
66507         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
66508         * m4/inttypes_h.m4: Likewise.
66509         * m4/stdint_h.m4: Likewise.
66510         * m4/intmax_t.m4: Likewise.
66511         * m4/uintmax_t.m4: Likewise.
66512
66513 2004-04-18  Jim Meyering  <jim@meyering.net>
66514
66515         * m4/prereq.m4: Don't forbid jm_ prefix.
66516
66517         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
66518         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
66519         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
66520         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
66521         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
66522         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
66523         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
66524         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
66525         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
66526         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
66527         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
66528         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
66529         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
66530         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
66531         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
66532         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
66533         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
66534         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
66535         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
66536
66537 2004-04-18  Jim Meyering  <jim@meyering.net>
66538
66539         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
66540         failure, don't leak memory and do call END_UTMP_ENT.
66541
66542 2004-04-16  Jim Meyering  <jim@meyering.net>
66543
66544         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
66545         coreutils' stat program.
66546         (gl_PREREQ): Don't require jm_PREREQ_STAT.
66547
66548 2004-04-11  Paul Eggert  <eggert@twinsun.com>
66549
66550         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
66551         C89.
66552         (CHAR_BIT): Remove, since we assume C89.
66553         Include <stdint.h> if available, as per current Autoconf CVS advice.
66554
66555 2004-03-31  Jim Meyering  <jim@meyering.net>
66556
66557         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
66558         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
66559         * m4/xalloc.m4: Likewise.
66560
66561 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66562
66563         Merge from coreutils.
66564
66565         * m4/inttostr.m4: New file.
66566         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
66567         Require AM_STDBOOL_H and gl_TIMESPEC instead.
66568         Require gl_CLOCK_TIME.
66569         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
66570
66571 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66572
66573         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
66574         not bool, to be more consistent with Unix conventions.
66575         Suggested by Bruno Haible.
66576
66577         Merge from coreutils.
66578
66579         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
66580         * lib/umaxtostr.c: New files.
66581
66582         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
66583         the usual <time.h> dance.
66584         (get_date): Change signature to support fractional time stamps.
66585         All callers changed.
66586         * lib/getdate.y: Include "getdate.h" first, as we can now
66587         assume C89 and don't need to worry about 'const'.
66588         Similarly, include "unlocked-io.h" near start, not in middle.
66589         Include <limits.h>.
66590         (textint.value): Use long int rather than int.
66591         (textint.digits): Use size_t rather than int.
66592         (BILLION, LOG10_BILLION): New constants.
66593         (parser_control): New member rel_ns.  Members day_ordinal,
66594         time_zone, month, day, hour, minutes, rel_year, rel_month,
66595         rel_day, rel_hour, rel_minutes, rel_seconds
66596         are now long int, not int.  Member seconds is now struct timespec,
66597         not int.  New member timespec_seen.  Members dates_seen, days_seen,
66598         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
66599         not int.
66600         (%union.intval): Now long int, not int.
66601         New member timespec.
66602         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
66603         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
66604         (spec): Now is a timespec or an item list.
66605         (timespec, items): New nonterminals.
66606         (time, rel, relunit, number, get_date):
66607         Add support for fractional seconds.
66608         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
66609         (gmtime, localtime, mktime): Remove decls; not needed with C89.
66610         (to_hour): First arg is now long int, not int.
66611         (to_year): Returns long int, not int.
66612         Don't treat year -70 like 70.
66613         (tm_diff): Returns long int, not int.
66614         (lookup_word): Use bool instead of int when appropriate.
66615         (yylex): Use size_t for count, not int.
66616         Detect overflow when parsing large integer constants.
66617         Add support for fractions.
66618         (get_date): Make pointers 'const' if possible.
66619         Use more-portable code to detect integer overflow.
66620         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
66621         Don't use ctime; it's not reliable if the year has >4 digits.
66622
66623         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
66624         This is for compatibility with BSD.
66625
66626         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
66627         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
66628         From coreutils' system.h.
66629
66630         * lib/userspec.c: Don't include "posixver.h".
66631         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
66632         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
66633         compatible extension.  Simplify code by removing a boolean int
66634         that was always nonzero if a string was nonnull.
66635
66636 2004-03-30  Jim Meyering  <jim@meyering.net>
66637
66638         Merge from coreutils.
66639
66640         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
66641         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
66642         on some systems one must include <grp.h> before it.
66643         Reported by Christian Krackowizer.
66644
66645 2004-03-30  Jim Meyering  <jim@meyering.net>
66646
66647         Merge from coreutils.
66648
66649         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
66650
66651         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
66652         an empty input stream.
66653
66654         * lib/readtokens.c: Include <stdbool.h>.
66655         (readtoken): Use `size_t' rather than int/long.
66656         All callers adjusted.
66657         Use `bool' rather than `int' where appropriate.
66658         Use memset rather than an explicit loop.
66659         Use x2nrealloc rather than xrealloc.
66660         Allow the use of `\0' as a delimiter.
66661         (readtokens): Likewise.
66662         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
66663
66664 2004-03-30  Jim Meyering  <jim@meyering.net>
66665
66666         * m4/realloc.m4: Remove file, since now it does no more than
66667         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
66668         the `configure.ac' section of module/realloc.
66669         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
66670
66671 2004-03-30  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
66674         nonnull.
66675
66676 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66677
66678         Merge changes to getloadavg.c from coreutils and Emacs.
66679
66680         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
66681         Define to an expression, not to the empty string.
66682         Include cloexec.h and xalloc.h.
66683         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
66684         Use set_cloexec_flag rather than rolling our own.
66685         * lib/cloexec.c, lib/cloexec.h: New files.
66686
66687 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66688
66689         * m4/cloexec.m4: New file.
66690
66691 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66692
66693         * lib/getopt.h: Sync with libc CVS.
66694
66695 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66696             Bruno Haible  <bruno@clisp.org>
66697
66698         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
66699         mbswidth.
66700
66701 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66702             Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/mbswidth.h: Include <wchar.h> only if
66705         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
66706         <wchar.h>.
66707         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
66708
66709 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66710
66711         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
66712         Sync with libc CVS.
66713         * lib/getopt_int.h: New file, also synced from libc.
66714
66715 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66716
66717         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
66718         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
66719         Bring back getopt.c, getopt.h, getopt1.c.
66720
66721 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66722
66723         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
66724         All uses changed.  Check for sa_sigaction member; this fixes
66725         a bug first reported by Jason Andrade in
66726         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66727
66728 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66729
66730         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
66731         '#if' expressions.  Unlike the code it replaces, it does not
66732         depend on (defined _SC_PAGESIZE).  However, it does depend on
66733         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
66734         first reported by Jason Andrade in
66735         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66736
66737 2004-02-25  Simon Josefsson  <jas@extundo.com>
66738
66739         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
66740
66741 2004-02-25  Simon Josefsson  <jas@extundo.com>
66742
66743         * lib/strdup.h: New file.
66744         * lib/strdup.c: Include it.
66745         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
66746         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
66747
66748 2004-02-23  Karl Berry  <karl@gnu.org>
66749
66750         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
66751         (from fencepost.gnu.org:/gd/gnuorg).
66752
66753 2004-02-23  Karl Berry  <karl@gnu.org>
66754
66755         * config/srclistvars.sh (GNUORG) [karl]: redefine.
66756         * config/srclist.txt: add maintain/standards documents.
66757
66758 2004-02-18  Bruno Haible  <bruno@clisp.org>
66759
66760         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
66761         Reported by Derek Robert Price <derek@ximbiot.com>.
66762
66763 2004-02-16  Karl Berry  <karl@gnu.org>
66764
66765         * config/mkinstalldirs, install-sh: update from automake.
66766
66767 2004-02-06  Karl Berry  <karl@gnu.org>
66768
66769         * m4/po.m4: update from gettext 0.14.1.
66770
66771 2004-02-06  Karl Berry  <karl@gnu.org>
66772
66773         * lib/config.charset: update from gettext 0.14.1.
66774
66775 2004-02-05  Paul Eggert  <eggert@twinsun.com>
66776
66777         Add comments and code, prompted by suggestions from Bruno Haible
66778         for sh-quote.
66779         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
66780         describing the enum quoting_style values.
66781         * lib/quotearg.c (quotearg_alloc): New function.
66782         (quotearg_buffer_restyled): Treat lone { and } as special.
66783         Treat = as special.  Work around bug with older shells
66784         that "see" a '\' that is really the 2nd byte of a multibyte char.
66785         Quote empty string with shell_quoting_style.
66786
66787 2004-02-03  Bruno Haible  <bruno@clisp.org>
66788
66789         * m4/pipe.m4: New file, from GNU gettext.
66790
66791 2004-02-03  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/pipe.h: New file, from GNU gettext.
66794         * lib/pipe.c: New file, from GNU gettext.
66795
66796 2004-01-27  Bruno Haible  <bruno@clisp.org>
66797
66798         * m4/execute.m4: New file, from GNU gettext.
66799
66800 2004-01-27  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/execute.h: New file, from GNU gettext.
66803         * lib/execute.c: New file, from GNU gettext.
66804         * lib/w32spawn.h: New file, from GNU gettext.
66805
66806 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66807
66808         Merge from diffutils.
66809
66810         * lib/file-type.c (file_type): Add typed memory objects.
66811         * lib/file-type.h (S_TYPEISTMO): New macro.
66812
66813         * lib/c-stack.h (c_stack_action): Remove argv argument.
66814         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
66815         (die): Don't calculate message unless segv_action returns.
66816         (get_stack_location, min_address_from_argv, max_address_from_argv,
66817         volatile stack_base, volatile_stack_size): Remove.
66818         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
66819         that every segmentation violation is a stack overflow.  (Ouch!)
66820         See Debian bug 136249 (still outstanding) for more info about why
66821         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
66822
66823 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66824
66825         Exit-status fix from coreutils.
66826
66827         Use exit_failure consistently in place of EXIT_FAILURE,
66828         so that program exit statuses are consistent on failure.
66829
66830         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
66831         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
66832         * lib/argmatch.h: Comment fix to match the above.
66833         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
66834         Now a macro referring to exit_failure, instead of a separate
66835         variable.  Include "exitfail.h" to get it.
66836         * lib/xstrtol.h: Include "exitfail.h".
66837         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
66838
66839         * lib/long-options.c (parse_long_options): Use prototype
66840         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
66841         for clarity.
66842
66843 2004-01-21  Jim Meyering  <jim@meyering.net>
66844
66845         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
66846         so as not to conflict with a different-sized __mktime_internal
66847         function in GNU libc.
66848         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
66849         Problem building statically-linked `ls' reported by Michael Brunnbauer.
66850
66851 2004-01-20  Karl Berry  <karl@gnu.org>
66852
66853         * config/config.guess: update from config.
66854
66855         * config/srclistvars.sh: GNUWWWLICENSES for karl.
66856
66857 2004-01-20  Bruno Haible  <bruno@clisp.org>
66858
66859         Safer stack allocation.
66860         * lib/setenv.c: Include allocsa.h.
66861         (alloca): Remove fallback definition.
66862         (freea): Remove macro.
66863         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
66864         instead of freea.
66865
66866 2004-01-20  Bruno Haible  <bruno@clisp.org>
66867
66868         * m4/eealloc.m4: New file, from GNU gettext.
66869
66870 2004-01-20  Bruno Haible  <bruno@clisp.org>
66871
66872         * m4/allocsa.m4: New file, from GNU gettext.
66873
66874 2004-01-20  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/xallocsa.h: New file, from GNU gettext.
66877         * lib/xallocsa.c: New file, from GNU gettext.
66878
66879 2004-01-20  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
66882
66883 2004-01-20  Bruno Haible  <bruno@clisp.org>
66884
66885         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
66886         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
66887         specially.
66888
66889 2004-01-20  Bruno Haible  <bruno@clisp.org>
66890
66891         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
66892         patch.
66893
66894 2004-01-20  Bruno Haible  <bruno@clisp.org>
66895
66896         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
66897
66898 2004-01-20  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/eealloc.h: New file.
66901
66902 2004-01-20  Bruno Haible  <bruno@clisp.org>
66903
66904         * lib/binary-io.h: Avoid warnings on Cygwin.
66905
66906 2004-01-20  Bruno Haible  <bruno@clisp.org>
66907
66908         * lib/allocsa.h: New file, from GNU gettext.
66909         * lib/allocsa.c: New file, from GNU gettext.
66910
66911 2004-01-18  Karl Berry  <karl@gnu.org>
66912
66913         * doc/gpl.texi, doc/lgpl.texi: new files.
66914
66915 2004-01-18  Karl Berry  <karl@gnu.org>
66916
66917         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
66918         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
66919
66920 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66921
66922         Merge from coreutils.
66923
66924         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
66925         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
66926         (gl_DEFAULT_POSIX2_VERSION): Move
66927         the documentation from 'configure' into 'config.hin',
66928         so that 'configure --help' isn't burdened by it and
66929         we don't have to worry about its formatting there.
66930         Reword the documentation so that it's more succinct
66931         and can be run together into a single paragraph.
66932         * m4/same.m4 (gl_SAME): Check for pathconf.
66933
66934 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66935
66936         Merge from coreutils.
66937
66938         * lib/posixver.c: Include posixver.h.
66939
66940         * lib/same.c: Include <stdbool.h>, <limits.h>.
66941         (_POSIX_NAME_MAX): Define if not defined.
66942         (MIN): New macro.
66943         (same_name): If file names are silently truncated, report
66944         that the file names are the same if they are the same after
66945         the silent truncation.
66946
66947         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
66948         conversion function.
66949         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
66950         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
66951         longer needed.
66952
66953 2004-01-15  Jim Meyering  <jim@meyering.net>
66954
66955         Merge from coreutils.
66956
66957         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
66958         if no library is required.
66959         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
66960         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
66961         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
66962         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
66963         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
66964         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
66965         value, $ac_cv_search_crypt, if it's "none required".
66966         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
66967         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
66968         not gl_FUNC_GETLOADAVG.
66969         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
66970         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
66971
66972 2004-01-15  Jim Meyering  <jim@meyering.net>
66973
66974         Merge from coreutils.
66975
66976         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
66977         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
66978         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
66979
66980         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
66981         optional configure-time default.
66982
66983         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66984
66985         * lib/xreadlink.c (xreadlink): Correct outdated comment.
66986
66987 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
66988
66989         Merge from coreutils.
66990
66991         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
66992         value, $ac_cv_search_nanosleep, if it's "none required".
66993
66994 2004-01-14  Paul Eggert  <eggert@twinsun.com>
66995
66996         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
66997         with like-named macro in fnmatch.c.
66998         (EXT): Use an internal constant instead.
66999
67000         Merge fnmatch patches from glibc.
67001         * lib/fnmatch.c (mbsinit): Remove define.
67002         Add libc_hidden_ver (__fnmatch, fnmatch).
67003         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
67004         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
67005
67006 2004-01-14  Karl Berry  <karl@gnu.org>
67007
67008         * config/install-sh: update from automake.
67009
67010 2004-01-13  Karl Berry  <karl@gnu.org>
67011
67012         * config/install-sh: update from automake.
67013
67014 2004-01-09  Karl Berry  <karl@gnu.org>
67015
67016         * config/install-sh: update from automake.
67017
67018 2004-01-05  Karl Berry  <karl@gnu.org>
67019
67020         * config/config.{sub,guess}: update from config.
67021
67022 2003-12-31  Karl Berry  <karl@gnu.org>
67023
67024         * config/depcomp: update from automake.
67025
67026 2003-12-14  Karl Berry  <karl@gnu.org>
67027
67028         * lib/config.charset: update from gettext-runtime.
67029
67030 2003-12-03  Paul Eggert  <eggert@twinsun.com>
67031
67032         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
67033         Bug reported by Alfred M. Szmidt.
67034
67035 2003-12-03  Bruno Haible  <bruno@clisp.org>
67036
67037         * m4/gettext.m4: Upgrade from gettext-0.13.
67038         * m4/po.m4: Upgrade from gettext-0.13.
67039         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
67040         * m4/intmax.m4: New file, from gettext-0.13.
67041         * m4/printf-posix.m4: New file, from gettext-0.13.
67042
67043 2003-11-29  Karl Berry  <karl@gnu.org>
67044
67045         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
67046
67047 2003-11-25  Paul Eggert  <eggert@twinsun.com>
67048             Bruno Haible  <bruno@clisp.org>
67049
67050         * lib/printf-parse.h: Don't include sys/types.h.
67051         (ARG_NONE): New macro.
67052         (char_directive): Change type of *arg_index fields to size_t.
67053         * lib/printf-parse.c: Don't include sys/types.h.
67054         (SSIZE_MAX): Remove macro.
67055         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
67056         Remove unnecessary overflow check.
67057         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
67058         fields.
67059
67060 2003-11-25  Bruno Haible  <bruno@clisp.org>
67061
67062         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
67063
67064 2003-11-25  Bruno Haible  <bruno@clisp.org>
67065
67066         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
67067         gt_TYPE_SSIZE_T.
67068
67069 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67070
67071         * modules/alloca: Remove dependency on xalloc.
67072
67073 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67074
67075         * lib/alloca.c: Remove dependency on xalloc module.
67076         (xalloc_die): Remove.
67077         (memory_full) [!defined emacs]: New macro.
67078         [!defined emacs]: Don't include xalloc.h.
67079         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
67080         address arithmetic overflows.  Change datatypes a bit to avoid
67081         unnecessary casts.
67082
67083 2003-11-22  Jim Meyering  <jim@meyering.net>
67084
67085         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
67086         s/size/size_t/.
67087
67088 2003-11-21  Karl Berry  <karl@gnu.org>
67089
67090         * config/config.{sub,guess}: update from config.
67091
67092 2003-11-18  Karl Berry  <karl@gnu.org>
67093
67094         * config/config.{sub,guess}: update from config.
67095
67096         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
67097
67098 2003-11-17  Paul Eggert  <eggert@twinsun.com>
67099
67100         * README: Mention that S+T cannot overflow if S is the size of
67101         an existing object and T is sufficiently small.
67102
67103 2003-11-17  Jim Meyering  <jim@meyering.net>
67104
67105         On systems without utime and without a utimes function capable of
67106         dealing with a NULL struct utimbuf* argument, this utime replacement
67107         could -- in unusual circumstances -- leak a file descriptor.
67108         * lib/utime.c: Include <unistd.h> and <errno.h>.
67109         (utime_null): Be sure to close `fd' and to preserve errno.
67110         Reported by Geoff Collyer via Arnold Robbins.
67111
67112 2003-11-17  Bruno Haible  <bruno@clisp.org>
67113
67114         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
67115         (Depends-on): Add xsize.
67116
67117 2003-11-17  Bruno Haible  <bruno@clisp.org>
67118
67119         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
67120
67121 2003-11-17  Bruno Haible  <bruno@clisp.org>
67122
67123         * lib/vasnprintf.c (alloca): Remove fallback definition.
67124         (freea): Remove definition.
67125         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
67126         Reported by Paul Eggert.
67127
67128 2003-11-16  Paul Eggert  <eggert@twinsun.com>
67129             Bruno Haible  <bruno@clisp.org>
67130
67131         Protect against address arithmetic overflow.
67132         * lib/printf-args.h: Include stddef.h.
67133         (arguments): Change type of field 'count' to size_t.
67134         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
67135         'unsigned int' where appropriate.
67136         * lib/printf-parse.h: Include sys/types.h.
67137         (char_directive): Change type of *arg_index fields to ssize_t.
67138         (char_directives): Change type of fields 'count', max_*_length to
67139         size_t.
67140         * lib/printf-parse.c: Include sys/types.h and xsize.h.
67141         (SSIZE_MAX): Define fallback value.
67142         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
67143         instead of 'int' where appropriate. Check a_allocated, d_allocated
67144         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
67145         * lib/vasnprintf.c: Include xsize.h.
67146         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
67147         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
67148         overflow. Avoid wraparound when converting a width or precision from
67149         decimal to binary.
67150
67151 2003-11-16  Bruno Haible  <bruno@clisp.org>
67152
67153         Update from GNU gettext.
67154         * lib/printf-parse.c: Generalize to it can be compiled for wide
67155         strings.
67156         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
67157         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
67158         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
67159         SNPRINTF): New macros.
67160         Don't include <alloca.h> if the file is used inside libintl.
67161         (local_wcslen): New function, for Solaris 2.5.1.
67162         (VASNPRINTF): Use it instead of wcslen.
67163
67164 2003-11-16  Bruno Haible  <bruno@clisp.org>
67165
67166         * lib/xsize.h (xmax): New function.
67167         (xsum, xsum3, xsum4): Declare as "pure" functions.
67168
67169 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67170
67171         * modules/xalloc (Files): Undo latest change, since xalloc.h
67172         no longer needs SIZE_MAX or PTRDIFF_MAX.
67173
67174 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67175
67176         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
67177         gl_PTRDIFF_MAX.
67178
67179 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67180
67181         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
67182         "return", to pacify some unknown compiler.  Problem reported
67183         by Joerg Schilling.
67184
67185 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67186
67187         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
67188         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
67189         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
67190         heuristic is just as accurate as far as we know, and it removes a
67191         dependency on size_max.m4 and ptrdiff_max.m4.
67192
67193 2003-11-11  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/xsize (Files): Add m4/size_max.m4.
67196         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
67197
67198 2003-11-11  Bruno Haible  <bruno@clisp.org>
67199
67200         * m4/size_max.m4: New file.
67201         * m4/ptrdiff_max.m4: New file.
67202         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
67203         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
67204         (gl_XALLOC): Invoke it.
67205
67206 2003-11-11  Bruno Haible  <bruno@clisp.org>
67207
67208         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
67209         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
67210         defined.
67211
67212 2003-11-10  Paul Eggert  <eggert@twinsun.com>
67213
67214         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
67215         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
67216         rejected some allocations of exactly SIZE_MAX - 2 bytes.
67217         From Bruno Haible.
67218         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
67219         not (size_t) -1, since it's defined here.
67220
67221 2003-11-09  Karl Berry  <karl@gnu.org>
67222
67223         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
67224
67225 2003-11-06  Paul Eggert  <eggert@twinsun.com>
67226
67227         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
67228         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
67229         Reject sizes of exactly SIZE_MAX bytes.
67230         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
67231         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
67232
67233 2003-11-05  Bruno Haible  <bruno@clisp.org>
67234
67235         * lib/xsize.h: Include limits.h, to avoid a possible collision with
67236         SIZE_MAX defined in <limits.h> on Solaris.
67237
67238 2003-11-04  Jim Meyering  <jim@meyering.net>
67239
67240         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
67241         variable names, rather than @VAR@.
67242         * modules/poll: Likewise.
67243
67244 2003-11-04  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/xsize: New file.
67247         * modules/linebreak: Depend on xsize.
67248         * MODULES.html.sh (func_all_modules): Add xsize.
67249
67250 2003-11-04  Bruno Haible  <bruno@clisp.org>
67251
67252         * m4/xsize.m4: New file.
67253
67254 2003-11-04  Bruno Haible  <bruno@clisp.org>
67255
67256         * lib/xsize.h: New file.
67257         * lib/linebreak.c: Include xsize.h.
67258         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
67259         argument for overflow.
67260         Suggested by Paul Eggert.
67261
67262 2003-11-03  Karl Berry  <karl@gnu.org>
67263
67264         * config/config.{guess,sub}: update from config.
67265
67266 2003-11-03  Jim Meyering  <jim@meyering.net>
67267
67268         * modules/userspec (lib_SOURCES): Add userspec.h.
67269         (Include): Add "userspec.h".
67270         Improve description.
67271
67272 2003-11-03  Jim Meyering  <jim@meyering.net>
67273
67274         * lib/userspec.c: Include "userspec.h".
67275         * lib/userspec.h: New file.
67276
67277 2003-11-03  Bruno Haible  <bruno@clisp.org>
67278
67279         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
67280
67281 2003-11-03  Bruno Haible  <bruno@clisp.org>
67282
67283         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
67284         available, to avoid (extremely rare) race condition.
67285         Suggested by Paul Eggert.
67286
67287 2003-11-02  Karl Berry  <karl@gnu.org>
67288
67289         * config/srclist.txt (vasprintf.c): sync broken, sigh.
67290
67291 2003-10-31  Paul Eggert  <eggert@twinsun.com>
67292
67293         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
67294         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
67295         (read_filesystem_list): Set and use me_type_malloced.
67296         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
67297         whatever the type happens to be), for brevity and consistency.
67298         Check for size calculation overflow on Alphas running OSF/1.
67299
67300 2003-10-31  Jim Meyering  <jim@meyering.net>
67301
67302         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
67303
67304         * lib/linebuffer.c: Include <string.h> for declaration of memset.
67305
67306 2003-10-30  Paul Eggert  <eggert@twinsun.com>
67307             Bruno Haible  <bruno@clisp.org>
67308
67309         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
67310         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
67311
67312 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67313
67314         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
67315         netbsd*-gnu*.  Suggested by Robert Millan.
67316
67317 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67318
67319         * modules/group-member: Depend on stdbool.
67320
67321 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67322
67323         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
67324
67325 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67326
67327         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
67328         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
67329         after the 'gnu' in these cases.  This fixes some bugs in the
67330         previous change, and is based on suggestions by Robert Millan.
67331
67332 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67333
67334         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
67335         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
67336         no longer needed.
67337         * lib/quotearg.c (quotearg_n_options): Use it.
67338         * lib/group-member.c: Include <stdbool.h>.
67339         (free_group_info): Arg is now const *; don't free arg.
67340         (get_group_info): Now returns bool and accepts struct group_info *,
67341         rather than returning a malloc'ed struct group_info *.
67342         All uses changed.  Check for overflow in internal size calculation.
67343
67344         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
67345         rather than xmalloc/xrealloc.
67346         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
67347         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
67348         conformance bug: the old code used a pointer after freeing the
67349         storage that it addressed.
67350         * lib/hash.c (hash_initialize): Simplify the code by using
67351         xalloc_oversized rather than doing it by hand.
67352         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
67353         the buffer preserved.  Use free and xmalloc instead.
67354         * lib/quotearg.c (quotearg_n_options): Likewise.
67355         Use a simpler test for size overflow.  Don't use xalloc_oversized
67356         because unsigned int might be wider than size_t (!); this suggests
67357         that we should switch from unsigned int to size_t for slot numbers.
67358
67359 2003-10-28  Paul Eggert  <eggert@twinsun.com>
67360
67361         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
67362         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
67363         NetBSD kernels.  Requested by Richard Stallman.
67364
67365 2003-10-27  Paul Eggert  <eggert@twinsun.com>
67366
67367         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
67368         to allocate the returned structure.  Do not allocate a subarray,
67369         as x2nrealloc will do that.
67370         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
67371         instead of xnrealloc.
67372         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
67373
67374 2003-10-27  Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/stdbool_.h: Better support for BeOS.
67377
67378 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67379
67380         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
67381         now uses inline.
67382
67383 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67384
67385         * lib/xalloc.h (xalloc_oversized): New static inline function, for
67386         callers that want to do their own size-overflow checking.  Include
67387         <stdbool.h>, since xalloc_oversized returns bool.
67388         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
67389         to use xalloc_oversized.
67390
67391         Add two functions x2realloc, x2nrealloc, for programs that grow
67392         arrays dynamically by doubling their sizes.
67393         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
67394         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
67395         New functions.
67396
67397         Port to C99 semantics for 'inline' of external functions.
67398         Bug reported by Bruno Haible.
67399         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
67400         with the old contents of xnmalloc.
67401         (xnmalloc, xmalloc): Use it.
67402         (xnrealloc_inline): New static inline function,
67403         with the old contents of xnrealloc.
67404         (xnrealloc, xrealloc): Use it.
67405
67406         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
67407         that.
67408
67409 2003-10-26  Karl Berry  <karl@gnu.org>
67410
67411         * config/srclist.txt (COPYING.DOC): no longer available from
67412         /gd/gnuorg; don't know where the ultimate source is.
67413
67414 2003-10-25  Paul Eggert  <eggert@twinsun.com>
67415
67416         Fix several address-calculation bugs in the hash modules,
67417         plus some minor code cleanup.
67418
67419         * lib/hash.h: Include <stdbool.h>, for bool.
67420         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
67421         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
67422         hash_get_n_entries, hash_get_max_bucket_length,
67423         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
67424         hash_rehash): Use size_t rather than unsigned.
67425         * lib/hash.c (struct hash_table, hash_get_n_buckets,
67426         hash_get_n_buckets_used, hash_get_n_entries,
67427         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
67428         hash_get_entries, hash_do_for_each, hash_string, is_prime,
67429         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
67430         Likewise.
67431         (SIZE_MAX): Define if not defined.
67432         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
67433         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
67434         hash_print):
67435         Use const * when possible.
67436         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
67437         (check_tuning): Fix bug: if tuning parameters were very close to
67438         0 or 1, rounding errors could have caused subscript violations.
67439         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
67440         (hash_initialize): Add 'fail:' label
67441         to free table and return NULL, and use it to simplify code.
67442         Use calloc rather than clearing the storage ourself.
67443         (hash_initialize, hash_rehash): Check for arithmetic overflow in
67444         buffer size calculations.
67445         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
67446         Include <stddef.h>, for size_t.
67447         * lib/hash-pjw.c (hash_pjw): Likewise.
67448         Switch to method described by Bruno Haible.
67449         Include <limits.h>, for CHAR_BIT.
67450         (SIZE_BITS): New macro.
67451
67452 2003-10-23  Paul Eggert  <eggert@twinsun.com>
67453
67454         * m4/getline.m4 (AM_FUNC_GETLINE):
67455         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
67456         hosts.  Problem reported by Derek Robert Price in
67457         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
67458         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
67459         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
67460
67461 2003-10-21  Paul Eggert  <eggert@twinsun.com>
67462
67463         * lib/getndelim2.c (getndelim2): When size calculation overflows,
67464         ceiling the allocation at NMAX bytes rather than silently
67465         discarding input bytes before NMAX is reached.  This makes
67466         a difference only if NMAX exceeds SIZE_MAX / 2.
67467
67468         * lib/obstack.c: Merge from glibc.
67469         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
67470         Add libc_hidden_def (_obstack_newchunk).
67471         (_obstack_free) [! defined _LIBC]: Remove.
67472         [defined _LIBC]: Make a strong alias from obstack_free, rather than
67473         a clone of the function body.
67474         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
67475         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
67476
67477         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
67478         glibc.
67479         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
67480         arg to memcpy.
67481
67482         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
67483         (obstack_ptr_grow_fast, obstack_int_grow_fast):
67484         Don't use lvalue casts, as GCC plans to remove support for them
67485         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
67486         was also present in the non-GCC version, indicating that this
67487         code had always been buggy and had never been widely used.
67488         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
67489         Use the fast variant of each macro, rather than copying the
67490         definiens of the fast variant; that way, we'll be more likely to
67491         catch future bugs in the fast variants.
67492
67493 2003-10-20  Bruno Haible  <bruno@clisp.org>
67494
67495         * modules/wait-process: New file.
67496         * MODULES.html.sh (func_all_modules): Add wait-process.
67497
67498 2003-10-20  Bruno Haible  <bruno@clisp.org>
67499
67500         * m4/wait-process.m4: New file.
67501
67502 2003-10-20  Bruno Haible  <bruno@clisp.org>
67503
67504         * lib/wait-process.h: New file, from GNU gettext.
67505         * lib/wait-process.c: New file, from GNU gettext.
67506
67507 2003-10-19  Jim Meyering  <jim@meyering.net>
67508
67509         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
67510         HPUX 10.20.
67511
67512 2003-10-18  Karl Berry  <karl@gnu.org>
67513
67514         * config/config.guess: update from config.
67515
67516 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67517
67518         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
67519         (getgroups): First arg is int, not size_t.
67520         Don't let 'free' mangle errno.
67521
67522 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67523
67524         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
67525
67526 2003-10-16  Karl Berry  <karl@gnu.org>
67527
67528         * config/config.{guess,sub}: update from config.
67529
67530 2003-10-16  Jim Meyering  <jim@meyering.net>
67531
67532         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
67533         memcpy.
67534
67535 2003-10-15  Paul Eggert  <eggert@twinsun.com>
67536
67537         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
67538         (SIZE_MAX): Remove.
67539         (new_exclude, add_exclude_file): Initial size no longer needs to
67540         be a power of 2.
67541         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
67542         our own address arithmetic overflow checking.
67543
67544         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
67545         (fnmatch): Do not alloca more than 2000 wide characters;
67546         instead, use malloc for large buffers.
67547         Check for address arithmetic overflow, and return -1
67548         with errno set to ENOMEM in that case.
67549         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
67550         (NEW_PATTERN): Do not alloca more than 8000 bytes;
67551         instead, return -1.  Check for address arithmetic overflow.
67552
67553 2003-10-14  Paul Eggert  <eggert@twinsun.com>
67554
67555         Handle invalid suffixes and overflow independently, so that
67556         callers can treat them independently as needed.  Fix some bugs in
67557         suffix handling, e.g., "100k@" was not diagnosed as an invalid
67558         suffix for a human-readable blocksize.  The major caller-visible
67559         change is the addition of a new
67560         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
67561         that both overflow and suffix chars were found.
67562
67563         * lib/human.c (humblock): Don't check separately for invalid suffix
67564         char; that is xstrtoumax's job (now that its bug is fixed).
67565         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
67566         INTMAX_MAX]: New macros.
67567         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
67568         TYPE_MAXIMUM): New macros.
67569         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
67570         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
67571         if overflow occurs, as it's what __strtol does and it's more useful
67572         in practice.
67573         (__xstrtol): If __strtol reports some error other than ERANGE,
67574         reflect it to the caller as LONGINT_INVALID.  If it reports
67575         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
67576         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
67577         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
67578         value.
67579         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
67580         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
67581         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
67582         [defined UINTMAX_MAX]: New macros.
67583
67584 2003-10-14  Bruno Haible  <bruno@clisp.org>
67585
67586         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
67587
67588 2003-10-14  Bruno Haible  <bruno@clisp.org>
67589
67590         * m4/sig_atomic_t: New file, from GNU gettext.
67591         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
67592
67593 2003-10-14  Bruno Haible  <bruno@clisp.org>
67594
67595         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
67596         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
67597         Also use volatile where needed.
67598
67599 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67600
67601         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
67602         Change maintainer from Bruno Haible to 'all'.
67603
67604 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67605
67606         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
67607
67608 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67609
67610         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
67611         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
67612         and define in terms of the other primitives.
67613         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
67614         (SIZE_MAX): Define if not already defined.
67615         (array_size_overflow): New function.
67616         (xalloc_die): Abort instead of exiting if 'error' returns.
67617         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
67618         (xmalloc, xrealloc): Use them.
67619         (xcalloc): Check for address arithmetic overflow.
67620         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
67621         a bit faster than strcpy.
67622
67623 2003-10-10  Simon Josefsson  <jas@extundo.com>
67624
67625         * modules/argp (Depends-on): Add restrict and strcase.
67626
67627 2003-10-10  Simon Josefsson  <jas@extundo.com>
67628
67629         * m4/argp.m4: Add AC_C_INLINE.
67630
67631 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67632
67633         Merge getpass from libc, plus a few fixes.
67634
67635         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
67636         Include <stdbool.h>.
67637         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
67638         __fsetlocking to empty.
67639         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
67640         do include <bits/libc-lock.h>.
67641         Do not include <fcntl.h>; not needed.
67642         [_LIBC]: Include <wchar.h>.
67643         (NOTCANCEL_MODE): New macro.
67644         (flockfile, funlockfile) [_LIBC]: New macros.
67645         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
67646         [!_LIBC]: New macros.
67647         (call_fclose): New function.
67648         (getpass): Use it.  Save tty stream separately; this simplifies the
67649         code and makes it more reliable if stdin happens to equal stdout.
67650         Invoke __fsetlocking on tty.
67651         Handle thread cancellation if needed.
67652         Namespace cleanup (use __tcgetattr, __getline).
67653         Use bool for Booleans.
67654         [USE_IN_LIBIO]: Handle wide streams.
67655         [!_LIBC]: Unconditionally do the fseek, since we don't know what
67656         stream might go where.
67657
67658         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
67659         doesn't have to include <stdio.h> before us.
67660         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
67661         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
67662         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
67663         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
67664         if not declared, so that we can use getpass.c code from libc without
67665         rewriting it.
67666         (flockfile, ftrylockfile, funlockfile): New macros.
67667
67668 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67669
67670         * modules/getpass: Depend on stdbool.
67671
67672 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67673
67674         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
67675
67676 2003-10-07  Karl Berry  <karl@gnu.org>
67677
67678         * config/config.{guess,sub}: update from config.
67679
67680 2003-10-06  Jim Meyering  <jim@meyering.net>
67681             Bruno Haible  <bruno@clisp.org>
67682
67683         This lets translators provide better translations for the
67684         "Written by ..." part of --version output.
67685         * lib/version-etc.h: Include stdarg.h.
67686         (version_etc_copyright): Declare as readonly.
67687         (version_etc): Make this function variadic with a NULL-terminated list
67688         of author name strings.
67689         (version_etc_va): New declaration.
67690         * lib/version-etc.c: Include stdarg.h, stdlib.h.
67691         (version_etc_copyright): Declare as readonly.
67692         (version_etc_va): New function. Provide a different translatable string
67693         for each possible number of authors < 10. Abbreviate when there are 10
67694         authors or more.
67695         (version_etc): Make this function variadic. Call version_etc_va.
67696         Suggestion from Gary V. Vaughan.
67697
67698         * lib/long-options.h (parse_long_options): Change prototype: the
67699         authors string is moved to the end and becomes variadic.
67700         * lib/long-options.c: Include stdarg.h.
67701         (parse_long_options): Make this function variadic, too.
67702         Call version_etc_va, not version_etc.
67703
67704 2003-10-06  Bruno Haible  <bruno@clisp.org>
67705
67706         * modules/version-etc-2: Remove file.
67707         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
67708
67709 2003-10-06  Bruno Haible  <bruno@clisp.org>
67710
67711         * modules/fatal-signal: New file.
67712         * MODULES.html.sh (func_all_modules): Add fatal-signal.
67713
67714 2003-10-06  Bruno Haible  <bruno@clisp.org>
67715
67716         * m4/fatal-signal.m4: New file.
67717         * m4/signalblocking.m4: New file, from GNU gettext.
67718
67719 2003-10-06  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/version-etc-2.h: Remove file.
67722         * lib/version-etc-2.c: Remove file.
67723
67724 2003-10-06  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/fatal-signal.h: New file, from GNU gettext.
67727         * lib/fatal-signal.c: New file, from GNU gettext.
67728
67729 2003-10-05  Paul Eggert  <eggert@twinsun.com>
67730
67731         * README: Rework advice for preventing empty .o files.
67732         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
67733         not <sys/types.h>.
67734
67735 2003-10-04  Karl Berry  <karl@gnu.org>
67736
67737         * lib/argp*: update from libc.
67738
67739 2003-10-04  Karl Berry  <karl@gnu.org>
67740
67741         * config/config.{guess,sub}: update from config.
67742
67743 2003-10-02  Bruno Haible  <bruno@clisp.org>
67744
67745         * modules/lchown (Include): Add lchown.h.
67746         * modules/time_r (Include): Use "..." syntax.
67747         * modules/xgetdomainname (Include): Add xgetdomainname.h.
67748
67749 2003-10-01  Simon Josefsson  <jas@extundo.com>
67750
67751         * MODULES.html.sh (func_all_modules): Move gethostname from section
67752         'based on' to section 'lacking' POSIX:2001.
67753
67754 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
67755
67756         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
67757         to output mode on the same stream.
67758
67759 2003-09-29  Paul Eggert  <eggert@twinsun.com>
67760
67761         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
67762         Fix arg typo in previous patch.
67763
67764 2003-09-28  Jim Meyering  <jim@meyering.net>
67765
67766         * lib/error.c: Correct cpp indentation.
67767
67768 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67769
67770         * modules/free: New file.
67771
67772 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67773
67774         * m4/free.m4: New file.
67775
67776 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67777
67778         * lib/minmax.h (MIN, MAX)
67779         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
67780         Omit the special code that used __typeof__, since we worry that
67781         it could be more trouble than it's worth.  See:
67782         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
67783         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
67784
67785         * lib/free.c: New file.
67786
67787 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
67788
67789         Trivial fixes to Makefile.am parts of module listings.
67790         * modules/strstr: Append strstr.h to lib_SOURCES.
67791         * modules/strcase: Likewise, for strcase.h.
67792
67793 2003-09-27  Karl Berry  <karl@gnu.org>
67794
67795         * config/mkinstalldirs: update from automake.
67796
67797 2003-09-26  Paul Eggert  <eggert@twinsun.com>
67798
67799         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
67800         (error_tail): Do not loop, reallocating temporary buffer, since
67801         the output cannot contain more wide characters than the input
67802         contains bytes, the size must be big enough already.  This avoids
67803         one potential size overflow calculation.  Check for size overflow
67804         when calculating temporary buffer size.  Free temporary buffer
67805         when done, if it was allocated with malloc; this plugs a memory
67806         leak.  Remove casts from void * to pointers, that are no longer
67807         needed now that we're assuming C89 or better.
67808
67809         Merge error changes from glibc.
67810
67811         * lib/error.c, error.h: Update copyright notice header to match glibc.
67812         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
67813         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
67814         Disable cancellation while printing error.
67815         * lib/error.h: Prepend __ to parameter names.
67816
67817 2003-09-26  Jim Meyering  <jim@meyering.net>
67818
67819         * lib/error.c (error_tail): Move some declarations
67820         into inner scope where the local variables are used.
67821
67822 2003-09-26  Bruno Haible  <bruno@clisp.org>
67823
67824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
67825         stpncpy().
67826         Don't define stpncpy through config.h; it's now done through stpncpy.h.
67827
67828 2003-09-26  Bruno Haible  <bruno@clisp.org>
67829
67830         * lib/stpncpy.h (gnu_stpncpy): New declaration.
67831         (stpncpy): Define as alias for gnu_stpncpy.
67832         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
67833
67834 2003-09-25  Simon Josefsson  <jas@extundo.com>
67835
67836         * lib/xgetdomainname.h: New file.
67837         * lib/xgetdomainname.c: New file.
67838
67839 2003-09-25  Simon Josefsson  <jas@extundo.com>
67840             Bruno Haible  <bruno@clisp.org>
67841
67842         * modules/getdomainname: New file.
67843         * modules/xgetdomainname: New file.
67844         * MODULES.html.sh (func_all_modules): Add getdomainname,
67845         xgetdomainname.
67846
67847 2003-09-25  Simon Josefsson  <jas@extundo.com>
67848             Bruno Haible  <bruno@clisp.org>
67849
67850         * m4/getdomainname.m4: New file.
67851
67852 2003-09-25  Simon Josefsson  <jas@extundo.com>
67853             Bruno Haible  <bruno@clisp.org>
67854
67855         * lib/getdomainname.h: New file.
67856         * lib/getdomainname.c: New file.
67857
67858 2003-09-25  Karl Berry  <karl@gnu.org>
67859
67860         * lib/argp-fmtstream.c, argp-help.c: update from libc.
67861
67862 2003-09-25  Karl Berry  <karl@gnu.org>
67863
67864         * config/install-sh: update from automake.
67865
67866 2003-09-25  Bruno Haible  <bruno@clisp.org>
67867
67868         * modules/version-etc-2: New file, from modules/version-etc with
67869         modifications.
67870         * MODULES.html.sh (func_all_modules): Add version-etc-2.
67871
67872 2003-09-25  Bruno Haible  <bruno@clisp.org>
67873
67874         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
67875         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
67876
67877 2003-09-24  Simon Josefsson  <jas@extundo.com>
67878
67879         * modules/xgethostname: Add xgethostname.h.
67880
67881 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67882
67883         * lib/linebuffer.c (freebuffer): Don't free the argument, just
67884         the buffer associated with the argument.  Bug reported by
67885         Simon Josefsson.
67886
67887 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67888
67889         * README: Document assumptions that 'int' is at least 32 bits
67890         wide, that integer arithmetic is 2's complement without overflow,
67891         that there are no holes in integer values, that adding sizes of
67892         two nonoverlapping objects can't overflow, and that all-bits-zero
67893         yields scalar zero.  Fix spelling and capitalization typos.
67894
67895 2003-09-19  Karl Berry  <karl@gnu.org>
67896
67897         * lib/argp.h: update from libc.
67898
67899 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67900
67901         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
67902         to avoid spurious warnings like "AC_RUN_IFELSE was called before
67903         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
67904
67905 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67906
67907         * gnulib-tool: Use "test -h", not "test -L", for portability
67908         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
67909         (tags_regexp): Remove, since \| doesn't conform to POSIX.
67910         (sed_extract_prog): Issue s commands one-by-one, rather than
67911         using \| in one s command.
67912
67913 2003-09-16  Paul Eggert  <eggert@twinsun.com>
67914
67915         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
67916         input error, instead of returning NULL the next time we are called
67917         (and therefore losing track of errno).
67918
67919 2003-09-16  Bruno Haible  <bruno@clisp.org>
67920
67921         * gnulib-tool (func_create_testdir): Warn about duplicated
67922         dependencies.
67923
67924 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67925
67926         * modules/argmatch, modules/fatal, modules/obstack,
67927         modules/xalloc, modules/xgethostname: Sort dependencies by
67928         importance, not alphabetically.
67929
67930 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67931
67932         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
67933         fails, so that the caller gets the proper errno.
67934
67935         * lib/readutmp.c (read_utmp): Likewise.
67936         Check for fstat error.  Close stream and free storage
67937         when failing.
67938
67939 2003-09-14  Karl Berry  <karl@gnu.org>
67940
67941         * config/srclist.txt (strdup.c): disable for c89 changes.
67942
67943 2003-09-14  Jim Meyering  <jim@meyering.net>
67944
67945         * lib/getloadavg.c: Correct cpp indentation.
67946         * lib/strdup.c: Likewise.
67947         * lib/vasnprintf.c: Likewise.
67948
67949 2003-09-14  Bruno Haible  <bruno@clisp.org>
67950
67951         * modules/fwriteerror: New file.
67952         * MODULES.html.sh (func_all_modules): Add fwriteerror.
67953
67954 2003-09-14  Bruno Haible  <bruno@clisp.org>
67955
67956         * lib/fwriteerror.h: New file.
67957         * lib/fwriteerror.c: New file.
67958
67959 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67960
67961         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
67962         modules/xgethostname, modules/xalloc: Depend on exit.
67963
67964 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67965
67966         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
67967
67968         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
67969         and AC_MINIX, too, so that their extensions are available.
67970
67971         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
67972         This macro has been superseded by gl_BACKUPFILE.
67973
67974         More patches to assume C89 or better.
67975
67976         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
67977
67978         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
67979         unconditionally.
67980         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
67981         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
67982         Include <string.h>, <stdlib.h> unconditionally.
67983         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
67984         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
67985         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
67986         headers or for string.h.
67987         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
67988         or strtoul.
67989
67990         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
67991         headers.
67992         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
67993         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67994         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
67995         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
67996         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67997         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
67998         memcpy, memset.
67999         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
68000         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
68001         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
68002         strtol.
68003         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
68004         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
68005         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
68006         strtoul.
68007
68008 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68009
68010         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
68011         * lib/obstack.c [!defined _LIBC]: Likewise.
68012         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
68013         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
68014         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
68015
68016         More changes to assume C89 or better.
68017
68018         * lib/error.c (error_tail): Assume vprintf.
68019
68020         * lib/argmatch.c (getenv): Remove decl.
68021         * lib/progreloc.c (get_full_program_name): Define via prototype.
68022         * lib/setenv.c (clearenv): Likewise.
68023         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
68024         needed.
68025         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
68026         (malloc, memcpy): Remove decls.
68027         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
68028         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
68029         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68030         (memcpy): Remove macro.
68031         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
68032         (__P): Remove.  All uses removed.
68033         (PTR): Remove.  All uses changed to void *.
68034         (CHAR_BIT, NULL): Remove.
68035         (spaces, zeros, memset_space, memset_zero)
68036         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
68037         Remove.
68038         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
68039         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
68040         Define with prototype.
68041         Remove now-unnecessary prototype decl.
68042         (extra_args_spec): Assume ANSI C.  All uses changed.
68043         (extra_args_spec_iso): Remove.
68044         (my_strftime, emacs_strftimeu): Define via prototype.
68045         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
68046         unconditionally.
68047         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
68048         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
68049         (strtoul, strtol): Remove decls.
68050         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
68051         LONG_MAX): Remove.
68052         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68053         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
68054         (LOCALE_PARAM_PROTO): New macro.
68055         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
68056         (INTERNAL (strtol), strtol): Define with a prototype.
68057         (PARAMS): Remove.  All uses removed.
68058         * lib/tempname.c: Include <string.h> unconditionally.
68059         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
68060         * lib/xgethostname.c (main): Define with a prototype.
68061         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
68062         Include <stdlib.h> unconditionally.
68063         (calloc, malloc, realloc, free): Remove decls.
68064         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
68065         Include <stdlib.h> unconditionally.  Sort include file names.
68066         (strtod): Remove.
68067         (xstrtod): Define with a prototype.
68068         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
68069         (strtol, strtoul): Remove decls.
68070
68071 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68072
68073         More patches to assume C89 or better.
68074         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
68075         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
68076         string.h, memchr, STDC_HEADERS.
68077
68078 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68079
68080         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
68081         Include <stdlib.h>, <string.h> unconditionally.
68082         Remove now-unnecessary cast to char *.
68083         * lib/strnlen.c: Include <string.h> unconditionally.
68084         * lib/yesno.c (yesno): Define with a prototype.
68085
68086 2003-09-11  Bruno Haible  <bruno@clisp.org>
68087
68088         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
68089
68090 2003-09-10  Jim Meyering  <jim@meyering.net>
68091
68092         * lib/error.c: Correct indentation of cpp directives.
68093
68094 2003-09-10  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
68097         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
68098         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
68099         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
68100         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
68101         <stdlib.h> and <string.h> checks.
68102         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
68103         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
68104
68105 2003-09-10  Bruno Haible  <bruno@clisp.org>
68106
68107         * lib/strcspn.c: Include <string.h> unconditionally.
68108         * lib/strpbrk.c: Include <string.h> unconditionally.
68109         * lib/strstr.c: Include <string.h> unconditionally.
68110         * lib/unicodeio.c: Include <string.h> unconditionally.
68111         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
68112         * lib/unsetenv.c: Likewise.
68113         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
68114         * lib/yesno.c: Include <stdlib.h> unconditionally.
68115         (rpmatch): Add prototype.
68116
68117 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68118
68119         More patches to assume C89 or better.
68120         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
68121         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
68122         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
68123         or for string.h.
68124         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
68125         stdlib.h.
68126         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
68127         C headers.
68128         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
68129         string.h.
68130         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
68131         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
68132         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
68133         or for string.h.
68134         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
68135         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
68136         C headers.
68137         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
68138         memcpy.
68139         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
68140         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
68141         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
68142         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
68143         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
68144         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
68145         string.h, free.
68146         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
68147         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
68148         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
68149         C headers, or for string.h.
68150         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
68151         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
68152         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
68153         headers, memory.h, stdlib.h, string.h, strings.h.
68154         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
68155         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
68156         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
68157         strchr.
68158         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
68159         headers, memory.h, string.h.
68160         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
68161         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
68162         free.
68163         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
68164         headers.
68165         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
68166         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
68167         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
68168         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
68169         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
68170
68171 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68172
68173         More K&R removal.
68174
68175         * lib/acosl.c (main): Use a prototype.
68176         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
68177         tanl.c: Likewise.
68178
68179         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
68180
68181         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
68182         (getopt, etopt_long, getopt_long_only, _getopt_internal)
68183         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
68184         with a prototype.
68185         * lib/getopt.c (const): Remove macro.
68186         Include <string.h> unconditionally.
68187         (my_index): Remove; all uses changed to strchr.
68188         (strlen): Remove decl.
68189         (exchange): Remove forward decl; no longer needed.
68190         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
68191         Define with prototype.
68192         * lib/getopt1.c (const): Remove macro.
68193         (getopt_long, getopt_long_only, main): Define with prototype.
68194
68195         * lib/getugroups.c: Include <string.h> unconditionally.
68196
68197         * lib/getusershell.c: Include <stdlib.h> unconditionally.
68198         (getusershell, setusershell, endusershell, readname, main):
68199         Define with prototypes.
68200
68201         * lib/group-member.c: Include group-member.h first.
68202         Include <stdlib.h> unconditionally.
68203
68204         * lib/hard-locale.c: Include hard-locale.h first.
68205         Include <stdlib.h>, <string.h> unconditionally.
68206
68207         * lib/hash.c (free, malloc): Remove decls.
68208         Include <stdlib.h> unconditionally.
68209
68210         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
68211         (getenv): Do not declare.
68212
68213         * lib/idcache.c: Include <string.h> unconditionally.
68214
68215         * lib/long-options.c: Include long-options.h first, to test interface.
68216         Include <stdlib.h> unconditionally.
68217
68218         * lib/makepath.c: Include makepath.h first, to test interface.
68219         Include <stdlib.h> and <string.h> unconditionally.
68220
68221         * lib/linebuffer.c: Include <stdlib.h>.
68222         (free): Remove decl.
68223
68224         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
68225         stddef.h. rpl_malloc returns void *, not char *.
68226         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
68227         prototype.
68228
68229         * lib/md5.h: Include <limits.h> unconditionally.
68230         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
68231         (__P): Remove; all uses removed.
68232         * lib/md5.c: Include "md5.h" first.
68233         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
68234         md5_buffer, md5_process_bytes, md5_process_block):
68235         Define with prototypes.
68236         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
68237         * lib/sha.c: Include "sha.h" first.
68238         Include <stdlib.h>, <string.h> unconditionally.
68239
68240         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
68241         * lib/memcmp.c (__ptr_t): Likewise.
68242         * lib/memrchr.c (__ptr_t): Likewise.
68243         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
68244         Include <string.h> unconditionally.
68245         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
68246         * lib/memchr.c: Include <stdlib.h> unconditionally.
68247         * lib/memchr.c (LONG_MAX): Remove.
68248         * lib/memrchr.c (LONG_MAX): Likewise.
68249         * lib/memchr.c (__memchr): Define via a prototype.
68250         * lib/memrchr.c (__memrchr): Likewise.
68251         * lib/memcmp.c (__P): Remove, and remove all uses.
68252         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
68253         Remove forward decls; no longer needed.
68254         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
68255         Use types required by C89 in prototype.
68256
68257         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
68258         * lib/savedir.c: Likewise.
68259         * lib/mkdir.c (free): Remove decl.
68260         * lib/rmdir.c (rmdir): Define with a prototype.
68261         * lib/savedir.c: Include savedir.h first, to test interface.
68262
68263         * lib/mktime.c (STDC_HEADERS): Remove.
68264         Include <stdlib.h>, <string.h> unconditionally.
68265
68266         * lib/modechange.c: Include <stdlib.h> unconditionally.
68267         (malloc): Remove decl.
68268
68269         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
68270         (free): Remove decl.
68271
68272         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
68273         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
68274         (This type really should be intptr_t, but that's a C99ism.)
68275         (_obstack_memcpy): Remove: all uses changed to memcpy.
68276         Include <string.h> unconditionally.
68277         (struct obstack): Assume __STDC__ for types of members
68278         chunkfun, freefun, extra_arg.
68279         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
68280         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
68281         obstack_begin, obstack_specify_allocation,
68282         obstack_specify_allocation_with_arg, obstack_chunkfun,
68283         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
68284         Remove unprototyped decls and the macros that use them.
68285         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
68286         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
68287         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
68288         (defined __STDC__ && __STDC__)]:
68289         Remove nonprototyped code.
68290         Include <stdlib.h> unconditionally.
68291         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
68292         _obstack_allocated_p, _obstack_free, obstack_free,
68293         _obstack_memory_used, print_and_abort):
68294         Define using prototypes.
68295         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
68296         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
68297         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
68298         obstack_next_free, obstack_object_size, obstack_room) [0]:
68299         Remove unused, unprototyped code.
68300
68301         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
68302
68303         * lib/physmem.c (physmem_total, physmem_available, main): Define
68304         with prototypes.
68305
68306         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
68307         (main): Define with a prototype.
68308
68309         * lib/posixver.c (getenv): Remove decl.
68310
68311         * lib/putenv.c (malloc): Returns void *, not char *.
68312         Include <string.h> unconditionally.
68313         (strchr, memcpy, NULL): Do not define.
68314
68315         * lib/readtokens.c: Include readtokens.h first, to test interface.
68316         Include <stdlib.h>, <string.h> unconditionally.
68317         (init_tokenbuffer): Define with a prototype.
68318
68319         * lib/regex.c (PARAMS): Remove.  All uses removed.
68320         All uses of _RE_ARGS removed, too.
68321         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68322         unconditionally.
68323         (bzero): Assume memset exists.
68324         (memcmp, memcpy, NULL): Remove.
68325         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
68326         char, or assignments to local vars of type signed char.
68327         (init_syntax_once, PREFIX(extract_number_and_incr),
68328         PREFIX(print_partial_compiled_pattern),
68329         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
68330         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
68331         PREFIX(regex_grow_registers), PREFIX(regex_compile),
68332         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
68333         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
68334         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
68335         wcs_compile_range, byte_compile_range, truncate_wchar,
68336         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
68337         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
68338         count_mbs_length, wcs_re_match_2_internal,
68339         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
68340         PREFIX(alt_match_null_string_p),
68341         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
68342         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
68343         regfree, PREFIX(extract_number)): Define with prototype.  Remove
68344         now-unnecessary declaration, if any.
68345         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
68346         regcomp, regexec):
68347         Remove now-unnecessary casts among pointer types.
68348         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
68349
68350         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
68351         (free): Remove decl.
68352
68353         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
68354
68355         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
68356         (free): Remove decl.
68357
68358         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
68359         * lib/xgetcwd.c: Likewise.
68360
68361         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
68362         (free): Remove decl.
68363
68364         * lib/strchrnul.c (strchrnul): Define with a prototype.
68365         Fix bug: c_in was not converted to char before searching.
68366
68367         The following changes are not K&R related:
68368
68369         * lib/group-member.h: Include <sys/types.h>, so that this file is
68370         self-contained.
68371         * lib/makepath.h: Likewise.
68372
68373         * lib/getusershell.c (readname, default_index, line_size, readname):
68374         Use size_t, not int, for sizes.
68375         (readname): If the size overflows, report an error instead of
68376         looping forever.
68377
68378 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68379
68380         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
68381         libc.
68382
68383 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68384
68385         * README: New section: portability guidelines.
68386
68387 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68388
68389         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
68390         C89 spec.
68391
68392 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68393
68394         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
68395
68396 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68397
68398         Assume C89 or better; remove K&R cruft.
68399         A few of these changes were first proposed by Derek Robert Price
68400         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
68401
68402         * lib/addext.c: Include <string.h> unconditionally.
68403         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
68404         Don't declare getenv or malloc.
68405
68406         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
68407         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
68408         (NULL): Remove.
68409         (find_stack_direction, alloca): Use prototypes.
68410
68411         * lib/atexit.c (atexit): Define using a prototype.
68412
68413         * lib/basename.c, dirname.c, stripslash.c:
68414         Include <string.h> unconditionally.
68415
68416         * lib/bcopy.c: Include <stddef.h>.
68417         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
68418
68419         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
68420
68421         * lib/error.h (error, error_at_line, error_print_progname)
68422         [! (defined (__STDC__) && __STDC__)]: Remove decls.
68423         * lib/error.c: Include error.h first, to check interface.
68424         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68425         (VA_START): Remove; all uses changeed to va_start.
68426         (exit, strerror): Remove decls.
68427         (error_print_progname): Prototype uncondionally.
68428         Don't include <errno.h>; no longer needed.
68429         (private_strerror): Remove.
68430         (error_tail): Always define.
68431         (error, error_at_line): Assume C89 or better; always use prototypes.
68432         * lib/fatal.c: Include "fatal.h" first, to test interface.
68433         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68434         (VA_START): Remove; all uses changed to va_start.
68435         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
68436         this case.
68437         (exit): Remove decl.
68438         (fatal): Prototype unconditionally.  Assume va_start works.
68439         Abort at end, to pacify gcc.
68440
68441         * lib/euidaccess.c (main): Define with a prototype.
68442
68443         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
68444
68445         * lib/exitfail.c: Include <stdlib.h> unconditionally.
68446
68447         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
68448         prototypes.
68449         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
68450         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
68451         (getenv): Remove decl.
68452         (fnmatch): Define using a prototype.
68453         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
68454         (FCT): Define using a prototype.
68455
68456         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
68457
68458         * lib/gethostname.c: Include <stddef.h>.
68459         (gethostname): Define with prototype.  Length is size_t, not int.
68460
68461 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68462
68463         Assume C89 or better; remove K&R cruft.
68464         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
68465         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
68466         string.h, getenv, malloc.
68467         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
68468         headers.
68469         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
68470         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
68471         do not check for strerror.
68472         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
68473         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
68474         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
68475         do not check for doprnt or vprintf.
68476         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
68477         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
68478
68479 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68480
68481         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
68482         getversion.c should have been removed then, but was accidentally
68483         preserved.
68484
68485         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
68486         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
68487
68488 2003-09-08  Karl Berry  <karl@gnu.org>
68489
68490         * config/config.sub, config.guess, srclistvars.sh: update from savannah
68491                 config, forget about prep.
68492
68493         * config/depcomp, missing: update from automake.
68494
68495 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68496
68497         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
68498         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68499
68500 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68501
68502         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
68503         copy_tm_result.  Bug reported by Simon Josefsson in
68504         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68505
68506 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68507
68508         * m4/time_r.m4: New file.
68509         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
68510         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
68511         is. Check for timegm declaration.
68512         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
68513         Do not check for gmtime_r.
68514         Replace mktime if __mktime_internal does not exist and if mktime
68515         hasn't been replaced already.
68516
68517 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68518
68519         * lib/time_r.c, lib/time_r.h: New files.
68520
68521         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
68522         __localtime_r.
68523         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
68524         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
68525
68526         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
68527         __gmtime_r.
68528         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
68529         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
68530         Include <time_r.h>.
68531
68532         * lib/timegm.c: Switch to glibc implementation, with the following
68533         changes:
68534         [defined HAVE_CONFIG_H]: Include <config.h>.
68535         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
68536         (__mktime_internal) [!defined _LIBC]: New decl.
68537         (__gmtime_r) [!defined _LIBC]: New macro and function.
68538         (timegm): Use a prototype, since gnulib assumes C89.
68539         Do not bother declaring tmp to be const, as it's not really usefu.
68540         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
68541         (timegm): Declare only if HAVE_DECL_TIMEGM.
68542
68543 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68544
68545         * MODULES.html.sh (func_all_modules): Add time_r.
68546         * modules/time_r: New file.
68547         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
68548         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
68549
68550 2003-09-03  Paul Eggert  <eggert@twinsun.com>
68551
68552         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
68553         Bug reported by Lute Kamstra in
68554         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
68555
68556         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
68557         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
68558         course with correspondingly smaller numbers for tomorrow and
68559         yesterday.  From Tadayoshi Funaba.  Originally installed into
68560         sh-utils on 1999-08-07, but the patch got lost (I guess during the
68561         coreutils merge?).
68562
68563 2003-08-31  Simon Josefsson  <jas@extundo.com>
68564
68565         * modules/timegm: New file.
68566         * MODULES.html.sh (func_all_modules): Add timegm.
68567
68568 2003-08-31  Simon Josefsson  <jas@extundo.com>
68569
68570         * m4/timegm.m4: New file.
68571
68572 2003-08-31  Simon Josefsson  <jas@extundo.com>
68573
68574         * lib/timegm.h: New file.
68575         * lib/timegm.c: New file.  Based on
68576         wget-1.8.2/src/http.c:mktime_from_utc.
68577
68578 2003-08-31  Karl Berry  <karl@gnu.org>
68579
68580         * lib/argp.h: update from libc.
68581
68582 2003-08-28  Bruno Haible  <bruno@clisp.org>
68583
68584         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
68585         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
68586         followed by '#define fnmatch fnmatch_posix' gives an error.
68587
68588 2003-08-28  Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
68591         warning on QNX, which defines O_BINARY to 000000.
68592
68593 2003-08-27  Jim Meyering  <jim@meyering.net>
68594
68595         * m4/mkstemp.m4: Require that the system mkstemp be able to create
68596         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
68597         would fail after 32.  Reported by Danny Levinson.  Details here:
68598         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
68599
68600 2003-08-24  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
68603         MSVC7 <stdio.h> is included later.
68604
68605 2003-08-22  Simon Josefsson  <jas@extundo.com>
68606
68607         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
68608
68609 2003-08-20  Karl Berry  <karl@gnu.org>
68610
68611         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
68612
68613 2003-08-20  Bruno Haible  <bruno@clisp.org>
68614
68615         * modules/progname: New file.
68616         * MODULES.html.sh (func_all_modules): Add progname.
68617
68618 2003-08-20  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/progname.h: New file, from GNU gettext.
68621         * lib/progname.c: New file, from GNU gettext.
68622         * lib/progreloc.c: New file, from GNU gettext.
68623
68624 2003-08-19  Jim Meyering  <jim@meyering.net>
68625
68626         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
68627         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
68628
68629 2003-08-19  Bruno Haible  <bruno@clisp.org>
68630
68631         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
68632         more.
68633
68634 2003-08-19  Bruno Haible  <bruno@clisp.org>
68635
68636         * lib/xstrdup.c: Assume <string.h> exists.
68637
68638 2003-08-18  Paul Eggert  <eggert@twinsun.com>
68639
68640         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
68641         in makefile rules.
68642
68643 2003-08-18  Jim Meyering  <jim@meyering.net>
68644
68645         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
68646         * m4/lib-ld.m4: Likewise.
68647
68648 2003-08-18  Jim Meyering  <jim@meyering.net>
68649
68650         * lib/setenv.h: Indent nested cpp directive.
68651         * lib/vasnprintf.c: Remove trailing blanks.
68652
68653 2003-08-17  Simon Josefsson  <jas@extundo.com>
68654
68655         * modules/xstrndup: New file.
68656         * MODULES.html.sh (func_all_modules): Add xstrndup.
68657
68658 2003-08-17  Simon Josefsson  <jas@extundo.com>
68659
68660         * modules/argp: Fix autoconf macro name. Add more dependencies.
68661
68662 2003-08-17  Simon Josefsson  <jas@extundo.com>
68663
68664         * m4/xstrndup.m4: New file.
68665
68666 2003-08-17  Simon Josefsson  <jas@extundo.com>
68667
68668         * m4/argp.m4: New file.
68669
68670 2003-08-17  Simon Josefsson  <jas@extundo.com>
68671             Bruno Haible  <bruno@clisp.org>
68672
68673         * lib/xstrndup.h: New file.
68674         * lib/xstrndup.c: New file.
68675
68676 2003-08-17  Bruno Haible  <bruno@clisp.org>
68677
68678         * modules/strndup (Files, Include): Add lib/strndup.h.
68679
68680 2003-08-17  Bruno Haible  <bruno@clisp.org>
68681
68682         * modules/euidaccess (Files): Add lib/euidaccess.h.
68683
68684 2003-08-17  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/strndup.h: New file.
68687
68688 2003-08-17  Bruno Haible  <bruno@clisp.org>
68689
68690         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
68691         like AC_GNU_SOURCE.
68692         * modules/extensions (configure.ac): Comment out the invocation of
68693         gl_USE_SYSTEM_EXTENSIONS.
68694
68695 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68696
68697         Merges from coreutils, etc.
68698         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
68699         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
68700         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
68701         fixing a typo.
68702         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
68703         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
68704
68705 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68706
68707         Document merge from coreutils.
68708         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
68709         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
68710         * modules/utime: Add m4/utimes-null.m4.
68711
68712 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68713
68714         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
68715         space, undoing this 2003-08-12 change:
68716         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68717
68718 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68719
68720         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
68721         strtoul.c from libc, undoing this 2003-08-12 change:
68722         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68723
68724 2003-08-16  Jim Meyering  <jim@meyering.net>
68725
68726         Merges from coreutils.
68727         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
68728         prefix.  Adjust cache variables similarly.  Create 500 rather than
68729         just 300 files, to exercise bug on Darwin6.5, too.
68730         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
68731         $missing_dir.
68732         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
68733         AM_SYS_POSIX_TERMIOS.
68734         Reported by mkc@mathdogs.com.
68735         Also change use of $am_cv_sys_posix_termios
68736         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
68737         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
68738         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
68739         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
68740         in /proc/mounts until it finds one with matching device number.  This
68741         is unnecessary when the FILE argument *is* a mount point.  No stat call
68742         is necessary in that case.  So, disable the statvfs-testing code on
68743         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
68744         as RedHat bug# 84846.
68745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68746         to 1MB, so as not to render systems with no stack size limit (e.g.,
68747         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68748         Include <unistd.h>.  On some systems,
68749         it is required for the definition of _SC_PAGESIZE.
68750
68751 2003-08-16  Jim Meyering  <jim@meyering.net>
68752
68753         Merge from coreutils.
68754         * lib/xstrtoimax.c: #else #if -> #elif.
68755         * lib/xstrtoumax.c: Likewise.
68756
68757 2003-08-16  Jim Meyering  <jim@meyering.net>
68758
68759         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
68760         * m4/utimes.m4: Removed.
68761         * m4/utimes-null.m4: Renamed from utimes.m4.
68762
68763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68764         to 1MB, so as not to render systems with no stack size limit (e.g.,
68765         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68766         Include <unistd.h>.  On some systems,
68767         it is required for the definition of _SC_PAGESIZE.
68768
68769 2003-08-16  Jim Meyering  <jim@meyering.net>
68770         and Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         Merges from coreutils, etc.
68773
68774         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
68775         using the latest version from cvs.  This avoids problems with #line
68776         directives using a vendor (Sun) compiler.
68777         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
68778         Don't set GETGROUPS_LIB here; now it's
68779         done via getgroups.m4's wrapper function.
68780         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
68781         rather than just in sh-util/configure.in, so that the
68782         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
68783         same.
68784         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
68785         AC_FUNC_GETLOADAVG where to find getloadavg.c.
68786         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
68787         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
68788         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
68789         Remove code that is now done by the newly-required macros.
68790         Append $(EXEEXT) to DF_PROG.
68791         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
68792         Do not invoke or require the following here,
68793         since prereq.m4 or some gnulib .m4 now does this for us:
68794         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
68795         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
68796         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
68797         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
68798         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
68799         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
68800         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
68801         AC_FUNC_OBSTACK.
68802         Do not replace the following functions, as this is now the job
68803         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
68804         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
68805         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
68806         atexit getpass, strdup, getpagesize.
68807         Replace 'raise'.
68808         Do not check for the following functions, as this is now the job
68809         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
68810         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
68811         setregid.
68812         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
68813         Check for sys/sysctl.h.
68814         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
68815         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
68816         of checking for ssize_t ourselves.
68817
68818         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
68819         Require every macro that gnulib/modules/* suggests for us.
68820         (jm_PREREQ_ADDEXT): New macro.
68821         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
68822         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
68823
68824         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
68825         (gl_PHYSMEM): Use it.
68826         Also check for `table' function.
68827         Check for new headers and functions.
68828         Add check for sys/sysmp.h.
68829         With suggestions from Kaveh Ghazi.
68830         Ignore headers that are present but cannot be compiled.  This
68831         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
68832         C 5.4.
68833
68834 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68835
68836         Document merge from coreutils.
68837         * modules/userspec: Depend on posixver.
68838         * modules/strftime: Depend on tzset.
68839
68840 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68841
68842         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
68843         rather than tab, after '#' in shell-script copyright notices.
68844         Suggested by Bruno Haible.
68845
68846 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68847
68848         * config/srclist-update: Use three spaces, rather than tab, after '#'
68849         in shell-script copyright notices.  Suggested by Bruno Haible.
68850         Remove unnecessary parenthesization in regular expression.
68851
68852 2003-08-15  Jim Meyering  <jim@meyering.net>
68853
68854         Merge from coreutils.
68855         * lib/xgethostname.c: Include <stdlib.h>.
68856         (xghostname): Don't exit for anything other than memory-related
68857         failure; just return NULL.
68858         * lib/userspec.c: Include "posixver.h".
68859         (parse_user_spec): Accept `.' as a separator only
68860         in pre-POSIX-200112 mode.
68861         * lib/strtoimax.c: Use #elif rather than #else #if.
68862         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
68863         Remove function, now that we can rely on a working tzset function.
68864         [!_LIBC]: Ensure that the required autoconf test has been run.
68865         [!defined _NL_CURRENT && HAVE_STRFTIME]:
68866         Use underlying_strftime for %r.
68867         * lib/sha.c: Merge in some clean-up and optimization changes from
68868         glibc.
68869         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
68870         Ensure that it is a multiple of 64.
68871         Rearrange loop exit tests so as to avoid performing an
68872         additional fread after encountering an error or EOF.
68873         * lib/realloc.c: Update copyright date.
68874
68875 2003-08-15  Jim Meyering  <jim@meyering.net>
68876         and Paul Eggert  <eggert@twinsun.com>
68877
68878         Merge from coreutils.
68879         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
68880         member but strut utmpx does not.  Needed for AIX 4.3.3.
68881         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
68882
68883 2003-08-15  Jim Meyering  <jim@meyering.net>
68884         and Paul Eggert  <eggert@cs.ucla.edu>
68885
68886         Merges from coreutils, etc.
68887         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
68888         Require gl_FUNC_TZSET_CLOBBER.
68889         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
68890         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
68891         members.
68892
68893 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68894
68895         Help the merge from coreutils.
68896         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
68897         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
68898         * m4/tzset.m4: Use it too.
68899
68900 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68901
68902         * modules/tzset: New file.
68903
68904 2003-08-14  Jim Meyering  <jim@meyering.net>
68905
68906         Merges from coreutils.
68907         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
68908         variable names, rather than @FNMATCH_H@.
68909         * modules/alloca: Likewise for $(ALLOCA_H).
68910
68911         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
68912         the three copies of the literal target, `fnmatch.h'.
68913         * modules/alloca (alloca.h): Likewise.
68914
68915 2003-08-14  Jim Meyering  <jim@meyering.net>
68916
68917         Merge from coreutils.
68918         * m4/tzset.m4: New file.
68919         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
68920         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
68921         otherwise, AIX 5.1 systems would end up using the latter.
68922         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
68923         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
68924         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
68925         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
68926
68927 2003-08-14  Jim Meyering  <jim@meyering.net>
68928
68929         Merge from coreutils.
68930         * lib/obstack.h: Whitespace changes.
68931         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
68932         and xcalloc return values.
68933         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
68934         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
68935         hang on OSF/1 5.1 for DIR on both local and remote file systems.
68936         Reported by (and fix confirmed by) Nelson H. F. Beebe.
68937         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68938         error from mntctl.
68939         Use mntctl's return value to drive the entry-processing loop, since
68940         we can't rely on the value of the vmt_length member in the last
68941         entry.  On some systems doing so could result in exhausting
68942         virtual memory.  Based in part on a patch from Mike Jetzer.
68943
68944 2003-08-14  Jim Meyering  <jim@meyering.net>
68945         and Paul Eggert  <eggert@twinsun.com>
68946
68947         Merges from coreutils, plus other fixes.
68948         * lib/physmem.c: Merge in portability changes from gcc/libiberty
68949         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
68950         for credits and details.  Thanks to Kaveh Ghazi for helping
68951         to keep these files in sync.
68952         (ARRAY_SIZE): Define it.
68953         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
68954         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
68955         (memcasecmp): Don't assume size_t fits in unsigned int.
68956         Remove casts and duplicate code.
68957         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
68958         (memcpy): Remove definition.
68959         Merge in some clean-up and optimization changes from glibc.
68960         [BLOCKSIZE]: Move definition to top of file.
68961         Ensure that it is a multiple of 64.
68962         Rearrange loop exit tests so as to avoid performing an
68963         additional fread after encountering an error or EOF.
68964         * lib/md5.h (md5_uintptr): Define.
68965         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
68966         return to the initial working directory.  Preserve errno
68967         for caller.
68968         * lib/idcache.c: Include "xalloc.h".
68969         (xmalloc, xrealloc): Remove decls.
68970         (getuser): Remove casts no longer required in C89.
68971         * lib/human.c: Include stdio.h, for sprintf.
68972         * lib/group-member.c: Include "xalloc.h".
68973         (xmalloc, xrealloc): Remove decls.
68974         (get_group_info): Remove casts no longer required in C89.
68975         * lib/getusershell.c (readname): Remove casts no longer required in
68976         C89.
68977         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
68978         * lib/getline.c: Whitespace fix, from coreutils.
68979
68980 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68981
68982         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
68983         Check for isascii.
68984
68985         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68986         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68987         Undo previous (whitespace-only) change.
68988
68989 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68990
68991         * lib/exclude.c: Include <ctype.h>
68992         (IN_CTYPE_DOMAIN): New macro.
68993         (is_space): New fn.
68994         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
68995         and empty lines.
68996
68997         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68998         Undo previous (whitespace-only) change.
68999
69000 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69001
69002         * config/srclist-update: Change update back to the old behavior,
69003         leaving whitespace alone.  Use one 'sed' command rather than a
69004         pipeline.
69005         (fixlicense): Now a variable, not a function.
69006         (remove_trailing_blanks): Remove.
69007         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
69008         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69009         Undo previous (whitespace-only) change.
69010
69011 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69012
69013         Merge from coreutils.
69014         * modules/euidaccess: Add lib_SOURCES, include for new
69015         file euidaccess.h
69016
69017 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69018
69019         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
69020         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
69021         Normalize leading white space and remove trailing white space.
69022
69023         Merge from coreutils
69024         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
69025
69026         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
69027         0.12.1.  These files are now being upgraded automatically by
69028         ../config/srclist-update.
69029
69030 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69031
69032         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69033         Normalize leading white space and remove trailing white space.
69034         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
69035         notice, as per ../config/srclist-update.
69036
69037         Merge from coreutils.
69038         * lib/euidaccess.h: New file.
69039         * lib/euidaccess.c: Include it.
69040         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
69041         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
69042         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
69043
69044 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69045
69046         * config/srclist-update: Add copyright notice.
69047         (remove_id_lines, remove_trailing_blanks): New constants.
69048         (fixfile): Use them to normalize spacing a bit in copied files.
69049         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69050         Normalize leading white space and remove trailing white space.
69051
69052         * config/texinfo.tex: Sync with texinfo.
69053
69054         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
69055         strtoul.c from libc, to merge coreutils whitespace changes.
69056
69057         * config/srclist.txt: Get the following m4 files from gettext:
69058         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
69059         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
69060         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
69061         wint_t.m4.
69062
69063 2003-08-12  Karl Berry  <karl@gnu.org>
69064
69065         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
69066         been made.
69067
69068 2003-08-11  Paul Eggert  <eggert@twinsun.com>
69069
69070         * modules/gnu-source, m4/gnu-source.m4:
69071         Remove; we're assuming Autoconf 2.54 or later now.
69072         Suggested by Bruno Haible.
69073         * MODULES.html.sh (func_all_modules): Remove gnu-source.
69074
69075 2003-08-11  Bruno Haible  <bruno@clisp.org>
69076
69077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
69078
69079 2003-08-11  Bruno Haible  <bruno@clisp.org>
69080
69081         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
69082         (vasnprintf): Use it instead of wcslen.
69083
69084 2003-08-11  Bruno Haible  <bruno@clisp.org>
69085
69086         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
69087         value to ensure that _Bool promotes to int. Use #define for _Bool when
69088         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
69089
69090 2003-08-10  Karl Berry  <karl@gnu.org>
69091
69092         * lib/regex.h: update from libc (whitespace fix).
69093
69094 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69095
69096         Merge some files from coreutils.  These changes were
69097         originally made by Jim Meyering.
69098         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
69099         many older Unixes require this.
69100         * lib/alloca.c (alloca): Remove cast to argument of free;
69101         no longer needed in C89.
69102         * lib/alloca_.h, regex.h: Fix white space to match
69103         what GNU indent does.
69104
69105 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69106
69107         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
69108         apparently Emacs's Unicode mode got confused before my 2003-08-05
69109         checkin.
69110
69111 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69112
69113         * m4/extensions.m4: New file.
69114         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
69115         Require gl_USE_SYSTEM_EXTENSIONS.
69116         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
69117         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
69118
69119 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69120
69121         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
69122         * modules/extensions, modules/gnu-source: New files.
69123         * modules/timespec, modules/unlocked-io: Depend on extensions.
69124
69125 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69126
69127         * modules/restrict: New file.
69128         * MODULES.html.sh (func_all_modules): Add restrict.
69129         * modules/regex: Depend on restrict.
69130
69131 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69132
69133         * m4/restrict.m4: New file.
69134         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
69135
69136 2003-08-07  Bruno Haible  <bruno@clisp.org>
69137
69138         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
69139         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
69140
69141 2003-08-07  Bruno Haible  <bruno@clisp.org>
69142
69143         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
69144         makes the module 'getndelim2' compatible with the module 'getline'.
69145
69146 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69147
69148         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
69149         byte with "\201" to avoid glitches when editing that source file
69150         with multi-gnome-terminal.
69151
69152 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69153
69154         * lib/bumpalloc.h: Remove.
69155
69156 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69157
69158         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
69159         * modules/bumpalloc: Remove.
69160
69161 2003-08-04  Paul Eggert  <eggert@twinsun.com>
69162
69163         * lib/getloadavg.c: Change copyright notice and spacing to conform to
69164         GNU coding style.
69165
69166         Merge from coreutils.
69167         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
69168         1. From glibc.
69169         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
69170         from Karl Berry, implemented by Jim Meyering.
69171         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
69172         from Dmitry V. Levin.
69173         Remove anachronistic cast of xrealloc.
69174         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
69175         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
69176         type. Otherwise, it wouldn't compile with at least /bin/cc on
69177         ymp-cray-unicos9.0.2.X.
69178         Combine two mostly-identical uses of alloca into one.
69179         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
69180
69181 2003-08-04  Dave Love  <d.love@dl.ac.uk>
69182
69183         [From Emacs.]
69184
69185         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
69186         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
69187         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
69188         obsolete NLIST_NAME_UNION.
69189         [__GNU__]: Undef BSD and FSCALE.
69190         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
69191
69192 2003-08-03  Paul Eggert  <eggert@twinsun.com>
69193
69194         * lib/stdbool_.h (_Bool): Make it signed char, instead of
69195         an enum type, so that it's guaranteed to promote to int.  See:
69196         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
69197
69198 2003-08-03  Karl Berry  <karl@gnu.org>
69199
69200         * config/depcomp: update from automake.
69201
69202 2003-07-31  Paul Eggert  <eggert@twinsun.com>
69203
69204         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
69205         (strerror): Don't assume that a printable int fits in 14 bytes.
69206
69207 2003-07-31  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/getpass-gnu: New file.
69210         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
69211
69212 2003-07-31  Bruno Haible  <bruno@clisp.org>
69213
69214         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
69215
69216 2003-07-24  Karl Berry  <karl@gnu.org>
69217
69218         * config/missing: update from automake.
69219
69220 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
69221             Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
69224         * lib/getline.c (getline, getdelim): Likewise.
69225         Remove _GNU_SOURCE define; now it's defined in config.h through
69226         m4/getline.m4.
69227
69228 2003-07-23  Karl Berry  <karl@gnu.org>
69229
69230         * config/config.sub: update from prep.
69231
69232 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69233
69234         * modules/xalloc (Depends-on): Add exitfail.
69235         * modules/xmemcoll: Likewise.
69236
69237 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69238
69239         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
69240         over-parenthesization in macros.
69241
69242         Sync with coreutils.
69243
69244         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
69245         required by C99.
69246
69247         Use `exit_failure' for xalloc and xmemcoll instead of their own
69248         private exit-failure variables.
69249         * lib/xalloc.h (xalloc_exit_failure): Remove.
69250         * lib/xmalloc.c: Likewise.  Include exitfail.h.
69251         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
69252         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
69253         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
69254         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
69255
69256 2003-07-20  Jim Meyering  <jim@meyering.net>
69257
69258         * modules/closeout (Depends-on): Add exitfail.
69259         Suggestion from Bruno Haible.
69260
69261 2003-07-19  Karl Berry  <karl@gnu.org>
69262
69263         * config/config.sub: update from prep.
69264
69265 2003-07-18  Paul Eggert  <eggert@twinsun.com>
69266
69267         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
69268         Remove.
69269         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
69270         to test that it can stand by itself.  Include "exitfail.h".
69271         Clients should set exit_failure instead.
69272         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
69273
69274 2003-07-18  Bruno Haible  <bruno@clisp.org>
69275
69276         * modules/getndelim2: New file.
69277         * modules/getline: Share files with module getndelim2.
69278         * modules/getnline: Depend on getndelim2 instead of sharing files with
69279         it. Add getnline.c to lib_SOURCES.
69280         * MODULES.html.sh (func_all_modules): Add getndelim2.
69281
69282 2003-07-18  Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/getndelim2.m4: New file.
69285         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
69286         invoke gl_PREREQ_GETNDELIM2.
69287         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
69288         gl_PREREQ_GETNDELIM2.
69289         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
69290         gl_GETNDELIM2.
69291
69292 2003-07-18  Bruno Haible  <bruno@clisp.org>
69293
69294         * lib/getndelim2.h: New file.
69295         * lib/getndelim2.c: Make into a module of its own. Include config.h,
69296         getndelim2.h.
69297         (getndelim2): Make non-static. Change return type to ssize_t.
69298         * lib/getline.h: Change argument names.
69299         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
69300         * lib/getnline.c: Include getndelim2.h.
69301
69302 2003-07-18  Andreas Schwab  <schwab@suse.de>
69303
69304         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
69305
69306 2003-07-17  Karl Berry  <karl@gnu.org>
69307
69308         * config/config.sub: update from prep.
69309
69310 2003-07-17  Bruno Haible  <bruno@clisp.org>
69311
69312         * modules/getnline: New file.
69313         * modules/getline: Add lib/getndelim2.c to source file list.
69314         * MODULES.html.sh (func_all_modules): Add getnline.
69315
69316 2003-07-17  Bruno Haible  <bruno@clisp.org>
69317
69318         * m4/getnline.m4: New file.
69319
69320 2003-07-17  Bruno Haible  <bruno@clisp.org>
69321
69322         * m4/Makefile.am.in: Remove file.
69323         * m4/Makefile.am: Remove file.
69324         * m4/Makefile.in: Remove file.
69325
69326 2003-07-17  Bruno Haible  <bruno@clisp.org>
69327
69328         * lib/getnline.h: New file.
69329         * lib/getnline.c: New file.
69330         * lib/getndelim2.c: New file, extracted from getline.c.
69331         (getndelim2): Renamed from getdelim2, with added nmax argument.
69332         * lib/getline.c: Include getndelim2.c.
69333         (getdelim2): Moved out to getndelim2.c.
69334         (getline, getdelim): Update.
69335
69336 2003-07-17  Bruno Haible  <bruno@clisp.org>
69337
69338         * lib/Makefile.am: Remove file.
69339         * lib/Makefile.in: Remove file.
69340
69341 2003-07-17  Bruno Haible  <bruno@clisp.org>
69342
69343         * configure.in: Remove file.
69344         * Makefile.in: Remove file.
69345
69346 2003-07-17  Bruno Haible  <bruno@clisp.org>
69347
69348         * MODULES.html.sh: Put the </BODY> right before </HTML>.
69349
69350 2003-07-16  Karl Berry  <karl@gnu.org>
69351
69352         * config/srclist-update: was running fixlicense twice, which caused
69353                 texinfo.tex to be nullified for some reason.  Simplify,
69354                 $gplsrc is no longer needed as far as I can see?
69355
69356 2003-07-16  Jim Meyering  <jim@meyering.net>
69357
69358         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
69359
69360 2003-07-15  Paul Eggert  <eggert@twinsun.com>
69361
69362         * config/srclist.txt: Get the following files from gettext-runtime/intl
69363         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
69364         ref-del.sin.  From Bruno Haible.
69365         * config/srclist-update (fixfile): Change grep pattern again, since the
69366         previous fix didn't work (there was another trailing $).  Use
69367         '[$]' to escape the $s.
69368
69369 2003-07-15  Karl Berry  <karl@gnu.org>
69370
69371         * lib/vasnprintf.c: update from gettext.
69372
69373 2003-07-15  Karl Berry  <karl@gnu.org>
69374
69375         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
69376         gets expanded when surrounded by '$'.
69377
69378 2003-07-15  Jim Meyering  <jim@meyering.net>
69379
69380         * modules/save-cwd: Don't depend on error.  From Derek Price.
69381
69382 2003-07-15  Jim Meyering  <jim@meyering.net>
69383
69384         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
69385
69386 2003-07-14  Simon Josefsson  <jas@extundo.com>
69387
69388         * modules/mempcpy: New file.
69389         * MODULES.html.sh (func_all_modules): Add mempcpy.
69390
69391 2003-07-14  Simon Josefsson  <jas@extundo.com>
69392
69393         * m4/mempcpy.m4: New file.
69394
69395 2003-07-14  Simon Josefsson  <jas@extundo.com>
69396
69397         * lib/mempcpy.h: New file.
69398         * lib/mempcpy.c: New file.
69399
69400 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69401
69402         * modules/getdate, modules/posixtm: Depend on mktime.
69403
69404 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69405
69406         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
69407         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
69408         unicodeio.c, unicodeio.h, unlocked-io.h:
69409         Switch from LGPL to GPL.
69410
69411 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69412
69413         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
69414         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
69415         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
69416         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
69417         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
69418         updated automatically by ../config/srclist-update.  This changes
69419         their license from LPGL to GPL.
69420
69421 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69422
69423         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
69424         assumed to refer to the root of the most recent stable gettext version.
69425         * config/srclistvars.sh: Add defaults for eggert.
69426         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
69427         Match "This program" as well as "The program".  This is needed
69428         for gettext.
69429
69430 2003-07-14  Jim Meyering  <jim@meyering.net>
69431
69432         Don't emit diagnostics.  Let callers do that.
69433         * lib/save-cwd.c: Don't include "error.h".
69434         (save_cwd): Don't call error.  Ensure that errno is valid
69435         when returning nonzero.
69436
69437         * lib/save-cwd.h (restore_cwd): Update prototype.
69438         * lib/save-cwd.c (restore_cwd): Remove two parameters.
69439         Simplify.  Don't call error upon failure.  Let callers do that.
69440         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
69441         when auditing is enabled.  But don't bother updating the #if.
69442
69443 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
69444
69445         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
69446         it breaks C++ compilation.
69447         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
69448
69449 2003-07-10  Simon Josefsson  <jas@extundo.com>
69450
69451         * modules/strchrnul (Makefile.am): Add strchrnul.h.
69452
69453 2003-07-10  Jim Meyering  <jim@meyering.net>
69454
69455         * m4/clock_time.m4: Remove trailing blank.
69456         * m4/intmax_t.m4: Likewise.
69457
69458 2003-07-10  Jim Meyering  <jim@meyering.net>
69459
69460         * lib/vasnprintf.c: Remove trailing blanks.
69461         Make cpp indentation consistent.
69462
69463 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69464
69465         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
69466         posixver.c, strftime.c, strnlen.c, strverscmp.c:
69467         Switch from LGPL to GPL.
69468
69469 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69470
69471         * config/srclist.txt: Sort sublists.  Add
69472         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
69473         that differ from gnulib for one reason or another; we'd like this list
69474         to be smaller but for now let's document what we have.
69475
69476 2003-07-08  Paul Eggert  <eggert@twinsun.com>
69477
69478         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
69479         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
69480         and sweeter "eval x=$x".
69481         * config/srclist.txt: Get lib/argp* from glibc.
69482
69483 2003-07-07  Paul Eggert  <eggert@twinsun.com>
69484
69485         * lib/mktime.c: Fix some boundary cases and remove need for floating
69486         point.
69487
69488         Issue a compile-time diagnostic if time_t is floating point, or if
69489         two's complement arithmetic is not in effect, or if arithmetic
69490         right shift does not propagate the sign.  These assumptions were
69491         all in the original code but they weren't checked.
69492
69493         (TIME_T_MIDPOINT, verify): New macros.
69494         (__isleap): Remove; it has integer overflow problems.
69495         (leapyear): New function, without those problems.
69496         (ydhms_tm_diff): Remove; splitting into two parts.
69497         (ydhms_diff): New function, containing the arithmetic part of
69498         the old ydhms_tm_diff function.  Issue a compile-time
69499         diagnostic if we are not using C99 integer division.
69500         Avoid casts when possible.
69501         (guess_time_tm): New function, containing the checking part of
69502         the old ydhms_tm_diff function.  Return the new value, rather than
69503         the difference between it and the old.  Accept a new argument T
69504         so that *T specifies the old value.  Check for overflow in the result.
69505
69506         (__mktime_internal): Use a time_t offset, not a long int offset.
69507         This undoes the 2003-06-04 change, which is no longer needed now
69508         that we have better overflow checking.
69509         (localtime_offset): Likewise.
69510
69511         (__mktime_internal): Avoid harmful overflow on hosts where time_t
69512         and long are 64-bit but int is only 32-bit.
69513         (ydhms_diff): Use long int to store year1 and yday1.
69514         Issue a compile-time diagnostic if long int is not wide enough.
69515
69516         (__mktime_internal): Use long int to store adjusted year and yday.
69517         Use plain C rather than preprocessor commands, if that doesn't
69518         affect efficiency.
69519         Check for overflow (and try to repair) after each probe
69520         rather than checking only at the very end.  This avoids some bugs
69521         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
69522         does not equal GMT offset at maximum time).
69523         Use integer to check for overflow rather than floating point; this
69524         is more portable to non-IEEE hosts, and is a tad faster.
69525         When we detect that we are oscillating between two values,
69526         don't check whether tm_isdst has the requested value, since
69527         we already know the answer.  When tm_isdst has the wrong value,
69528         use a different heuristic to find the right one, based on the
69529         extreme values actually observed in practice in tz2003a,
69530         rather than the (overly optimistic) "previous 3 calendar quarters".
69531
69532         (not_equal_tm, print_tm, check_result): Use "const T" rather than
69533         "T const" to accommodate glibc style.
69534         (check_result): Use less-confusing report format.  "long" -> "long int.
69535         (main): Likewise.
69536         Don't loop if the iteration overflows time_t.
69537         Allow a negative step in the iteration.
69538
69539 2003-07-06  Karl Berry  <karl@gnu.org>
69540
69541         * config/depcomp: update from automake.
69542         * config/config.sub: update from prep.
69543
69544 2003-07-03  Karl Berry  <karl@gnu.org>
69545
69546         * config/config.guess: update from prep.
69547
69548 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69549
69550         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
69551         xreadlink.c now includes it unconditionally.
69552
69553 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69554
69555         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
69556         having it depend on HAVE_SYS_TYPES_H.
69557
69558 2003-07-01  Bruno Haible  <bruno@clisp.org>
69559
69560         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
69561         <sys/types.h> should be sufficient.
69562         Reported by Paul Eggert.
69563
69564 2003-06-26  Karl Berry  <karl@gnu.org>
69565
69566         * config/depcomp: update from automake.
69567
69568 2003-06-26  Bruno Haible  <bruno@clisp.org>
69569
69570         * modules/human: Depend on module stdbool.
69571
69572 2003-06-25  Bruno Haible  <bruno@clisp.org>
69573
69574         * modules/readlink: New file.
69575         * modules/xreadlink: Depend on it.
69576         * MODULES.html.sh (func_all_modules): Add readlink.
69577
69578 2003-06-25  Bruno Haible  <bruno@clisp.org>
69579
69580         * m4/readlink.m4: New file.
69581
69582 2003-06-25  Bruno Haible  <bruno@clisp.org>
69583
69584         * lib/readlink.c: New file.
69585
69586 2003-06-22  Karl Berry  <karl@gnu.org>
69587
69588         * config/srclist.txt: update mkinstalldirs from automake.
69589         * config/mkinstalldirs: update.
69590
69591 2003-06-22  Bruno Haible  <bruno@clisp.org>
69592
69593         Portability to mingw32.
69594         * m4/ssize_t.m4: New file, from GNU gettext.
69595         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
69596         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
69597
69598 2003-06-22  Bruno Haible  <bruno@clisp.org>
69599
69600         * modules/safe-read: Add m4/ssize_t.m4.
69601         * modules/xreadlink: Add m4/ssize_t.m4.
69602
69603 2003-06-20  Bruno Haible  <bruno@clisp.org>
69604
69605         Assume C89, so PARAMS isn't needed.
69606         * lib/unicodeio.h (PARAMS): Remove.
69607         * lib/unicodeio.c: Don't use PARAMS.
69608
69609 2003-06-18  Karl Berry  <karl@gnu.org>
69610
69611         * config/config.{guess,sub}: update from prep.
69612
69613 2003-06-18  Jim Meyering  <jim@meyering.net>
69614
69615         Merge changes from coreutils.
69616         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
69617         Remove explicit declarations of xmalloc and realloc.
69618         Include xalloc.h.
69619         (read_utmp): Remove anachronistic cast of xmalloc.
69620
69621 2003-06-17  Paul Eggert  <eggert@twinsun.com>
69622
69623         Assume C89, so PARAMS isn't needed.
69624         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
69625         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
69626         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
69627         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
69628         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
69629         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
69630         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
69631         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
69632         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
69633         lib/xstrtod.h, lib/xstrtol.h: Likewise.
69634         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
69635         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
69636         no longer needed. Anyway, config.h should always be included before any
69637         other file.
69638
69639 2003-06-11  Simon Josefsson  <jas@extundo.com>
69640
69641         * modules/sysexits: New file.
69642         * MODULES.html.sh (func_all_modules): Add sysexits.
69643
69644 2003-06-11  Simon Josefsson  <jas@extundo.com>
69645
69646         * lib/sysexit_.h: New file.
69647
69648 2003-06-11  Derek Price  <derek@ximbiot.com>
69649
69650         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
69651         necessary.
69652
69653 2003-06-11  Bruno Haible  <bruno@clisp.org>
69654
69655         * m4/sysexits.m4: New file.
69656
69657 2003-06-10  Simon Josefsson  <jas@extundo.com>
69658
69659         * lib/argp.h: New file, from glibc.
69660         * lib/argp-ba.c: New file, from glibc.
69661         * lib/argp-eexst.c: New file, from glibc.
69662         * lib/argp-fmtstream.c: New file, from glibc.
69663         * lib/argp-fmtstream.h: New file, from glibc.
69664         * lib/argp-fs-xinl.c: New file, from glibc.
69665         * lib/argp-help.c: New file, from glibc.
69666         * lib/argp-namefrob.h: New file, from glibc.
69667         * lib/argp-parse.c: New file, from glibc.
69668         * lib/argp-pv.c: New file, from glibc.
69669         * lib/argp-pvh.c: New file, from glibc.
69670         * lib/argp-xinl.c: New file, from glibc.
69671
69672 2003-06-10  Simon Josefsson  <jas@extundo.com>
69673
69674         * modules/strchrnul: New file.
69675
69676 2003-06-10  Simon Josefsson  <jas@extundo.com>
69677
69678         * modules/argp: New file.
69679
69680 2003-06-10  Simon Josefsson  <jas@extundo.com>
69681
69682         * m4/strchrnul.m4: New file.
69683
69684 2003-06-10  Simon Josefsson  <jas@extundo.com>
69685
69686         * lib/strchrnul.h: New file.
69687         * lib/strchrnul.c: New file.
69688
69689 2003-06-10  Bruno Haible  <bruno@clisp.org>
69690
69691         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
69692
69693 2003-06-07  Karl Berry  <karl@gnu.org>
69694
69695         * config/config.{guess,sub}: update from prep.
69696
69697 2003-06-07  Jim Meyering  <jim@meyering.net>
69698
69699         * modules/strtod: Use $(...) notation, not @...@ for
69700         AC_REPLACE'd variables.
69701         * modules/localcharset: Likewise.
69702
69703 2003-06-07  Jim Meyering  <jim@meyering.net>
69704
69705         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
69706         in place of my name in the copyright comment.
69707         Remove definition and uses of __P.
69708
69709         From coreutils.
69710         * lib/stat.c: Don't declare xmalloc explicitly.
69711         Instead, include "xalloc.h".
69712         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
69713         xrealloc, and xcalloc return values.
69714         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
69715         Improve comment.
69716         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
69717
69718 2003-06-07  Bruno Haible  <bruno@clisp.org>
69719
69720         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
69721         avoid AC_CONFIG_LINKS.
69722         * modules/fnmatch (Makefile.am): Use explicit creation rule for
69723         fnmatch.h, to avoid AC_CONFIG_LINKS.
69724         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
69725
69726 2003-06-07  Bruno Haible  <bruno@clisp.org>
69727
69728         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
69729         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
69730         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69731         directory.
69732         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
69733         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69734         directory.
69735
69736 2003-06-06  Jim Meyering  <jim@meyering.net>
69737
69738         Merge from coreutils.
69739         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
69740         Consolidate declarations and initializations of *_base* locals.
69741
69742         Merge from coreutils.
69743         This avoids a core dump on systems without GNU putenv,
69744         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
69745         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
69746         (unsetenv): New static function, from GNU libc.
69747         (rpl_putenv): Use it.
69748
69749         * lib/modechange.c: Remove trailing blanks.
69750
69751         Merge from coreutils.
69752         * lib/fsusage.c: Remove declaration of statfs.
69753         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
69754
69755         * lib/posixtm.c: Include <stdbool.h> unconditionally.
69756
69757 2003-06-06  Jim Meyering  <jim@meyering.net>
69758
69759         * lib/stdbool_.h: Renamed from stdbool.h.in.
69760
69761 2003-06-06  Jim Meyering  <jim@meyering.net>
69762             Bruno Haible  <bruno@clisp.org>
69763
69764         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
69765         Adjust Makefile.am snippet not to redirect directly to target.
69766         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
69767
69768 2003-06-05  Paul Eggert  <eggert@twinsun.com>
69769
69770         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
69771         mismatch, look in future quarters as well as past.  This fixes a
69772         bug when processing fall-backwards gaps immediately after a long
69773         period of daylight-saving time.
69774
69775         * lib/mktime.c: Assume freestanding C89 or better.
69776         (HAVE_LIMITS_H): Remove.  Assume it's 1.
69777         (__P): Remove; not used.
69778         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
69779         (mktime, not_equal_tm, print_tm, check_result,
69780         main): Use prototypes.  Use const * where appropriate.
69781         (main): Fix typo in testing code that uncovered by above changes.
69782         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
69783
69784 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69785
69786         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
69787         locale.h, localeconv.  This merges changes from coreutils.
69788
69789         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
69790         It can be removed after the next Autoconf is released.
69791         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
69792         needed.
69793
69794 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69795
69796         * lib/mktime.c: Fix Debian bug 177940
69797         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
69798         (localtime_offset): Now long int, not time_t, because we want it
69799         to be guaranteed to be signed.  All uses changed.
69800         (__mktime_internal): If overflow would occur when adding offset,
69801         don't add it.
69802
69803         Merge 'human' changes from coreutils.  Rewrite to support
69804         locale-specific notations like thousands separators.
69805         * lib/human.c: Simplify authorship notice.
69806         Include human.h immediately after config.h.
69807         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
69808         <limits.h>: Do not include, since human.h does.
69809         (SIZE_MAX, UINTMAX_MAX): New macros.
69810         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
69811         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
69812         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
69813         (power_letter): Renamed from suffixes.
69814         (generate_suffix_backwards): Remove.
69815         (adjust_value): Now takes int style (because of human.h changes)
69816         and long double value (for greater precision on some platforms).
69817         (group_number): New function.
69818         (human_readable): Use it.  Use integer options, not enum.
69819         Put the options before the sizes in the arg list.
69820         Support all the new options.
69821         The old human_readable function has been removed;
69822         use inttostr.h instead.
69823         (human_readable, default_block_size, humblock):
69824         Use uintmax_t, not int, for block sizes.
69825         (human_readable_inexact, block_size_types): Remove.
69826         (block_size_opts): New constant.
69827         (human_options): Renamed from human_block_size, with new signature
69828         that allows block sizes up to UINTMAX_MAX.  All callers changed.
69829         * lib/human.h: Add copyright and authorship notice.
69830         Include <limits.h> and <stdbool.h> unconditionally.
69831         (PARAMS): Remove.  All uses removed.
69832         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
69833         (enum human_inexact_style): Remove tag; now a nameless enum.
69834         (human_floor, human_ceiling, human_round_to_even): Now have
69835         values 2, 0, 1 rather than -1, 1, 0.
69836         (human_group_digits, human_suppress_point_zero, human_autoscale,
69837         human_base_1024, human_SI, human_B): New constants.
69838         (human_readable_inexact, human_block_size): Remove.
69839         (human_readable): Size args are now uintmax_t, not int.
69840         (human_options): New decl.
69841
69842         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
69843         unnecessary now that we assume C89 or better.  This change
69844         imported from coreutils.
69845
69846         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69847         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
69848         in the 2003-05-30 sync from glibc.
69849
69850         .h files should stand alone, but we shouldn't include <sys/types.h>
69851         if we can get away with just <stddef.h>.
69852
69853         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
69854         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
69855         rather than <sys/types.h>, as we merely need size_t.
69856         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
69857         to get size_t.
69858         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
69859         Include <stdio.h>, to get FILE.
69860         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
69861         memcasecmp.h has included <stddef.h> and all we need is size_t.
69862         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
69863         our interface, instead of including <sys/types.h>
69864
69865 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69866
69867         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
69868         now, as glibc mktime is buggy on non-glibc systems.
69869
69870 2003-06-03  Karl Berry  <karl@gnu.org>
69871
69872         * config/config.sub: update from prep.
69873
69874 2003-06-02  Paul Eggert  <eggert@twinsun.com>
69875
69876         [from coreutils]
69877         Fix some minor time-related bugs with POSIX time arguments.
69878         Some valid time stamps were being rejected (notably -1, and
69879         time stamps before 1900 on 64-bit hosts).  And some invalid
69880         time stamps were being accepted, e.g. September 31.
69881
69882         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
69883         that we can return (time_t) -1 successfully.
69884         * lib/posixtm.c: Likewise.
69885         [HAVE_STDBOOL_H]: Include <stdbool.h>.
69886         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
69887         (t): Remove static var.
69888         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
69889         of static var.  All uses changed.
69890         (year): Do not reject years before 1900; they can occur with
69891         64-bit time_t.
69892         (posix_time_parse): Do not check for out-of-range components;
69893         that is now the caller's responsibility, since our checks were
69894         only approximations.
69895         (posixtime): Use mktime to check for out-of-range components,
69896         since it knows them exactly.
69897         If mktime returns (time_t) -1, check whether an error actually occurred
69898         by invoking localtime on -1.
69899         (main) [TEST_POSIXTIME]: Check for input data errors, and report
69900         posixtime failures better.
69901         Improve the test data (in comments only).
69902
69903 2003-06-02  Karl Berry  <karl@gnu.org>
69904
69905         * config/mkinstalldirs (version): new variable.
69906         (--version): new option.
69907         (usage): improve message.
69908
69909 2003-05-30  Karl Berry  <karl@gnu.org>
69910
69911         * lib/mktime.c: update from libc.
69912
69913 2003-05-30  Bruno Haible  <bruno@clisp.org>
69914
69915         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
69916         * config/config.rpath: Upgrade to gettext-0.12.1.
69917
69918 2003-05-30  Bruno Haible  <bruno@clisp.org>
69919
69920         * m4/gettext.m4: Upgrade to gettext-0.12.1.
69921         * m4/nls.m4: New file, from gettext-0.12.1.
69922         * m4/po.m4: New file, from gettext-0.12.1.
69923         * m4/progtest.m4: Upgrade to gettext-0.12.1.
69924
69925 2003-05-30  Bruno Haible  <bruno@clisp.org>
69926
69927         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
69928         * lib/localcharset.h: Likewise.
69929         * lib/localcharset.c: Likewise.
69930
69931 2003-05-29  Karl Berry  <karl@gnu.org>
69932
69933         * config/config.rpath: update from gettext.
69934
69935 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69936
69937         Assume the headers required for C89 freestanding compilers.
69938         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
69939         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
69940         * m4/human.m4 (gl_HUMAN): Likewise.
69941         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
69942         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
69943         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69944         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
69945         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69946         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
69947
69948 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69949
69950         Assume the headers required for C89 freestanding compilers.
69951         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
69952         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
69953         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
69954         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
69955         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
69956         define, since <limits.h> is guaranteed to do that.
69957         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
69958         * lib/exclude.c: Include <stdbool.h> unconditionally.
69959         * lib/tempname.c: Include <stddef.h> unconditionally.
69960         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
69961         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
69962         <stddef.h> does that.
69963         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
69964         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
69965         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
69966         needed.
69967         * lib/xstrtol.c: Likewise.
69968         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
69969         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
69970
69971         * lib/addext.c (addext): Use assignment rather than cast, to avoid
69972         warnings on some platforms.
69973
69974         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69975         arbitrarily.
69976
69977 2003-05-26  Jim Meyering  <jim@meyering.net>
69978
69979         Merge in a change from coreutils:
69980         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
69981         that is guaranteed to be `no'.  Use `no_such_member' to indicate
69982         that condition, rather than `-1' which is slightly misleading.
69983         Change the name of the cache variable to have the gl_ prefix.
69984         Prompted by a patch from Richard Dawe for DJGPP.
69985
69986 2003-05-24  Karl Berry  <karl@gnu.org>
69987
69988         * config/config.guess: update from prep.
69989
69990 2003-05-22  Karl Berry  <karl@gnu.org>
69991
69992         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
69993
69994 2003-05-20  Karl Berry  <karl@gnu.org>
69995
69996         * config/config.guess: update from prep.
69997
69998 2003-05-18  Karl Berry  <karl@gnu.org>
69999
70000         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
70001         might actually be set by the user.
70002
70003         * config/depcomp, install-sh, mdate-sh: update from automake.
70004
70005 2003-05-17  Bruno Haible  <bruno@clisp.org>
70006
70007         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
70008         invalid expansion for AC_EGREP_CPP.
70009         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
70010         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
70011         Suggested by Akim Demaille <akim@epita.fr> in
70012         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
70013
70014 2003-05-12  Jim Meyering  <jim@meyering.net>
70015
70016         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
70017         the space-padded-by-default conversion specifiers, %e, %k, %l.
70018
70019 2003-05-12  Bruno Haible  <bruno@clisp.org>
70020
70021         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
70022         the string is longer than 4 KB.
70023
70024 2003-05-11  Karl Berry  <karl@gnu.org>
70025
70026         * config/config.{guess,sub}: update from prep.
70027
70028 2003-05-09  Bruno Haible  <bruno@clisp.org>
70029
70030         * modules/error: Add m4/strerror_r.m4 to file list.
70031
70032 2003-05-03  Bruno Haible  <bruno@clisp.org>
70033
70034         Upgrade to Unicode-4.0.
70035         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
70036         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
70037         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
70038         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
70039         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
70040         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
70041         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
70042         Change width of U+E0100..U+E01EF from 1 to 0.
70043
70044 2003-04-25  Jim Meyering  <jim@meyering.net>
70045
70046         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
70047         of type size_t, not int.
70048
70049 2003-04-25  Bruno Haible  <bruno@clisp.org>
70050
70051         * lib/copy-file.c: Include <stddef.h>, for size_t.
70052
70053 2003-04-21  Paul Eggert  <eggert@twinsun.com>
70054
70055         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
70056         code which expansion is under static control.  Patch imported from
70057         Akim Demaille's patch to Bison; see
70058         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
70059
70060 2003-04-14  Bruno Haible  <bruno@clisp.org>
70061
70062         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
70063
70064 2003-04-11  Jim Meyering  <jim@meyering.net>
70065
70066         Merge changes from Coreutils.
70067
70068         2003-03-22  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/strftime.c (widen): Cast alloca return value to proper type.
70071
70072         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
70073
70074         From GNU libc.
70075         * lib/strftime.c (my_strftime): Handle very large width
70076         specifications for numeric values correctly.  Improve checks for
70077         overflow.
70078
70079         2003-01-19  Jim Meyering  <jim@meyering.net>
70080
70081         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
70082         definitions.
70083         (nl_get_alt_digit) [! defined my_strftime]: Define.
70084         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
70085         _nl_get_alt_digit and _nl_get_walt_digit.
70086
70087         * lib/strftime.c (my_strftime): Merge in locale-related changes from
70088         libc. These changes have no effect outside of _LIBC.
70089
70090 2003-04-10  Bruno Haible  <bruno@clisp.org>
70091
70092         * modules/findprog: New file.
70093         * MODULES.html.sh (func_all_modules): Add it.
70094
70095 2003-04-10  Bruno Haible  <bruno@clisp.org>
70096
70097         * m4/findprog.m4: New file.
70098         * m4/eaccess.m4: New file.
70099
70100 2003-04-10  Bruno Haible  <bruno@clisp.org>
70101
70102         * lib/findprog.h: New file, from GNU gettext.
70103         * lib/findprog.c: New file, from GNU gettext.
70104
70105 2003-04-05  Jim Meyering  <jim@meyering.net>
70106
70107         Merge changes from Coreutils.
70108
70109         * lib/exclude.h (PARAMS): Remove definition and uses.
70110         * lib/exclude.c: Remove uses of `PARAMS'.
70111
70112         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
70113         Add test-cases for DOS filenames. Declare program_name.
70114         (main): Set up program_name.  Patch by Rich Dawe.
70115
70116         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70117         error from mntctl.
70118         Use mntctl's return value to drive the entry-processing loop, since
70119         we can't rely on the value of the vmt_length member in the last
70120         entry.  On some systems doing so could result in exhausting
70121         virtual memory.  Based in part on a patch from Mike Jetzer.
70122
70123 2003-04-04  Bruno Haible  <bruno@clisp.org>
70124
70125         * modules/linebreak: New file.
70126         * MODULES.html.sh (func_all_modules): Add it.
70127
70128 2003-04-04  Bruno Haible  <bruno@clisp.org>
70129
70130         * m4/linebreak.m4: New file.
70131
70132 2003-04-04  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/linebreak.h: New file, from GNU gettext.
70135         * lib/linebreak.c: New file, from GNU gettext with slight
70136         modifications.
70137         * lib/lbrkprop.h: New file, from GNU gettext.
70138
70139 2003-04-03  Bruno Haible  <bruno@clisp.org>
70140
70141         * modules/utf8-ucs4: New file.
70142         * modules/utf16-ucs4: New file.
70143         * modules/ucs4-utf8: New file.
70144         * modules/ucs4-utf16: New file.
70145         * MODULES.html.sh (func_all_modules): Add them.
70146
70147 2003-04-03  Bruno Haible  <bruno@clisp.org>
70148
70149         * m4/utf-ucs4.m4: New file.
70150         * m4/ucs4-utf.m4: New file.
70151
70152 2003-04-03  Bruno Haible  <bruno@clisp.org>
70153
70154         * lib/utf8-ucs4.h: New file, from GNU gettext.
70155         * lib/utf16-ucs4.h: New file, from GNU gettext.
70156         * lib/ucs4-utf8.h: New file, from GNU gettext.
70157         * lib/ucs4-utf16.h: New file, from GNU gettext.
70158
70159 2003-04-02  Bruno Haible  <bruno@clisp.org>
70160
70161         * modules/binary-io: New file.
70162         * MODULES.html.sh (func_all_modules): Add it.
70163
70164 2003-04-02  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/binary-io.h: New file, from GNU gettext.
70167
70168 2003-04-01  Bruno Haible  <bruno@clisp.org>
70169
70170         * modules/pathname: New file.
70171         * MODULES.html.sh (func_all_modules): Add it.
70172
70173 2003-04-01  Bruno Haible  <bruno@clisp.org>
70174
70175         * lib/pathname.h: New file, from GNU gettext.
70176         * lib/concatpath.c: New file, from GNU gettext.
70177
70178 2003-03-30  Bruno Haible  <bruno@clisp.org>
70179
70180         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
70181
70182 2003-03-30  Bruno Haible  <bruno@clisp.org>
70183
70184         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
70185         function chown() doesn't exist.
70186
70187 2003-03-28  Bruno Haible  <bruno@clisp.org>
70188
70189         * modules/copy-file: New file.
70190         * MODULES.html.sh (func_all_modules): Add it.
70191
70192 2003-03-28  Bruno Haible  <bruno@clisp.org>
70193
70194         * m4/copy-file.m4: New file.
70195
70196 2003-03-28  Bruno Haible  <bruno@clisp.org>
70197
70198         * lib/copy-file.h: New file, from GNU gettext.
70199         * lib/copy-file.c: New file, from GNU gettext.
70200
70201 2003-03-18  Jim Meyering  <jim@meyering.net>
70202
70203         * lib/quote.c (quote_n): Fix typo in comment.
70204
70205 2003-03-18  Bruno Haible  <bruno@clisp.org>
70206
70207         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
70208         checking.
70209         * m4/onceonly_2_57.m4: Likewise.
70210
70211 2003-03-17  Bruno Haible  <bruno@clisp.org>
70212
70213         * m4/onceonly.m4: Require autoconf 2.54 or newer.
70214         (m4_quote): Remove macro.
70215         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
70216
70217 2003-03-14  Jim Meyering  <jim@meyering.net>
70218
70219         Merge changes from Coreutils.
70220         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
70221         to be const, in order to avoid warnings.
70222         (obstack_room): Likewise.
70223         (obstack_empty_p): Likewise.
70224
70225 2003-03-14  Bruno Haible  <bruno@clisp.org>
70226
70227         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
70228         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
70229
70230 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70231
70232         Merge changes from Bison.
70233         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
70234         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
70235         when compiling Bison 1.875's `bitset bset = obstack_alloc
70236         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
70237         * lib/hash.c: Include <stdbool.h> unconditionally.
70238
70239 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70240
70241         * m4/onceonly.m4 (m4_quote): New macro.
70242         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
70243         Quote AC_FOREACH variable-expansions properly.
70244
70245 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70246
70247         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
70248
70249 2003-03-09  Paul Eggert  <eggert@twinsun.com>
70250
70251         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
70252         Reported by Bruce Becker; see:
70253         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
70254
70255 2003-03-03  Paul Eggert  <eggert@twinsun.com>
70256             Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
70259         Reported by John Hughes, see
70260         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
70261
70262 2003-02-20  Bruno Haible  <bruno@clisp.org>
70263
70264         * MODULES.html.sh (func_all_modules): Add poll.
70265
70266 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70267
70268         * modules/poll: New file.
70269
70270 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70271
70272         * lib/poll_.h: New file.
70273         * lib/poll.c: New file.
70274
70275 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70276
70277         * m4/poll.m4: New file.
70278
70279 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70280
70281         * modules/mathl: New file.
70282
70283 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70284
70285         * lib/mathl.h: New file.
70286         * lib/acosl.c: New file.
70287         * lib/asinl.c: New file.
70288         * lib/atanl.c: New file.
70289         * lib/ceill.c: New file.
70290         * lib/cosl.c: New file.
70291         * lib/expl.c: New file.
70292         * lib/floorl.c: New file.
70293         * lib/frexpl.c: New file.
70294         * lib/ldexpl.c: New file.
70295         * lib/logl.c: New file.
70296         * lib/sincosl.c: New file.
70297         * lib/sinl.c: New file.
70298         * lib/sqrtl.c: New file.
70299         * lib/tanl.c: New file.
70300         * lib/trigl.c: New file.
70301         * lib/trigl.h: New file.
70302
70303 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70304
70305         * m4/mathl.m4: New file.
70306
70307 2003-02-18  Bruno Haible  <bruno@clisp.org>
70308
70309         * MODULES.html.sh (func_all_modules): Add mathl.
70310
70311 2003-02-17  Bruno Haible  <bruno@clisp.org>
70312
70313         * modules/mkdtemp: New module.
70314         * MODULES.html.sh (func_all_modules): Add it.
70315
70316 2003-02-17  Bruno Haible  <bruno@clisp.org>
70317
70318         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
70319
70320 2003-02-17  Bruno Haible  <bruno@clisp.org>
70321
70322         * lib/mkdtemp.h: New file, from GNU gettext.
70323         * lib/mkdtemp.c: New file, from GNU gettext.
70324
70325 2003-02-02  Jim Meyering  <jim@meyering.net>
70326
70327         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
70328         e.g. glibc-2.2.93.
70329
70330 2003-01-31  Bruno Haible  <bruno@clisp.org>
70331
70332         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
70333         'rpl_rename'.
70334         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
70335         'rpl_strnlen'.
70336         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
70337         'rpl_strtod'.
70338         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
70339         'rpl_utime'.
70340
70341 2003-01-31  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/rename.c: #undef rename before defining rpl_rename.
70344         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
70345
70346 2003-01-30  Bruno Haible  <bruno@clisp.org>
70347
70348         * modules/vasnprintf, modules/vasprintf: New modules.
70349         * MODULES.html.sh (func_all_modules): Add them.
70350
70351 2003-01-30  Bruno Haible  <bruno@clisp.org>
70352
70353         * m4/signed.m4: New file, from GNU gettext.
70354         * m4/longdouble.m4: New file, from GNU gettext.
70355         * m4/wchar_t.m4: New file, from GNU gettext.
70356         * m4/wint_t.m4: New file, from GNU gettext.
70357         * m4/vasnprintf.m4: New file.
70358         * m4/vasprintf.m4: New file.
70359
70360 2003-01-30  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/printf-args.h: New file, from GNU gettext.
70363         * lib/printf-args.c: New file, from GNU gettext.
70364         * lib/printf-parse.h: New file, from GNU gettext.
70365         * lib/printf-parse.c: New file, from GNU gettext.
70366         * lib/vasnprintf.h: New file, from GNU gettext.
70367         * lib/vasnprintf.c: New file, from GNU gettext.
70368         * lib/asnprintf.c: New file, from GNU gettext.
70369         * lib/vasprintf.h: New file, from GNU gettext with modifications.
70370         * lib/vasprintf.c: New file, from GNU gettext.
70371         * lib/asprintf.c: New file, from GNU gettext.
70372
70373 2003-01-29  Bruno Haible  <bruno@clisp.org>
70374
70375         * modules/stpncpy: New module.
70376         * MODULES.html.sh (func_all_modules): Add it.
70377
70378 2003-01-29  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/stpncpy.m4: New file.
70381
70382 2003-01-29  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/stpncpy.h: New file, from GNU gettext with modifications.
70385         * lib/stpncpy.c: New file, from GNU gettext with modifications.
70386
70387 2003-01-28  Bruno Haible  <bruno@clisp.org>
70388
70389         * modules/c-ctype: New module.
70390         * MODULES.html.sh (func_all_modules): Add it.
70391
70392 2003-01-28  Bruno Haible  <bruno@clisp.org>
70393
70394         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
70395         Paul Eggert.
70396         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
70397         Paul Eggert.
70398
70399 2003-01-27  Bruno Haible  <bruno@clisp.org>
70400
70401         * modules/xsetenv: New module.
70402         * MODULES.html.sh (func_all_modules): Add it.
70403
70404 2003-01-27  Bruno Haible  <bruno@clisp.org>
70405
70406         * lib/xsetenv.h: New file, from GNU gettext.
70407         * lib/xsetenv.c: New file, from GNU gettext.
70408
70409 2003-01-23  Jim Meyering  <jim@meyering.net>
70410
70411         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
70412         from working on systems without dirfd (at least Irix and OSF1/Tru64).
70413
70414 2003-01-23  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/minmax: New module.
70417         * MODULES.html.sh (func_all_modules): Add it.
70418
70419 2003-01-23  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
70422         Eggert.
70423
70424 2003-01-22  Bruno Haible  <bruno@clisp.org>
70425
70426         * modules/exit: New module.
70427         * MODULES.html.sh (func_all_modules): Add it.
70428
70429 2003-01-22  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/exit.h: New file, from GNU gettext.
70432
70433 2003-01-19  Bruno Haible  <bruno@clisp.org>
70434
70435         * gnulib-tool: Recognize option --extract-maintainer.
70436         (func_get_maintainer): New function.
70437         * modules/*: Add Maintainer entry.
70438
70439 2003-01-16  Jim Meyering  <jim@meyering.net>
70440
70441         * m4/regex.m4: The `regex' struct is both input and output.
70442         Initialize it before each use.  Patch by Tim Waugh.
70443
70444 2003-01-16  Bruno Haible  <bruno@clisp.org>
70445
70446         * MODULES.html.sh: Add a table of contents. Add the module name as
70447         leftmost column. Add hyperlinks.
70448
70449 2003-01-15  Bruno Haible  <bruno@clisp.org>
70450
70451         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
70452
70453 2003-01-15  Bruno Haible  <bruno@clisp.org>
70454
70455         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
70456         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
70457         suffix.
70458
70459 2003-01-15  Bruno Haible  <bruno@clisp.org>
70460
70461         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
70462
70463 2003-01-15  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
70466         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
70467
70468 2003-01-14  Jim Meyering  <jim@meyering.net>
70469
70470         * lib/same.c (same_name): Tweak a comment.
70471
70472 2003-01-14  Bruno Haible  <bruno@clisp.org>
70473
70474         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
70475         when a string comparison is sufficient.
70476
70477 2003-01-14  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
70480         'unsigned int'.
70481
70482 2003-01-14  Bruno Haible  <bruno@clisp.org>
70483
70484         * lib/hash-pjw.c: Add comment about low quality of this function.
70485
70486 2003-01-13  Bruno Haible  <bruno@clisp.org>
70487
70488         * modules/stpcpy: Distribute lib/stpcpy.h.
70489         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
70490
70491 2003-01-13  Bruno Haible  <bruno@clisp.org>
70492
70493         * modules/*: Add a description.
70494         * modules/strpbrk: Fix Makefile.am snippet.
70495         * modules/strtoimax: Fix dependencies.
70496         * modules/strtoumax: Likewise.
70497
70498 2003-01-13  Bruno Haible  <bruno@clisp.org>
70499
70500         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
70501         * modules/alloca (Makefile.am): All object files depend on alloca.h.
70502         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
70503
70504 2003-01-13  Bruno Haible  <bruno@clisp.org>
70505
70506         * gnulib-tool (func_create_testdir): Store config/* files in the main
70507         directory.
70508         * config.rpath: Move to ...
70509         * config/config.rpath: ... here.
70510         * modules/gettext: Contains config/config.rpath, not config.rpath.
70511         * modules/iconv: Likewise.
70512
70513 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70514
70515         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70516         to avoid collisions with libcurses and libreadline.
70517
70518         * m4/getstr.m4: Remove.
70519         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
70520
70521 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70522
70523         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70524         to avoid collisions with libcurses and libreadline.
70525
70526         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
70527         * lib/getstr.h, getstr.c: Remove.
70528         * lib/getline.c: Include "getline.h", to check interface.
70529         Move body of old getstr.c here: this defines MIN_CHUNK and
70530         declares getdelim2, which is renamed from getstr.
70531         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
70532
70533         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
70534         All uses changed.
70535         * lib/linebuffer.h: Likewise.
70536         (readline): Remove backward-compatibility macro.
70537
70538 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70539
70540         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70541         to avoid collisions with libcurses and libreadline.
70542         * getstr: Remove.
70543         * MODULES.html.sh: Remove getstr.
70544         * modules/getline: Depend on unlocked-io, not getstr.
70545
70546 2003-01-12  Jim Meyering  <jim@meyering.net>
70547
70548         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
70549
70550 2003-01-10  Bruno Haible  <bruno@clisp.org>
70551
70552         * modules/alloca: Change Makefile.am requirements. Simplify Include
70553         requirements. Add lib/alloca_.h to file list.
70554
70555 2003-01-10  Bruno Haible  <bruno@clisp.org>
70556
70557         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
70558
70559 2003-01-10  Bruno Haible  <bruno@clisp.org>
70560
70561         * lib/alloca_.h: New file.
70562         * lib/getdate.y: Unconditionally include alloca.h.
70563         * lib/makepath.c: Likewise.
70564         * lib/setenv.c: Likewise.
70565         * lib/userspec.c: Likewise.
70566
70567 2003-01-09  Karl Berry  <karl@gnu.org>
70568
70569         * MODULES.html.sh: include `dirname $0` in PATH, to find
70570         gnulib-tool.
70571
70572 2003-01-09  Bruno Haible  <bruno@clisp.org>
70573
70574         * modules/stdbool: Change configure.ac, Makefile.am requirements.
70575         Simplify Include requirements. Add lib/stdbool.h.in to file list.
70576
70577 2003-01-09  Bruno Haible  <bruno@clisp.org>
70578
70579         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
70580
70581 2003-01-09  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/stdbool.h.in: New file.
70584
70585 2003-01-09  Bruno Haible  <bruno@clisp.org>
70586
70587         * gnulib-tool (func_all_modules): Ignore files ending in ~.
70588         * MODULES.html.sh: Likewise.
70589
70590 2003-01-08  Jim Meyering  <jim@meyering.net>
70591
70592         * lib/full-write.c: Undefine and define-away `const' after inclusion
70593         of errno.h, not before.  Suggestion from Bruno Haible.
70594
70595 2003-01-08  Bruno Haible  <bruno@clisp.org>
70596
70597         * modules/full-read: Depend on full-write.
70598
70599 2003-01-08  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/safe-read.c: Include specification header first, to ensure its
70602         selfcontainedness.
70603         * lib/full-write.c: Likewise.
70604
70605 2003-01-07  Jim Meyering  <jim@meyering.net>
70606
70607         * lib/full-write.c: Rework so that it may serve to define full_read,
70608         too.
70609         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
70610
70611 2003-01-07  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/strtoimax.c: Include <stdint.h> as an alternative to
70614         <inttypes.h>.
70615         * lib/xstrtol.h: Likewise.
70616         * lib/xstrtoimax.c: Likewise.
70617         * lib/xstrtoumax.c: Likewise.
70618         * lib/human.h: Likewise.
70619
70620         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
70621         on systems that have <inttypes.h> but not <stdint.h>.
70622
70623 2003-01-07  Bruno Haible  <bruno@clisp.org>
70624
70625         * MODULES.html.sh: Add copyright notice.
70626         (missed_files): Omit CVS directory entries.
70627         (func_module): Make it work with sed-3.02.
70628         * MODULES.txt: Remove file.
70629
70630 2003-01-06  Jim Meyering  <jim@meyering.net>
70631
70632         * lib/version-etc.c: Update year in translatable copyright string.
70633
70634 2003-01-03  Karl Berry  <karl@gnu.org>
70635
70636         * config/config.{guess,sub}: update from prep.
70637
70638 2003-01-02  Karl Berry  <karl@gnu.org>
70639
70640         * doc/COPYING.DOC: belatedly updated to 1.2.
70641
70642 2003-01-01  Karl Berry  <karl@gnu.org>
70643
70644         * gnulib-tool (func_verify_module): report module name $module in
70645         error message, not $1.
70646         * gnulib-tool (create-testdir): don't complain if destdir couldn't
70647         be created, only if it doesn't exist.
70648         * gnulib-tool (last_checkin_date): don't expand the $Date here.
70649
70650 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70651
70652         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
70653
70654 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70655
70656         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
70657         memcmp if strcoll doesn't work.
70658
70659 2002-12-31  Bruno Haible  <bruno@clisp.org>
70660
70661         * lib/utime.c (utime_null): No need to call ftruncate if the file was
70662         nonempty.
70663
70664 2002-12-31  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/memcoll.c (STRCOLL): New macro.
70667         (memcoll): Use it.
70668
70669 2002-12-31  Bruno Haible  <bruno@clisp.org>
70670
70671         * lib/localcharset.h: New file.
70672         * lib/localcharset.c: Include it.
70673         * lib/unicodeio.c: Likewise.
70674
70675 2002-12-31  Bruno Haible  <bruno@clisp.org>
70676
70677         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
70678         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
70679
70680 2002-12-31  Bruno Haible  <bruno@clisp.org>
70681
70682         * lib/getline.h: Include <stddef.h>, for size_t.
70683
70684         * lib/unicodeio.h: Include <stddef.h>, for size_t.
70685         * lib/unicodeio.c: Don't include <stddef.h>.
70686
70687 2002-12-31  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
70690         HAVE_TM_ZONE.
70691
70692 2002-12-24  Karl Berry  <karl@gnu.org>
70693
70694         * config/config.guess: update from prep.
70695
70696 2002-12-24  Bruno Haible  <bruno@clisp.org>
70697
70698         General infrasructure.
70699         * m4/README: Rewritten.
70700         * m4/onceonly.m4: New file.
70701         * m4/onceonly_2_57.m4: New file.
70702
70703         Module atexit.
70704         * m4/atexit.m4: New file.
70705
70706         Module strtod.
70707         * m4/strtod.m4: New file.
70708
70709         Module strtol.
70710         * m4/strtol.m4: New file.
70711
70712         Module strtoul.
70713         * m4/strtoul.m4: New file.
70714
70715         Module memchr.
70716         * m4/memchr.m4: New file.
70717
70718         Module memcmp.
70719         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
70720         (jm_FUNC_MEMCMP): Invoke it.
70721
70722         Module memcpy.
70723         * m4/memcpy.m4: New file.
70724
70725         Module memmove.
70726         * m4/memmove.m4: New file.
70727
70728         Module memset.
70729         * m4/memset.m4: New file.
70730
70731         Module strcspn.
70732         * m4/strcspn.m4: New file.
70733
70734         Module strpbrk.
70735         * m4/strpbrk.m4: New file.
70736
70737         Module strstr.
70738         * m4/strstr.m4: New file.
70739
70740         Module strerror.
70741         * m4/strerror.m4: New file.
70742
70743         Module mktime.
70744         * m4/mktime.m4: Renamed from jm-mktime.m4.
70745         (gl_PREREQ_MKTIME): New macro.
70746         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
70747
70748         Module malloc.
70749         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
70750         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
70751         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
70752
70753         Module realloc.
70754         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
70755         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
70756         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
70757
70758         Module strftime.
70759         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
70760         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
70761         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
70762         gl_TM_GMTOFF.
70763         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
70764
70765         Module xalloc.
70766         * m4/xalloc.m4: New file.
70767
70768         Module alloca.
70769         * m4/alloca.m4: New file.
70770
70771         Module putenv.
70772         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
70773         (jm_FUNC_PUTENV): Invoke it.
70774
70775         Module setenv.
70776         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
70777         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
70778         when invoked twice.
70779         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
70780         gt_FUNC_SETENV.
70781
70782         Module memrchr.
70783         * m4/memrchr.m4: New file.
70784
70785         Module stpcpy.
70786         * m4/stpcpy.m4: New file.
70787
70788         Module strcase.
70789         * m4/strcase.m4: New file.
70790
70791         Module strdup.
70792         * m4/strdup.m4: New file.
70793
70794         Module strnlen.
70795         * m4/strnlen.m4: New file.
70796
70797         Module strndup.
70798         * m4/strndup.m4: New file.
70799
70800         Module xstrtod.
70801         * m4/xstrtod.m4: New file.
70802
70803         Module xstrtol.
70804         * m4/xstrtol.m4: New file.
70805
70806         Module getdate.
70807         * m4/getdate.m4: New file.
70808
70809         Module unlocked-io.
70810         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
70811         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
70812         * m4/jm-glibc-io.m4n: Remove file.
70813
70814         Module long-options.
70815         * m4/long-options.m4: New file.
70816
70817         Module md5.
70818         * m4/md5.m4: New file.
70819
70820         Module sha.
70821         * m4/sha.m4: New file.
70822
70823         Module getstr.
70824         * m4/getstr.m4: New file.
70825
70826         Module getline.
70827         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
70828         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
70829         <sys/types.h>, for size_t. Use the function name gnu_getline, not
70830         simply getline. Infoke gl_PREREQ_GETLINE.
70831
70832         Module obstack.
70833         * m4/obstack.m4: New file.
70834
70835         Module hash.
70836         * m4/hash.m4: New file.
70837
70838         Module readtokens.
70839         * m4/readtokens.m4: New file.
70840
70841         Module strverscmp.
70842         * m4/strverscmp.m4: New file.
70843
70844         Module stdbool.
70845         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
70846         OSF/1.
70847
70848         Module strtoll.
70849         * m4/strtoll.m4: New file.
70850
70851         Module strtoull.
70852         * m4/strtoull.m4: New file.
70853
70854         Module strtoimax.
70855         * m4/strtoimax.m4: New file.
70856
70857         Module strtoumax.
70858         * m4/strtoumax.m4: New file.
70859
70860         Module xstrtoimax.
70861         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
70862         jm_AC_PREREQ_XSTRTOIMAX.
70863         Moved the strtol prerequisites to strtol.m4.
70864         Moved the strtoll prerequisites to strtoll.m4.
70865         Moved the strtoimax prerequisites to strtoimax.m4.
70866
70867         Module xstrtoumax.
70868         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
70869         jm_AC_PREREQ_XSTRTOUMAX.
70870         Moved the strtoul prerequisites to strtoul.m4.
70871         Moved the strtoull prerequisites to strtoull.m4.
70872         Moved the strtoumax prerequisites to strtoumax.m4.
70873
70874         Module chown.
70875         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
70876         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
70877
70878         Module dup2.
70879         * m4/dup2.m4: New file.
70880
70881         Module ftruncate.
70882         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
70883         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
70884
70885         Module getgroups.
70886         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
70887         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
70888
70889         Module gettimeofday.
70890         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
70891         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
70892         gl_PREREQ_GETTIMEOFDAY.
70893
70894         Module mkdir.
70895         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
70896         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
70897
70898         Module mkstemp.
70899         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
70900         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
70901         jm_AC_TYPE_UINTMAX_T.
70902         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
70903
70904         Module stat.
70905         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
70906         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
70907
70908         Module lstat.
70909         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
70910         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
70911
70912         Module timespec.
70913         * m4/timespec.m4 (gl_TIMESPEC): New macro.
70914         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
70915         * m4/st_mtim.m4: Indentation.
70916
70917         Module nanosleep.
70918         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
70919         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
70920         gl_PREREQ_NANOSLEEP.
70921
70922         Module regex.
70923         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
70924         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
70925         (gl_REGEX): New macro.
70926
70927         Module rename.
70928         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
70929         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
70930
70931         Module rmdir.
70932         * m4/rmdir.m4: New file.
70933
70934         Module utime.
70935         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
70936         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
70937         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
70938
70939         Module dirname.
70940         * m4/dirname.m4: New file.
70941
70942         Module getopt.
70943         * m4/getopt.m4: New file.
70944
70945         Module unistd-safer.
70946         * m4/unistd-safer.m4: New file.
70947
70948         Module fnmatch.
70949         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
70950         declaration.
70951         (gl_PREREQ_FNMATCH_EXTRA): New macro.
70952         (gl_FUNC_FNMATCH_POSIX): New macro.
70953         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
70954         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
70955         simply fnmatch.
70956
70957         Module exclude.
70958         * m4/exclude.m4: New file.
70959
70960         Module human.
70961         * m4/human.m4: New file.
70962
70963         Module acl.
70964         * m4/acl.m4: Nop.
70965
70966         Module backupfile.
70967         * m4/backupfile.m4: New file.
70968         * m4/d-ino.m4: Indentation.
70969
70970         Module fsusage.
70971         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
70972         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
70973         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
70974
70975         Module dirfd.
70976         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
70977         requirements.
70978
70979         Module euidaccess.
70980         * m4/euidaccess.m4: New file.
70981
70982         Module file-type.
70983         * m4/file-type.m4: New file.
70984
70985         Module fileblocks.
70986         * m4/fileblocks.m4: New file.
70987
70988         Module filemode.
70989         * m4/filemode.m4: New file.
70990
70991         Module isdir.
70992         * m4/isdir.m4: New file.
70993
70994         Module lchown.
70995         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
70996         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
70997
70998         Module makepath.
70999         * m4/makepath.m4: New file.
71000
71001         Module modechange.
71002         * m4/modechange.m4: New file.
71003
71004         Module mountlist.
71005         * m4/mountlist.m4: New file.
71006         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
71007         Indentation.
71008
71009         Module path-concat.
71010         * m4/path-concat.m4: New file.
71011
71012         Module pathmax.
71013         * m4/pathmax.m4: New file.
71014
71015         Module same.
71016         * m4/same.m4: New file.
71017
71018         Module save-cwd.
71019         * m4/save-cwd.m4: New file.
71020
71021         Module savedir.
71022         * m4/savedir.m4: New file.
71023
71024         Module xgetcwd.
71025         * m4/xgetcwd.m4: New file.
71026         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
71027
71028         Module xreadlink.
71029         * m4/xreadlink.m4: New file.
71030
71031         Module safe-read.
71032         * m4/safe-read.m4: New file.
71033
71034         Module safe-write.
71035         * m4/safe-write.m4: New file.
71036
71037         Module closeout.
71038         * m4/closeout.m4: New file.
71039
71040         Module stdio-safer.
71041         * m4/stdio-safer.m4: New file.
71042
71043         Module getpass.
71044         * m4/getpass.m4: New file.
71045
71046         Module getugroups.
71047         * m4/getugroups.m4: New file.
71048
71049         Module group-member.
71050         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
71051         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
71052
71053         Module idcache.
71054         * m4/idcache.m4: New file.
71055
71056         Module userspec.
71057         * m4/userspec.m4: New file.
71058
71059         Module gettime.
71060         * m4/clock_time.m4: New file.
71061         * m4/gettime.m4: New file.
71062
71063         Module settime.
71064         * m4/settime.m4: New file.
71065
71066         Module posixtm.
71067         * m4/posixtm.m4: New file.
71068
71069         Module gethostname.
71070         * m4/gethostname.m4: New file.
71071
71072         Module canon-host.
71073         * m4/canon-host.m4: New file.
71074
71075         Module gettext.
71076         * m4/codeset.m4: New file, from gettext-0.11.5.
71077         * m4/gettext.m4: New file, from gettext-0.11.5.
71078         * m4/glibc21.m4: New file, from gettext-0.11.5.
71079         * m4/iconv.m4: New file, from gettext-0.11.5.
71080         * m4/intdiv0.m4: New file, from gettext-0.11.5.
71081         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
71082         * m4/inttypes.m4: New file, from gettext-0.11.5.
71083         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
71084         * m4/isc-posix.m4: New file, from gettext-0.11.5.
71085         * m4/lcmessage.m4: New file, from gettext-0.11.5.
71086         * m4/lib-ld.m4: New file, from gettext-0.11.5.
71087         * m4/lib-link.m4: New file, from gettext-0.11.5.
71088         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
71089         * m4/progtest.m4: New file, from gettext-0.11.5.
71090         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
71091         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
71092         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
71093
71094         Module localcharset.
71095         * m4/localcharset.m4: New file.
71096
71097         Module hard-locale.
71098         * m4/hard-locale.m4: New file.
71099
71100         Module mbswidth.
71101         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
71102         onceonly macros.
71103         * m4/mbrtowc.m4: Add comment.
71104
71105         Module memcasecmp.
71106         * m4/memcasecmp.m4: New file.
71107
71108         Module memcoll.
71109         * m4/memcoll.m4: New file.
71110
71111         Module unicodeio.
71112         * m4/unicodeio.m4: New file.
71113
71114         Module rpmatch.
71115         * m4/rpmatch.m4: New file.
71116
71117         Module yesno.
71118         * m4/yesno.m4: New file.
71119
71120         Module exitfail.
71121         * m4/exitfail.m4: New file.
71122
71123         Module c-stack.
71124         * m4/c-stack.m4 (gl_C_STACK): New macro.
71125         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
71126
71127         Module error.
71128         * m4/error.m4 (gl_ERROR): New macro.
71129         (jm_PREREQ_ERROR): Use onceonly macros.
71130
71131         Module fatal.
71132         * m4/fatal.m4: New file.
71133
71134         Module getloadavg.
71135         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
71136         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
71137
71138         Module getpagesize.
71139         * m4/getpagesize.m4: New file.
71140
71141         Module getusershell.
71142         * m4/getusershell.m4: New file.
71143
71144         Module physmem.
71145         * m4/physmem.m4: New file.
71146
71147         Module posixver.
71148         * m4/posixver.m4: New file.
71149
71150         Module quotearg.
71151         * m4/quotearg.m4: New file.
71152
71153         Module quote.
71154         * m4/quote.m4: New file.
71155
71156         Module readutmp.
71157         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
71158
71159         Module sig2str.
71160         * m4/sig2str.m4: New file.
71161
71162         Other.
71163         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
71164         ulonglong.m4.
71165         * m4/intmax_t.m4: New file.
71166         * m4/d-type.m4: Indentation.
71167         * m4/jm-macros.m4: Update.
71168         * m4/prereq.m4 (jm_PREREQ): Update.
71169         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
71170         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
71171         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
71172         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
71173         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
71174         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
71175         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
71176         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
71177         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
71178         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
71179         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
71180         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
71181         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
71182         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
71183         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
71184         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
71185         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
71186         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
71187         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
71188
71189 2002-12-24  Bruno Haible  <bruno@clisp.org>
71190
71191         * MODULES.txt: Update according to m4/ changes.
71192
71193         Module gettext.
71194         * config.rpath: New file, from gettext-0.11.5.
71195
71196         * modules/*: New module descriptions.
71197         * gnulib-tool: New file.
71198         * MODULES.html.sh: New file.
71199
71200 2002-12-21  Karl Berry  <karl@gnu.org>
71201
71202         * doc/fdl.texi: update to version 1.2.
71203
71204 2002-12-19  Karl Berry  <karl@gnu.org>
71205
71206         * config/config.guess: update from prep.
71207
71208 2002-12-18  Bruno Haible  <bruno@clisp.org>
71209
71210         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
71211         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
71212
71213 2002-12-17  Bruno Haible  <bruno@clisp.org>
71214
71215         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
71216         stdlib.h, string.h.
71217
71218 2002-12-17  Bruno Haible  <bruno@clisp.org>
71219
71220         * lib/canon-host.c (strdup): Remove unused declaration.
71221
71222         * lib/fsusage.c: Include full_read.h.
71223         (get_fs_usage): Use full_read instead of safe_read.
71224
71225         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
71226
71227 2002-12-12  Karl Berry  <karl@gnu.org>
71228
71229         * config/config.guess: update from prep.
71230
71231 2002-12-11  Bruno Haible  <bruno@clisp.org>
71232
71233         * m4/setenv.m4: New file, from gettext-0.11.5.
71234
71235 2002-12-11  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
71238         not unsetenv().
71239         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
71240         modifications:
71241
71242         2002-12-11  Bruno Haible  <bruno@clisp.org>
71243
71244                 * setenv.c (alloca): Fall back to malloc.
71245                 (freea): New macro.
71246                 (setenv): Use freea() to free memory allocated with alloca().
71247
71248         2002-11-13  Bruno Haible  <bruno@clisp.org>
71249
71250                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
71251                 function declarations.
71252                 * unsetenv.c (unsetenv): Likewise.
71253
71254         2002-03-04  Bruno Haible  <bruno@clisp.org>
71255
71256                 Portability to AIX 4.3.3.
71257                 * unsetenv.c: New file, extracted from setenv.c.
71258                 * setenv.c: Move the unsetenv() function to unsetenv.c.
71259
71260         2001-12-20  Bruno Haible  <bruno@clisp.org>
71261
71262                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
71263                 use malloc instead. For SunOS 4.
71264
71265         2001-12-11  Bruno Haible  <bruno@clisp.org>
71266
71267                 * setenv.c: Declare alloca.
71268                 (compar_fn_t): New typedef.
71269                 (KNOWN_VALUE, STORE_VALUE): Use it.
71270
71271         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
71272         setenv.h.
71273
71274 2002-12-10  Paul Eggert  <eggert@twinsun.com>
71275
71276         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
71277         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
71278         Choose values that are less likely to collide with system fnmatch
71279         options.
71280         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
71281         defined (e.g., a pure POSIX system).
71282         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
71283         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
71284
71285 2002-12-06  Paul Eggert  <eggert@twinsun.com>
71286
71287         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
71288         a pain in practice to deal with generated m4 files.  This change
71289         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
71290
71291         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
71292         and jm-glibc-io.m4, as they are no longer a special case.
71293         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
71294         kludge and the auto-generation stuff.  Check only whether the
71295         functions are declared, not whether they exist, since older hosts
71296         that don't declare the functions can't use the optimization anyway.
71297
71298 2002-12-06  Jim Meyering  <jim@meyering.net>
71299
71300         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
71301
71302         Merge in changes from libc's misc/error.c, in preparation
71303         for the merge of gnulib's changes back into libc.
71304
71305         * lib/error.c (_): Define only if not already defined.
71306         Move definition to follow all #include directives.
71307         Include unlocked-io.h only if !_LIBC.
71308         [_LIBC]: Include <libio/libioP.h>.
71309         [USE_IN_LIBIO]: Include <libio/iolibio.h>
71310         (fflush): Tweak definition to use INTUSE.
71311         (putc): Define.
71312
71313 2002-12-05  Paul Eggert  <eggert@twinsun.com>
71314
71315         * lib/alloca.c [defined emacs]: Include "lisp.h".
71316         (xalloc_die) [defined emacs]: New macro.
71317         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
71318         [! defined emacs]: Include <xalloc.h>.
71319         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
71320         (pointer): Typedef to POINTER_TYPE *.
71321         (malloc): Remove decl; we now always use xmalloc.
71322         (alloca): Use old-style definition, since Emacs needs this.
71323         Check for arithmetic overflow when computing combined size.
71324
71325 2002-12-04  Paul Eggert  <eggert@twinsun.com>
71326
71327         Do not generate unlocked-io.h automatically, since it's easier to
71328         maintain it by hand.
71329
71330         * lib/unlocked-io.h: New file, from GNU diffutils,
71331         but with proper copyright notice and attribution.
71332         * lib/gen-uio: Remove.
71333         * lib/Makefile.am: Add copyright notice.
71334         (libfetish_a_SOURCES): Add unlocked-io.h.
71335         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
71336         (DISTCLEANFILES, io_functions): Remove macros.
71337         (EXTRA_DIST): Remove gen_uio.
71338         (unlocked-io.h): Remove rule.
71339
71340 2002-12-04  Jim Meyering  <jim@meyering.net>
71341
71342         Reflect the fact that stat.c and lstat.c are no longer generated.
71343         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
71344         (DISTCLEANFILES): Likewise.
71345         (EXTRA_DIST): Likewise.
71346         (all_local): Don't depend on stat.c or lstat.c.
71347         (stat.c, lstat.c): Remove rules.
71348         (EXTRA_DIST): Remove xstat.in.
71349
71350         * lib/xstat.in: Remove file.  Contents moved into stat.c.
71351         * lib/stat.c: New file.  Contents mostly from xstat.in.
71352         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
71353         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
71354
71355         * lib/safe-read.c: Rework so that it may serve to define safe_write,
71356         too.
71357         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
71358
71359 2002-12-03  Jim Meyering  <jim@meyering.net>
71360
71361         * lib/safe-read.c, safe-write.c: Change variable names and comments,
71362         but not semantics, to minimize the differences between these two files.
71363         (safe_read): Change comment to mention SAFE_READ_ERROR.
71364
71365         * lib/safe-read.c (IS_EINTR): Define.
71366         (safe_read): Use IS_EINTR in place of in-function cpp directives.
71367
71368 2002-12-02  Jim Meyering  <jim@meyering.net>
71369
71370         * lib/safe-read.c (EINTR): Define.
71371         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71372         (INT_MAX): Provide fallback.
71373         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
71374
71375         * lib/safe-read.h (SAFE_READ_ERROR): Define.
71376
71377 2002-12-02  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
71380         Define, taken from safe-read.c.
71381         (INT_MAX): Provide fallback.
71382         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
71383         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
71384
71385         * lib/safe-read.c (EINTR): Remove definition.
71386         (safe_read): Don't use EINTR if it is absent.
71387
71388 2002-12-01  Jim Meyering  <jim@meyering.net>
71389
71390         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
71391         zero.
71392         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
71393
71394 2002-11-27  Paul Eggert  <eggert@twinsun.com>
71395
71396         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
71397         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
71398         with `if (! (value < limit)) abort ();', for readability.
71399
71400 2002-11-26  Karl Berry  <karl@gnu.org>
71401
71402         * lib/strdup.c: copy from libc again, with jim's ok.
71403         * lib/.cppi-disable: re-add strdup.c
71404
71405 2002-11-25  Karl Berry  <karl@gnu.org>
71406
71407         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
71408         instead of "strtol.c".
71409
71410 2002-11-25  Karl Berry  <karl@gnu.org>
71411
71412         * config/install-sh: update from automake for variable quoting, $0 in
71413         error msgs, etc.
71414
71415         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
71416         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
71417         entry.
71418
71419 2002-11-25  Jim Meyering  <jim@meyering.net>
71420
71421         * lib/mktime.c: Sync from libc, now that it has the latest fix.
71422
71423 2002-11-24  Karl Berry  <karl@gnu.org>
71424
71425         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
71426         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
71427
71428 2002-11-24  Jim Meyering  <jim@meyering.net>
71429
71430         Update from coreutils:
71431
71432         * lib/mktime.c: Merge in changes from libc.
71433
71434         Avoid a link-time failure on some Linux systems.
71435         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
71436         (otherwise).
71437         (__mon_yday): Declare with the STATIC attribute.
71438         (__mktime_internal): Likewise.
71439         Based on a report from Greg Schafer.
71440
71441 2002-11-23  Jim Meyering  <jim@meyering.net>
71442
71443         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
71444         Use `unsigned', not `int', as type of index.
71445
71446         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
71447
71448         * lib/fsusage.c: Remove unneeded parentheses around operands of
71449         `defined'.
71450
71451 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71452
71453         * lib/quotearg.h: Allow multiple inclusion by surrounding with
71454         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
71455         so that we can be included first.
71456         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
71457         * lib/quotearg.c: Include quotearg.h immediately after config.h.
71458         No need to include stddef.h or sys/types.h any more.
71459         Surround local include files with "", not "<>".
71460         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
71461         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
71462         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
71463         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
71464         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
71465         (ISPRINT): Remove; no longer needed now that we assume C89.
71466
71467         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
71468         Preserve errno.
71469
71470         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
71471         quotearg_char): Use SIZE_MAX rather than
71472         (size_t) -1 when we are talking about "infinity".
71473
71474         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
71475
71476 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71477
71478         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
71479         hint that one should use `if (! x) abort ();' rather than `assert
71480         (x);', and anyway it's one less thing to worry about configuring.
71481         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
71482         hash_rehash, hash_insert): Use abort rather than assert.
71483
71484 2002-11-22  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/safe-read.h: Assume C89. Add comments.
71487         (safe_read): Change return type to size_t.
71488         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
71489         byte counts > SSIZE_MAX correctly.
71490         * lib/safe-write.h: New file.
71491         * lib/safe-write.c: New file.
71492         * lib/full-read.h: New file.
71493         * lib/full-read.c: New file.
71494         * lib/full-write.h: Assume C89. Add comments.
71495         * lib/full-write.c: Include safe-write.h.
71496         (full_write): Rewritten to use safe_write.
71497         Suggested by Jim Meyering and Paul Eggert.
71498
71499 2002-11-21  Jim Meyering  <jim@meyering.net>
71500
71501         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
71502
71503         Merge in changes from the coreutils.
71504
71505         2002-09-25  Paul Eggert  <eggert@twinsun.com>
71506         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
71507         <stdint.h>.
71508         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
71509         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
71510         int.  Work more efficiently if X is the same width as uintmax_t.
71511         Do not compare X to -1, to avoid bogus compiler warning.
71512         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
71513         Don't assume that f_frsize and f_bsize are the same type.
71514
71515         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
71516         warning on FreeBSD.
71517
71518         * lib/makepath.c (make_path): Restore umask *before* creating the final
71519         component.
71520         (make_path): Minor reformatting.
71521
71522         * lib/xmalloc.c: Adjust to work with new autoconf macros,
71523         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
71524         HAVE_MALLOC/HAVE_REALLOC.
71525
71526         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
71527         dummy ones.  At least on GNU/Linux systems, `auto' means something
71528         else.
71529         From Michael Stone.
71530
71531 2002-11-21  Bruno Haible  <bruno@clisp.org>
71532
71533         Remove case insensitive option matching.
71534         * lib/argmatch.h (argcasematch): Remove declaration.
71535         (ARGCASEMATCH): Remove macro.
71536         (__xargmatch_internal): Remove case_sensitive argument.
71537         (XARGMATCH): Update.
71538         (XARGCASEMATCH): Remove macro.
71539         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
71540         case_sensitive argument.
71541         (argcasematch): Remove function.
71542         (__xargmatch_internal): Remove case_sensitive argument.
71543         (main): Use XARGMATCH instead of XARGCASEMATCH.
71544
71545         * lib/xmalloc.c: Change compile-time error message. Add comment about
71546         required autoconf version.
71547
71548 2002-11-20  Paul Eggert  <eggert@twinsun.com>
71549
71550         Merge argmatch cleanups from Bison.  Assume C89.
71551
71552         * lib/argmatch.c: Include config.h here, not in argmatch.h.
71553         Include stdlib.h, for EXIT_FAILURE.
71554         Always include <string.h>, since we assume C89.
71555         (EXIT_FAILURE): Remove pre-C89 bug workaround.
71556         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
71557         Include <stddef.h> instead, since it's all we need for size_t.
71558         (PARAMS): Remove.  All uses removed.
71559         (ARRAY_CARDINALITY): Do not bother to #undef.
71560         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
71561         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71562         Remove unnecessary parentheses.
71563         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71564         Insert necessary parentheses.
71565         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
71566         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
71567
71568 2002-11-19  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
71571         * lib/mbswidth.h: Include <stddef.h>, for size_t.
71572
71573         * lib/mbswidth.h (PARAMS): Remove macro.
71574         (mbswidth, mbsnwidth): Use ANSI C function declarations.
71575         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
71576
71577         * lib/gcd.h (PARAMS): Remove macro.
71578         (gcd): Use ANSI C function declarations.
71579         * lib/gcd.c (gcd): Likewise.
71580
71581 2002-11-15  Bruno Haible  <bruno@clisp.org>
71582
71583         * lib/strcspn.c: Include <stddef.h>.
71584         (strcspn): Use ANSI C function declaration. Change return type to
71585         size_t. Use NULL.
71586         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
71587         (strpbrk): Use NULL.
71588         * lib/strpbrk.h (PARAMS): Remove macro.
71589         (strpbrk): Use ANSI C function declaration.
71590         * lib/strstr.c: Don't include <sys/types.h>.
71591         * lib/strstr.h (PARAMS): Remove macro.
71592         (strstr): Use ANSI C function declarations.
71593
71594 2002-11-14  Karl Berry  <karl@gnu.org>
71595
71596         * config/mkinstalldirs: `do' on separate line, instead of
71597         `for var; do'.
71598
71599 2002-11-06  Bruno Haible  <bruno@clisp.org>
71600
71601         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
71602         * lib/gcd.c (gcd): Likewise.
71603
71604 2002-11-05  Bruno Haible  <bruno@clisp.org>
71605
71606         * lib/gcd.h: New file, from gettext-0.11.5.
71607         * lib/gcd.c: New file, from gettext-0.11.5.
71608
71609 2002-11-05  Bruno Haible  <bruno@clisp.org>
71610
71611         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71612         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71613         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71614         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71615
71616         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
71617         <libintl.h>.
71618         * lib/makepath.c: Include gettext.h instead of <locale.h> and
71619         <libintl.h>.
71620
71621         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
71622         * lib/human.c: Include gettext.h instead of <libintl.h>.
71623         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
71624         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
71625         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
71626         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
71627         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
71628         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
71629         (textdomain): Remove definition.
71630         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
71631
71632         * lib/long-options.c: Remove include of <libintl.h> and definition of
71633         _.
71634         * lib/same.c: Remove include of <libintl.h> and definition of _.
71635
71636 2002-11-04  Owen Taylor  <otaylor@redhat.com>
71637
71638         * lib/config.charset: A few additions for Solaris.
71639
71640 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71641
71642         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
71643         * lib/localcharset.c (locale_charset): Declare as extern "C".
71644
71645 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71646
71647         * lib/config.charset: msdos in uk_UA uses CP1125.
71648
71649 2002-11-04  Bruno Haible  <bruno@clisp.org>
71650
71651         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
71652         * lib/strcase.h: New file, from GNU gettext-0.11.5.
71653         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
71654         * lib/strstr.h: New file, from GNU gettext-0.11.5.
71655         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
71656
71657 2002-11-04  Bruno Haible  <bruno@clisp.org>
71658
71659         * lib/localcharset.c (locale_charset): Don't return an empty string.
71660
71661 2002-11-04  Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
71664         aliases.
71665
71666 2002-11-04  Bruno Haible  <bruno@clisp.org>
71667
71668         * lib/config.charset: Update for newest glibc. Add canonical names
71669         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
71670
71671 2002-11-04  Bruno Haible  <bruno@clisp.org>
71672
71673         * lib/config.charset: Add support for NetBSD.
71674
71675 2002-11-04  Bruno Haible  <bruno@clisp.org>
71676
71677         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
71678
71679 2002-11-01  Bruno Haible  <bruno@clisp.org>
71680
71681         * configure.in: Add AC_CONFIG_AUX_DIR call.
71682         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
71683         test/Makefile.
71684         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
71685
71686 2002-09-28  Karl Berry  <karl@gnu.org>
71687
71688         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
71689         installed automake until the next release, since changes have been
71690         made.
71691
71692 2002-09-25  Karl Berry  <karl@gnu.org>
71693
71694         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
71695         * lib/getopt*: copy from libc/posix.
71696         * lib/gettext.h: copy from gettext.
71697         * lib/.cppi-disable: add strdup.c, gettext.h.
71698
71699 2002-09-25  Karl Berry  <karl@gnu.org>
71700
71701         * config/srclist.txt: enable gettext.h check.
71702         * config/config.{guess,sub}: update from prep.
71703         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
71704                 from automake 1.6.3.
71705         See srclist*.
71706
71707 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
71708
71709         * regex.c (PATFETCH): Remove the translating fetch.
71710         (PATFETCH_RAW): Rename to PATFETCH.
71711         (set_image_of_range): New fun.
71712         (SET_RANGE_TABLE_WORK_AREA): Use it.
71713         (regex_compile): Don't translate the pattern chars so eagerly.
71714         Only do it when inserting an `exactn' bytecode or when handling
71715         a char-range.
71716         (mutually_exclusive_p): Avoid empty statement.
71717
71718 2002-07-06  Jim Meyering  <meyering@lucent.com>
71719
71720         * m4/README: Don't mention Makefile.am.in.
71721         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
71722
71723 2002-07-01  Jim Meyering  <meyering@lucent.com>
71724
71725         * lib/c-stack.c: Include sys/time.h.
71726         From Volker Borchert.
71727
71728 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71729
71730         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
71731
71732 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71733
71734         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
71735         New macro.  Use it uniformly instead of
71736         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
71737         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
71738         reported by Vin Shelton.
71739
71740 2002-06-22  Paul Eggert  <eggert@twinsun.com>
71741
71742         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
71743         Do not assume SA_SIGINFO behavior.
71744         Bug reported by Jim Meyering on NetBSD 1.5.2.
71745
71746 2002-06-22  Jim Meyering  <meyering@lucent.com>
71747
71748         * m4/c-stack.m4: New file, from diffutils-2.8.2.
71749         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
71750
71751         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
71752         now that configure.ac uses AC_GNU_SOURCE.
71753         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
71754         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
71755
71756         Update to latest tools.  Suggestions from Paul Eggert.
71757         * m4/stdbool.m4: New file, from diffutils-2.8.2.
71758         * m4/gnu-source.m4: Update from diffutils-2.8.2.
71759         * m4/fnmatch.m4: Likewise.
71760         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
71761         to AC_HEADER_STDBOOL
71762
71763 2002-06-22  Jim Meyering  <meyering@lucent.com>
71764
71765         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
71766         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
71767
71768 2002-06-22  Jim Meyering  <meyering@lucent.com>
71769
71770         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
71771
71772         * lib/exitfail.c, exitfail.h: Likewise.
71773         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
71774
71775         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
71776         of fnmatch.h.
71777         (EXTRA_DIST): Add fnmatch_loop.c.
71778         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
71779
71780         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
71781         * lib/fnmatch.c: Update from diffutils-2.8.2.
71782         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
71783         * lib/fnmatch.h: Remove file.
71784
71785 2002-06-21  Jim Meyering  <meyering@lucent.com>
71786
71787         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
71788         * m4/mbrtowc.m4: Likewise.
71789
71790         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
71791         * m4/mbswidth.m4: Reflect name change:
71792         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
71793         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71794
71795         * m4/lib-link.m4: Update from gettext-0.11.2.
71796         * m4/gettext.m4: Likewise.
71797
71798         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
71799         From Alfred M. Szmidt.
71800
71801 2002-06-18  Paul Eggert  <eggert@twinsun.com>
71802
71803         * lib/file-type.h: Report an error if neither S_ISREG nor
71804         S_IFREG is defined, instead of using a test specific to glibc
71805         2.2.  This should be safe, since POSIX requires S_ISREG and
71806         Unix Version 7 had S_IFREG.  We don't need to check for
71807         <sys/types.h> since we don't use any symbols that it defines.
71808
71809 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
71810
71811         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
71812         $@-t, so that each temporary file name is unique and valid in the first
71813         8 characters, for operation under DOS.
71814
71815 2002-06-15  Paul Eggert  <eggert@twinsun.com>
71816
71817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
71818
71819 2002-06-15  Jim Meyering  <meyering@lucent.com>
71820
71821         Work even with DJGPP 2.03, which lacks support for symlinks.
71822         From Richard Dawe.
71823         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
71824         is defined.
71825         * lib/lchown.c (S_ISLNK): Likewise.
71826
71827 2002-06-15  Jim Meyering  <meyering@lucent.com>
71828
71829         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
71830         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
71831         have been included before this file.
71832
71833 2002-06-14  Jim Meyering  <meyering@lucent.com>
71834
71835         * lib/file-type.h: Use the version from diffutils-2.8.2.
71836         * lib/file-type.c: Likewise.
71837
71838 2002-06-07  Jim Meyering  <meyering@lucent.com>
71839
71840         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
71841         They're needed at least for NetBSD 1.5.2.
71842         ($statxfs_includes): Include those same headers.
71843         ($statxfs_includes): Include sys/vfs.h if available.
71844         ($statxfs_includes): Likewise for sys/statvfs.h.
71845         Check for the following members in both structs statfs and statvfs:
71846         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
71847
71848 2002-06-01  Jim Meyering  <meyering@lucent.com>
71849
71850         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
71851         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
71852
71853 2002-05-28  Jim Meyering  <meyering@lucent.com>
71854
71855         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
71856         Reported by Volker Borchert.
71857
71858 2002-05-27  Jim Meyering  <meyering@lucent.com>
71859
71860         Fix a problem seen only on nonconforming systems whereby ls.c's
71861         use of localtime, and then of gettimeofday would cause trouble:
71862         the localtime call used to initialize rpl_gettimeofday's save
71863         mechanism would clobber ls's current local time information so
71864         that in any long listing the first file would always be listed
71865         with date 1970-01-01.  Analysis by Volker Borchert.
71866
71867         * lib/gettimeofday.c (localtime): Undefine.
71868         (rpl_localtime): New function.
71869
71870 2002-05-27  Jim Meyering  <meyering@lucent.com>
71871
71872         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
71873         localtime.
71874
71875         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
71876         use the replacement function; it wouldn't resolve at link time.
71877         Reported by Volker Borchert.
71878
71879 2002-05-22  Jim Meyering  <meyering@lucent.com>
71880
71881         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
71882         file-type.h.
71883         * lib/file-type.h: New file.
71884         * lib/file-type.c (file_type): New file/function.  Extracted from
71885         diffutils.
71886
71887 2002-04-30  Jim Meyering  <meyering@lucent.com>
71888
71889         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
71890
71891 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71892
71893         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
71894
71895 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71896
71897         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
71898         Do not check for alloca.h (no longer used) or stdbool.h (was never
71899         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
71900
71901 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71902
71903         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
71904
71905 2002-04-29  Jim Meyering  <meyering@lucent.com>
71906
71907         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
71908         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
71909         Use AC_FUNC_STRNLEN here instead.
71910
71911         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
71912         With autoconf-2.53a, it's part of AC_PROG_CC.
71913
71914 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71915
71916         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
71917         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
71918
71919 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71920
71921         * lib/sig2str.h, lib/sig2str.c: New files.
71922         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
71923
71924 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71925
71926         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
71927         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
71928         of 127, since 64 is the largest conceivable number for ancient
71929         nonstandard hosts.
71930         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
71931
71932 2002-04-28  Jim Meyering  <meyering@lucent.com>
71933
71934         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
71935
71936 2002-04-24  Jim Meyering  <meyering@lucent.com>
71937
71938         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
71939         (jm_PREREQ): Use it.
71940
71941         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
71942         mach/mach.h fcntl.h.
71943         Check for this function: setlocale.
71944
71945 2002-04-24  Jim Meyering  <meyering@lucent.com>
71946
71947         * lib/gettext.h: New file, from Gettext.
71948         * lib/Makefile.am (INCLUDES): Remove -I../intl.
71949         (libfetish_a_SOURCES): Add gettext.h.
71950
71951 2002-04-16  Jim Meyering  <meyering@lucent.com>
71952
71953         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
71954         ut_pid, ut_id, ut_exit.
71955
71956 2002-04-16  Jim Meyering  <meyering@lucent.com>
71957
71958         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
71959         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
71960         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
71961
71962 2002-04-12  Jim Meyering  <meyering@lucent.com>
71963
71964         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
71965         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
71966         existence of the getmntinfo function.  Needed for Darwin 5.3.
71967
71968         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
71969         This is necessary at least on Darwin 5.3.
71970
71971         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
71972         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
71973         strnlen.o in the library, and that makes some versions of ranlib
71974         object.
71975
71976 2002-04-12  Jim Meyering  <meyering@lucent.com>
71977
71978         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
71979
71980 2002-04-09  Jim Meyering  <meyering@lucent.com>
71981
71982         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
71983         to be more precise.  Rather than saying we're checking whether the
71984         function `works', say what we're testing.
71985         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
71986         Reported by Bruno Haible.
71987
71988 2002-03-10  Jim Meyering  <meyering@lucent.com>
71989
71990         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
71991         Suggestion from Santiago Vila.
71992
71993 2002-03-08  Jim Meyering  <meyering@lucent.com>
71994
71995         * lib/rename.c: Mention that this wrapper is needed also on
71996         mips-dec-ultrix4.4 systems.
71997
71998 2002-03-02  Jim Meyering  <meyering@lucent.com>
71999
72000         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
72001         not HAVE_CLOCK_SETTIME.
72002
72003 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72004
72005         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
72006         Check for clock_settime.
72007
72008 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72009
72010         * lib/nanosleep.h: Rename to....
72011         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
72012
72013         * lib/gettime.c: New file.
72014         * lib/settime.c: New file.
72015         * lib/stime.c: Remove.
72016
72017         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
72018         timespec.h.  Remove nanosleep.h.
72019
72020 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72021
72022         * m4/acl.m4: New file.
72023         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
72024         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
72025
72026 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72027
72028         * lib/acl.c, lib/acl.h: New files.
72029         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
72030
72031 2002-02-24  Jim Meyering  <meyering@lucent.com>
72032
72033         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
72034         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
72035         cause trouble.  Reported by Nelson Beebe.
72036
72037 2002-02-23  Paul Eggert  <eggert@twinsun.com>
72038
72039         * lib/path-concat.c (xpath_concat): Reorder code to pacify
72040         compilers that don't know that xalloc_die never returns.
72041
72042 2002-02-20  Jim Meyering  <meyering@lucent.com>
72043
72044         * lib/getdate.c: Regenerate using bison-1.33.
72045
72046 2002-02-17  Jim Meyering  <meyering@lucent.com>
72047
72048         * config/config.guess (main): Don't use `head -1'; it's no longer
72049         portable. Use `sed 1q' instead.
72050
72051 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
72052
72053         * m4/codeset.m4: Upgrade to gettext-0.11.
72054         * m4/gettext.m4: Upgrade to gettext-0.11.
72055         * m4/glibc21.m4: Upgrade to gettext-0.11.
72056         * m4/iconv.m4: Upgrade to gettext-0.11.
72057         * m4/isc-posix.m4: Upgrade to gettext-0.11.
72058         * m4/lcmessage.m4: Upgrade to gettext-0.11.
72059         * m4/lib-ld.m4: New file, from gettext-0.11.
72060         * m4/lib-link.m4: New file, from gettext-0.11.
72061         * m4/lib-prefix.m4: New file, from gettext-0.11.
72062         * m4/progtest.m4: Upgrade to gettext-0.11.
72063
72064 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72065
72066         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
72067         (jm_PREREQ): Use it.
72068
72069 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72070
72071         * lib/posixver.c, lib/posixver.h: New files.
72072         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72073
72074 2002-02-02  Paul Eggert  <eggert@twinsun.com>
72075             Bruno Haible  <bruno@clisp.org>
72076
72077         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
72078         (fwrite_success_callback): New declaration.
72079         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
72080         print_unicode_char. Call failure callback instead of error.
72081         (fwrite_success_callback): New function.
72082         (exit_failure_callback): New function.
72083         (fallback_failure_callback): New function.
72084         (print_unicode_char): Call unicode_to_mb.
72085
72086 2002-01-26  Jim Meyering  <meyering@lucent.com>
72087
72088         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
72089         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
72090
72091 2002-01-26  Jim Meyering  <meyering@lucent.com>
72092
72093         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
72094
72095 2002-01-22  Paul Eggert  <eggert@twinsun.com>
72096
72097         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
72098
72099 2002-01-22  Jim Meyering  <meyering@lucent.com>
72100
72101         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
72102         Otherwise, some versions of automake would omit the rule that makes
72103         Makefile from Makefile.in.
72104
72105 2002-01-21  Paul Eggert  <eggert@twinsun.com>
72106
72107         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
72108         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72109         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
72110         (memcoll): Set errno to zero if there is no error.
72111
72112         * lib/quotearg.c (quotearg_buffer_restyled):
72113         Fix bug with quoting buffers containing NUL when backslashing escapes.
72114         This bug was exposed by the other changes in this patch.
72115         (quotearg_n_options): New arg ARGSIZE.
72116         All callers changed.
72117         (quoting_options_from_style): New function.
72118         (quotearg_n_style): Use it.
72119         (quotearg_n_style_mem): New function.
72120
72121         * lib/quotearg.h (quotearg_n_style_mem): New function.
72122
72123 2002-01-19  Jim Meyering  <meyering@lucent.com>
72124
72125         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
72126         Remove useless quotes: DF_PROG="df".
72127         * m4/strnlen.m4: New file.
72128
72129 2002-01-16  Paul Eggert  <eggert@twinsun.com>
72130
72131         * lib/backupfile.c (ISDIGIT): Comment fix.
72132         * lib/getdate.y (ISDIGIT): Likewise.
72133         * lib/posixtm.c (ISDIGIT, year): Likewise.
72134         * lib/strverscmp.c (ISDIGIT): Likewise.
72135         * lib/userspec.c (ISDIGIT): Likewise.
72136
72137 2002-01-16  Jim Meyering  <meyering@lucent.com>
72138
72139         * lib/getdate.y: Add three semicolons, each just before a closing
72140         brace. Bison (as of version 1.31) no longer papers over that mistake.
72141
72142 2002-01-05  Jim Meyering  <meyering@lucent.com>
72143
72144         * lib/version-etc.c (version_etc_copyright): Update copyright year.
72145
72146 2001-12-19  Paul Eggert  <eggert@twinsun.com>
72147
72148         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
72149         not silently exit merely because the output buffer happens to
72150         have nothing pending.
72151
72152 2001-12-18  Paul Eggert  <eggert@twinsun.com>
72153
72154         See the big note in ../ChangeLog.
72155         * lib/human.c (suffixes): Prefer K to k for 1024.
72156         (generate_suffix_backwards): New function.
72157         (human_readable_inexact): Use it.
72158         * lib/xstrtol.c (__xstrtol): If there is no number but there
72159         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
72160         Accept 'K' as well as 'k'.
72161
72162 2001-12-15  Jim Meyering  <meyering@lucent.com>
72163
72164         * lib/regex.h (__restrict_arr): Update from libc.
72165
72166         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
72167         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
72168         (STREQ): Define.
72169
72170 2001-12-14  Jim Meyering  <meyering@lucent.com>
72171
72172         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
72173         Suggestion from Bruno Haible.
72174
72175 2001-12-10  Jim Meyering  <meyering@lucent.com>
72176
72177         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
72178         xrealloc, Instead, include "xalloc.h".
72179         (initbuffer): Don't cast xmalloc return value to char*.
72180         (readline): Reword comment.
72181         Don't cast xrealloc return value to char*
72182         Return NULL, not 0.
72183
72184 2001-12-09  Jim Meyering  <meyering@lucent.com>
72185
72186         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
72187         about `signed and unsigned type in conditional expression'.
72188         * lib/posixtm.c (posix_time_parse): Likewise.
72189
72190         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
72191
72192         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
72193         to avoid a pedantic warning.
72194
72195         * lib/getstr.c: Don't include assert.h.
72196         (getstr): Remove warning-evoking assertions.
72197         Return -1 if offset parameter is out of bounds.
72198         Change the type of a local from int to size_t.
72199
72200         * lib/strftime.c (my_strftime_localtime_r): Include this function
72201         definition in the `#if ! HAVE_TM_GMTOFF' block.
72202
72203         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
72204         Include xalloc.h instead.
72205
72206 2001-12-02  Jim Meyering  <meyering@lucent.com>
72207
72208         * lib/tempname.c: Don't declare getenv, thus reverting the change of
72209         2001-11-18.  It's no longer necessary, now that stdlib.h is always
72210         included.
72211
72212         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
72213         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
72214
72215 2001-11-30  Akim Demaille  <akim@epita.fr>
72216
72217         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
72218         before being defined.
72219
72220 2001-11-27  Paul Eggert  <eggert@twinsun.com>
72221
72222         * lib/quotearg.h (quotearg_n, quotearg_n_style):
72223         First arg is int, not unsigned.
72224         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
72225         (SIZE_MAX, UINT_MAX): New macros.
72226         (quotearg_n_options): Abort if N is negative.
72227         Avoid overflow check on hosts where size_t is 64 bits and int
72228         is 32 bits, as overflow is impossible there.
72229         Fix off-by-one typo that caused unnecessary reallocation.
72230
72231 2001-11-27  Jim Meyering  <meyering@lucent.com>
72232
72233         * lib/tempname.c: Merge with version from libc.
72234         * lib/regex.c: Likewise.
72235
72236         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
72237         systems for which STDC_HEADERS is 0, it was not included, resulting in
72238         a warning about an integer-to-pointer conversion problem with getenv.
72239         Reported by Volker Borchert.
72240
72241 2001-11-26  Jim Meyering  <meyering@lucent.com>
72242
72243         * lib/gtod.h: Remove file.
72244         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
72245         * lib/gettimeofday.c: Don't include gtod.h.
72246         (GTOD_init): Remove function.
72247         (rpl_gettimeofday): Do its job here instead, rather than aborting.
72248         Suggestion from Volker Borchert.
72249
72250 2001-11-23  Jim Meyering  <meyering@lucent.com>
72251
72252         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
72253         it.
72254         * lib/hash.c (struct hash_table): Define it here instead.
72255
72256 2001-11-22  Jim Meyering  <meyering@lucent.com>
72257
72258         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
72259
72260 2001-11-20  Jim Meyering  <meyering@lucent.com>
72261
72262         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
72263         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
72264
72265 2001-11-19  Jim Meyering  <meyering@lucent.com>
72266
72267         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
72268         directory.  Use "conftestXXXXXX" as the template.
72269         Suggestion from Paul Eggert.
72270
72271         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
72272         immediately, so the test doesn't mistakenly hit the max-open-files
72273         limit.
72274
72275 2001-11-18  Paul Eggert  <eggert@twinsun.com>
72276
72277         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
72278         (TEMPORARIES): New macro.
72279         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
72280         removes an artificial limitation (e.g. HP-UX 10.20, where
72281         TMP_MAX is 17576).
72282
72283 2001-11-18  Jim Meyering  <meyering@lucent.com>
72284
72285         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
72286
72287 2001-11-18  Jim Meyering  <meyering@lucent.com>
72288
72289         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
72290         on SunOS 4.
72291
72292         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
72293         files will be created before anything else.
72294
72295 2001-11-17  Paul Eggert  <eggert@twinsun.com>
72296
72297         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
72298         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
72299
72300 2001-11-17  Jim Meyering  <meyering@lucent.com>
72301
72302         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
72303         Prompted by a report from Bob Proulx.
72304
72305         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
72306         Instead, require UTILS_FUNC_MKSTEMP.
72307
72308 2001-11-17  Jim Meyering  <meyering@lucent.com>
72309
72310         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
72311         Now, that's done as part of AC_FUNC_STRTOD.
72312
72313 2001-11-17  Jim Meyering  <meyering@lucent.com>
72314
72315         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
72316         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
72317         rather than group writable.  Patch by Juan F. Codagnone.
72318
72319         * lib/readtokens.c: Remove explicit declarations of xmalloc and
72320         xrealloc, Instead, include "xalloc.h".
72321
72322         * lib/mountlist.c: Include unlocked-io.h after all system headers.
72323         Remove explicit declarations of xmalloc, xrealloc,
72324         and xstrdup.  Instead, include "xalloc.h".
72325
72326         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
72327         unlocked-io.h.
72328         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
72329         Likewise.
72330         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
72331
72332         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
72333         Reported by Padraig Brady.
72334
72335         * lib/mkstemp.c: #undef mkstemp.
72336         Include config.h.
72337         (rpl_mkstemp): Rename from mkstemp.
72338         Protoize.
72339
72340 2001-11-16  Jim Meyering  <meyering@lucent.com>
72341
72342         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
72343         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
72344         determine the amount of total physical memory, use pstat_getstatic.
72345         HPUX-11 doesn't define _SC_PHYS_PAGES.
72346         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
72347         If sysconf couldn't be used to determine the amount of available
72348         physical memory, use both pstat_getstatic and pstat_getdynamic.
72349         Based on a patch from Bob Proulx.
72350
72351 2001-11-10  Jim Meyering  <meyering@lucent.com>
72352
72353         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
72354         (jm_PREREQ): Use it.
72355
72356 2001-11-09  Jim Meyering  <meyering@lucent.com>
72357
72358         * m4/jm-macros.m4: Require autoconf-2.52f.
72359         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
72360         Use these AC_-prefixed names, not the AM_-prefixed ones.
72361
72362         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
72363
72364 2001-11-05  Jim Meyering  <meyering@lucent.com>
72365
72366         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
72367
72368 2001-11-04  Jim Meyering  <meyering@lucent.com>
72369
72370         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
72371         $DEFS.
72372
72373 2001-11-03  Jim Meyering  <meyering@lucent.com>
72374
72375         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
72376         of AC_DEFUN.
72377
72378         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
72379         know the name of the variable in the macro definition.
72380
72381 2001-11-03  Jim Meyering  <meyering@lucent.com>
72382
72383         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
72384         in argmatch_to_argument call.
72385
72386         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
72387         argument.
72388
72389         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
72390         e.g., a fault due to an attempt to free a NULL pointer.
72391
72392 2001-11-01  Jim Meyering  <meyering@lucent.com>
72393
72394         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
72395         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
72396
72397 2001-11-01  Jim Meyering  <meyering@lucent.com>
72398
72399         * lib/dirfd.c, lib/dirfd.h: New files.
72400         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
72401
72402         * lib/hash.c (hash_print) [TESTING]: Clean up.
72403
72404 2001-10-22  Paul Eggert  <eggert@twinsun.com>
72405
72406         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
72407         to avoid a warning if -Wall.
72408
72409 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
72410
72411         * README: New file
72412         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
72413         (per RMS's instructions, this is now the canonical source)
72414         * lgpl/, gpl/: New directories.
72415
72416 2001-10-21  Paul Eggert  <eggert@twinsun.com>
72417
72418         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
72419
72420 2001-10-21  Jim Meyering  <meyering@lucent.com>
72421
72422         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
72423         this code would end up calling gettext even in packages built
72424         with --disable-nls.
72425         * lib/getopt.c (_): Likewise.
72426         * lib/regex.c (_): Likewise.
72427
72428 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72429
72430         * m4/error.m4 (jm_PREREQ_ERROR):
72431         Do not invoke AC_CHECK_FUNCS with strerror_r, as
72432         AC_FUNC_STRERROR_R does that.
72433         Check for strerror declaration.
72434
72435         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
72436         are supposed to have them these days.
72437         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
72438         Merge changes from latest Autoconf CVS.
72439         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
72440         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
72441         POSIX decided to standardize on the int flavor of strerror_r.
72442
72443 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72444
72445         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
72446         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
72447         Use strerror_r that is only a macro, even if it is not a function.
72448         (strerror): Check for HAVE_DECL_STRERROR before declaring.
72449         (private_strerror): Use prototypes, not old-style function definition.
72450         (print_errno_message): New function.
72451         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
72452         char*-flavored one.
72453         (error_tail, error, error_at_line): Use it.
72454
72455 2001-10-11  Jim Meyering  <meyering@lucent.com>
72456
72457         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
72458         and quote_n (1, ... to avoid clobbering a buffer.
72459
72460 2001-10-05  Jim Meyering  <meyering@lucent.com>
72461
72462         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
72463         hash-pjw.h.
72464         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
72465         * lib/hash-pjw.h: New file.
72466
72467 2001-09-30  Jim Meyering  <meyering@lucent.com>
72468
72469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
72470         `struct fsstat' has the `f_fstypename' member.
72471         Use that to define FS_TYPE, which is now used to make
72472         the getfsstat link test tighter.
72473
72474 2001-09-30  Jim Meyering  <meyering@lucent.com>
72475
72476         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
72477         Include <sys/ucred.h>, for Apple Darwin.
72478         Include sys/mount.h and sys/fs_types.h only if available.
72479         (FS_TYPE): Define.
72480         (read_filesystem_list): Use FS_TYPE.
72481
72482 2001-09-29  Paul Eggert  <eggert@twinsun.com>
72483
72484         * lib/exclude.c (excluded_filename): 0 -> false, since it's
72485         a boolean context.
72486
72487 2001-09-29  Jim Meyering  <meyering@lucent.com>
72488
72489         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72490         [one-argument getmntent function]): Include stdio.h before mntent.h.
72491         SunOS 4.1.x needs it for the declaration of `FILE'.
72492         Patch by Volker Borchert.
72493
72494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72495         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
72496         sys/fs_types.h, and make the link-test for getfsstat guard #include
72497         directives with appropriate #if HAVE_*_H tests so that we can
72498         detect getfsstat on Apple Darwin1.3.7 systems.
72499         Reported by Nelson Beebe.
72500         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
72501
72502 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72503
72504         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72505         #defines strtoimax.  Also treat the other strto* functions
72506         like strtoimax.
72507
72508         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72509         Check for strtoul and strtoumax,
72510         as those declarations are made even in the signed case.
72511         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
72512         Likewise, for strtol and strtoimax.
72513
72514 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72515
72516         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72517         #defines strtoimax.  Also treat the other strto* functions
72518         like strtoimax.
72519
72520         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
72521         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
72522         (strtoimax, strtoumax): Do not declare if already defined as a macro.
72523
72524 2001-09-26  Jim Meyering  <meyering@lucent.com>
72525
72526         Most macros in unlocked-io.h had the wrong number of arguments.
72527         * lib/gen-uio: New script.
72528         (USE_UNLOCKED_IO): Define to 1 if not already defined.
72529         * lib/unlocked-io.hin: Remove file.
72530         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
72531         rather than trying to embed it here.
72532         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
72533         Reported by Padraig Brady.
72534
72535 2001-09-25  Volker Borchert  <bt@teknon.de>
72536
72537         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
72538         `result'.
72539
72540 2001-09-24  Jim Meyering  <meyering@lucent.com>
72541
72542         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
72543
72544 2001-09-23  Jim Meyering  <meyering@lucent.com>
72545
72546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
72547         instead of the mere test for existence of mntent.h.  The latter
72548         would get a false-positive on AIX 3.4 systems.
72549         In the outer getmntent if-block, don't die if neither of the getmntent
72550         tests succeeds.  Instead, just fall through and continue with the
72551         remaining tests.
72552
72553 2001-09-23  Jim Meyering  <meyering@lucent.com>
72554
72555         * lib/mountlist.c: Remove useless parentheses in #if directives.
72556         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
72557         the deprecated MOUNTED symbol is no longer defined in mntent.h.
72558
72559 2001-09-22  Jim Meyering  <meyering@lucent.com>
72560
72561         * m4/gettext.m4: New file.  From gettext.
72562         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
72563         * m4/progtest.m4: Likewise
72564         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
72565         * m4/glibc21.m4: Likewise.
72566
72567         * m4/libintl.m4: Remove.  No longer used.
72568
72569 2001-09-22  Jim Meyering  <meyering@lucent.com>
72570
72571         * lib/localcharset.c: Update from latest gettext.
72572         * lib/config.charset: Likewise.
72573
72574 2001-09-20  Jim Meyering  <meyering@lucent.com>
72575
72576         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
72577         strtoimax.
72578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
72579         strtoumax.
72580
72581 2001-09-20  Jim Meyering  <meyering@lucent.com>
72582
72583         * lib/xstrtol.c (strtoimax): Guard declaration with
72584         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
72585         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
72586         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
72587         (strtoumax): Likewise, for completeness (it wasn't necessary).
72588
72589 2001-09-17  Paul Eggert  <eggert@twinsun.com>
72590
72591         * lib/strtoimax.c (HAVE_LONG_LONG):
72592         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
72593         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
72594         to work around bug in IBM C compiler.
72595
72596 2001-09-17  Jim Meyering  <meyering@lucent.com>
72597
72598         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
72599         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
72600         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
72601         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
72602         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
72603         whenever the right hand side need not be expanded by the shell.
72604
72605 2001-09-16  Paul Eggert  <eggert@twinsun.com>
72606
72607         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
72608         library.  It's not correct, as some older glibcs are buggy.
72609         fnmatch wasn't fixed until glibc 2.2.
72610
72611         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
72612         special shell magic here.
72613
72614 2001-09-16  Jim Meyering  <meyering@lucent.com>
72615
72616         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
72617         * m4/jm-macros.m4: Require it.
72618
72619 2001-09-16  Jim Meyering  <meyering@lucent.com>
72620
72621         * lib/mkdir.c: New file.
72622
72623 2001-09-15  Jim Meyering  <meyering@lucent.com>
72624
72625         * m4/jm-macros.m4: Check for help2man.
72626
72627 2001-09-11  Jim Meyering  <meyering@lucent.com>
72628
72629         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
72630         The body, by Paul Eggert, was moved here from configure.in.
72631         * m4/jm-macros.m4: Require UTILS_HOST_OS.
72632
72633 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72634
72635         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
72636         (jm_PREREQ): Use it.
72637
72638 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72639
72640         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
72641         Use ssize_t, not int, to store result of readlink.
72642         Check for ssize_t overflow as well as size_t overflow,
72643         as POSIX says the result of readlink is implementation-defined
72644         when ssize_t overflows.
72645         Remove unnecessary cast to char*.
72646         Use free+malloc instead of realloc, as the storage doesn't need
72647         to be preserved and it's clearer and can be more efficient that way.
72648         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
72649         * lib/xreadlink.h (xreadlink): Update prototype.
72650
72651 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72652
72653         * lib/xgetcwd.c: Revert some of the previous change; intead,
72654         fix the HAVE_GETCWD_NULL code to behave more like the
72655         !HAVE_GETCWD_NULL code used to.
72656
72657         Include "xalloc.h".
72658         (xgetcwd): Do not return NULL when memory is exhausted; instead,
72659         invoke xalloc_die.
72660
72661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72662
72663         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
72664         sys/param.h, as pathmax.h includes them.
72665
72666 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72667
72668         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
72669         (jm_PREREQ_XGETCWD): New macro.
72670
72671         * m4/getcwd.m4: New file.
72672
72673 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72674
72675         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
72676         like the HAVE_GETCWD_NULL code.
72677         Include pathmax.h if not HAVE_GETCWD.
72678         Do not include xalloc.h.
72679         (INITIAL_BUFFER_SIZE): New symbol.
72680         Do not use xmalloc / xrealloc, since the caller is responsible for
72681         handling errors.  Preserve errno around `free' during failure.
72682         Do not overrun buffer when using getwd.
72683
72684 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72685
72686         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
72687         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
72688         getcwd (NULL, 0).
72689
72690 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72691
72692         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
72693         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
72694         spotted by Jim Meyering.
72695
72696 2001-09-03  Jim Meyering  <meyering@lucent.com>
72697
72698         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
72699         failure.
72700
72701 2001-09-02  Jim Meyering  <meyering@lucent.com>
72702
72703         * lib/error.c: Update from GNU libc.
72704
72705 2001-09-01  Jim Meyering  <meyering@lucent.com>
72706
72707         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
72708         Used by df.
72709
72710 2001-09-01  Jim Meyering  <meyering@lucent.com>
72711
72712         * lib/xreadlink.c: New file.
72713         * lib/xreadlink.h: New file.
72714         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
72715         xreadlink.h.
72716
72717         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
72718         doesn't conflict with sparc Solaris 7's definition in
72719         /usr/include/sys/int_types.h.
72720
72721         * lib/exclude.c: Use `""', not `<>' to #include non-system header
72722         files.
72723         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
72724         and strncasecmp as r-values.  Unixware didn't have declarations.
72725
72726 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72727
72728         * lib/xstrtol.h: Add copyright notice.
72729         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
72730         LONGINT_INVALID_SUFFIX_CHAR.
72731
72732 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72733
72734         * lib/xstrtol.c (strtoimax): New decl.
72735
72736 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72737
72738         * lib/xgetcwd.c: Don't include pathmax.h.
72739         Include stdlib.h and unistd.h if available.
72740         Include xalloc.h.
72741         (xmalloc, xstrdup, free): Remove decls.
72742         (xgetcwd): Don't assume sizes fit in unsigned.
72743         Check for overflow when computing sizes.
72744         Simplify reallocation code.
72745
72746 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72747
72748         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
72749         a directory's st_size can have an arbitrary value, so the old
72750         usage could waste an arbitrary amount of memory.  All uses
72751         changed.
72752         * lib/savedir.h: Update prototype.
72753
72754 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72755
72756         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
72757
72758         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
72759         old strtoimax.c.
72760
72761         Also, make the following further changes to make this file's
72762         configuration more similar to that of strtol.c:
72763         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
72764         (strtoumax, uintmax_t, strtoull, strtol): Remove.
72765         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
72766         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
72767         changed to signed values.
72768
72769         And make the following changes as well:
72770         Fix copyright notice, as 1999 was missing.
72771         (verify): New macro.
72772         (strtoimax): Check sizes at compile-time, not run-time.
72773         Prefer strtol to strtoll if both work.
72774         (main): Remove; it was not that useful and was a pain to maintain.
72775
72776         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
72777
72778 2001-08-31  Jim Meyering  <meyering@lucent.com>
72779
72780         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
72781         Use an initial, malloc'd, buffer of length 128 rather than
72782         a statically allocated one of length 1024.
72783
72784 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72785
72786         Simplify code, partly by assuming autoconf 2.52 semantics.
72787
72788         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
72789
72790         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
72791         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
72792         All uses removed.
72793         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
72794         Move AC_REQUIRE to next-to-top level, to avoid confusion.
72795         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
72796         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
72797         jm_AC_HEADER_INTTYPES_H.
72798         * m4/jm-macros.m4 (jm_MACROS): Likewise.
72799
72800         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
72801
72802         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72803         Quote first arg of AC_DEFUN.
72804         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
72805         since they are needed to parse the include file even if we need
72806         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
72807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
72808         but with opposite signedness.
72809
72810 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72811
72812         Merge 'exclude' changes from tar 1.13.22.
72813         This fixes one or two unlikely storage allocation overflow bugs,
72814         but doesn't change user-visible behavior otherwise.
72815
72816 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72817
72818         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
72819         (jm_PREREQ_EXCLUDE): New macro.
72820
72821 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72822
72823         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
72824         tm to be declared.
72825
72826 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72827
72828         * lib/hash.c: Remove '2001' from copyright notice.
72829
72830 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72831
72832         * lib/full-write.h: New file.
72833         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
72834         * lib/full-write.c: Correct credits, as cccp.c no longer
72835         exists and anyway it was so heavily changed from the old cccp
72836         code as to be unrecognizable.  Include full-write.h.
72837         (full_write) Return size_t, with short writes meaning failure.
72838         All callers changed.  This fixes a bug with large buffers
72839         on 64-bit hosts.
72840         * lib/utime.c: Include full-write.h.
72841
72842 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72843
72844         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
72845         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
72846         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
72847         Include if available.
72848         (<xalloc.h>): Include
72849         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
72850         (verify): New macro.  Use it to verify that EXCLUDE macros do not
72851         collide with FNM macros.
72852         (struct patopts): New struct.
72853         (struct exclude): Use it, as exclude patterns now come with options.
72854         (new_exclude): Support above changes.
72855         (new_exclude, add_exclude_file):
72856         Initial size must now be a power of two to simplify overflow checking.
72857         (free_exclude, fnmatch_no_wildcards): New function.
72858         (excluded_filename): No longer requires options arg, as the options
72859         are determined by add_exclude.  Now returns bool, not int.
72860         (excluded_filename, add_exclude):
72861         Add support for the fancy new exclusion options.
72862         (add_exclude, add_exclude_file): Now takes int options arg.
72863         Check for arithmetic overflow when computing sizes.
72864         (add_exclude_file): xrealloc might modify errno, so don't
72865         realloc until after errno might be used.
72866
72867         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
72868         New macros.
72869         (free_exclude): New decl.
72870         (add_exclude, add_exclude_file): Now takes int options arg.
72871         (excluded_filename): No longer requires options arg, as the options
72872         are determined by add_exclude.  Now returns bool, not int.
72873
72874 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72875
72876         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
72877
72878 2001-08-27  Jim Meyering  <meyering@lucent.com>
72879
72880         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
72881
72882         * lib/version-etc.c (N_): Remove definition.
72883         Revert most of last change.
72884         Instead, simply don't mark the `Copyright...' string for translation.
72885         Based on advice from Paul Eggert.
72886
72887         * lib/strtoxmax.c: Tweak comment.
72888
72889 2001-08-26  Jim Meyering  <meyering@lucent.com>
72890
72891         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
72892
72893         * m4/xstrtoimax.m4: New file.
72894         * m4/xstrtoumax.m4: Add comments explaining why we
72895         AC_REPLACE_FUNCS(strtol).
72896
72897 2001-08-26  Jim Meyering  <meyering@lucent.com>
72898
72899         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
72900         of copyright with `%s' so translators don't get an untranslated
72901         message in 2002.
72902         (COPYRIGHT_YEAR): Define.
72903         (version_etc): Use fprintf rather than fputs.
72904         Suggestion from Ulrich Drepper.
72905
72906         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
72907
72908         * lib/strtoll.c: New file, from GNU libc.
72909         * lib/xstrtoimax.c: New file.
72910
72911         * lib/xstrtol.h: Add xstrtoimax.
72912         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
72913         * lib/strtoimax.c: New file.  Likewise, but first define
72914         STRTOUXMAX_SIGNED.
72915
72916         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
72917         ...
72918         * lib/strtoxmax.c: ... then renamed to this.
72919
72920 2001-08-18  Paul Eggert  <eggert@twinsun.com>
72921
72922         * m4/inttypes.m4: Add AC_PREREQ(2.13).
72923         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
72924         (jm_AC_TYPE_INTMAX_T): New macro.
72925         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
72926
72927         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
72928
72929         * m4/longlong.m4: Renamed from ulonglong.m4.
72930         * m4/inttypes.m4: Renamed from inttypes_h.m4.
72931         * m4/uintmax_t.m4: Removed.
72932
72933 2001-08-13  Paul Eggert  <eggert@twinsun.com>
72934
72935         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
72936         Port to Solaris 8, where 'sed' requires a space after the 'r'
72937         command, and where sh dislikes "$/".  Clean up the spacing a bit.
72938         Redirect output to $tmp just once.
72939
72940 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
72941
72942         * lib/addext.c (<errno.h>): Include.
72943         (errno): Declare if not defined.
72944         (addext): Work correctly when pathconf returns -1 and leaves
72945         errno alone because there is no limit.  Also, work even if
72946         pathconf returns a value greater than SIZE_MAX.
72947
72948 2001-08-12  Jim Meyering  <meyering@lucent.com>
72949
72950         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
72951         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
72952         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
72953         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
72954         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
72955         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
72956         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
72957         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
72958         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
72959         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
72960         utime.m4, utimes.m4, xstrtoumax.m4:
72961         Quote the first argument in each use of AC_DEFUN.
72962
72963 2001-08-12  Jim Meyering  <meyering@lucent.com>
72964
72965         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
72966         Simply `return getcwd (NULL, 0);'.
72967         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
72968         Use 1300 as initial value for length, not PATH_MAX.
72969
72970         * lib/pathmax.h: Clean up cpp syntax.
72971
72972 2001-08-12  Jim Meyering  <meyering@lucent.com>
72973
72974         * lib/gettimeofday.c: New file.
72975         * lib/gtod.h: New file.
72976         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
72977
72978 2001-08-05  Jim Meyering  <meyering@lucent.com>
72979
72980         * m4/jm-macros.m4: Require autoconf-2.52.
72981
72982 2001-08-04  Jim Meyering  <meyering@lucent.com>
72983
72984         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
72985         stmt, to get in sync with glibc.
72986
72987 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72988
72989         The following changes are from gettext 0.10.39 as maintained by
72990         Bruno Haible.
72991
72992         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
72993         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
72994         with inverted sense.  All uses changed.
72995
72996         * lib/mbswidth.c: Don't include <limits.h>.
72997         Include <stdlib.h> and <string.h> unconditionally.
72998         (iswcntrl, mbsinit, ISCNTRL): New macros.
72999         (mbsnwidth): Use K&R style function declarations.
73000         Don't bother checking for MB_LEN_MAX == 1, since the compiler
73001         can optimize it when MB_CUR_MAX == 1.
73002         The width of control characters is zero, not 1.
73003
73004 2001-08-03  Paul Eggert  <eggert@twinsun.com>
73005
73006         The following changes are from gettext 0.10.39 as maintained by
73007         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
73008
73009         * m4/codeset.m4: Upgrade to serial AM1.
73010         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
73011         all uses changed.  Quote first arg of AC_DEFUN.
73012         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
73013
73014         * m4/iconv.m4: Upgrade to serial AM2.
73015         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
73016         Add --with-libconv-prefix.
73017         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
73018         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
73019         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
73020         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
73021         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
73022
73023         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
73024         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
73025         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
73026         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
73027         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
73028         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
73029         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
73030         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
73031         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73032
73033         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
73034         string.h any more.
73035
73036         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
73037         not the default value.
73038
73039         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
73040         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
73041         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
73042         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
73043         Also check for iswcntrl, used for wcwidth fallback.
73044         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
73045         to Autoconf 2.13.
73046
73047 2001-08-03  Jim Meyering  <meyering@lucent.com>
73048
73049         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
73050         as it was in the original.  Reported by Paul Eggert.
73051
73052 2001-07-16  Jim Meyering  <meyering@lucent.com>
73053
73054         * m4/gettimeofday.m4: New file.
73055         Prompted by a report from Bernhard Baehr.
73056
73057 2001-07-15  Jim Meyering  <meyering@lucent.com>
73058
73059         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
73060         stuff. Now it's in ../Makefile.cfg.
73061
73062 2001-07-15  Jim Meyering  <meyering@lucent.com>
73063
73064         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
73065         (BUILT_SOURCES): Add unlocked-io.h.
73066         (io_functions): Define.
73067         (unlocked-io.h): New rule.
73068         (DISTCLEANFILES): Add unlocked-io.h.
73069         (all-local): Depend on unlocked-io.h, to ensure it is created.
73070
73071         * lib/unlocked-io.hin: New file
73072
73073         * lib/regex.c: Update from glibc.
73074
73075 2001-07-05  Jim Meyering  <meyering@lucent.com>
73076
73077         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
73078         recommendation.
73079         (libfetish_a_SOURCES): Put all .h files here instead.
73080         Remove a thus-exposed (better checks in automake) duplicate and
73081         two unnecessary .h files.
73082
73083 2001-07-04  Jim Meyering  <meyering@lucent.com>
73084
73085         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
73086         that generates jm-glibc-io.m4 so that it doesn't trigger any make
73087         distcheck failure.
73088
73089 2001-07-02  Jim Meyering  <meyering@lucent.com>
73090
73091         The following changes were prompted by suggestions from Bruno Haible.
73092
73093         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
73094         is now generated.
73095         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
73096         definition of EXTRA_DIST.
73097         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
73098         ensure that the generated file is created/updated whenever the list
73099         of $(unlocked_functions) is changed.
73100         (jm-glibc-io.m4): New rule.
73101         (unlocked-io.h): New rule -- currently unused.
73102
73103 2001-06-24  Jim Meyering  <meyering@lucent.com>
73104
73105         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
73106         unmatched right bracket, rather than kludging it with an extra,
73107         falsely-matching quote in a comment.  Patch by Akim Demaille.
73108
73109 2001-06-11  Jim Meyering  <meyering@lucent.com>
73110
73111         * lib/regex.c: Update from GNU libc.
73112
73113 2001-05-27  Jim Meyering  <meyering@lucent.com>
73114
73115         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
73116         Check for ut_type in struct utmp.
73117
73118 2001-05-27  Jim Meyering  <meyering@lucent.com>
73119
73120         * lib/readutmp.h (UT_TYPE): Define.
73121
73122 2001-05-24  Jim Meyering  <meyering@lucent.com>
73123
73124         * lib/argmatch.c: Include "quote.h".
73125         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
73126         quote function.  Reported by Göran Uddeborg.
73127
73128 2001-05-22  Jim Meyering  <meyering@lucent.com>
73129
73130         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
73131         now that we use the package-supplied version unconditionally.
73132         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
73133
73134 2001-05-21  Jim Meyering  <meyering@lucent.com>
73135
73136         * m4/regex.m4: Change a couple backticks to single quotes to avoid
73137         shell syntax errors.
73138
73139 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73140
73141         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
73142
73143 2001-05-20  Paul Eggert  <eggert@twinsun.com>
73144
73145         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
73146         Don't bother to check library strftime, since
73147         we'll be using our own my_strftime function anyway.
73148         Define my_strftime instead of strftime.
73149
73150 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
73151
73152         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
73153         which is not yet declared.
73154
73155 2001-05-15  Jim Meyering  <meyering@lucent.com>
73156
73157         * m4/regex.m4: Use proper quoting so brackets appear in the test
73158         program.
73159         Reported by, and with help from, Bruno Haible.
73160
73161 2001-05-13  Jim Meyering  <meyering@lucent.com>
73162
73163         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
73164         undefined.
73165
73166 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73167
73168         dirname code cleanup.  base_name now behaves more compatibly
73169         with POSIX basename when given file names that have trailing
73170         slashes, and similarly for dir_name.  Add new primitives
73171         base_len and dir_len.  Put the directory-name-related decls
73172         into dirname.h.
73173
73174         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
73175         * lib/backupfile.c (base_name): Likewise.
73176         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
73177         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
73178         * lib/makepath.c (strip_trailing_slashes): Likewise.
73179         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
73180         ISSLASH): Likewise.
73181         * lib/rename.c (strip_trailing_slashes): Likewise.
73182         * lib/same.c (base_name): Likewise.
73183         * lib/stripslash.c (ISSLASH): Likewise.
73184
73185         * lib/addext.c: Include <dirname.h> after size_t is defined.
73186         * lib/backupfile.c: Likewise.
73187
73188         * lib/addext.c (addext): Use base_len to trim redundant
73189         trailing slashes instead of doing it ourselves.
73190         But do not trim the last slash if it is not redundant.
73191
73192         * lib/backupfile.c (find_backup_file_name,
73193         max_backup_version): Use base_len instead of rolling it ourselves.
73194         Handle the case of "" and (on DOS) "C:" correctly.
73195
73196         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
73197         needed. Include <string.h>, <dirname.h>.
73198         (base_name): Allow file names ending in slashes, other than names
73199         that are all slashes.  In this case, return the basename followed
73200         by the slashes.  This is more general, and can be used in places
73201         where the original base_name purposely had an assertion failure.
73202         (base_len): New function.
73203
73204         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
73205         Do not include <assert.h>; no longer needed.
73206         Include xalloc.h.
73207         (memrchr): Remove decl.
73208         (dir_name_r): Remove.
73209         (dir_len): Renamed from dirlen.  All callers changed.
73210         Rewrite in terms of base_name, for simplicity and consistency.
73211         (dir_name): Never return NULL.  All callers changed.
73212         Do not include <stdlib.h> in test program; no longer needed.
73213         return 0; is fine for test program.
73214
73215         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
73216         New macros.
73217         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
73218
73219         * lib/path-concat.c (path_concat): Use base_len to compute
73220         base length, not strlen; this means we cannot rely on memcpy
73221         to null-terminate.
73222
73223         * lib/same.c (STREQ): Remove.
73224         (same_name): Handle the case where the basename ends in trailing '/'.
73225
73226         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
73227         a slash was stripped.  Do not strip the last slash after a
73228         file system prefix.
73229
73230 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73231
73232         * lib/Makefile.am (libfetish_a_SOURCES):
73233         Add strftime.c, since we now compile it on all hosts.
73234
73235         * lib/strftime.c (my_strftime):
73236         Define to nstrftime if emacs, but only if my_strftime is not defined.
73237         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
73238         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
73239         Add one more extra argument: a nanoseconds value.
73240         All uses changed.
73241         (ns): New macro.
73242         (my_strftime function): Add %N format.
73243         (emacs_strftimeu): Renamed from emacs_strftime,
73244         with extra ut argument.
73245
73246 2001-05-09  Paul Eggert  <eggert@twinsun.com>
73247
73248         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
73249
73250 2001-04-21  Jim Meyering  <meyering@lucent.com>
73251
73252         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
73253         doesn't interfere.
73254
73255 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73256
73257         * m4/ftruncate.m4: Check for chsize.
73258         Link with ftruncate.o unconditionally if ftruncate is missing.
73259         This was required when cross-compiling to i586-mingw32msvc.
73260
73261 2001-04-08  Jim Meyering  <meyering@lucent.com>
73262
73263         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
73264         recomputed; that's necessary when the offset spans a DST transition.
73265         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
73266
73267 2001-04-02  Jim Meyering  <meyering@lucent.com>
73268
73269         * lib/regex.h, regex.c: Update from GNU libc.
73270
73271 2001-03-24  Jim Meyering  <meyering@lucent.com>
73272
73273         * m4/jm-macros.m4: Require autoconf-2.49d.
73274
73275 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
73276
73277         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
73278
73279 2001-03-19  Paul Eggert  <eggert@twinsun.com>
73280
73281         * lib/version-etc.c (version_etc_copyright): Update to 2001.
73282
73283 2001-03-17  Jim Meyering  <meyering@lucent.com>
73284
73285         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
73286         now that the version in autoconf is equivalent.
73287         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
73288
73289         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
73290         Suggestion from Akim Demaille.
73291
73292         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
73293         (jm_PREREQ_TEMPNAME): New function.
73294
73295 2001-03-16  Paul Eggert  <eggert@twinsun.com>
73296
73297         * lib/tempname.c (uint64_t): Define to uintmax_t if
73298         not defined, and if UINT64_MAX is not defined.
73299         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
73300         Reported by John David Anglin.
73301
73302 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
73303
73304         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
73305         resolve alias if codeset is empty.
73306         * lib/config.charset (BeOS): Use wildcard syntax.
73307
73308 2001-03-13  Jim Meyering  <meyering@lucent.com>
73309
73310         * lib/path-concat.c (path_concat)
73311         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
73312         concatenating e.g., `C:' and `foo'.
73313         From Bruno Haible.
73314
73315 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73316
73317         * lib/localcharset.c (locale_charset): Don't use
73318         setlocale(LC_CTYPE,NULL). Don't return NULL.
73319         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
73320
73321 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73322
73323         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
73324         support for DOS/DJGPP.
73325
73326 2001-03-01  Paul Eggert  <eggert@twinsun.com>
73327
73328         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
73329         lacks mkstemp.  Compile our own tempname.c if we compile our own
73330         mkstemp.c, as mkstemp relies on tempname.
73331
73332 2001-03-01  Jim Meyering  <meyering@lucent.com>
73333
73334         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
73335         AH_VERBATIM really does output its argument verbatim.
73336
73337 2001-02-28  Paul Eggert  <eggert@twinsun.com>
73338
73339         * lib/Makefile.am (libfetish_a_SOURCES):
73340         Add dup-safer.c, fopen-safer.c.
73341         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
73342
73343         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
73344         * lib/unistd-safer.h: New files.
73345
73346 2001-02-25  Paul Eggert  <eggert@twinsun.com>
73347
73348         The mkstemp replacement is taken from glibc 2.2.2, with some
73349         portability fixes for use outside glibc, as follows:
73350
73351         * lib/tempname.c (struct_stat64): New macro.
73352         (direxists, __gen_tempname): Use it.
73353         This avoids a portability problem with Solaris 8.
73354
73355         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
73356         (<stddef.h>, <stdint.h>, <string.h>):
73357         Include only if STDC_HEADERS || _LIBC.
73358         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
73359         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
73360         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
73361         (__set_errno): Define this macro if <errno.h> doesn't.
73362         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
73363         Define these macros if <stdio.h> doesn't.
73364         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
73365         Define these macros if <sys/stat.h>
73366         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
73367         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
73368         __xstat64): Define if not _LIBC.
73369         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
73370         (__gen_tempname): Invoke gettimeofday only if
73371         HAVE_GETTIMEOFDAY || _LIBC;
73372         otherwise, fall back on plain "time".
73373         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
73374
73375         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
73376
73377         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
73378
73379 2001-02-18  Paul Eggert  <eggert@twinsun.com>
73380
73381         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
73382
73383 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73384
73385         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
73386         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
73387         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
73388         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73389
73390 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73391
73392         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
73393         Remove workaround macros for hosts that have mbrtowc but not
73394         mbstate_t, as we now insist on proper declarations for both
73395         before using mbrtowc.
73396
73397 2001-02-17  Jim Meyering  <meyering@lucent.com>
73398
73399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
73400         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
73401         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
73402         UnixWare 7.1.1.
73403
73404         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
73405         rather than AC_CACHE_VAL.
73406
73407 2001-02-17  Jim Meyering  <meyering@lucent.com>
73408
73409         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
73410         around included file name.
73411
73412         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
73413
73414         * lib/strftime.c: Update from GNU libc (the only changes were to
73415         comments).
73416
73417 2001-02-17  Jim Meyering  <meyering@lucent.com>
73418
73419         * lib/regex.c: Update from libc.
73420
73421 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
73422
73423         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
73424         clash.
73425
73426 2001-02-16  Paul Eggert  <eggert@twinsun.com>
73427
73428         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
73429         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
73430         Reported by Mark Hounschell via Paul Eggert.
73431
73432 2001-02-07  Jim Meyering  <meyering@lucent.com>
73433
73434         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
73435
73436 2001-02-05  Jim Meyering  <meyering@lucent.com>
73437
73438         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
73439         it includes the patch required for `large file' support with at least
73440         HP-UX's 10.20 /bin/cc.
73441
73442 2001-02-03  Jim Meyering  <meyering@lucent.com>
73443
73444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
73445         AS_IF, now that it works once again (mysteriously).
73446         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73447
73448 2001-01-30  Jim Meyering  <meyering@lucent.com>
73449
73450         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
73451         * m4/chown.m4: Rename conftestchown to conftest.chown.
73452         * m4/rename.m4: s/conftestdir/conftest.d1/ and
73453         s/conftestdir2/conftest.d2/.
73454         * m4/utimes.m4: s/conftestdata/conftest.data/
73455         Inspired by Pavel Roskin's change in autoconf.
73456
73457 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
73458
73459         * lib/config.charset: Update for FreeBSD 4.2.
73460
73461 2001-01-27  Jim Meyering  <meyering@lucent.com>
73462
73463         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
73464         a use of AS_IF.
73465         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73466
73467 2001-01-26  Jim Meyering  <meyering@lucent.com>
73468
73469         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
73470         quotearg.c includes it.
73471
73472 2001-01-26  Jim Meyering  <meyering@lucent.com>
73473
73474         * lib/quotearg.c: Include stddef.h.
73475         * lib/quote.c: Include stddef.h.
73476         Reported by Axel Kittenberger.
73477
73478         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
73479         line in double quotes so that it evokes a better diagnostic.
73480         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
73481         Reported by Axel Kittenberger.
73482
73483 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
73484
73485         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
73486         as if it was a `charset'.
73487
73488 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73489
73490         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
73491         has const.
73492
73493 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73494
73495         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
73496         to avoid a warning.  Add back 'const' to inptr.
73497
73498 2001-01-20  Jim Meyering  <meyering@lucent.com>
73499
73500         Be sure that headers are checked before used in code compiled
73501         for the type checks.
73502         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
73503         In place of that, invoke jm_CHECK_ALL_TYPES.
73504         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
73505         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
73506         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
73507         The check for ssize_t was mistakenly run before the test for unistd.h.
73508
73509         The configure-time check for stdbool.h was missing.
73510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
73511         (jm_PREREQ_HASH): New function.
73512
73513 2001-01-17  Jim Meyering  <meyering@lucent.com>
73514
73515         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
73516         for autoconf-2.49c.
73517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
73518
73519 2001-01-16  Jim Meyering  <meyering@lucent.com>
73520
73521         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
73522         From Bruno Haible.
73523
73524 2001-01-14  Jim Meyering  <meyering@lucent.com>
73525
73526         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
73527         foo and bar.  Create conftestdir/ in the script, not in the C code.
73528         Remove directories in the script, not in the C code.
73529         Remove conftestdir{,2} before trying to create the directory.
73530         Make the entire configure script fail if the mkdir fails.
73531
73532 2001-01-14  Jim Meyering  <meyering@lucent.com>
73533
73534         * lib/rename.c: New file.  From Volker Borchert.
73535         Include stdlib.h, string.h or strings.h, and xalloc.h.
73536         Use strip_trailing_slashes rather than open-coding it.
73537
73538 2001-01-03  Paul Eggert  <eggert@twinsun.com>
73539
73540         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
73541
73542 2001-01-03  Jim Meyering  <meyering@lucent.com>
73543
73544         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
73545         of local `inptr' to avoid warning with some system declarations of
73546         iconv.
73547
73548 2001-01-02  Volker Borchert  <bt@teknon.de>
73549
73550         * m4/rename.m4: New file.
73551         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
73552
73553 2001-01-01  Jim Meyering  <meyering@lucent.com>
73554
73555         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
73556         even on systems with utmpx.h.  It's necessary for the declaration of
73557         utmp's ut_user member.  Reported by Andreas Jaeger.
73558
73559         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
73560         available. They are required for the declarations of getgrgid and
73561         getpwuid resp.
73562         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
73563         Reported by Andreas Jaeger.
73564
73565 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
73566
73567         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
73568         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
73569         so `make install' also works in VPATH builds.
73570
73571 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
73572
73573         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
73574         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
73575         can be used in subdirectories.
73576
73577 2000-12-29  Paul Eggert  <eggert@twinsun.com>
73578
73579         * lib/modechange.c: Do not assume that mode_t uses the
73580         traditional octal encoding.  E.g. "chmod 1 FOO" should set
73581         the other-execute bit of FOO even if S_IXOTH != 1.
73582
73583         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
73584         WOTH, XOTH, ALLM): New macros.
73585         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
73586          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
73587         Use them.
73588         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
73589         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
73590         (mode_compile):
73591         No need to use uintmax_t; unsigned long is long enough.
73592         Don't bother to get suffix since we don't use it.
73593
73594 2000-12-26  Jim Meyering  <meyering@lucent.com>
73595
73596         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
73597         better with autoheader.
73598
73599 2000-12-24  Jim Meyering  <meyering@lucent.com>
73600
73601         * lib/hash.c (is_prime): Return explicit boolean values.
73602         (hash_get_first): Return NULL to appease Irix5.6's 89.
73603         Reported by Nelson Beebe.
73604
73605 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
73606
73607         * lib/localcharset.c (locale_charset): Add support for Win32.
73608
73609 2000-12-18  Paul Eggert  <eggert@twinsun.com>
73610
73611         * lib/physmem.h, lib/physmem.c: New files.
73612
73613         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
73614         (noinst_HEADERS): Add physmem.h.
73615
73616         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
73617         't' for compatibility with Solaris 8 sort.
73618
73619 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
73620
73621         * lib/config.charset: Add support for BeOS.
73622
73623 2000-12-17  Jim Meyering  <meyering@lucent.com>
73624
73625         * m4/dos.m4 (jm_AC_DOS): New file and macro.
73626         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
73627
73628 2000-12-16  Jim Meyering  <meyering@lucent.com>
73629
73630         This bug had a serious impact on chown: `chown N:M FILE' (for integer
73631         N and M) would have treated it like `chown N:N FILE'.
73632
73633         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
73634
73635 2000-12-16  Jim Meyering  <meyering@lucent.com>
73636
73637         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
73638         SHELLS_FILE to a file name that's useful on djgpp systems.
73639         Include stdlib.h.
73640         (ADDITIONAL_DEFAULT_SHELLS): Define.
73641         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
73642         Based mostly on a patch from Prashant TR.
73643
73644 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
73645
73646         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
73647         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
73648         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
73649
73650 2000-12-08  Andreas Schwab  <schwab@suse.de>
73651
73652         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
73653         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
73654
73655 2000-12-07  Jim Meyering  <meyering@lucent.com>
73656
73657         * lib/stripslash.c (ISSLASH): Define.
73658         (strip_trailing_slashes): Use ISSLASH rather than comparing against
73659         `/'.
73660         From Prashant TR.
73661
73662         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
73663         (dir_name_r): Declare this function as static.
73664         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
73665         manifest itself on a name containing a mix of slashes and
73666         backslashes.
73667         Make this function work with names starting with a DOS-style
73668         drive letter and colon prefix.
73669         (dir_name): Append `.' if necessary.
73670         Based mostly on patches from Prashant TR and Eli Zaretskii.
73671
73672         * lib/dirname.h (dir_name_r): Remove prototype.
73673
73674 2000-12-06  Paul Eggert  <eggert@twinsun.com>
73675
73676         * m4/off_t-format.m4: Remove this file.
73677         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
73678
73679 2000-12-06  Jim Meyering  <meyering@lucent.com>
73680
73681         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
73682         replacement strtoull, we may well need the replacement strtoul, too.
73683         Check for declarations of strtoul and strtoull.
73684         Check for strtol.  Mainly as a cue to cause automake to include
73685         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
73686         Check for limits.h -- strtol.c needs it.
73687
73688 2000-12-05  Jim Meyering  <meyering@lucent.com>
73689
73690         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
73691
73692 2000-12-04  Jim Meyering  <meyering@lucent.com>
73693
73694         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
73695         Also include memory.h, stdlib.h, unistd.h if appropriate.
73696         Reported by Andreas Jaeger (conflicting declaration of malloc).
73697
73698 2000-12-02  Jim Meyering  <meyering@lucent.com>
73699
73700         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
73701         * m4/jm-macros.m4 (jm_MACROS): require it.
73702
73703 2000-12-02  Jim Meyering  <meyering@lucent.com>
73704
73705         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
73706
73707 2000-12-01  Paul Eggert  <eggert@twinsun.com>
73708
73709         * lib/memrchr.c: Include <config.h> before any system include file.
73710
73711 2000-11-30  Jim Meyering  <meyering@lucent.com>
73712
73713         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
73714
73715 2000-11-30  Jim Meyering  <meyering@lucent.com>
73716
73717         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
73718
73719 2000-11-29  Paul Eggert  <eggert@twinsun.com>
73720
73721         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
73722
73723 2000-11-26  Jim Meyering  <meyering@lucent.com>
73724
73725         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
73726
73727 2000-11-22  Paul Eggert  <eggert@twinsun.com>
73728
73729         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
73730         size of (size_t) -1; it's not portable.
73731
73732 2000-11-17  Jim Meyering  <meyering@lucent.com>
73733
73734         * lib/strstr.c: Update from GNU libc.
73735
73736 2000-11-17  Akim Demaille  <akim@epita.fr>
73737
73738         * lib/obstack.h: Formatting changes.
73739         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
73740         prevent type checking.
73741         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
73742         cast the value to (void *): assigning a `foo *' to a `void *'
73743         variable is valid.
73744         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
73745
73746 2000-11-16  Jim Meyering  <meyering@lucent.com>
73747
73748         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
73749
73750 2000-11-11  Jim Meyering  <meyering@lucent.com>
73751
73752         * lib/error.c: Add a couple #includes, merging from GNU libc version.
73753
73754 2000-11-10  Jim Meyering  <meyering@lucent.com>
73755
73756         * lib/obstack.h: Update from GNU libc.
73757         * lib/obstack.c: Likewise.
73758
73759 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
73760
73761         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
73762
73763 2000-11-06  Paul Eggert  <eggert@twinsun.com>
73764
73765         * lib/getusershell.c (setusershell): Use rewind rather than
73766         fseek/fseeko, to avoid configuration hassles with fseeko.
73767         Don't bother opening SHELLS_FILE if shellstream is NULL;
73768         it's not necessary.
73769
73770 2000-11-05  Jim Meyering  <meyering@lucent.com>
73771
73772         * lib/makepath.h (make_dir): Declare.
73773         * lib/makepath.c (make_dir): Remove `static' attribute.
73774         Tweak a comment.
73775
73776 2000-11-04  Jim Meyering  <meyering@lucent.com>
73777
73778         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
73779
73780 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
73781
73782         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
73783         last one in a bucket, advance to the next bucket.
73784
73785 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
73786
73787         * lib/fnmatch.c: Do not comment out all the code if we are using
73788         the GNU C library, because in some cases we are replacing buggy
73789         code in the GNU C library itself.
73790
73791 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
73792
73793         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
73794         (regex_compile): Catch bogus \(\1\).
73795
73796 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73797
73798         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
73799         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
73800         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
73801
73802 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73803
73804         * lib/error.h, getline.h, modechange.h:
73805         Remove "2000" from Copyright line, as the file hasn't been
73806         changed this year other than in the copyright notice.
73807
73808         * lib/xalloc.h: Add "2000" to Copyright line, as this file
73809         was changed this year.
73810
73811 2000-10-29  Jim Meyering  <meyering@lucent.com>
73812
73813         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
73814         renaming.
73815         * m4/ls-mntd-fs.m4: Likewise
73816
73817 2000-10-29  Jim Meyering  <meyering@lucent.com>
73818
73819         * lib/xstat.in: Fix grammar in comment.
73820
73821 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
73822
73823         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
73824         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
73825         doesn't define __restrict_arr.
73826
73827 2000-10-28  Jim Meyering  <meyering@lucent.com>
73828
73829         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
73830         (jm_PREREQ_MEMCHR): New function.
73831
73832 2000-10-28  Jim Meyering  <meyering@lucent.com>
73833
73834         * lib/memchr.c: Update from libc.
73835         Adjust for portability:
73836         [HAVE_STDLIB_H]: Include stdlib.h.
73837         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
73838         Undef __memchr, too.
73839         [!weak_alias]: Define __memchr to memchr.
73840
73841         * lib/regex.c: Update from libc.
73842         * lib/regex.h: Likewise.
73843         * lib/getopt1.c: Likewise.
73844         * lib/memcmp.c: Likewise.
73845
73846         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
73847         Avoid using fseek, when possible -- it's broken by design.
73848         Patch by Ulrich Drepper.
73849
73850 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
73851
73852         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
73853         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
73854         Giving in to popular pressure to shut up the compiler with casts.
73855
73856 2000-10-26  Jim Meyering  <meyering@lucent.com>
73857
73858         * lib/strftime.c: Update from libc.
73859
73860 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
73861
73862         * regex.c: More `unsigned char' -> `re_char' changes.
73863         Also change several `int' into `re_wchar_t'.
73864         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
73865         (PUSH_FAILURE_POINTER): Don't cast any more.
73866         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
73867         We want GCC to complain, since this piece of code makes
73868         re_match non-reentrant, which *should* be fixed.
73869         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
73870         (EXTEND_BUFFER): Use RETALLOC.
73871         (SET_LIST_BIT): Don't cast.
73872         (re_wchar_t): New type.
73873         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
73874         that those two functions will always properly return.
73875         (IMMEDIATE_QUIT_CHECK): Cast to void.
73876         (analyse_first): Use recursion rather than an explicit stack.
73877         (re_compile_fastmap): Can't fail anymore.
73878         (re_search_2): Don't check re_compile_fastmap for failure.
73879         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
73880         Now also sets the new value (passed in a new argument).
73881         (re_match_2_internal): Use it.
73882         Also, use a new var `reg' of type size_t when looping through regs
73883         rather than reuse the inappropriate `mcnt'.
73884
73885 2000-10-25  Jim Meyering  <meyering@lucent.com>
73886
73887         * lib/obstack.c: Update from libc.
73888
73889 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
73890
73891         * regex.c (regex_compile): Change the way of handling a range from
73892         a char less than 256 to a char not less than 256.
73893
73894 2000-10-24  Andrew Innes  <andrewi@gnu.org>
73895
73896         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
73897         NT-Emacs only.
73898         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
73899         so that re_search functions only quit when callers expect them to.
73900
73901 2000-10-23  Jim Meyering  <meyering@lucent.com>
73902
73903         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
73904         wrong.  That set_locale call must not have any side effects.
73905         From Paul Eggert.
73906
73907 2000-10-22  Jim Meyering  <meyering@lucent.com>
73908
73909         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
73910         [CYCLIC]: Remove now-unused definition.
73911
73912         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
73913         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
73914         Suggestion from Ulrich Drepper.
73915
73916 2000-10-21  Jim Meyering  <meyering@lucent.com>
73917
73918         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
73919         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
73920         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
73921
73922 2000-10-21  Jim Meyering  <meyering@lucent.com>
73923
73924         * lib/dirname.c (memrchr): Declare if necessary.
73925         (dir_name): Remove the restriction that there be no
73926         trailing slashes.  Now, this code skips past them, effectively
73927         ignoring them.
73928         [TEST_DIRNAME] (main): New unit tests.
73929
73930         * lib/memrchr.c: New file from GNU libc.
73931         Undef __memrchr, too.
73932         [!weak_alias]: Define __memrchr to memrchr.
73933         Guard weak_alias use with `#ifdef weak_alias'.
73934
73935 2000-10-21  Jim Meyering  <meyering@lucent.com>
73936
73937         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
73938         (dir_name): Use dir_name_r.
73939         * lib/dirname.h (dir_name_r): Declare it.
73940
73941 2000-10-17  Jim Meyering  <meyering@lucent.com>
73942
73943         * lib/quote.h (PARAMS): Define and use.
73944         Reported by Akim Demaille.
73945
73946         * lib/getopt.c: Update from libc.
73947
73948 2000-10-16  Jim Meyering  <meyering@lucent.com>
73949
73950         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
73951         setlocale.
73952         From Jan Fedak.
73953
73954 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
73955
73956         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
73957
73958 2000-09-25  Jim Meyering  <meyering@lucent.com>
73959
73960         * lib/md5.h (rol): Define (from GnuPG).
73961
73962         * lib/sha.c: Give credit (GnuPG) where due.
73963         (M): Use rol rather than open-coding it.
73964         Add a FIXME comment.
73965
73966 2000-09-21  Jim Meyering  <meyering@lucent.com>
73967
73968         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
73969         Reported by Michael Stone.
73970
73971 2000-09-20  Jim Meyering  <meyering@lucent.com>
73972
73973         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
73974         (noinst_HEADERS): Add sha.h.
73975         Based on code from Scott G. Miller and from GnuPG.
73976
73977 2000-09-18  Jim Meyering  <meyering@lucent.com>
73978
73979         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
73980         LIBS. Otherwise, everyone ends up linking with -lelf for some
73981         configurations.
73982         Reported by Mike Stone.
73983
73984 2000-09-15  Jim Meyering  <meyering@lucent.com>
73985
73986         * lib/regex.c: Update from libc.
73987
73988 2000-09-10  Jim Meyering  <meyering@lucent.com>
73989
73990         * lib/getopt.c (_getopt_internal): Update from glibc.
73991
73992 2000-09-09  Jim Meyering  <meyering@lucent.com>
73993
73994         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
73995         think it should be used as a general replacement for isascii.
73996         * lib/fnmatch.c: Likewise.
73997         * lib/mbswidth.c: Likewise
73998         * lib/regex.c: Likewise.
73999
74000         Don't use atoi.
74001         * lib/userspec.c: Include sys/param.h and limits.h.
74002         Include xstrtol.h.
74003         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74004         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
74005         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
74006         UID, GID.  Check range.
74007
74008 2000-09-06  Jim Meyering  <meyering@lucent.com>
74009
74010         * lib/getopt.c (_getopt_internal): Update from glibc.
74011
74012 2000-08-30  Jim Meyering  <meyering@lucent.com>
74013
74014         * lib/strftime.c: Merge in changes from GNU libc.
74015
74016 2000-08-26  Jim Meyering  <meyering@lucent.com>
74017
74018         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
74019         * m4/fpending.m4: New file.
74020
74021 2000-08-26  Jim Meyering  <meyering@lucent.com>
74022
74023         * lib/closeout.c: Include "__fpending.h".
74024         (close_stdout_status): Return right away if there's nothing to flush.
74025
74026         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
74027         * lib/__fpending.c: New file.
74028         * lib/__fpending.h: New file.
74029
74030 2000-08-20  Jim Meyering  <meyering@lucent.com>
74031
74032         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
74033         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
74034         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
74035
74036 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
74037
74038         Improve fileutils installation on systems where running
74039         programs (like install) can't be unlinked.
74040         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
74041         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
74042
74043 2000-08-07  Paul Eggert  <eggert@twinsun.com>
74044
74045         Standardize on "memory exhausted" instead of "Memory exhausted"
74046         or "virtual memory exhausted".
74047         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
74048         "virtual memory exhausted".
74049         * lib/same.c (same_name): Invoke xalloc_die instead of printing
74050         our own message.
74051         * lib/userspec.c (parse_user_spec): Likewise.
74052         * lib/bumpalloc.h: comment fix
74053         * lib/same.c, userspec.c: Include xalloc.h.
74054
74055         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
74056         not char *const and pointing to a constant array.
74057         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
74058         (xrealloc): Comment fix.
74059
74060         * lib/userspec.c (parse_user_spec):
74061         Don't translate a message until just before returning,
74062         to avoid unnecessary translation.
74063
74064 2000-08-07  Jim Meyering  <meyering@lucent.com>
74065
74066         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
74067         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
74068         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
74069         getgroups.c, gethostname.c, getopt.h, group-member.c,
74070         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
74071         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
74072         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
74073         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
74074         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
74075         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
74076         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
74077         yesno.c: Back out Copyright date changes for each file with no change
74078         this year.  This eases coordination with other programs using the same
74079         source code modules.  From Paul Eggert.
74080
74081 2000-08-06  Paul Eggert  <eggert@twinsun.com>
74082
74083         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
74084         not char, for compatibility with glibc 2.1.3 strftime.c.
74085
74086 2000-08-03  Greg McGary  <greg@mcgary.org>
74087
74088         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
74089         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
74090         (EXTEND_BUFFER): Use them.
74091
74092 2000-08-01  Jim Meyering  <meyering@lucent.com>
74093
74094         * lib/dirname.c (ISSLASH): Define.
74095         (BACKSLASH_IS_PATH_SEPARATOR): Define.
74096         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
74097         both `\' and `/' may be use as path separators.
74098         Based on a patch from Prashant TR.
74099
74100 2000-07-31  Paul Eggert  <eggert@twinsun.com>
74101
74102         * lib/quotearg.c (quotearg_n_options): Don't make the initial
74103         slot vector a constant, since it might get modified.
74104
74105 2000-07-31  Jim Meyering  <meyering@lucent.com>
74106
74107         * lib/xmalloc.c: Use `virtual memory exhausted', not
74108         `Memory exhausted'.
74109         * lib/obstack.c (print_and_abort): Likewise.
74110
74111 2000-07-30  Paul Eggert  <eggert@twinsun.com>
74112
74113         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
74114         buffer, so that the caller can always quote one small
74115         component of a "memory exhausted" message in slot 0.
74116         From a suggestion by Jim Meyering.
74117
74118 2000-07-30  Jim Meyering  <meyering@lucent.com>
74119
74120         * lib/makepath.c (make_path): Quote the other instance, too.
74121
74122         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
74123         (STATIC_BUF_SIZE): Define.
74124         (quotearg_n_options): Use only statically allocated storage when
74125         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
74126         than STATIC_BUF_SIZE.
74127
74128 2000-07-29  Jim Meyering  <meyering@lucent.com>
74129
74130         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
74131         * lib/dirname.c (dir_name): Likewise.
74132
74133         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
74134         `/'.
74135
74136         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
74137         (dir_name): Assert that there are no trailing slashes.
74138
74139 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
74140
74141         * lib/mbswidth.h (mbswidth): Add a flags argument.
74142         (mbswidth): New declaration.
74143         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
74144         * lib/mbswidth.c (mbswidth): Add a flags argument.
74145         (mbsnwidth): New function.
74146
74147 2000-07-24  Jim Meyering  <meyering@lucent.com>
74148
74149         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
74150
74151 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74152
74153         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
74154
74155 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74156
74157         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
74158         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
74159         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
74160         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
74161         invoke multibyte primitives.
74162
74163 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74164
74165         * lib/quotearg.c:
74166         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
74167         so that mbstate_t is always defined.
74168
74169         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
74170         be 1 in at least one GCC installation, and this configuration
74171         error is likely to be common.  Ignoring MB_LEN_MAX hurts
74172         performance on hosts that have mbrtowc but have only unibyte
74173         locales, but I assume these hosts are rare.
74174
74175 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74176
74177         * lib/mbswidth.c (_XOPEN_SOURCE):
74178         Don't define; this causes problems on Solaris 7.
74179         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
74180
74181 2000-07-23  Jim Meyering  <meyering@lucent.com>
74182
74183         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
74184         too: getgrgid, getpwuid, getuid.
74185
74186 2000-07-23  Jim Meyering  <meyering@lucent.com>
74187
74188         * lib/basename.c (base_name): Add an assertion.
74189
74190 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
74191
74192         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
74193         shadow its mbsinit function.
74194
74195 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74196
74197         * lib/mbswidth.h: New file.
74198         * lib/mbswidth.c: New file.
74199         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
74200         (noinst_HEADERS): Add mbswidth.h.
74201
74202 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74203
74204         * lib/config.charset: Add support for FreeBSD. Improve support for
74205         HP-UX and IRIX 6.
74206
74207 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
74208
74209         * m4/mbswidth.m4: New file.
74210         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
74211
74212 2000-07-15  Jim Meyering  <meyering@lucent.com>
74213
74214         * lib/makepath.c: Include quote.h.
74215         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
74216         corresponding argument in a `quote (...)' call.
74217         Give better diagnostics.
74218
74219         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
74220         (noinst_HEADERS): Add quote.h.
74221
74222         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
74223         from tar's src/misc.c.
74224         * lib/quote.h: New file.  Prototypes for same.
74225
74226 2000-07-14  Paul Eggert  <eggert@twinsun.com>
74227
74228         From a suggestion by Bruno Haible.
74229         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
74230         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
74231         to decide whether to define the BeOS workaround macro;
74232         this adjusts to the change to AC_MBSTATE_T.
74233
74234 2000-07-14  Jim Meyering  <meyering@lucent.com>
74235
74236         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
74237         jm_AC_TYPE_UINTMAX_T.
74238
74239 2000-07-13  Paul Eggert  <eggert@twinsun.com>
74240
74241         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
74242
74243         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
74244         quotearg_buffer_restyled): Add support for
74245         clocale_quoting_style.  Undo previous change to
74246         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
74247         and "{RIGHT QUOTATION MARK}" msgids.
74248
74249 2000-07-10  Paul Eggert  <eggert@twinsun.com>
74250
74251         From a suggestion by Bruno Haible.
74252         * m4/mbstate_t.m4 (AC_MBSTATE_T):
74253         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
74254         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
74255         and mbstate_t, to a single-part test that simply defines mbstate_t.
74256         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
74257         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
74258
74259 2000-07-10  Jim Meyering  <meyering@lucent.com>
74260
74261         * m4/strerror_r.m4: Mirror the correction made in autoconf.
74262
74263         * m4/gnu-source.m4: Output to confdefs.h directly.
74264         Suggestion from Akim Demaille.
74265
74266 2000-07-09  Paul Eggert  <eggert@twinsun.com>
74267
74268         The old behavior of quoting `like this' doesn't look good with
74269         newer, ISO-style fonts.  See:
74270         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
74271
74272         Instead, quote "like this" by default.  Let the translator
74273         tailor the locale-specific quoting behavior by providing
74274         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
74275
74276         * lib/quotearg.c (N_): New macro.
74277         (gettext_default): New function.
74278         (quotearg_buffer_restyled): Use
74279         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
74280         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
74281
74282 2000-07-09  Jim Meyering  <meyering@lucent.com>
74283
74284         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
74285         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
74286
74287         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
74288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
74289
74290 2000-07-09  Jim Meyering  <meyering@lucent.com>
74291
74292         * lib/Most files: Update copyright dates to include 2000.
74293
74294 2000-07-08  Jim Meyering  <meyering@lucent.com>
74295
74296         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
74297         if not defined.
74298         (xgethostname): Remove now-unnecessary #ifdef.
74299         Move declaration of `err' into loop where it's used.
74300
74301 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74302         and Bruno Haible  <haible@clisp.cons.org>
74303
74304         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
74305         only if the test for an object-type mbstate_t fails.  This
74306         prevents us from mistakenly reporting that mbstate_t is a
74307         system object type after we "#define mbstate_t int" to work
74308         around its lack.
74309
74310 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74311         and Bruno Haible  <haible@clisp.cons.org>
74312
74313         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
74314
74315 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74316
74317         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
74318         to strerror_r.
74319         Include <ctype.h> for use of isalpha.
74320
74321 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74322
74323         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
74324         by allocating a larger buffer. Test the gethostname return value for
74325         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
74326         returns an error and ENAMETOOLONG isn't defined.
74327
74328 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74329
74330         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
74331         dimension.
74332
74333 2000-07-04  Jim Meyering  <meyering@lucent.com>
74334
74335         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
74336         of the deprecated AC_CHECKING.
74337
74338 2000-07-04  Jim Meyering  <meyering@lucent.com>
74339
74340         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
74341         Reported by Bruno Haible.
74342
74343 2000-07-04  Jim Meyering  <meyering@lucent.com>
74344
74345         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
74346         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
74347         lacks mbrtowc.
74348
74349 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74350
74351         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
74352         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
74353
74354 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74355         and Bruno Haible  <haible@clisp.cons.org>
74356
74357         * lib/quotearg.c (mbrtowc):
74358         Assign to *pwc, and return 1 only if result is nonzero.
74359         (iswprint): Use ISPRINT when substituting our own mbrtowc.
74360
74361 2000-07-03  Jim Meyering  <meyering@lucent.com>
74362
74363         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
74364
74365 2000-07-03  Jim Meyering  <meyering@lucent.com>
74366
74367         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
74368         This is necessary to get a definition of e.g., UTMP_FILE on
74369         HP-UX 10.20.
74370         From Bob Proulx.
74371
74372 2000-07-02  Jim Meyering  <meyering@lucent.com>
74373
74374         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
74375
74376         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
74377         AC_LIBOBJ(function_name).
74378         * m4/chown.m4: Likewise.
74379         * m4/fnmatch.m4: Likewise.
74380         * m4/ftruncate.m4: Likewise.
74381         * m4/getgroups.m4: Likewise.
74382         * m4/getline.m4: Likewise.
74383         * m4/group-member.m4: Likewise.
74384         * m4/jm-macros.m4: Likewise.
74385         * m4/lstat.m4: Likewise.
74386         * m4/malloc.m4: Likewise.
74387         * m4/memcmp.m4: Likewise.
74388         * m4/nanosleep.m4: Likewise.
74389         * m4/putenv.m4: Likewise.
74390         * m4/realloc.m4: Likewise.
74391         * m4/regex.m4: Likewise.
74392         * m4/stat.m4: Likewise.
74393         * m4/strftime.m4: Likewise.
74394
74395 2000-07-02  Jim Meyering  <meyering@lucent.com>
74396
74397         * lib/quotearg.c (mbstate_t): Don't define here.
74398
74399 2000-07-02  Jim Meyering  <meyering@lucent.com>
74400
74401         * lib/nanosleep.c (SIGCONT): Define if not already defined.
74402
74403 2000-07-01  Jim Meyering  <meyering@lucent.com>
74404
74405         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
74406
74407 2000-07-01  Jim Meyering  <meyering@lucent.com>
74408
74409         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
74410         problem.
74411
74412 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74413
74414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
74415         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
74416
74417 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74418
74419         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
74420         per change in ../m4/ls-mntd-fs.m4.
74421         (read_filesystem_list): Ignore symbolic links.
74422
74423 2000-06-29  Jim Meyering  <meyering@lucent.com>
74424
74425         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
74426         for declaration of strcmp.
74427
74428         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
74429
74430         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
74431         Avoid warning by casting result to `char *' to remove `const'.
74432
74433 2000-06-28  Jim Meyering  <meyering@lucent.com>
74434
74435         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
74436         included by quotearg.c, for which we perform this test.  From
74437         Bruno Haible.
74438
74439 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74440
74441         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
74442         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
74443         <utmpx.h> exists, put readutmp.o into LIBOBJS.
74444
74445 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74446
74447         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
74448
74449 2000-06-26  Paul Eggert  <eggert@twinsun.com>
74450
74451         savedir now sets errno on failure and invokes xmalloc to get memory.
74452         Fix a couple of other minor bugs while we're at it.
74453
74454         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
74455         (NAMLEN): Remove macro.
74456         (malloc, realloc): Remove decls.
74457         (stpcpy): Likewise.
74458         ("xalloc.h"): Include.
74459         (NAME_SIZE_DEFAULT): New macro.
74460         (savedir): Use xmalloc / xrealloc to allocate memory.
74461         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
74462         Skip "" directory entries.
74463         Use strlen to calculate directory entry length, since the old method
74464         is rarely used these days and isn't worth supporting.
74465         Don't use a pointer after freeing it.
74466         Check for integer overflow when calculating allocation size.
74467         Use memcpy to copy entries, instead of stpcpy.
74468         Set errno properly when returning NULL.
74469         Check for readdir error.
74470
74471 2000-06-26  Jim Meyering  <meyering@lucent.com>
74472
74473         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
74474
74475 2000-06-25  Jim Meyering  <meyering@lucent.com>
74476
74477         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
74478         Linux header bug when _XOPEN_SOURCE is defined to 500.
74479
74480 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74481
74482         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
74483         deficiency.
74484
74485 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74486
74487         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
74488         Include xalloc.h.
74489         Don't include <stdlib.h>.  Don't declare malloc, realloc.
74490
74491 2000-06-24  Jim Meyering  <meyering@lucent.com>
74492
74493         * m4/strerror_r.m4: Revive this file -- to try out an experimental
74494         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
74495         for which strerror does return char*, but which lacks a conveniently
74496         accessible declaration of the function.  If the compile-test says
74497         strerror_r doesn't work, then resort to a `run'-test that works on
74498         BeOS and segfaults on DEC Unix.
74499
74500 2000-06-24  Jim Meyering  <meyering@lucent.com>
74501
74502         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
74503
74504 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74505
74506         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
74507         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
74508
74509 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74510
74511         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
74512         (mbrtowc, mbstate_t): Define substitutes if
74513         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
74514         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
74515         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
74516
74517 2000-06-23  Jim Meyering  <meyering@lucent.com>
74518
74519         * m4/afs.m4: Add missing AC_MSG_RESULT.
74520         Reported by Bruno Haible.
74521
74522         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
74523         Suggestion from Bruno Haible.
74524
74525 2000-06-23  Jim Meyering  <meyering@lucent.com>
74526
74527         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
74528
74529 2000-06-21  Jim Meyering  <meyering@lucent.com>
74530
74531         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
74532
74533 2000-06-21  Jim Meyering  <meyering@lucent.com>
74534
74535         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
74536         (noinst_HEADERS): Add getstr.h.
74537
74538         * lib/getline.c (getstr): Move into a separate file.
74539         * lib/getstr.c (getstr): New file, extracted from getline.c, with
74540         the following changes: new parameter, delim2; both delim[12]
74541         parameters have type `int', not `char'.  The latter would lose
74542         with 8-bit delimiters.
74543         * lib/getstr.h: New file.
74544
74545 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74546
74547         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
74548         than 1024, return a memory chunk of least possible size, instead
74549         of size PATH_MAX + 2. In the loop, increment the size proportionally.
74550         Use free/xmalloc instead of xrealloc to avoid copying for very long
74551         paths.
74552
74553 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74554
74555         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
74556         the empty string.
74557
74558 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74559
74560         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
74561         address, not strdup.  Include <stdlib.h> and don't declare free().
74562
74563 2000-06-19  Jim Meyering  <meyering@lucent.com>
74564
74565         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
74566
74567 2000-06-18  Jim Meyering  <meyering@lucent.com>
74568
74569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
74570
74571         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
74572         `checking whether...' message to be consistent with that of the
74573         lstat test.
74574
74575 2000-06-18  Jim Meyering  <meyering@lucent.com>
74576
74577         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
74578         Besides, these days every porting target provides a mkdir function.
74579
74580         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
74581         needed. (this snippet comes from src/system.h).
74582
74583 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
74584
74585         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
74586
74587 2000-06-15  Paul Eggert  <eggert@twinsun.com>
74588
74589         * lib/human.c (adjust_value): New function.
74590         (human_readable_inexact): Apply rounding style even when
74591         printing approximate values.
74592
74593 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74594
74595         * lib/human.c (human_readable_inexact): Allow an input block
74596         size that is not a multiple of the output block size, and vice versa.
74597         Reported by Piergiorgio Sartor.
74598
74599 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74600
74601         * lib/getdate.y (get_date): Apply relative times after time
74602         zone indicator, not before.  Reported by Todd A. Jacobs.
74603
74604 2000-06-13  Jim Meyering  <meyering@lucent.com>
74605
74606         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
74607
74608         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
74609
74610 2000-06-12  Paul Eggert  <eggert@twinsun.com>
74611
74612         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
74613
74614 2000-06-12  Jim Meyering  <meyering@lucent.com>
74615
74616         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
74617         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
74618         optional argument.
74619         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
74620         the optional argument, `lib'.
74621
74622 2000-06-08  Jim Meyering  <meyering@lucent.com>
74623
74624         * m4/largefile.m4: Remove file (now that it's part of autoconf).
74625
74626 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74627
74628         Rewrite largefile configuration so that we don't need to run
74629         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
74630         AC_CANONICAL_HOST in configure.in -- jmm]
74631
74632         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
74633         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
74634         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
74635         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
74636         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
74637         All uses changed.
74638         Instead of inspecting the output of getconf, try to compile the
74639         test program without and with the macro definition.
74640         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
74641         for getconf.  Instead, check for the needed flags by compiling
74642         test programs.
74643
74644 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74645
74646         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
74647
74648 2000-06-04  Jim Meyering  <meyering@lucent.com>
74649
74650         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
74651         SunOS 4.1.4 for which gid_t is an unsigned type.
74652
74653 2000-06-03  Jim Meyering  <meyering@lucent.com>
74654
74655         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
74656         now that autoconf requires that.
74657
74658         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
74659         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
74660         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
74661
74662 2000-06-03  Jim Meyering  <meyering@lucent.com>
74663
74664         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
74665
74666 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74667
74668         * m4/glibc21.m4: New file.
74669         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
74670
74671 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74672
74673         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
74674         newer, don't install charset.alias.
74675         * lib/config.charset: Change the Linux/glibc rules so they become empty
74676         on glibc-2.1 or newer.
74677
74678 2000-06-02  Jim Meyering  <meyering@lucent.com>
74679
74680         * lib/mountlist.c: Back out last change.  Instead, do this...
74681         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
74682         me_dummy member using the same `ignore'-testing code.
74683         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
74684         fs_type strings.
74685         From Mark D. Roth.
74686
74687 2000-05-29  Jim Meyering  <meyering@lucent.com>
74688
74689         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
74690         mounts with the `ignore' attribute.  Based on a patch from
74691         Mark D. Roth.
74692
74693 2000-05-28  Jim Meyering  <meyering@lucent.com>
74694
74695         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
74696         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74697         * m4/stat.m4: Likewise.
74698         * m4/lstat.m4: Likewise.
74699         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
74700
74701         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
74702         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
74703
74704 2000-05-26  Jim Meyering  <meyering@lucent.com>
74705
74706         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
74707
74708 2000-05-24  Jim Meyering  <meyering@lucent.com>
74709
74710         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
74711         autoconf requires that.
74712         * m4/lib-check.m4: Likewise.
74713         * m4/jm-macros.m4: Likewise.
74714         * m4/strftime.m4: Likewise.
74715
74716         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
74717         AC_CHECK_DECLS, now that autoconf requires that.
74718
74719 2000-05-22  Jim Meyering  <meyering@lucent.com>
74720
74721         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74722         * m4/lstat.m4: Likewise.
74723
74724 2000-05-22  Jim Meyering  <meyering@lucent.com>
74725
74726         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
74727
74728 2000-05-20  Jim Meyering  <meyering@lucent.com>
74729
74730         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
74731         (jm_PREREQ): Use it.
74732
74733 2000-05-18  Jim Meyering  <meyering@lucent.com>
74734
74735         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
74736         back, too, since it may have been modified by allocate_entry.
74737         (hash_delete): Rewrite to use neither the assignment operator
74738         nor the comma operator in an if-expression.
74739
74740 2000-05-15  Paul Eggert  <eggert@twinsun.com>
74741
74742         * lib/closeout.c:
74743         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
74744         Remove; no longer needed.
74745         "quotearg.h": Add include.
74746         (file_name): Do not bother to explicitly initialize to NULL; it's less
74747         efficient on some hosts.
74748         (close_stdout_status): Remove test as to whether stdout was already
74749         closed; it breaks for the case "echo x | sort >&-".
74750         Quote file name colons.
74751         Do not assume that _("write error") lacks format strings.
74752
74753 2000-05-15  Jim Meyering  <meyering@lucent.com>
74754
74755         * lib/version-etc.c (version_etc_copyright): Update the copyright
74756         string used in all --version output.
74757
74758 2000-05-14  Jim Meyering  <meyering@lucent.com>
74759
74760         * lib/closeout.c (close_stdout_set_file_name): New function.
74761         (close_stdout_status): Use new file-scoped global.
74762         Return right away if fstat says the stdout file descriptor is invalid.
74763         * lib/closeout.h (close_stdout_set_file_name): Declare.
74764
74765 2000-05-10  Jim Meyering  <meyering@lucent.com>
74766
74767         * lib/closeout.c [default_exit_status]: New file-scoped variable.
74768         (close_stdout_set_status): New function.
74769         * lib/closeout.h (close_stdout_set_status): Declare.
74770
74771 2000-05-09  Jim Meyering  <meyering@lucent.com>
74772
74773         * m4/gettext.m4: Rename this...
74774         * m4/libintl.m4: ...to this.
74775
74776 2000-05-08  Jim Meyering  <meyering@lucent.com>
74777
74778         * lib/long-options.c: Don't include closeout.h.
74779         (parse_long_options): Don't call close_stdout for --version.
74780
74781 2000-05-06  Paul Eggert  <eggert@twinsun.com>
74782
74783         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
74784         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
74785         2.1.3 bug.  This avoids a clash when files like regex.c define
74786         _GNU_SOURCE.
74787
74788 2000-05-06  Jim Meyering  <meyering@lucent.com>
74789
74790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
74791         (AC_REPLACE_FUNCS): Add strnlen.
74792
74793         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
74794         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
74795
74796         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
74797         AC_SEARCH_LIBS call for nanosleep.
74798         (LIB_NANOSLEEP): Set and AC_SUBST.
74799
74800 2000-05-06  Jim Meyering  <meyering@lucent.com>
74801
74802         * lib/strnlen.c: Undefine __strnlen and strnlen.
74803         [!weak_alias]: Define __strnlen to strnlen.
74804
74805         * lib/atexit.c: New file, from libiberty.
74806
74807 2000-05-06  Jim Meyering  <meyering@lucent.com>
74808
74809         * lib/closeout.c (close_stdout_status): Also check for errors on the
74810         stderr stream.
74811
74812 2000-05-05  Jim Meyering  <meyering@lucent.com>
74813
74814         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
74815         AC_SEARCH_LIBS call for clock_gettime.
74816         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
74817
74818         * m4/search-libs.m4: Update from autoconf.
74819
74820         su doesn't work on Solaris 2.6.
74821         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
74822         <shadow.h>.  Reported by Dragos Harabor.
74823
74824 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
74825
74826         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
74827         memcpy instead of xmalloc, xrealloc, path_concat.
74828         (locale_charset): Treat empty environment variables as absent.
74829         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
74830
74831 2000-05-04  Jim Meyering  <meyering@lucent.com>
74832
74833         * lib/getopt.c: Update from glibc.
74834         * lib/obstack.c: Likewise.
74835         * lib/obstack.h: Likewise.
74836         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
74837         file
74838
74839         * lib/regex.h: Likewise.
74840         * lib/strndup.c: Likewise.
74841         * lib/strnlen.c: New file, from glibc.
74842
74843 2000-05-03  Jim Meyering  <meyering@lucent.com>
74844
74845         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
74846
74847 2000-05-02  Paul Eggert  <eggert@twinsun.com>
74848
74849         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
74850         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
74851         compile-time test, rather than inspecting host and OS, to
74852         decide whether to define _LARGEFILE_SOURCE.
74853
74854 2000-05-01  Jim Meyering  <meyering@lucent.com>
74855
74856         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
74857
74858         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
74859         Based on a patch from Bruno Haible.
74860
74861 2000-05-01  Jim Meyering  <meyering@lucent.com>
74862
74863         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
74864
74865 2000-04-29  Jim Meyering  <meyering@lucent.com>
74866
74867         * lib/path-concat.c: Declare strdup only if it's not defined.
74868         * lib/canon-host.c: Likewise.
74869
74870 2000-04-28  Jim Meyering  <meyering@lucent.com>
74871
74872         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
74873         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
74874         is included first, then limits.h is included by locale.h by libintl.h.
74875         From John David Anglin.
74876
74877 2000-04-25  Jim Meyering  <meyering@lucent.com>
74878
74879         * lib/makepath.c (S_IRWXUGO): Define.
74880         (make_path): Always perform explicit chmod if MODE specifies any
74881         of the `special' permission bits.  Prompted by a bug report against
74882         install from Mate Wierdl and Joost van Baal.
74883
74884 2000-04-18  Jim Meyering  <meyering@lucent.com>
74885
74886         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
74887         (jm_PREREQ): Use it.
74888
74889 2000-04-18  Jim Meyering  <meyering@lucent.com>
74890
74891         * lib/README: New file.
74892
74893         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
74894         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
74895
74896 2000-04-17  Jim Meyering  <meyering@lucent.com>
74897
74898         Get it right :-)
74899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
74900         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
74901         Suggestion from Akim Demaille.
74902
74903 2000-04-17  Jim Meyering  <meyering@lucent.com>
74904
74905         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
74906         the definition of it to rpl_strftime also defined-away the system's
74907         declaration.
74908
74909 2000-04-15  Jim Meyering  <meyering@lucent.com>
74910
74911         Use `C' to denote so-called `contiguous' files, the same way
74912         that tar does.
74913         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
74914         (ftypelet): Use S_ISCTG.
74915         From Michael Deutschmann.
74916
74917 2000-04-14  Jim Meyering  <meyering@lucent.com>
74918
74919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
74920         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
74921         clobbered.
74922
74923 2000-04-14  Jim Meyering  <meyering@lucent.com>
74924
74925         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
74926
74927 2000-04-13  Jim Meyering  <meyering@lucent.com>
74928
74929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
74930         AH_VERBATIM to insert required #ifndef into config.h.in.
74931         Suggestion from Akim Demaille.
74932
74933 2000-04-12  Jim Meyering  <meyering@lucent.com>
74934
74935         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
74936         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
74937         Christian Krackowizer.
74938
74939         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
74940         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
74941         (AC_SYS_LARGEFILE): Require.
74942         (AM_C_PROTOTYPES): Require.
74943
74944 2000-04-08  Jim Meyering  <meyering@lucent.com>
74945
74946         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
74947         names don't conflict.  Reported by Eli Zaretskii.
74948
74949 2000-04-07  Jim Meyering  <meyering@lucent.com>
74950
74951         * lib/putenv.c: Move inclusion of errno.h so it follows that of
74952         sys/types.h, to work around system header problems on AIX 3.2.5.
74953         From Bruno Haible.
74954
74955 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
74956
74957         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
74958         bug.  Deal with the different error behavior of Irix iconv.
74959
74960 2000-04-05  Paul Eggert  <eggert@twinsun.com>
74961
74962         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
74963         IRIX if the installer said otherwise.
74964
74965 2000-04-05  Jim Meyering  <meyering@lucent.com>
74966
74967         Portability tweaks required for ultrix4.3.
74968         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
74969         (jm_CHECK_DECLS): Add getutent to the list of functions.
74970         (_jm_DECL_HEADERS): Add utmpx.h.
74971         From John David Anglin.
74972
74973         * m4/strftime.m4: Back out the 2000-04-02 change.
74974         Instead of that change, simply undefine putenv in the test program.
74975
74976 2000-04-05  Jim Meyering  <meyering@lucent.com>
74977
74978         Portability tweaks required for ultrix4.3.
74979         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
74980         getutent.
74981         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
74982         * lib/canon-host.c: Declare strdup.
74983         * lib/path-concat.c: Likewise.
74984         From John David Anglin.
74985
74986 2000-04-04  Jim Meyering  <meyering@lucent.com>
74987
74988         Be more DOS 8.3-friendly.
74989         * lib/ref-add.sin: Renamed from ref-add.sed.in.
74990         * lib/ref-del.sin: Renamed from ref-del.sed.in.
74991         * lib/Makefile.am: Reflect renaming.
74992         Reported by Eli Zaretskii.
74993
74994         Use a temporary file name that won't clash with `charset.alias'
74995         in the DOS 8.3 name space.
74996         * lib/Makefile.am (charset_tmp): Define.
74997         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
74998         (uninstall-local): Likewise.
74999         Reported by Eli Zaretskii.
75000
75001 2000-04-03  Jim Meyering  <meyering@lucent.com>
75002
75003         * m4/gettext.m4: Fix typo in comment.
75004
75005         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
75006         textutils/configure.in).  Suggestion from Paul Eggert.
75007         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
75008
75009 2000-04-02  Paul Eggert  <eggert@twinsun.com>
75010
75011         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
75012         variable in the shell rather than using putenv, which isn't
75013         portable.  This avoids the configure-time inter-test dependency
75014         on the potentially-renamed putenv function.
75015
75016 2000-03-30  Paul Eggert  <eggert@twinsun.com>
75017
75018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
75019         before checking struct stat.st_blksize, so that
75020         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
75021
75022 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75023
75024         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
75025         since strftime.c uses HAVE_STRFTIME to decide whether to use
75026         the underlying strftime.
75027
75028 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75029
75030         * lib/time/strftime.c (my_strftime): Make sure we call the system
75031         strftime, not ourselves, when invoking the underlying strftime.
75032
75033 2000-03-24  Jim Meyering  <meyering@lucent.com>
75034
75035         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
75036         (charset_alias): Define.
75037         (install-exec-local): Factor out common code.
75038         (uninstall-local): Split lines longer than 80.
75039         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
75040         (SUFFIXES): Define.
75041         (.sed.in.sed): New rule.  Don't redirect directly to $@.
75042         (CLEANFILES): Add ref-add.sed and ref-del.sed.
75043
75044 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
75045
75046         * lib/config.charset: Output a line containing "Packages using this
75047         file".
75048         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
75049         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
75050         ref-del.sed): New rules.
75051
75052 2000-03-17  Jim Meyering  <meyering@lucent.com>
75053
75054         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
75055         Otherwise, include <strings.h>
75056
75057 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
75058
75059         * lib/unicodeio.c (utf8_wctomb): New function.
75060         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
75061         format instead of in UCS-4 with platform dependent endianness.
75062
75063 2000-03-10  Jim Meyering  <meyering@lucent.com>
75064
75065         * m4/lib-check.m4: Look for getspnam in -lgen, too.
75066         From Marco Franzen.
75067
75068 2000-03-07  Paul Eggert  <eggert@twinsun.com>
75069
75070         * lib/savedir.c (savedir): Work even if directory size is
75071         negative; this can happen with some screwy NFS configurations.
75072
75073 2000-03-06  Jim Meyering  <meyering@lucent.com>
75074
75075         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
75076         if it's NULL (because we ran out of memory).  From Bruno Haible.
75077
75078 2000-03-05  Jim Meyering  <meyering@lucent.com>
75079
75080         * lib/localcharset.c ("path-concat.h"): Include.
75081         (get_charset_aliases): Use path_concat instead of ANSI string
75082         concatenation.
75083
75084         * lib/unicodeio.h (PARAMS): Define.
75085         Use it to guard prototype.
75086
75087 2000-03-04  Jim Meyering  <meyering@lucent.com>
75088
75089         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
75090         for lib/localcharset.c.
75091
75092 2000-03-04  Jim Meyering  <meyering@lucent.com>
75093
75094         * lib/Makefile.am (install-exec-local): Create $(libdir) before
75095         installing into it.
75096         (uninstall-local): Uncomment this rule so `make distcheck' works
75097         once again.
75098
75099         * lib/unicodeio.c (<errno.h>): Include it.
75100         (errno): Declare if not defined.
75101
75102         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
75103
75104         * lib/config.charset: New version, incorporating remarks from a linux
75105         i18n mailing list.  From Bruno Haible.
75106
75107 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
75108
75109         * m4/codeset.m4: New file.
75110         * m4/iconv.m4: New file.
75111         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
75112
75113 2000-03-03  Jim Meyering  <meyering@lucent.com>
75114
75115         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
75116
75117 2000-03-02  Jim Meyering  <meyering@lucent.com>
75118
75119         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
75120         the messages come out on separate lines.
75121
75122         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
75123         rather than jm_CHECK_DECLARATIONS.
75124         * m4/decl.m4: Remove now-unused file.
75125
75126         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
75127         geteuid.
75128
75129 2000-03-02  Jim Meyering  <meyering@lucent.com>
75130
75131         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
75132
75133 2000-03-01  Jim Meyering  <meyering@lucent.com>
75134
75135         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
75136         * lib/unicodeio.c: Likewise.
75137
75138 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
75139
75140         * lib/config.charset: New file.
75141         * lib/localcharset.c: New file.
75142         * lib/unicodeio.h, lib/unicodeio.c: New files.
75143         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
75144         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
75145         (noinst_HEADERS): Add unicodeio.h.
75146         (all-local, install-exec-local, charset.alias): New targets.
75147
75148 2000-02-28  Paul Eggert  <eggert@twinsun.com>
75149
75150         * lib/quotearg.c (ALERT_CHAR): New macro.
75151         (quotearg_buffer_restyled): Use it.
75152
75153 2000-02-27  Jim Meyering  <meyering@lucent.com>
75154
75155         * m4/check-decl.m4: Add getenv to the list.
75156
75157 2000-02-27  Jim Meyering  <meyering@lucent.com>
75158
75159         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
75160         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
75161
75162         * lib/backupfile.c: Guard inclusion of stdlib.h with
75163         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
75164         Declare malloc if needed.
75165
75166         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
75167         `#ifndef HAVE_DECL..'
75168         now that autoconf always defines the HAVE_DECL_ symbols.
75169         * lib/human.c: Likewise.
75170         * lib/same.c: Likewise.
75171         * lib/strtoumax.c: Likewise.
75172
75173         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
75174         declaration check was not run.
75175         * lib/hash.c: Likewise.
75176         * lib/human.c: Likewise.
75177         * lib/same.c: Likewise.
75178         * lib/strtoumax.c: Likewise.
75179
75180         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
75181         `.', then first look up the entire `.'-containing string as a login
75182         name.
75183
75184 2000-02-23  Jim Meyering  <meyering@lucent.com>
75185
75186         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
75187         in place of my hack.
75188
75189 2000-02-18  Paul Eggert  <eggert@twinsun.com>
75190
75191         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
75192         (textint): New typedef.
75193         (parser_control): Member year changed from int to textint.
75194         All uses changed.
75195         (YYSTYPE): Removed; replaced by %union with int and textint members.
75196         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
75197         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
75198         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
75199         (tSNUMBER, tUNUMBER): Now of type <textintval>.
75200         (date, number, to_year): Use width of number in digits, not its value,
75201         to determine whether it's a 2-digit year, or a 2-digit time.
75202         (yylex): Store number of digits of numeric tokens.
75203         Reported by John Kendall.
75204
75205         (parser_control): Changed from struct parser_control to typedef (for
75206         consistency).  All uses changed.
75207
75208         (tID): Removed; not used.
75209         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
75210
75211 2000-02-14  Paul Eggert  <eggert@twinsun.com>
75212
75213         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
75214         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
75215
75216 2000-02-12  Jim Meyering  <meyering@lucent.com>
75217
75218         * lib/userspec.c (ISDIGIT): Define it.
75219         (isdigit): Remove definition.
75220         (is_number): Use ISDIGIT, not isdigit.
75221         <libintl.h>: Include.
75222         (_ and N_): Define.
75223         (parse_user_spec): Mark translatable strings.
75224
75225 2000-02-10  Jim Meyering  <meyering@lucent.com>
75226
75227         With these changes, nanosleep.[ch] are finally enough like the other
75228         lib/* replacement files to compile on a few more losing systems.
75229
75230         * lib/nanosleep.h: Don't include config.h.
75231         Remove prototype from declaration of nanosleep.
75232         (PARAMS): Remove now-unneeded definition.
75233         * lib/nanosleep.c: #undef nanosleep.
75234         (rpl_nanosleep): Rename from nanosleep.
75235
75236 2000-02-10  Jim Meyering  <meyering@lucent.com>
75237
75238         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
75239         gnu_nanosleep to rpl_nanosleep.
75240
75241 2000-02-09  Jim Meyering  <meyering@lucent.com>
75242
75243         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
75244         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
75245
75246 2000-02-08  Akim Demaille  <akim@epita.fr>
75247
75248         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
75249         `[' and `]' and remove uses of `changequote'.
75250         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
75251         (AC_SYS_LARGEFILE): Likewise.
75252         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
75253         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
75254         of changequote.
75255         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
75256         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
75257         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
75258         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
75259
75260 2000-02-05  Jim Meyering  <meyering@lucent.com>
75261
75262         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
75263         Remove explicit use of AC_HEADER_TIME.  It is required by
75264         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
75265         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
75266         in autoconf whereby the expansion of the latter ended up preceding
75267         the expansion of its prerequisite, AC_HEADER_TIME.
75268         Reported by Volker Borchert.
75269
75270 2000-02-03  Jim Meyering  <meyering@lucent.com>
75271
75272         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
75273
75274 2000-02-03  Jim Meyering  <meyering@lucent.com>
75275
75276         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
75277         rather than with `#if HAVE_UTMPNAME'.
75278
75279 2000-02-02  Jim Meyering  <meyering@lucent.com>
75280
75281         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
75282         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
75283         Reported by Eli Zaretskii.
75284
75285 2000-02-01  Jim Meyering  <meyering@lucent.com>
75286
75287         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
75288
75289 2000-01-31  Jim Meyering  <meyering@lucent.com>
75290
75291         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
75292         functions.  Add the time.h and sys/time.h headers along with the
75293         AC_REQUIRE'ment of AC_HEADER_TIME.
75294
75295 2000-01-31  Jim Meyering  <meyering@lucent.com>
75296
75297         * lib/nanosleep.h (nanosleep): Guard declaration with
75298         `#if ! HAVE_DECL_NANOSLEEP'.
75299         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
75300         the declaration in that vendor's sys/timers.h.
75301         Reported by Christian Krackowizer.
75302
75303         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
75304         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
75305         (ISPRINT): Likewise.
75306         Reported by Tom Tromey.
75307
75308 2000-01-30  Jim Meyering  <meyering@lucent.com>
75309
75310         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
75311
75312         * m4/prereq.m4 (utmp_includes): Define.
75313         Check for ut_user and ut_name members in both struct utmpx
75314         and struct utmp.
75315
75316 2000-01-30  Jim Meyering  <meyering@lucent.com>
75317
75318         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
75319         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
75320         header files where only utmpx.ut_user is declared.
75321
75322         * lib/readutmp.h (UT_USER): Define.
75323
75324 2000-01-29  Jim Meyering  <meyering@lucent.com>
75325
75326         * m4/lib-check.m4: New file containing library-related checks from
75327         fileutils and sh-utils (textutils had none).
75328
75329 2000-01-28  Jim Meyering  <meyering@lucent.com>
75330
75331         * m4/perl.m4: Change format of warning message to look more like that
75332         from the missing script.  Suggestion from François Pinard.
75333
75334 2000-01-25  Jim Meyering  <meyering@lucent.com>
75335
75336         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
75337         well as time.h in the compile check.
75338         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
75339         Fix typo in cross-compiling case: s/yes/no/.
75340
75341 2000-01-23  Jim Meyering  <meyering@lucent.com>
75342
75343         * m4/jm-macros.m4: Move df-related tests here from
75344         fileutils/configure.in
75345
75346         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
75347         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
75348
75349         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
75350         s/space/ac_fsusage_space/.
75351         (jm_FILE_SYSTEM_USAGE): Take two parameters.
75352
75353         * m4/ftruncate.m4: New file (derived from part of
75354         fileutils/configure.in).
75355         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
75356         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
75357
75358         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
75359         AC_SUBST these here, rather than just in sh-util/configure.in, so
75360         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
75361         all the same.
75362         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
75363         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
75364         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
75365         (AC_SUBST(POW_LIBM)): Likewise.
75366         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
75367
75368 2000-01-23  Jim Meyering  <meyering@lucent.com>
75369
75370         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
75371         obstack.c.
75372
75373 2000-01-22  Jim Meyering  <meyering@lucent.com>
75374
75375         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
75376
75377         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
75378
75379         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
75380         configure.in
75381         (AC_CHECK_HEADERS): Likewise for sh-utils.
75382         (AC_CHECK_HEADERS): Likewise for textutils.
75383         Merge the three lists of headers.
75384
75385         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
75386         from fileutils' configure.in.
75387
75388         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
75389         code. Moved tests into their own function (_jm_DECL_HEADERS) in
75390         check-decl.m4.
75391
75392         * m4/check-decl.m4: Use #if rather than #ifdef.
75393         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
75394         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
75395         (_jm_DECL_HEADERS): Define new function.
75396         (jm_CHECK_DECLARATIONS): Require it.
75397
75398 2000-01-22  Jim Meyering  <meyering@lucent.com>
75399
75400         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
75401         [! HAVE_DECL_STRTOULL]: Declare strtoull.
75402         Required for some AIX systems.  Reported by Christian Krackowizer.
75403         [TESTING] (main): New function.
75404
75405         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
75406         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
75407         letters.
75408
75409         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
75410         iswprint.
75411
75412         * lib/strverscmp.c (ISDIGIT): Define.
75413         (strverscmp): Use ISDIGIT, not isdigit.
75414
75415 2000-01-19  Jim Meyering  <meyering@lucent.com>
75416
75417         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
75418         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
75419         defines `struct timespec' in <sys/time.h>
75420
75421         * m4/c-bs-a.m4: Remove uses of changequote altogether.
75422         Thanks to Akim for explaining.
75423
75424 2000-01-17  Paul Eggert  <eggert@twinsun.com>
75425
75426         * lib/nanosleep.c (nanosleep):
75427         Don't use SA_INTERRUPT to decide whether to call sigaction, as
75428         POSIX.1 doesn't require SA_INTERRUPT and some systems
75429         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
75430         it's been part of POSIX.1 since day 1 (in 1988).
75431
75432 2000-01-17  Jim Meyering  <meyering@lucent.com>
75433
75434         * lib/interlock: Remove unused file.  Reported by François Pinard.
75435
75436 2000-01-16  Paul Eggert  <eggert@twinsun.com>
75437
75438         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
75439         alert, backslash, formfeed, and vertical tab unnecessarily in
75440         shell quoting style.
75441
75442 2000-01-16  Jim Meyering  <meyering@lucent.com>
75443
75444         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
75445         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
75446         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
75447         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
75448
75449 2000-01-16  Jim Meyering  <meyering@lucent.com>
75450
75451         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
75452         because the latter didn't work.
75453
75454 2000-01-15  Jim Meyering  <meyering@lucent.com>
75455
75456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
75457         (AC_REPLACE_FUNCS): Add memcpy and memset.
75458         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
75459         Add strpbrk.
75460         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
75461
75462 2000-01-12  Jim Meyering  <meyering@lucent.com>
75463
75464         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
75465         (jm_PREREQ): Use it.
75466         (jm_PREREQ_READUTMP): New macro.
75467         (jm_PREREQ): Use it.
75468
75469 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75470
75471         Quote multibyte characters correctly.
75472         * m4/c-bs-a.m4: New file.
75473         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
75474         (jm_PREREQ): Use it.
75475
75476 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75477
75478         * m4/uintmax_t.m4: Port to autoconf 2.13.
75479
75480 2000-01-08  Jim Meyering  <meyering@ascend.com>
75481
75482         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
75483         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
75484
75485 2000-01-04  Jim Meyering  <meyering@ascend.com>
75486
75487         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
75488         jm_STRUCT_DIRENT_D_TYPE.
75489         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
75490         jm_STRUCT_DIRENT_D_INO.
75491         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
75492         jm_STRUCT_UTIMBUF.
75493         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
75494         renamings.
75495         * m4/utime.m4: Likewise.
75496
75497         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
75498         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
75499
75500 2000-01-03  Paul Eggert  <eggert@twinsun.com>
75501
75502         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
75503         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
75504
75505 2000-01-02  Jim Meyering  <meyering@ascend.com>
75506
75507         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
75508         remember if this is necessary.
75509
75510 1999-12-26  Jim Meyering  <meyering@ascend.com>
75511
75512         * m4/jm-macros.m4: Use it here.
75513         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
75514
75515 1999-12-23  Jim Meyering  <meyering@ascend.com>
75516
75517         * m4/jm-macros.m4: Check for clock_gettime (moved from
75518         fileutils/configure.in)
75519         Check for gettimeofday.
75520
75521 1999-12-20  Jim Meyering  <meyering@ascend.com>
75522
75523         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
75524         autoconf-2.14a-1999-12-20.
75525
75526 1999-12-19  Jim Meyering  <meyering@ascend.com>
75527
75528         * m4/lstat-slash.m4: New file.
75529         * m4/jm-macros.m4: Use the new macro:
75530         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75531
75532 1999-12-07  Jim Meyering  <meyering@ascend.com>
75533
75534         * m4/perl.m4: Require that File::Compare be available, too.
75535         Too many systems seem to lack it.
75536
75537         * m4/strftime.m4: Add checks for most of the cpp macros tested in
75538         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
75539
75540 1999-11-18  Paul Eggert  <eggert@twinsun.com>
75541
75542         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
75543         problem with the QNX 4.25 shell, which doesn't propagate exit
75544         status of failed commands inside shell assignments.
75545
75546 1999-11-17  Jim Meyering  <meyering@ascend.com>
75547
75548         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
75549
75550 1999-11-07  Jim Meyering  <meyering@ascend.com>
75551
75552         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
75553
75554 1999-11-06  Jim Meyering  <meyering@ascend.com>
75555
75556         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
75557         * m4/jm-macros.m4 (jm_MACROS): Use it here.
75558
75559 1999-11-05  Jim Meyering  <meyering@ascend.com>
75560
75561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
75562         configure.in of textutils, fileutils, and sh-utils into this one
75563         (shared between those packages) file.
75564         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
75565         AC_STRUCT_ST_BLKSIZE.
75566
75567 1999-11-03  Jim Meyering  <meyering@ascend.com>
75568
75569         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
75570         of AC_CHECK_TYPE checks includes unistd.h.
75571         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
75572         Suggestion from Akim Demaille.
75573
75574 1999-10-30  Jim Meyering  <meyering@ascend.com>
75575
75576         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
75577         m4-quoted string.
75578         * m4/ls-mntd-fs.m4: Likewise.
75579         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
75580         * m4/jm-winsz1.m4: Likewise.
75581
75582         * m4/const.m4: Remove file, since the fix made it into the experimental
75583         version of autoconf.
75584         * m4/mktime.m4: Likewise.
75585
75586         * m4/check-type.m4: Remove file, now that the latest version of
75587         AC_CHECK_TYPE takes a third arg to specify additional #includes.
75588
75589         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
75590         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
75591         AC_CHECK_TYPE.
75592
75593 1999-10-04  Jim Meyering  <meyering@ascend.com>
75594
75595         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
75596
75597 1999-09-22  Paul Eggert  <eggert@twinsun.com>
75598
75599         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
75600         2.95.1 bug with HP-UX 10.20.
75601
75602 1999-09-17  Jim Meyering  <meyering@ascend.com>
75603
75604         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
75605         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
75606         due to missing strdup (against sh-utils-2.0).
75607
75608 1999-08-29  Jim Meyering  <meyering@ascend.com>
75609
75610         * m4/jm-macros.m4: Require jm_BISON.
75611         * m4/bison.m4: New file.
75612
75613 1999-08-17  Paul Eggert  <eggert@twinsun.com>
75614
75615         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
75616         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
75617
75618 1999-08-05  Jim Meyering  <meyering@ascend.com>
75619
75620         * m4/getline.m4: Rename test file from conftestdata to conftest.data
75621         to avoid conflicts with `conftest' on 8+3 filesystems.
75622         Suggestion from Eli Zaretskii.
75623
75624 1999-08-04  Jim Meyering  <meyering@ascend.com>
75625
75626         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
75627         fileutils and sh-utils (textutils's getline test was inadequate).
75628         (AM_FUNC_GETLINE): Run this test.
75629         (AC_CHECK_FUNCS): Check for getdelim.
75630         Reported by Bob Proulx.
75631
75632 1999-08-02  Jim Meyering  <meyering@ascend.com>
75633
75634         * m4/jm-macros.m4: Add a comment.
75635
75636 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75637
75638         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
75639         <inttypes.h> defines strtoumax as a macro (and not as a
75640         function).
75641
75642 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75643
75644         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
75645         that we can shift, multiply and divide unsigned long long
75646         values; Ultrix cc can't do it.
75647
75648 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75649
75650         * m4/mktime.m4: New file, which is a preview of what should appear
75651         in the next public autoconf release.
75652
75653 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75654
75655         * m4/lfs.m4: Remove this file.
75656         * m4/largefile.m4: New file.  It contains the old contents of
75657         lfs.m4, except that all names with prefix AC_LFS have been
75658         changed to use the prefix AC_SYS_LARGEFILE instead, to be
75659         compatible with future autoconf versions.  Also, some minor m4
75660         quoting problems have been fixed.
75661
75662 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75663
75664         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
75665         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
75666         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
75667         and simplify the shell code.
75668
75669 1999-08-01  Jim Meyering  <meyering@ascend.com>
75670
75671         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
75672         m4.
75673
75674 1999-07-20  Jim Meyering  <meyering@ascend.com>
75675
75676         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
75677
75678 1999-07-15  Jim Meyering  <meyering@ascend.com>
75679
75680         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
75681
75682 1999-05-22  Jim Meyering  <meyering@ascend.com>
75683
75684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
75685
75686 1999-05-20  Jim Meyering  <meyering@ascend.com>
75687
75688         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
75689         Add a colon after each `then' in case $4 is empty.
75690
75691 1999-05-16  Jim Meyering  <meyering@ascend.com>
75692
75693         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
75694
75695 1999-05-10  Jim Meyering  <meyering@ascend.com>
75696
75697         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
75698
75699         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
75700         AC_FUNC_MKTIME.
75701
75702 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
75703
75704         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
75705
75706 1999-05-04  Paul Eggert  <eggert@twinsun.com>
75707
75708         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
75709         not CPPFLAGS, so that linking works correctly in IRIX.
75710
75711 1999-04-30  Paul Eggert  <eggert@twinsun.com>
75712
75713         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
75714
75715 1999-04-20  Paul Eggert  <eggert@twinsun.com>
75716
75717         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
75718         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
75719         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
75720         jm_AC_TYPE_UNSIGNED_LONG_LONG.
75721         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
75722
75723         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
75724
75725 1999-04-20  Jim Meyering  <meyering@ascend.com>
75726
75727         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
75728         AC_REPLACE xstroull if necessary.  From Paul Eggert.
75729         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
75730
75731 1999-04-18  Jim Meyering  <meyering@ascend.com>
75732
75733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
75734         * m4/jm-macros.m4: Use it.
75735
75736 1999-04-06  Jim Meyering  <meyering@ascend.com>
75737
75738         * m4/strftime.m4: Remove test for %f.
75739
75740 1999-03-29  Jim Meyering  <meyering@ascend.com>
75741
75742         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
75743         superset of the AC_TYPE_* checks in the textutils, fileutils,
75744         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
75745         AC_TYPE_PID_T.
75746
75747 1999-03-28  Jim Meyering  <meyering@ascend.com>
75748
75749         * m4/jm-macros.m4: Define GNU_PACKAGE here.
75750         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
75751         replaced e.g., in the *.sh files of the sh-utils.
75752
75753 1999-03-20  Jim Meyering  <meyering@ascend.com>
75754
75755         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
75756         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
75757         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
75758
75759 1999-03-19  Jim Meyering  <meyering@ascend.com>
75760
75761         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
75762
75763 1999-03-12  Jim Meyering  <meyering@ascend.com>
75764
75765         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
75766
75767 1999-03-07  Jim Meyering  <meyering@ascend.com>
75768
75769         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
75770         declared.
75771
75772 1999-02-17  Jim Meyering  <meyering@ascend.com>
75773
75774         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
75775         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
75776
75777 1999-02-07  Jim Meyering  <meyering@ascend.com>
75778
75779         * m4/group-member.m4: New file -- extracted from sh-utils'
75780         configure.in.
75781
75782         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
75783         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
75784
75785 1999-02-06  Jim Meyering  <meyering@ascend.com>
75786
75787         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
75788         * m4/fnmatch.m4: Likewise.
75789         * m4/getgroups.m4: Likewise.
75790         * m4/lstat.m4: Likewise.
75791         * m4/malloc.m4: Likewise.
75792         * m4/putenv.m4: Likewise.
75793         * m4/realloc.m4: Likewise.
75794         * m4/regex.m4: Likewise.
75795         * m4/stat.m4: Likewise.
75796         * m4/strftime.m4: Likewise.
75797         Suggestion from Alain Magloire.
75798
75799         * m4/chown.m4: Use `.$ac_objext', not `.o'.
75800         * m4/fnmatch.m4: Likewise.
75801         * m4/getgroups.m4: Likewise.
75802         * m4/getline.m4: Likewise.
75803         * m4/lstat.m4: Likewise.
75804         * m4/malloc.m4: Likewise.
75805         * m4/memcmp.m4: Likewise.
75806         * m4/putenv.m4: Likewise.
75807         * m4/realloc.m4: Likewise.
75808         * m4/regex.m4: Likewise.
75809         * m4/stat.m4: Likewise.
75810         * m4/strftime.m4: Likewise.
75811         Suggestion from Alain Magloire.
75812
75813         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
75814         an argument.
75815
75816         * m4/regex.m4: Add a run-time Test for proper operation of
75817         re_compile_pattern.
75818
75819 1999-01-31  Jim Meyering  <meyering@ascend.com>
75820
75821         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
75822
75823 1999-01-30  Jim Meyering  <meyering@ascend.com>
75824
75825         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
75826
75827         * m4/jm-mktime.m4: Make this a wrapper around the official
75828         AM_FUNC_MKTIME rather than my private copy, now that the official one
75829         is up to date.
75830         * m4/mktime.m4: Remove file.
75831
75832         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
75833         * m4/uptime.m4: Likewise.
75834         * m4/uintmax_t.m4: Likewise.
75835
75836 1999-01-28  Jim Meyering  <meyering@ascend.com>
75837
75838         * m4/jm-macros.m4: Use jm_AFS.
75839         * m4/afs.m4: New file (from fileutils' configure.in).
75840
75841         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
75842         * m4/chown.m4: Likewise.
75843         * m4/d-ino.m4: Likewise.
75844         * m4/d-type.m4: Likewise.
75845         * m4/fnmatch.m4: Likewise.
75846         * m4/getgroups.m4: Likewise.
75847         * m4/gettext.m4: Likewise.
75848         * m4/jm-mktime.m4: Likewise.
75849         * m4/jm-winsz2.m4: Likewise.
75850         * m4/lcmessage.m4: Likewise.
75851         * m4/ls-mntd-fs.m4: Likewise.
75852         * m4/malloc.m4: Likewise.
75853         * m4/memcmp.m4: Likewise.
75854         * m4/putenv.m4: Likewise.
75855         * m4/realloc.m4: Likewise.
75856         * m4/st_mtim.m4: Likewise.
75857         * m4/strftime.m4: Likewise.
75858
75859 1999-01-16  Jim Meyering  <meyering@ascend.com>
75860
75861         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
75862         (ARGMATCH_DIE_DECL): Define.
75863
75864 1999-01-12  Jim Meyering  <meyering@ascend.com>
75865
75866         * m4/Makefile.am.in: Rewrite to avoid using fmt.
75867         Reported by Lars Hecking.
75868
75869 1999-01-10  Jim Meyering  <meyering@ascend.com>
75870
75871         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
75872         gross kludge.
75873         * m4/inttypes_h.m4: Likewise.
75874         * m4/lstat.m4: Likewise.
75875         * m4/malloc.m4: Likewise.
75876         * m4/readdir.m4: Likewise.
75877         * m4/realloc.m4: Likewise.
75878         * m4/st_dm_mode.m4: Likewise.
75879         * m4/stat.m4: Likewise.
75880         * m4/utimbuf.m4: Likewise.
75881         * m4/utimes.m4: Likewise.
75882
75883         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
75884         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
75885         comments in config.h.in are meaningful.
75886
75887         * m4/jm-macros.m4: Require autoconf-2.13 here.
75888
75889         * m4/regex.m4: By default, don't use the included regex.c on systems
75890         with glibc 2.  Suggestion from Uli Drepper.
75891
75892 1999-01-02  Jim Meyering  <meyering@ascend.com>
75893
75894         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
75895
75896 1998-12-18  Jim Meyering  <meyering@ascend.com>
75897
75898         * m4/Makefile.am.in (Makefile.am): Simplify rule.
75899         Based on a suggestion from Lars Hecking.
75900
75901 1998-11-16  Paul Eggert  <eggert@twinsun.com>
75902
75903         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
75904
75905 1998-11-16  Jim Meyering  <meyering@ascend.com>
75906
75907         * m4/lfs.m4: Double-quote the `uname...` expression.
75908
75909 1998-11-14  Jim Meyering  <meyering@ascend.com>
75910
75911         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
75912         * m4/stat.m4: Likewise.
75913
75914 1998-11-03  Jim Meyering  <meyering@ascend.com>
75915
75916         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
75917         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
75918
75919 1998-10-18  Jim Meyering  <meyering@ascend.com>
75920
75921         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
75922
75923 1998-10-17  Jim Meyering  <meyering@ascend.com>
75924
75925         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
75926         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
75927         calls for those previously hard-coded headers.  Instead, take a new
75928         parameter.
75929         (jm_CHECK_DECLARATIONS): Reflect interface change.
75930         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
75931         (jm_CHECK_DECL_LOCALTIME_R): New macro.
75932
75933         * m4/mktime.m4: Test for spring-forward gap before long-running test.
75934
75935 1998-10-14  Jim Meyering  <meyering@ascend.com>
75936
75937         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
75938         instead of "TZ=America/Vancouver".  From Paul Eggert.
75939
75940 1998-10-11  Jim Meyering  <meyering@ascend.com>
75941
75942         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
75943         This adds a test for a recently added compatibility fix for mktime.c.
75944         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
75945
75946 1998-09-27  Jim Meyering  <meyering@ascend.com>
75947
75948         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
75949
75950         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
75951         ../configure.in, including a change from Gordon Matzigkeit to allow
75952         cross-compiling for the Hurd.
75953
75954         * m4/glibc.m4: New file/macro to test for the GNU C Library
75955         versions 1 and 2.  From Gordon Matzigkeit.
75956         Indent.
75957
75958 1998-09-21  Jim Meyering  <meyering@ascend.com>
75959
75960         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
75961
75962 1998-08-18  Paul Eggert  <eggert@twinsun.com>
75963
75964         Port nanosecond-resolution times to UnixWare 2.1.2 and
75965         pedantic Solaris 2.6.
75966
75967         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
75968         AC_STRUCT_ST_MTIM.
75969         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
75970         Generate name of ns member, instead of just 1 or undef.
75971         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
75972
75973 1998-08-15  Jim Meyering  <meyering@ascend.com>
75974
75975         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
75976         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
75977         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
75978         instead of jm_TYPE_SSIZE_T.
75979
75980 1998-08-12  Jim Meyering  <meyering@ascend.com>
75981
75982         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
75983
75984 1998-08-02  Jim Meyering  <meyering@ascend.com>
75985
75986         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
75987         in acconfig.h manually.
75988
75989 1998-07-31  Paul Eggert  <eggert@twinsun.com>
75990
75991         * m4/st_mtim.m4: New file.
75992
75993 1998-07-28  Jim Meyering  <meyering@ascend.com>
75994
75995         * m4/utimes.m4: Undef stat.
75996
75997 1998-07-25  Jim Meyering  <meyering@ascend.com>
75998
75999         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
76000         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
76001
76002 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
76003
76004         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
76005         uid and gid actually remain unchanged.
76006
76007 1998-07-07  Jim Meyering  <meyering@ascend.com>
76008
76009         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
76010
76011 1998-07-04  Jim Meyering  <meyering@ascend.com>
76012
76013         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
76014         to prove that this macro can be used in packages without regex.c.
76015
76016 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
76017
76018         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
76019         is to be used.
76020
76021 1998-07-03  Jim Meyering  <meyering@ascend.com>
76022
76023         * m4/gettext.m4: Add -lintl if it's found to be necessary.
76024
76025         * m4/gettext.m4: New file -- from gettext-0.10.35.
76026         * m4/lcmessage.m4: Likewise.
76027         * m4/progtest.m4: Likewise.
76028
76029         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
76030         * m4/jm-macros.m4: Require the new macro.
76031
76032 1998-06-29  Jim Meyering  <meyering@ascend.com>
76033
76034         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
76035         for the definition of NGROUPS (used in a system header included
76036         by sys/mount.h).
76037
76038 1998-06-28  Jim Meyering  <meyering@ascend.com>
76039
76040         * m4/ls-mntd-fs.m4: New file.
76041         * m4/fstypename.m4: New file.
76042
76043         * m4/jm-macros.m4: Require the new macro.
76044         * m4/jm-glibc-io.m4: New file.
76045
76046 1998-05-19  Jim Meyering  <meyering@ascend.com>
76047
76048         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
76049         * m4/lchown.m4: New file.
76050
76051         * m4/Makefile.am.in: New file.
76052         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
76053
76054 1998-05-14  Jim Meyering  <meyering@ascend.com>
76055
76056         * m4/Makefile.am (EXTRA_DIST): Add them.
76057         * m4/jm-macros.m4: New file.
76058         * m4/utimbuf.m4: New file.
76059
76060 1998-05-12  Jim Meyering  <meyering@ascend.com>
76061
76062         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
76063
76064 1998-05-11  Jim Meyering  <meyering@ascend.com>
76065
76066         * m4/isc-posix.m4: New file.
76067
76068 1998-05-10  Jim Meyering  <meyering@ascend.com>
76069
76070         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
76071
76072 1998-05-09  Jim Meyering  <meyering@ascend.com>
76073
76074         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
76075         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
76076         with automake.
76077
76078         * m4/ssize_t.m4: New file.
76079         * m4/mktime.m4: Remove file -- the new automake has this now.
76080
76081 1998-04-26  Jim Meyering  <meyering@ascend.com>
76082
76083         * m4/assert.m4: New file.
76084         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
76085
76086 1998-04-05  Jim Meyering  <meyering@ascend.com>
76087
76088         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
76089         (jm_PREREQ): Use it here.
76090
76091 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
76092
76093         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
76094         in acconfig.h.
76095
76096 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
76097
76098         * m4/prereq.m4: New file.
76099         * m4/error.m4: New file.
76100         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
76101
76102 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
76103
76104         * m4/getline.m4: Don't set am_cv_func_working_getline before the
76105         cache-check for the same variable -- that defeated the purpose of
76106         the test; the test program was never run.  This was a problem only
76107         on systems with losing getline functions -- HP-UX 10.20 is one.
76108         Reported by Bjorn Helgaas.
76109
76110 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
76111
76112         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
76113
76114 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
76115
76116         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
76117
76118         * m4/const.m4: New file.  Use an initializer in this declaration
76119         typedef int charset[2]; const charset x;
76120         Reported by Bob Glickstein.
76121
76122 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
76123
76124         * m4/chown.m4: Fix reversed types on -1 args to chown.
76125         From Kaveh Ghazi.
76126
76127 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
76128
76129         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
76130         Add lseek and memchr.
76131
76132         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
76133         T.E.Dickey <dickey@clark.net> said that some older preprocessors
76134         have a 20-character limit on names.
76135
76136 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
76137
76138         * m4/inttypes_h.m4: New file.
76139         * m4/uintmax_t.m4: New file.
76140         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
76141
76142
76143         -----
76144
76145         Local Variables:
76146         coding: utf-8
76147         End:
76148
76149         Copyright (C) 1997-2011 Free Software Foundation, Inc.
76150
76151         Copying and distribution of this file, with or without
76152         modification, are permitted provided the copyright notice
76153         and this notice are preserved.